27#ifndef EASY3D_RENDERER_MANIPULATOR_H
28#define EASY3D_RENDERER_MANIPULATOR_H
30#include <easy3d/core/types.h>
37 class ManipulatedFrame;
A perspective or orthographic camera.
Definition: camera.h:116
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:110
A manipulator is for manipulation of an object.
Definition: manipulator.h:62
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:76
mat4 matrix() const
Definition: manipulator.cpp:62
ManipulatedFrame * frame()
Returns the manipulated frame.
Definition: manipulator.h:73
void draw_frame(const Camera *cam) const
Draws the manipulated frame.
Definition: manipulator.cpp:79
void reset()
Resets the manipulated frame, i.e., no transformation.
Definition: manipulator.cpp:54
The base class of renderable 3D models.
Definition: model.h:49
Definition: collider.cpp:182