Click or drag to resize
AB4D logo

CameraAxisPanel Class

CameraAxisPanel is a predefined panel that shows the axis orientation for the target camera.
Inheritance Hierarchy
SystemObject
  System.Windows.ThreadingDispatcherObject
    System.WindowsDependencyObject
      System.Windows.MediaVisual
        System.WindowsUIElement
          System.WindowsFrameworkElement
            System.Windows.ControlsControl
              Ab3d.ControlsBaseControllerControl
                Ab3d.ControlsCameraAxisPanel

Namespace: Ab3d.Controls
Assembly: Ab3d.PowerToys (in Ab3d.PowerToys.dll) Version: 11.1.8864.1045
Syntax
C#
public class CameraAxisPanel : BaseControllerControl

The CameraAxisPanel type exposes the following members.

Constructors
 NameDescription
Public methodCameraAxisPanel Constructor
Top
Properties
 NameDescription
Public propertyIs3DAxesShown Gets or sets a boolean that specifies if 2D arrows (Show3DAxes = false) or 3D arrows are shown (Show3DAxes = true). Default value is true.
Public propertyIsAxisNameShown Gets or sets a boolean that specified if the axis names are shown.
Public propertyXAxisColor Gets or sets the color of X axis. When set to Colors.Transparent, then the axis is hidden.
Public propertyYAxisColor Gets or sets the color of Y axis. When set to Colors.Transparent, then the axis is hidden.
Public propertyZAxisColor Gets or sets the color of Z axis. When set to Colors.Transparent, then the axis is hidden.
Top
Methods
 NameDescription
Protected methodCreateAxisVisual CreateAxisVisual creates a Visual3D that represents the axis 3D model. NOTE: When overridden to create custom axis, you also need to override the SetAxisLength method.
Protected methodCreateOneAxisModel3D CreateOneAxisModel3D creates a Model3D that represents one Axis.
Public methodCustomizeAxes CustomizeAxes customizes the show axes with specify custom Vector3D, axis name and axis color for each axis.
Protected methodOnAfterUpdated OnAfterUpdated
Public methodOnApplyTemplate OnApplyTemplate
(Overrides FrameworkElementOnApplyTemplate)
Protected methodOnTargetCameraChanged OnTargetCameraChanged
(Overrides BaseControllerControlOnTargetCameraChanged(BaseCamera, BaseCamera))
Protected methodSetAxisColors SetAxisColors changes the colors of the axes.
Protected methodSetAxisLength SetAxisLength is called to change the length of the axes.
Top
Events
 NameDescription
Public eventAfterUpdated AfterUpdated event is called after the shown elements were updated because the camera or some other property was changed.
Top
Fields
 NameDescription
Protected fieldaxisViewport3D axisViewport3D
Protected fieldbackCanvas backCanvas - stores TextBlocks with axis names that are behind the axis lines
Protected fieldcoloredAxisVisual3D Visual3D that represents the axis Visual 3D.
Protected fieldfrontCanvas frontCanvas - stores TextBlocks with axis names that are in front the axis lines
Public fieldStatic memberIs3DAxesShownProperty Is3DAxesShownProperty
Public fieldStatic memberIsAxisNameShownProperty IsAxisNameShownProperty
Protected fieldStatic memberNAMES_AXIS_LENGTH Axis length used when no names is specified
Protected fieldStatic memberNO_NAMES_AXIS_LENGTH Axis length used when no names is specified
Protected fieldrootGrid rootGrid
Protected fieldtargetPositionCamera camera used to show the axes
Public fieldStatic memberXAxisColorProperty XAxisColorProperty
Public fieldStatic memberYAxisColorProperty YAxisColorProperty
Public fieldStatic memberZAxisColorProperty ZAxisColorProperty
Top
See Also