BALL 1.5.0
Loading...
Searching...
No Matches
tilingRenderer.h
Go to the documentation of this file.
1// -*- Mode: C++; tab-width: 2; -*-
2// vi: set ts=2:
3//
4
5#ifndef BALL_VIEW_RENDERING_TILINGRENDERER_H
6#define BALL_VIEW_RENDERING_TILINGRENDERER_H
7
8#ifndef BALL_VIEW_RENDERING_RENDERERS_RENDERER_H
10#endif
11
12#ifndef BALL_VIEW_RENDERING_RENDERTARGET_H
14#endif
15
16namespace BALL
17{
18 namespace VIEW
19 {
32 : public Renderer
33 {
34 public:
35
39
48 TilingRenderer(Renderer* real_renderer, Size final_width, Size final_height, Size border = 0);
49
53
56 virtual ~TilingRenderer() {}
57
59 virtual void setLights(bool reset_all = false);
60
63 virtual void updateCamera(const Camera* camera = 0);
64
66 virtual void updateBackgroundColor();
67
69 virtual bool finish();
70
75
79 virtual Vector2 map3DToViewport(const Vector3& vec);
80
82
85
88 virtual bool renderOneRepresentation(const Representation& representation);
89
92 virtual void bufferRepresentation(const Representation& rep);
93
96 virtual void removeRepresentation(const Representation& rep);
97
99 virtual void setSize(float width, float height);
100
108 virtual void renderRuler();
109
111
114
116 virtual void renderToBuffer(RenderTarget* target);
117
119 virtual void render_(const GeometricObject* object);
120
121 protected:
123
126
129
132
135
138 };
139 }
140}
141#endif // BALL_VIEW_RENDERING_TILINGRENDERER_H
142
virtual Vector2 map3DToViewport(const Vector3 &vec)
virtual void bufferRepresentation(const Representation &rep)
Size final_width_
The desired width of the final image.
virtual void setSize(float width, float height)
Set the size of the display.
virtual void removeRepresentation(const Representation &rep)
virtual void updateCamera(const Camera *camera=0)
virtual void setLights(bool reset_all=false)
Set the light sources according to the stage.
virtual void renderRuler()
Size final_height_
The desired height of the final image.
Size border_
The border oversampled for each tile.
TilingRenderer(const TilingRenderer &renderer)
Renderer * real_renderer_
The renderer used for rendering the individual tiles.
virtual void render_(const GeometricObject *object)
Wrapper for the renderering of special GeometricObjects.
virtual bool renderOneRepresentation(const Representation &representation)
TilingRenderer(Renderer *real_renderer, Size final_width, Size final_height, Size border=0)
virtual void renderToBuffer(RenderTarget *target)
virtual Vector3 mapViewportTo3D(Position x, Position y)
virtual void updateBackgroundColor()
Update the background color from the stage.
#define BALL_VIEW_EXPORT