The ArcHandler class inherits from the Handler class, specifically designed for rotating operation.
More...
#include <handler.h>
|
| | ArcHandler (const std::shared_ptr< Matrix4f > &matrix) |
| |
| virtual | ~ArcHandler () |
| |
| virtual float | hit (const Ray &r) |
| | Calculates and returns the distance between the cursor position and the geometry of the handler(in floating-point format).
|
| |
| virtual bool | update (const Ray &r) |
| | Moves the handler by adjusting its transformation matrix to match the cursor's position.
|
| |
Public Member Functions inherited from cil::Handler |
| | Handler (const std::shared_ptr< Matrix4f > &matrix) |
| |
| virtual | ~Handler () |
| |
| virtual bool | begin (const Ray &r) |
| | Initiates the update process and returns success(always true).
|
| |
| virtual bool | end (const Ray &r) |
| | Completes the update process and returns success(always true).
|
| |
| bool | hilited () const |
| | Indicates whether the Handler is currently highlighted by returning a boolean value(true for highlighted, false for not).
|
| |
| void | setHilited (bool hilited) |
| | Sets the highlighted state of the Handler to either true(highlighted) or false(not highlighted).
|
| |
| void | updateColor () |
| |
| | Object () |
| |
| virtual | ~Object () |
| |
|
| 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 Public Attributes inherited from cil::Handler |
| static float | s_handlerScale |
| | This member variable holds the length scale factor of the Handler geometry.
|
| |
Protected Attributes inherited from cil::Handler |
| bool | m_hilited = false |
| |
| std::shared_ptr< HandlerBuilder > | m_builder |
| |
| std::shared_ptr< Matrix4f > | m_matrix |
| |
| Matrix4f | m_initial |
| |
| Vector3f | m_initialPoint |
| |
| Vector3f | m_initialDir |
| |
The ArcHandler class inherits from the Handler class, specifically designed for rotating operation.
◆ ArcHandler()
| cil::ArcHandler::ArcHandler |
( |
const std::shared_ptr< Matrix4f > & | matrix | ) |
|
◆ ~ArcHandler()
| virtual cil::ArcHandler::~ArcHandler |
( |
| ) |
|
|
virtual |
◆ hit()
| virtual float cil::ArcHandler::hit |
( |
const Ray & | r | ) |
|
|
virtual |
Calculates and returns the distance between the cursor position and the geometry of the handler(in floating-point format).
Reimplemented from cil::Handler.
◆ update()
| virtual bool cil::ArcHandler::update |
( |
const Ray & | r | ) |
|
|
virtual |
Moves the handler by adjusting its transformation matrix to match the cursor's position.
Reimplemented from cil::Handler.