|
Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
|
#include <RotateHandle.h>
Public Member Functions | |
| RotateHandle (SceneObject *tgt, Axis ax) | |
| void | onDrag (const Math::Ray &ray) override |
| Handles continuous dragging motion. | |
| void | setDragState (glm::vec3 initHitPos) override |
| Initializes the drag operation state. | |
| glm::mat4 | getModelMatrix () const override |
| Gets the model transformation matrix for rendering this handle. | |
| glm::vec3 | getAxisDir () const override |
| Gets the axis direction this handle operates along/around. | |
Public Member Functions inherited from IHandle | |
| virtual | ~IHandle ()=default |
| Virtual destructor for proper cleanup of derived classes. | |
Additional Inherited Members | |
Protected Member Functions inherited from IHandle | |
| IHandle ()=default | |
| Protected constructor to enforce interface-only usage. | |
Static Protected Member Functions inherited from IHandle | |
| static glm::mat4 | rotateFromYToAxis (Axis axis) |
| Computes rotation matrix to align mesh from +Y to target axis. | |
Definition at line 8 of file RotateHandle.h.
| RotateHandle::RotateHandle | ( | SceneObject * | tgt, |
| Axis | ax | ||
| ) |
Definition at line 10 of file RotateHandle.cpp.
|
inlineoverridevirtual |
Gets the axis direction this handle operates along/around.
Implements IHandle.
Definition at line 15 of file RotateHandle.h.
|
overridevirtual |
Gets the model transformation matrix for rendering this handle.
The model matrix encodes:
Implements IHandle.
Definition at line 41 of file RotateHandle.cpp.
|
overridevirtual |
Handles continuous dragging motion.
Called every frame while the handle is being dragged. Implementations should:
| ray | The current mouse ray in world space. |
Implements IHandle.
Definition at line 12 of file RotateHandle.cpp.
|
overridevirtual |
Initializes the drag operation state.
Called once when the user begins dragging this handle. Implementations should capture:
| initHitPos | The world-space position where the ray first hit the handle. |
Implements IHandle.
Definition at line 36 of file RotateHandle.cpp.