 |
CameraAxisPanel Class |
CameraAxisPanel shows an orientation of the X, Y and Z axes. It can be shown as an overlay over the specified SceneView.
To remove CameraAxisPanel from SceneView call
Dispose method.
Inheritance HierarchySystemObject
Ab4d.SharpEngine.OverlayPanelsCameraAxisPanel
Namespace: Ab4d.SharpEngine.OverlayPanelsAssembly: Ab4d.SharpEngine (in Ab4d.SharpEngine.dll) Version: 3.0.9196+3eba290aba85a9aa739abf2459bc51e303a050d7
Syntaxpublic class CameraAxisPanel : IDisposable
The CameraAxisPanel type exposes the following members.
Constructors
Properties | Name | Description |
---|
 | AlignAxisCharsWithCamera |
When true (by default) than the axis characters are aligned to face the camera.
|
 | Alignment |
Alignment of the panel relative to the parent SceneView. Default value is TopLeft.
|
 | BackgroundColor |
Color of the background. By default set to Transparent color (no background).
|
 | Camera |
Gets the camera which orientation is shown by this CameraAxisPanel.
|
 | DpiScaleX |
X DPI scale. This value is read from parent SceneView, but can be adjusted by the user.
|
 | DpiScaleY |
X DPI scale. This value is read from parent SceneView, but can be adjusted by the user.
|
 | Height |
Height of the panel.
When the CameraAxisPanel is created with adjustSizeByDpiScale set to true (by default), then this value is multiplied by the DPI scale to get the actual PixelHeight.
|
 | IsDisposed |
True when this CameraAxisPanel is disposed.
|
 | PixelHeight |
Gets the pixel height of this panel. Before the SceneView is initialized, 0 is returned.
|
 | PixelWidth |
Gets the pixel width of this panel. Before the SceneView is initialized, 0 is returned.
|
 | Position |
Position of the panel. This defines an offset from the specified Alignment.
|
 | ShowAxisNames |
When true (by default) than the axis names (X, Y, Z) are shown.
|
 | Width |
Width of the panel.
When the CameraAxisPanel is created with adjustSizeByDpiScale set to true (by default), then this value is multiplied by the DPI scale to get the actual PixelWidth.
|
Top
Methods | Name | Description |
---|
 | CustomizeAxes |
CustomizeAxes customizes the show axes with specifying custom orientation and axis color for each axis.
|
 | CustomizeModels |
CustomizeModels can be used to provide advanced customization of the 3D models that are used to show the content of this CameraAxisPanel.
When called with default parameters, then the default values will be used.
|
 | Dispose |
Dispose method disposes all the resources that were used by this CameraAxisPanel and removes the panel from the SceneView's overlay.
|
 | Update |
Update method updates the orientation of the axes to reflect the rotation of the specified camera.
This method is automatically called on each camera change.
User can call this method to manually update the axes, though this is usually not needed.
|
Top
See Also