23#ifndef VCL_RENDER_DRAWABLE_DRAWABLE_OBJECT_H
24#define VCL_RENDER_DRAWABLE_DRAWABLE_OBJECT_H
26#include <vclib/space/core/box.h>
27#include <vclib/space/core/point.h>
80 virtual void draw(uint viewId = 0)
const = 0;
The DrawableObject class is the base class for all the objects that can be drawn in a 3D viewer.
Definition drawable_object.h:55
void swap(DrawableObject &other)
Utility swap function that allows to swap the content of two DrawableObject instances.
Definition drawable_object.h:185
std::string mName
Name of the object.
Definition drawable_object.h:56
std::string mInfo
Info about the object.
Definition drawable_object.h:58
virtual void setVisibility(bool vis)=0
This member function is used to set the visibility of the object.
std::string & info()
Returns a reference of the info of the object, that allows to modify it.
Definition drawable_object.h:173
virtual vcl::Box3d boundingBox() const =0
This member function is used to find a good camera position to render object. It should return the th...
virtual bool isVisible() const =0
This member function is used to check if the object is visible.
const std::string & info() const
Returns the info of the object.
Definition drawable_object.h:166
virtual const std::string & name() const
Returns the name of the object.
Definition drawable_object.h:153
virtual void init()
This member function is called after the initialization of the Context. It must initialize and bind d...
Definition drawable_object.h:71
virtual std::string & name()
Returns a reference of the name of the object, that allows to modify it.
Definition drawable_object.h:160
virtual std::shared_ptr< DrawableObject > clone() const &=0
This member function is used to create a new copy of the DrawableObject. Each derived class must impl...
DrawableObject()=default
Empty constructor.
virtual void draw(uint viewId=0) const =0
This member function must draw the object. It will be called at every frame.
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:43