Editor API
UnigineEditor public API
Editor::PlacementTools Class Referencefinal

#include <PlacementTools.h>

Public Types

enum  TransformType { TransformType::SELECT, TransformType::TRANSLATE, TransformType::ROTATE, TransformType::SCALE }
 
enum  BasisType { BasisType::WORLD, BasisType::PARENT, BasisType::LOCAL }
 
enum  PivotPointType { PivotPointType::CENTER, PivotPointType::OBJECT }
 
enum  GridMode { GridMode::BOUND_BOX, GridMode::UNIFORM }
 
enum  DropDirection { DropDirection::UP, DropDirection::DOWN, DropDirection::UP_AND_DOWN }
 

Static Public Member Functions

static bool isManipulatorsEnabled ()
 
static void setManipulatorsEnabled (bool enabled)
 
static bool isTransformTypeEnabled (TransformType type)
 
static bool isBasisEnabled ()
 
static TransformType getTransformType ()
 
static void setTransformType (TransformType type)
 
static BasisType getBasisType ()
 
static void setBasisType (BasisType type)
 
static PivotPointType getPivotPointType ()
 
static void setPivotPointType (PivotPointType type)
 
static bool isPositionSnappingEnabled ()
 
static void setPositionSnappingEnabled (bool enabled)
 
static GridMode getPositionSnappingMode ()
 
static void setPositionSnappingMode (GridMode mode)
 
static float getPositionSnappingByGridStep ()
 
static void setPositionSnappingByGridStep (float step)
 
static bool isRotationSnappingEnabled ()
 
static void setRotationSnappingEnabled (bool enabled)
 
static float getRotationSnappingStep ()
 
static void setRotationSnappingStep (float step)
 
static bool isScaleSnappingEnabled ()
 
static void setScaleSnappingEnabled (bool enabled)
 
static float getScaleSnappingStep ()
 
static void setScaleSnappingStep (float step)
 
static bool isSnapToSurfaceEnabled ()
 
static float getSnapToSurfaceOffset ()
 
static void setSnapToSurfaceOffset (float offset)
 
static bool isSnapToSurfaceOrientByNormal ()
 
static void setSnapToSurfaceOrientByNormal (bool value)
 
static void snapToSurfaceNode (const Unigine::NodePtr &node)
 
static void snapToSurfaceNodeList (const Unigine::Vector< Unigine::NodePtr > &nodes)
 
static DropDirection getDropToGroundDirection ()
 
static void setDropToGroundDirection (DropDirection direction)
 
static float getDropToGroundOffset ()
 
static void setDropToGroundOffset (float offset)
 
static bool getDropToGroundOrientByNormal ()
 
static void setDropToGroundOrientByNormal (bool value)
 
static int getDropToGroundMask ()
 
static void setDropToGroundMask (int mask)
 
static void dropToGroundNode (const Unigine::NodePtr &node)
 
static void dropToGroundNodeList (const Unigine::Vector< Unigine::NodePtr > &nodes)
 

Member Enumeration Documentation

◆ BasisType

Enumerator
WORLD 
PARENT 
LOCAL 

◆ DropDirection

Enumerator
UP 
DOWN 
UP_AND_DOWN 

◆ GridMode

Enumerator
BOUND_BOX 
UNIFORM 

◆ PivotPointType

Enumerator
CENTER 
OBJECT 

◆ TransformType

Enumerator
SELECT 
TRANSLATE 
ROTATE 
SCALE 

Member Function Documentation

◆ dropToGroundNode()

static void Editor::PlacementTools::dropToGroundNode ( const Unigine::NodePtr &  node)
static

◆ dropToGroundNodeList()

static void Editor::PlacementTools::dropToGroundNodeList ( const Unigine::Vector< Unigine::NodePtr > &  nodes)
static

◆ getBasisType()

static BasisType Editor::PlacementTools::getBasisType ( )
static

◆ getDropToGroundDirection()

static DropDirection Editor::PlacementTools::getDropToGroundDirection ( )
static

◆ getDropToGroundMask()

static int Editor::PlacementTools::getDropToGroundMask ( )
static

◆ getDropToGroundOffset()

static float Editor::PlacementTools::getDropToGroundOffset ( )
static

◆ getDropToGroundOrientByNormal()

static bool Editor::PlacementTools::getDropToGroundOrientByNormal ( )
static

◆ getPivotPointType()

static PivotPointType Editor::PlacementTools::getPivotPointType ( )
static

◆ getPositionSnappingByGridStep()

static float Editor::PlacementTools::getPositionSnappingByGridStep ( )
static

◆ getPositionSnappingMode()

static GridMode Editor::PlacementTools::getPositionSnappingMode ( )
static

◆ getRotationSnappingStep()

static float Editor::PlacementTools::getRotationSnappingStep ( )
static

◆ getScaleSnappingStep()

static float Editor::PlacementTools::getScaleSnappingStep ( )
static

◆ getSnapToSurfaceOffset()

static float Editor::PlacementTools::getSnapToSurfaceOffset ( )
static

◆ getTransformType()

static TransformType Editor::PlacementTools::getTransformType ( )
static

◆ isBasisEnabled()

static bool Editor::PlacementTools::isBasisEnabled ( )
static

◆ isManipulatorsEnabled()

static bool Editor::PlacementTools::isManipulatorsEnabled ( )
static

◆ isPositionSnappingEnabled()

static bool Editor::PlacementTools::isPositionSnappingEnabled ( )
static

◆ isRotationSnappingEnabled()

static bool Editor::PlacementTools::isRotationSnappingEnabled ( )
static

◆ isScaleSnappingEnabled()

static bool Editor::PlacementTools::isScaleSnappingEnabled ( )
static

◆ isSnapToSurfaceEnabled()

static bool Editor::PlacementTools::isSnapToSurfaceEnabled ( )
static

◆ isSnapToSurfaceOrientByNormal()

static bool Editor::PlacementTools::isSnapToSurfaceOrientByNormal ( )
static

◆ isTransformTypeEnabled()

static bool Editor::PlacementTools::isTransformTypeEnabled ( TransformType  type)
static

◆ setBasisType()

static void Editor::PlacementTools::setBasisType ( BasisType  type)
static

◆ setDropToGroundDirection()

static void Editor::PlacementTools::setDropToGroundDirection ( DropDirection  direction)
static

◆ setDropToGroundMask()

static void Editor::PlacementTools::setDropToGroundMask ( int  mask)
static

◆ setDropToGroundOffset()

static void Editor::PlacementTools::setDropToGroundOffset ( float  offset)
static

◆ setDropToGroundOrientByNormal()

static void Editor::PlacementTools::setDropToGroundOrientByNormal ( bool  value)
static

◆ setManipulatorsEnabled()

static void Editor::PlacementTools::setManipulatorsEnabled ( bool  enabled)
static

◆ setPivotPointType()

static void Editor::PlacementTools::setPivotPointType ( PivotPointType  type)
static

◆ setPositionSnappingByGridStep()

static void Editor::PlacementTools::setPositionSnappingByGridStep ( float  step)
static

◆ setPositionSnappingEnabled()

static void Editor::PlacementTools::setPositionSnappingEnabled ( bool  enabled)
static

◆ setPositionSnappingMode()

static void Editor::PlacementTools::setPositionSnappingMode ( GridMode  mode)
static

◆ setRotationSnappingEnabled()

static void Editor::PlacementTools::setRotationSnappingEnabled ( bool  enabled)
static

◆ setRotationSnappingStep()

static void Editor::PlacementTools::setRotationSnappingStep ( float  step)
static

◆ setScaleSnappingEnabled()

static void Editor::PlacementTools::setScaleSnappingEnabled ( bool  enabled)
static

◆ setScaleSnappingStep()

static void Editor::PlacementTools::setScaleSnappingStep ( float  step)
static

◆ setSnapToSurfaceOffset()

static void Editor::PlacementTools::setSnapToSurfaceOffset ( float  offset)
static

◆ setSnapToSurfaceOrientByNormal()

static void Editor::PlacementTools::setSnapToSurfaceOrientByNormal ( bool  value)
static

◆ setTransformType()

static void Editor::PlacementTools::setTransformType ( TransformType  type)
static

◆ snapToSurfaceNode()

static void Editor::PlacementTools::snapToSurfaceNode ( const Unigine::NodePtr &  node)
static

◆ snapToSurfaceNodeList()

static void Editor::PlacementTools::snapToSurfaceNodeList ( const Unigine::Vector< Unigine::NodePtr > &  nodes)
static