Editor API
UnigineEditor public API
|
This class allows configuring the widget that controls objects selection and positioning in the scene. More...
Public Types | |
enum | TRANSFORM_TYPE { TRANSFORM_TYPE_SELECT = 0, TRANSFORM_TYPE_TRANSLATE, TRANSFORM_TYPE_ROTATE, TRANSFORM_TYPE_SCALE, TRANSFORM_TYPE_NUM } |
Type of transformation applied to the node selected by the manipulator. More... | |
enum | BASIS_TYPE { BASIS_TYPE_WORLD = 0, BASIS_TYPE_PARENT, BASIS_TYPE_LOCAL_LAST_SELECTED, BASIS_TYPE_LOCAL_INDEPENDENT, BASIS_TYPE_NUM } |
Type of the coordinate system used. More... | |
enum | PIVOT_TYPE { PIVOT_TYPE_CENTER = 0, PIVOT_TYPE_OBJECT, PIVOT_TYPE_NUM } |
Type of the pivot used for rotation of the selected nodes. More... | |
enum | GRID_MODE { GRID_MODE_BOUND_BOX = 0, GRID_MODE_UNIFORM, GRID_MODE_NUM } |
Type of node positioning: moving over the grid with a given step or with a step equal to the dimensions of node's bounding box. More... | |
enum | DROP_DIRECTION { DROP_DIRECTION_UP = 0, DROP_DIRECTION_DOWN, DROP_DIRECTION_UP_AND_DOWN, DROP_DIRECTION_NUM } |
Direction of dropping the node. More... | |
Static Public Member Functions | |
static bool | isEnabled () |
Returns the value indicating if the object mode is enabled. More... | |
static void | setManipulatorsEnabled (bool enabled) |
Returns the value indicating if the manipulators are enabled. More... | |
static bool | isManipulatorsEnabled () |
Returns the value indicating if the manipulators are enabled. More... | |
static bool | isTransformTypeEnabled (ObjectMode::TRANSFORM_TYPE type) |
Returns the value indicating if the specified type of transformation is enabled. More... | |
static bool | isBasisEnabled () |
Returns the value indicating if the basis is enabled. More... | |
static void | setTransformType (ObjectMode::TRANSFORM_TYPE type) |
Sets the type of transformation applied to the node(s) selected by the manipulator. More... | |
static ObjectMode::TRANSFORM_TYPE | getTransformType () |
Returns the type of transformation applied to the node(s) selected by the manipulator. More... | |
static void | setBasisType (ObjectMode::BASIS_TYPE type) |
Sets the type of basis applied to the node(s) selected by the manipulator. More... | |
static ObjectMode::BASIS_TYPE | getBasisType () |
Returns the type of basis applied to the node(s) selected by the manipulator. More... | |
static void | setPivotType (ObjectMode::PIVOT_TYPE type) |
Sets the type of pivot applied to the node(s) selected by the manipulator. More... | |
static ObjectMode::PIVOT_TYPE | getPivotType () |
Returns the type of pivot applied to the node(s) selected by the manipulator. More... | |
static void | setPositionSnappingEnabled (bool enabled) |
Sets the value indicating if the position snapping is enabled. More... | |
static bool | isPositionSnappingEnabled () |
Returns the value indicating if the position snapping is enabled. More... | |
static void | setPositionSnappingMode (ObjectMode::GRID_MODE mode) |
Sets the mode of position snapping applied to the node(s) selected by the manipulator. More... | |
static ObjectMode::GRID_MODE | getPositionSnappingMode () |
Returns the mode of position snapping applied to the node(s) selected by the manipulator. More... | |
static void | setPositionSnappingByGridStep (float step) |
Sets the step value for position snapping, if the mode is set to grid (see PositionSnappingMode). More... | |
static float | getPositionSnappingByGridStep () |
Returns the step value for position snapping, if the mode is set to grid (see PositionSnappingMode). More... | |
static void | setRotationSnappingEnabled (bool enabled) |
Sets the value indicating if the rotation snapping is enabled. More... | |
static bool | isRotationSnappingEnabled () |
Returns the value indicating if the rotation snapping is enabled. More... | |
static void | setRotationSnappingStep (float step) |
Sets the step value for rotation snapping (see RotationSnappingEnabled). More... | |
static float | getRotationSnappingStep () |
Returns the step value for rotation snapping (see RotationSnappingEnabled). More... | |
static void | setScaleSnappingEnabled (bool enabled) |
Sets the value indicating if scale snapping is enabled. More... | |
static bool | isScaleSnappingEnabled () |
Returns the value indicating if scale snapping is enabled. More... | |
static void | setScaleSnappingStep (float step) |
Sets the step value for scale snapping (see ScaleSnappingEnabled). More... | |
static float | getScaleSnappingStep () |
Returns the step value for scale snapping (see ScaleSnappingEnabled). More... | |
static bool | isSnapToSurfaceEnabled () |
Returns the value indicating if snapping to surface is enabled. More... | |
static void | setSnapToSurfaceOffset (float offset) |
Sets the offset applied when snapping a node to the surface (see isSnapToSurfaceEnabled). More... | |
static float | getSnapToSurfaceOffset () |
Returns the offset applied when snapping a node to the surface (see isSnapToSurfaceEnabled). More... | |
static void | setSnapToSurfaceOrientByNormal (bool normal) |
Sets the value indicating if the node should be oriented by the surface normal, when snapping a node to the surface (see isSnapToSurfaceEnabled). More... | |
static bool | isSnapToSurfaceOrientByNormal () |
Returns the value indicating if the node should be oriented by the surface normal, when snapping a node to the surface (see isSnapToSurfaceEnabled). More... | |
static void | setSnapToSurfaceToNodesWithEnabledIntersection (bool intersection) |
Sets the value indicating if the node should be snapped to the surface with the Intersection parameter enabled. More... | |
static bool | isSnapToSurfaceToNodesWithEnabledIntersection () |
Returns the value indicating if the node should be snapped to the surface with the Intersection parameter enabled. More... | |
static void | snapToSurfaceNode (const Unigine::Ptr< Unigine::Node > &node) |
Snaps the specified node to surface. More... | |
static void | snapToSurfaceNodeList (const Unigine::Vector< Unigine::Ptr< Unigine::Node >> &nodes) |
Snaps the nodes from the specified list to surface. More... | |
static void | setDropToGroundDirection (ObjectMode::DROP_DIRECTION direction) |
Sets the direction of dropping applied to the node(s) selected by the manipulator. More... | |
static ObjectMode::DROP_DIRECTION | getDropToGroundDirection () |
Returns the direction of dropping applied to the node(s) selected by the manipulator. More... | |
static void | setDropToGroundOffset (float offset) |
Sets the offset applied when dropping a node to the ground. More... | |
static float | getDropToGroundOffset () |
Returns the offset applied when dropping a node to the ground. More... | |
static void | setDropToGroundOrientByNormal (bool normal) |
Sets the value indicating if the node should be oriented by the ground normal, when dropped to the ground. More... | |
static bool | isDropToGroundOrientByNormal () |
Returns the value indicating if the node should be oriented by the ground normal, when dropped to the ground. More... | |
static void | setDropToGroundMask (int mask) |
Sets the intersection mask that defines whether the selected node(s) will be positioned on the surface to which this node(s) is dropped. More... | |
static int | getDropToGroundMask () |
Returns the intersection mask that defines whether the selected node(s) will be positioned on the surface to which this node(s) is dropped. More... | |
static void | setDropToGroundToNodesWithEnabledIntersection (bool intersection) |
Sets the value indicating if the node should be dropped to the ground if it has the Intersection parameter enabled. More... | |
static bool | isDropToGroundToNodesWithEnabledIntersection () |
Returns the value indicating if the node should be dropped to the ground if it has the Intersection parameter enabled. More... | |
static void | dropToGroundNode (const Unigine::Ptr< Unigine::Node > &node) |
Drops the specified node to the ground. More... | |
static void | dropToGroundNodeList (const Unigine::Vector< Unigine::Ptr< Unigine::Node >> &nodes) |
Drops the nodes from the specified list to the ground. More... | |
This class allows configuring the widget that controls objects selection and positioning in the scene.
Type of the coordinate system used.
Direction of dropping the node.
Type of node positioning: moving over the grid with a given step or with a step equal to the dimensions of node's bounding box.
|
static |
Drops the specified node to the ground.
node | Node to be dropped to the ground. |
|
static |
Drops the nodes from the specified list to the ground.
nodes | List of nodes to be dropped to the ground. |
|
static |
Returns the type of basis applied to the node(s) selected by the manipulator.
|
static |
Returns the direction of dropping applied to the node(s) selected by the manipulator.
|
static |
Returns the intersection mask that defines whether the selected node(s) will be positioned on the surface to which this node(s) is dropped.
|
static |
Returns the offset applied when dropping a node to the ground.
|
static |
Returns the type of pivot applied to the node(s) selected by the manipulator.
|
static |
Returns the step value for position snapping, if the mode is set to grid (see PositionSnappingMode).
|
static |
Returns the mode of position snapping applied to the node(s) selected by the manipulator.
|
static |
Returns the step value for rotation snapping (see RotationSnappingEnabled).
|
static |
Returns the step value for scale snapping (see ScaleSnappingEnabled).
|
static |
Returns the offset applied when snapping a node to the surface (see isSnapToSurfaceEnabled).
|
static |
Returns the type of transformation applied to the node(s) selected by the manipulator.
|
static |
Returns the value indicating if the basis is enabled.
|
static |
Returns the value indicating if the node should be oriented by the ground normal, when dropped to the ground.
|
static |
Returns the value indicating if the node should be dropped to the ground if it has the Intersection parameter enabled.
|
static |
Returns the value indicating if the object mode is enabled.
|
static |
Returns the value indicating if the manipulators are enabled.
|
static |
Returns the value indicating if the position snapping is enabled.
|
static |
Returns the value indicating if the rotation snapping is enabled.
|
static |
Returns the value indicating if scale snapping is enabled.
|
static |
Returns the value indicating if snapping to surface is enabled.
|
static |
Returns the value indicating if the node should be oriented by the surface normal, when snapping a node to the surface (see isSnapToSurfaceEnabled).
|
static |
Returns the value indicating if the node should be snapped to the surface with the Intersection parameter enabled.
|
static |
Returns the value indicating if the specified type of transformation is enabled.
type | Type of transformation (see TRANSFORM_TYPE). |
|
static |
Sets the type of basis applied to the node(s) selected by the manipulator.
type | Type of basis to be set (see BASIS_TYPE). |
|
static |
Sets the direction of dropping applied to the node(s) selected by the manipulator.
direction | Direction of dropping to be set (see DROP_DIRECTION). |
|
static |
Sets the intersection mask that defines whether the selected node(s) will be positioned on the surface to which this node(s) is dropped.
mask | Intersection mask that should match the surface intersection mask for the node to be dropped onto that surface. |
|
static |
Sets the offset applied when dropping a node to the ground.
offset | Distance from the node's pivot point to the ground (in units). |
|
static |
Sets the value indicating if the node should be oriented by the ground normal, when dropped to the ground.
normal | Value indicating if the node should be oriented by the ground normal. |
|
static |
Sets the value indicating if the node should be dropped to the ground if it has the Intersection parameter enabled.
intersection | Value indicating if the node is snapped to the ground if it has the Intersection parameter enabled. |
|
static |
Returns the value indicating if the manipulators are enabled.
|
static |
Sets the type of pivot applied to the node(s) selected by the manipulator.
type | Type of pivot to be set (see PIVOT_TYPE). |
|
static |
Sets the step value for position snapping, if the mode is set to grid (see PositionSnappingMode).
step | The position step, in units. |
|
static |
Sets the value indicating if the position snapping is enabled.
enabled | Value indicating if the position snapping is enabled. |
|
static |
Sets the mode of position snapping applied to the node(s) selected by the manipulator.
mode | Mode of position snapping to be set (see GRID_MODE). |
|
static |
Sets the value indicating if the rotation snapping is enabled.
enabled | Value indicating if the rotation snapping is enabled. |
|
static |
Sets the step value for rotation snapping (see RotationSnappingEnabled).
step | Rotation step, angle in degrees. |
|
static |
Sets the value indicating if scale snapping is enabled.
enabled | Value indicating if scale snapping is enabled. |
|
static |
Sets the step value for scale snapping (see ScaleSnappingEnabled).
step | Scale step. |
|
static |
Sets the offset applied when snapping a node to the surface (see isSnapToSurfaceEnabled).
offset | Distance from the node's pivot point to the surface (in units). |
|
static |
Sets the value indicating if the node should be oriented by the surface normal, when snapping a node to the surface (see isSnapToSurfaceEnabled).
normal | Value indicating if the node should be oriented by the surface normal. |
|
static |
Sets the value indicating if the node should be snapped to the surface with the Intersection parameter enabled.
intersection | Value indicating if the node is snapped to the surface with Intersection enabled. |
|
static |
Sets the type of transformation applied to the node(s) selected by the manipulator.
type | Type of transformation to be set (see TRANSFORM_TYPE). |
|
static |
Snaps the specified node to surface.
node | Node to be snapped to surface. |
|
static |
Snaps the nodes from the specified list to surface.
nodes | List of nodes to be snapped to surface. |