BALL  1.4.79
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 
16 namespace 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 
52  TilingRenderer(const TilingRenderer& renderer);
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 
74  virtual Vector3 mapViewportTo3D(Position x, Position y);
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:
122  void computeTilingSetup_();
123 
126 
129 
132 
135 
138  };
139  }
140 }
141 #endif // BALL_VIEW_RENDERING_TILINGRENDERER_H
142 
Size final_width_
The desired width of the final image.
Size final_height_
The desired height of the final image.
#define BALL_VIEW_EXPORT
Definition: COMMON/global.h:52
Size border_
The border oversampled for each tile.
Renderer * real_renderer_
The renderer used for rendering the individual tiles.