6 #ifndef BALL_VIEW_RENDERING_RENDERER_H
7 #define BALL_VIEW_RENDERING_RENDERER_H
9 #ifndef BALL_VIEW_KERNEL_REPRESENTATION_H
13 #ifndef BALL_CONCEPT_OBJECT_H
17 #ifndef BALL_VIEW_KERNEL_STAGE_H
21 #ifndef BALL_MATHS_VECTOR2_H
43 class GridVisualisation;
83 virtual bool init(
Scene& scene);
88 virtual bool init(
const Stage& stage,
float height,
float width);
91 virtual void setLights(
bool reset_all =
false);
95 virtual void updateCamera(
const Camera* camera = 0);
98 virtual void updateBackgroundColor();
105 virtual void setupStereo(
float eye_separation,
float focal_length);
109 virtual void useContinuousLoop(
bool use_loop)
112 use_continuous_loop_ = use_loop;
120 virtual bool finish();
139 virtual bool renderOneRepresentation(
const Representation& representation);
152 virtual const Stage& getStage()
const
157 virtual void setStage(
const Stage& stage)
161 bool hasStage()
const;
164 virtual void setSize(
float width,
float height) { width_ = width; height_ = height;}
182 virtual void showLightSources(
bool show_light_sources) { show_light_sources_ = show_light_sources; }
191 virtual void renderRuler();
209 {
Log.
error() <<
"renderClippingPlane_ not implemented in derived Renderer class" << std::endl;}
212 virtual void renderLabel_(
const Label& )
213 {
Log.
error() <<
"renderLabel_ not implemented in derived Renderer class" << std::endl;}
216 virtual void renderLine_(
const Line& )
217 {
Log.
error() <<
"renderLine_ not implemented in derived Renderer class" << std::endl;}
221 {
Log.
error() <<
"renderMultiLine_ not implemented in derived Renderer class" << std::endl;}
224 virtual void renderMesh_(
const Mesh& )
225 {
Log.
error() <<
"renderMesh_ not implemented in derived Renderer class" << std::endl;}
228 virtual void renderPoint_(
const Point& )
229 {
Log.
error() <<
"renderPoint_ not implemented in derived Renderer class" << std::endl;}
232 virtual void renderBox_(
const Box& )
233 {
Log.
error() <<
"renderBox_ not implemented in derived Renderer class" << std::endl;}
237 {
Log.
error() <<
"renderSimpleBox_ not implemented in derived Renderer class" << std::endl;}
240 virtual void renderSphere_(
const Sphere& )
241 {
Log.
error() <<
"renderSphere_ not implemented in derived Renderer class" << std::endl;}
244 virtual void renderDisc_(
const Disc& )
245 {
Log.
error() <<
"renderDisc_ not implemented in derived Renderer class" << std::endl;}
248 virtual void renderTube_(
const Tube& )
249 {
Log.
error() <<
"renderTube_ not implemented in derived Renderer class" << std::endl;}
253 {
Log.
error() <<
"renderTwoColoredLine_ not implemented in derived Renderer class" << std::endl;}
257 {
Log.
error() <<
"renderTwoColoredTube_ not implemented in derived Renderer class" << std::endl;}
261 {
Log.
error() <<
"renderGridVisualisation_ not implemented in derived Renderer class" << std::endl;}
264 {
Log.
error() <<
"renderQuadMesh_ not implemented in derived Renderer class" << std::endl;}
300 #endif // BALL_VIEW_RENDERING_RENDERER_H