Easy3D 2.5.3
|
A manipulator is for manipulation of an object. More...
#include <easy3d/renderer/manipulator.h>
Public Member Functions | |
Manipulator (Model *model=nullptr) | |
Constructor. A manipulator can be attached to a model . | |
void | reset () |
Resets the manipulated frame, i.e., no transformation. | |
ManipulatedFrame * | frame () |
Returns the manipulated frame. | |
const ManipulatedFrame * | frame () const |
Returns the manipulated frame. | |
mat4 | matrix () const |
void | draw_frame (const Camera *cam) const |
Draws the manipulated frame. | |
A manipulator is for manipulation of an object.
A manipulator maintains the manipulated frame of an object. The manipulated frame is used to manipulate this object. In this implementation, the origin of the manipulated frame is always at the center of the object.
The following code shows how to use this manipulator:
mat4 matrix | ( | ) | const |