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;
47 void drawId(uint viewId, uint
id)
const;
49 std::shared_ptr<DrawableObject>
clone()
const&;
50 std::shared_ptr<DrawableObject>
clone() &&;
55 uint firstVisibleObject()
const;
A class representing a box in N-dimensional space.
Definition box.h:46
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:71
bool isVisible() const
This member function is used to check if the object is visible.
Definition drawable_object_vector.cpp:81
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:56
void setVisibility(bool vis)
This member function is used to set the visibility of the object.
Definition drawable_object_vector.cpp:86
void drawId(uint viewId, uint id) const
This member function should draw the object. It will be called on request when the renderer needs to ...
Definition drawable_object_vector.cpp:44
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:64