20#include "abstractlocator.h"
47 static std::map<std::string, Vector3f>
trans;
49 static std::map<std::string, Matrix4f>
rot;
53 std::vector<std::shared_ptr<Handler>>
handlers;
The AbstractLocator class inheriting from Node class and EventWatcher class, representing the abstrac...
Definition abstractlocator.h:29
This class, inheriting from Locator, is constructed with one line handler, specifically designed for ...
Definition locator.h:65
The BottomBoxLocator, inheriting from the BoxLocator, lacks the shape handler for the negative z-axis...
Definition locator.h:131
virtual void update(const Handler &handler, Modifier modifier=Modifier::None)
Scaling the box geometry boundaries based on the translation of its shape handlers and keyboard modif...
virtual ~BottomBoxLocator()
The BottomCylinderLocator, inheriting from the CylinderLocator, lacks the shape handler for the botto...
Definition locator.h:152
virtual void update(const Handler &handler, Modifier modifier=Modifier::None)
Scaling the cylinder geometry boundaries based on the translation of its shape handlers and keyboard ...
virtual ~BottomCylinderLocator()
BoxLocator class, inheriting from the ShapeLocator class, is specifically designed for bounding boxes...
Definition locator.h:119
virtual void update(const Handler &handler, Modifier modifier=Modifier::None)
Scaling the box geometry boundaries based on the translation of its shape handlers and keyboard modif...
The CylinderLocator class, inheriting from the ShapeLocator class, is constructed with a cylinder geo...
Definition locator.h:140
virtual void update(const Handler &handler, Modifier modifier=Modifier::None)
Scaling the cylinder geometry boundaries based on the translation of its shape handlers and keyboard ...
virtual ~CylinderLocator()
This class, inheriting from the PlaneLocator, adds an arc handler to the parent class,...
Definition locator.h:93
The Handler class, inheriting from Node, represents a draggable element within a Locator object....
Definition handler.h:29
The Locator class defines . It has specialized subclasses with methods for interacting with specific ...
Definition locator.h:33
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 rotat...
Definition locator.h:49
virtual void update(const Handler &handler, Modifier modifier=Modifier::None)
void setTransform(const Matrix4f &transform)
Sets the transform matrix of this locator node.
static std::map< std::string, Vector3f > trans
This declaration defines a map object named trans which associates string keys with Vector3f values....
Definition locator.h:47
std::vector< std::shared_ptr< Handler > > handlers
Handler is the draggable part of a Locator. A locator has one or multiple handlers which prodivde dif...
Definition locator.h:53
Modifier
The Modifier enumeration defines various modifier keys for handling different keyboard events.
Definition locator.h:37
The Matrix4f class is 4 X 4 matrix.
Definition matrix.h:226
Matrix4fPtr transform
This member is a shared pointer to a Matrix4f object. This matrix represents the transformation(posit...
Definition node.h:36
This class inherits from the PositionLocator class and it adds three perpendicular arc handlers on th...
Definition locator.h:79
virtual ~OrientationLocator()
This class, inheriting from Locator, is constructed with two line handlers, specifically designed for...
Definition locator.h:86
This class, inheriting from Locator, is constructed with three perpendicular line handlers,...
Definition locator.h:72
virtual ~PositionLocator()
The ShapeLocator class, inheriting from the Locator class, is specifically designed for determining t...
Definition locator.h:100
std::shared_ptr< Matrix4f > local()
This function can return the local matrix of the current shape locator.
void updateHandler()
Update the transformation matrix of the shape locator's other handlers once upon the shape locator is...
std::shared_ptr< Matrix4f > m_local
Definition locator.h:102
void setLocal(const std::shared_ptr< Matrix4f > &local)
Sets the local matrix of the current shape locator.
std::vector< std::string > m_names
Definition locator.h:103
ShapeLocator()
Builds a shape locator with an initialized local matrix which represents the geometric extent in 3D s...
The SphereLocator class, inheriting from the ShapeLocator class, is constructed with a sphere geometr...
Definition locator.h:161
virtual void update(const Handler &handler, Modifier modifier=Modifier::None)
Scaling the sphere geometry boundaries based on the translation of its shape handler.
std::shared_ptr< PositionLocator > _positionLocator()
std::shared_ptr< ArrowLocator > _arrowLocator()
std::shared_ptr< CylinderLocator > _cylinderLocator()
std::shared_ptr< BottomBoxLocator > _bottomBoxLocator()
std::shared_ptr< DiskLocator > _diskLocator()
std::shared_ptr< OrientationLocator > _orientationLocator()
std::shared_ptr< BoxLocator > _boxLocator()
std::shared_ptr< BottomCylinderLocator > _bottomCylinderLocator()
std::shared_ptr< SphereLocator > _sphereLocator()
std::shared_ptr< PlaneLocator > _planeLocator()