27#ifndef EASY3D_RENDERER_MANIPULATOR_H
28#define EASY3D_RENDERER_MANIPULATOR_H
30#include <easy3d/core/types.h>
A perspective or orthographic camera.
Definition camera.h:113
The drawable for rendering a set of line segments, e.g., edges of a mesh, vector fields.
Definition drawable_lines.h:40
A Frame that can be rotated and translated using the mouse.
Definition manipulated_frame.h:57
Manipulator(Model *model=nullptr)
Constructor. A manipulator can be attached to a model.
Definition manipulator.cpp:38
const ManipulatedFrame * frame() const
Returns the manipulated frame.
Definition manipulator.h:72
mat4 matrix() const
Definition manipulator.cpp:60
ManipulatedFrame * frame()
Returns the manipulated frame.
Definition manipulator.h:69
void draw_frame(const Camera *cam) const
Draws the manipulated frame.
Definition manipulator.cpp:77
void reset()
Resets the manipulated frame, i.e., no transformation.
Definition manipulator.cpp:52
The base class of renderable 3D models.
Definition model.h:50
Definition collider.cpp:182
Mat4< float > mat4
A 4 by 4 matrix of float type.
Definition types.h:67