The Locator class defines . It has specialized subclasses with methods for interacting with specific Handler objects.
More...
#include <locator.h>
|
| enum class | Modifier {
None = 0x0000
, Shift = 0x0200
, Ctrl = 0x0400
, Alt = 0x0800
,
Meta = 0x1000
} |
| | The Modifier enumeration defines various modifier keys for handling different keyboard events. More...
|
| |
|
| std::vector< std::shared_ptr< Handler > > | handlers |
| | Handler is the draggable part of a Locator. A locator has one or multiple handlers which prodivde different interaction methods.
|
| |
| std::string | name |
| | This memeber stores the name of the node.
|
| |
| std::shared_ptr< Mesh > | mesh |
| | This member is a shared pointer to a Mesh object, which means the node has a 3D object with its geometry defined by a mesh.
|
| |
| std::shared_ptr< std::vector< std::shared_ptr< Node > > > | children |
| | This member is a dynamic array of shared pointers to the child Node objects. This allows the node to have a tree-like hierarchical structure.
|
| |
| std::shared_ptr< Matrix4f > | transform |
| | This member is a shared pointer to a Matrix4f object. This matrix represents the transformation(position, rotation, scale) applied to the current node and its descendants.
|
| |
| std::shared_ptr< BoundingBox > | boundingBox |
| | This member is a shared pointer to a BoundingBox.
|
| |
| std::shared_ptr< Material > | material |
| | This member is a shared pointer to a Mateiral object, which means the node can have its own material properties defining its appearance(color, texture, etc).
|
| |
| std::shared_ptr< Geometry > | geometry |
| | This member is a shared pointer to a Geometry object, which maybe used for specific geometric data relevant to the node, potentially associated with the mesh or for other rendering purposes.
|
| |
| std::shared_ptr< Query > | query |
| | This member is a shared pointer to a Query object, and it is some type of query operation performed on the node or its descendants.
|
| |
|
| static std::map< std::string, Vector3f > | trans |
| | This declaration defines a map object named trans which associates string keys with Vector3f values. The vector3f value represents a 3D vector defining the translation direction.
|
| |
| static std::map< std::string, Matrix4f > | rot |
| | Similar to the map of trans, the vector3f value in this map represents a 3D vector defining the rotation axis.
|
| |
The Locator class defines . It has specialized subclasses with methods for interacting with specific Handler objects.
◆ Modifier
The Modifier enumeration defines various modifier keys for handling different keyboard events.
| Enumerator |
|---|
| None | |
| Shift | |
| Ctrl | |
| Alt | |
| Meta | |
◆ Locator()
| cil::Locator::Locator |
( |
| ) |
|
◆ ~Locator()
| virtual cil::Locator::~Locator |
( |
| ) |
|
|
virtual |
◆ setTransform()
| void cil::Locator::setTransform |
( |
const Matrix4f & | transform | ) |
|
Sets the transform matrix of this locator node.
◆ update()
◆ handlers
| std::vector<std::shared_ptr<Handler> > cil::Locator::handlers |
Handler is the draggable part of a Locator. A locator has one or multiple handlers which prodivde different interaction methods.
◆ rot
| std::map<std::string, Matrix4f> cil::Locator::rot |
|
static |
Similar to the map of trans, the vector3f value in this map represents a 3D vector defining the rotation axis.
◆ trans
| std::map<std::string, Vector3f> cil::Locator::trans |
|
static |
This declaration defines a map object named trans which associates string keys with Vector3f values. The vector3f value represents a 3D vector defining the translation direction.