Click or drag to resize
AB4D logo

AxisWith3DLabelsVisual3D Class

AxisWith3DLabelsVisual3D shows one 3D axis with value labels and axis title shown as 3D TextBlockVisual3D objects.
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.Media.Media3DVisual3D
        System.Windows.Media.Media3DModelVisual3D
          Ab3d.VisualsBaseVisual3D
            Ab3d.VisualsContentVisual3D
              Ab3d.VisualsBaseAxisWithLabelsVisual3D
                Ab3d.VisualsAxisWith3DLabelsVisual3D

Namespace: Ab3d.Visuals
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public class AxisWith3DLabelsVisual3D : BaseAxisWithLabelsVisual3D, 
	IDisposable

The AxisWith3DLabelsVisual3D type exposes the following members.

Constructors
 NameDescription
Public methodAxisWith3DLabelsVisual3D Constructor
Public methodAxisWith3DLabelsVisual3D(String) Constructor
Top
Properties
 NameDescription
Public propertyAdjustFirstLabelPosition When true, then the first label is moved up to prevent overlapping the first label with adjacent axis. The amount of movement is calculated by multiplying font size and the LabelAdjustmentFactor (0.45 by default). Default value is false.
Public propertyAdjustLastLabelPosition When true, then the last label is moved down to prevent overlapping the last label with adjacent axis. The amount of movement is calculated by multiplying font size and the LabelAdjustmentFactor (0.45 by default). Default value is false.
Public propertyAxisTitleTextBlockVisual3D Gets TextBlockVisual3D that shows axis title.
Public propertyTitleRenderBitmapSize Gets or sets a Size that is used as the RenderBitmapSize in the TextBlockVisual3D object that is used to render the axis title. When Ab3d.DXEngine assembly is present in the application, then the default value is set to (512, 64); otherwise the default value is Size.Empty that uses VisualBrush to render the text. To set Size for rendered value labels set the ValueLabelsRenderBitmapSize.
Public propertyValueLabelsParentModelVisual3D Gets ContentVisual3D that is a parent Visual3D object and stores all TextBlockVisual3D objects used to show value labels.
Public propertyValueLabelsRenderBitmapSize Gets or sets a Size that is used as the RenderBitmapSize in all used TextBlockVisual3D objects that display value labels. When Ab3d.DXEngine assembly is present in the application, then the default value is set to (128, 64); otherwise the default value is Size.Empty that uses VisualBrush to render the text. To set Size for rendered axis title set the TitleRenderBitmapSize.
Top
Methods
 NameDescription
Public methodClone Returns a new AxisWithLabelsVisual3D that is a clone of this AxisWithLabelsVisual3D.
Public methodDispose Dispose method frees the TextBlockVisual3D objects that are created by this AxisWith3DLabelsVisual3D.
Protected methodOnAxisTitleSettingsChanged OnAxisTitleSettingsChanged method must be implemented by a derived class. The method is called when the font settings for axis title is changed.
(Overrides BaseAxisWithLabelsVisual3DOnAxisTitleSettingsChanged(DependencyPropertyChangedEventArgs))
Protected methodOnCameraChanged OnCameraChanged method is called when the camera is changed. The method can be overriden in a derived class.
(Overrides BaseAxisWithLabelsVisual3DOnCameraChanged)
Protected methodOnIsVisibleChanged OnIsVisibleChanged is called when the value of IsActuallyVisible property is changed.
(Overrides BaseAxisWithLabelsVisual3DOnIsVisibleChanged(Boolean))
Protected methodOnTicksPositionsChanged OnTicksPositionsChanged method must be implemented by a derived class. The method is called when the tick positions are changed.
(Overrides BaseAxisWithLabelsVisual3DOnTicksPositionsChanged)
Protected methodOnUpdate OnUpdate method must be implemented by a derived class. The method is called when the Update method is called and should update the axis.
(Overrides BaseAxisWithLabelsVisual3DOnUpdate)
Protected methodOnValueLabelsFontSettingsChanged OnValueLabelsFontSettingsChanged method must be implemented by a derived class. The method is called when the font settings for value labels is changed.
(Overrides BaseAxisWithLabelsVisual3DOnValueLabelsFontSettingsChanged(DependencyPropertyChangedEventArgs))
Top
Fields
 NameDescription
Public fieldStatic memberAdjustFirstLabelPositionProperty AdjustFirstLabelPositionProperty
Public fieldStatic memberAdjustLastLabelPositionProperty AdjustLastLabelPositionProperty
Public fieldLabelAdjustmentFactor Gets or sets a double that specifies a factor that is multiplied by FontSize and used to adjust the position of the first or last label when AdjustFirstLabelPosition or are used.
Top
Extension Methods
 NameDescription
Public Extension MethodDumpHierarchy Display details about the hierarchy of Visual3D children to Debug console (for example to Visual Studio's Immediate window).
(Defined by Extensions)
Public Extension MethodForEachGeometryModel3D Performs the specified action on each GeometryModel3D inside the rootModelVisual3D.
(Defined by Extensions)
Public Extension MethodForEachVisual3D Performs the specified action on each ModelVisual3D inside the rootModelVisual3D.
(Defined by Extensions)
Public Extension MethodGetName Gets name of the Visual3D that was previously set by SetName extension method.
(Defined by Extensions)
Public Extension MethodSetName Sets Name property to Visual3D. Note that if name is not correct for WPF, it can be corrected (name must start with a letter or the underscore character (_), and must contain only letters, digits, or underscores). In this case the SetName method will set the corrected name to the object and return false (in this case you can call GetName to get the corrected name). True is returned when the original name is set to the object.
(Defined by Extensions)
Top
See Also