23#ifndef VCL_RENDER_DRAWABLE_DRAWABLE_OBJECT_VECTOR_H
24#define VCL_RENDER_DRAWABLE_DRAWABLE_OBJECT_VECTOR_H
26#include "drawable_object.h"
28#include <vclib/space/core/box.h>
29#include <vclib/space/core/vector/polymorphic_object_vector.h>
46 void draw(uint viewId)
const;
48 std::shared_ptr<DrawableObject>
clone()
const&;
49 std::shared_ptr<DrawableObject>
clone() &&;
54 uint firstVisibleObject()
const;
Definition drawable_object_vector.h:36
std::shared_ptr< DrawableObject > clone() const &
This member function is used to create a new copy of the DrawableObject. Each derived class must impl...
Definition drawable_object_vector.cpp:59
bool isVisible() const
This member function is used to check if the object is visible.
Definition drawable_object_vector.cpp:69
void init()
This member function is called after the initialization of the Context. It must initialize and bind d...
Definition drawable_object_vector.cpp:27
Box3d boundingBox() const
This member function is used to find a good camera position to render object. It should return the th...
Definition drawable_object_vector.cpp:44
void setVisibility(bool vis)
This member function is used to set the visibility of the object.
Definition drawable_object_vector.cpp:74
void draw(uint viewId) const
This member function must draw the object. It will be called at every frame.
Definition drawable_object_vector.cpp:34
The DrawableObject class is the base class for all the objects that can be drawn in a 3D viewer.
Definition drawable_object.h:55
The PolymorphicObjectVector class is a container that stores a collection of polymorphic objects,...
Definition polymorphic_object_vector.h:66
A class representing a line segment in n-dimensional space. The class is parameterized by a PointConc...
Definition segment.h:43