Model |
public class ModelMover : IDisposable
The ModelMover type exposes the following members.
Name | Description | |
---|---|---|
ModelMover(ManualInputEventsManager) | Initializes a new instance of the ModelMover class with default axes and size (axisLength: 50, axisRadius: 2, axisArrowRadius: 6). | |
ModelMover(ManualInputEventsManager, Vector3, Vector3, Vector3, Single, Single, Single) | Initializes a new instance of the ModelMover class with providing custom axes. |
Name | Description | |
---|---|---|
CustomRenderingLayer | Gets or sets a custom RenderingLayer that will be used by all ModelNodes in this ModelMover. For example, this is usually set to OverlayRenderingLayer. | |
IsAutomaticallyMoved | Gets or sets a Boolean that specifies if this ModelMover is automatically moved when user moves it around. It is possible to prevent individual moves by setting PreventMove in ModelMovedEventArgs to true. Default value is true. | |
IsEnabled | Gets or sets a Boolean that specifies if this ModelMover is enabled. When disabled, then also the Visibility of ModelMoverGroupNode is set to Hidden. | |
IsXAxisShown | Gets or sets a Boolean that specifies if the X axis is shown. Default value is true. | |
IsYAxisShown | Gets or sets a Boolean that specifies if the Y axis is shown. Default value is true. | |
IsZAxisShown | Gets or sets a Boolean that specifies if the Z axis is shown. Default value is true. | |
ModelMoverGroupNode | Gets the GroupNode that can be added to the Scene and represents the 3D models that form the ModelMover. | |
MoveButtons | Gets or sets button(s) that need to be pressed to start moving this ModelMover. Default value is left mouse button. | |
MoveVector | Gets the Vector3 that specifies the amount of move that was performed by the user. | |
Position | Gets or sets Vector3 that specifies the position of the ModelMover axis origin. | |
SelectedMaterial | Gets or sets a Material that is used when pointer is over the arrow. If set to null, the arrow material is not changed. Default value is StandardMaterials.Yellow. | |
ShowMovablePlanes | Gets or sets boolean that specifies if planes that allow moving object on a plane are visible. Default value is true. | |
XAxisColor | Gets or sets the color of X axis. | |
XAxisVector | XAxisVector | |
YAxisColor | Gets or sets the color of Y axis. | |
YAxisVector | YAxisVector | |
ZAxisColor | Gets or sets the color of Z axis. | |
ZAxisVector | ZAxisVector |
Name | Description | |
---|---|---|
Dispose | Dispose unsubscribed from all pointer events and sets IsEnabled to false. | |
OnModelMoved | OnModelMoved | |
OnModelMoveEnded | OnModelMoveEnded | |
OnModelMoveStarted | OnModelMoveStarted | |
SetRotation | SetRotation rotates the ModelMover by the specified rotation angles. |
Name | Description | |
---|---|---|
ModelMoved | ModelMoved event is fired when model is moved. Event handler can get the amount of move by getting the value of the MoveVector property. | |
ModelMoveEnded | ModelMoveEnded event is fired when moving of the model is stopped. | |
ModelMoveStarted | ModelMoveStarted event is fired when moving of the model is started. |
Name | Description | |
---|---|---|
DefaultXAxis | X axis that is used by the default constructor. | |
DefaultYAxis | Y axis that is used by the default constructor. | |
DefaultZAxis | Z axis that is used by the default constructor. |