Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VIEW::Renderer Class Reference
[Renderer]

Renderer is just a generic base class. More...

#include <renderer.h>

Inheritance diagram for VIEW::Renderer:

Object AutoDeletable VIEW::GLRenderer VIEW::POVRenderer VIEW::VRMLRenderer List of all members.

Predicates

bool operator== (const Renderer &) const throw ()
virtual void render_ (const GeometricObject *object) throw ()
 Wrapper for the renderering of special GeometricObjects.
virtual void renderClippingPlane_ (const ClippingPlane &) throw ()
virtual void renderLabel_ (const Label &) throw ()
virtual void renderLine_ (const Line &) throw ()
 Render a line.
virtual void renderMultiLine_ (const MultiLine &) throw ()
 Render an illuminated line.
virtual void renderMesh_ (const Mesh &) throw ()
 Render a surface mesh.
virtual void renderPoint_ (const Point &) throw ()
 Render a single point.
virtual void renderBox_ (const Box &) throw ()
 Render a box.
virtual void renderSimpleBox_ (const SimpleBox &) throw ()
 Render a simple box (parallel to the axes).
virtual void renderSphere_ (const Sphere &) throw ()
 Render a sphere.
virtual void renderDisc_ (const Disc &) throw ()
 Render a disc.
virtual void renderTube_ (const Tube &) throw ()
 Render a tube.
virtual void renderTwoColoredLine_ (const TwoColoredLine &) throw ()
 Render a line with two colors.
virtual void renderTwoColoredTube_ (const TwoColoredTube &) throw ()
 Render a tube with two colors.
virtual void renderGridVisualisation_ (const GridVisualisation &) throw ()
 Render a grid.
virtual void renderQuadMesh_ (const QuadMesh &) throw ()
 Render a quad mesh.

Public Member Functions

Constructors and Destructors
 Renderer () throw ()
 Default Constructor.
 Renderer (const Renderer &renderer) throw ()
 Copy constructor.
virtual ~Renderer () throw ()
 Destructor.
virtual void clear () throw ()
 Explicit default initialization.
virtual bool init (const Stage &stage, float height, float width) throw ()
 Initialisation with the Stage.
virtual bool finish () throw ()
Accessors
virtual bool render (const Representation &representation) throw ()
 Render a Representation.
virtual const StagegetStage () const throw ()
 Get the stage for the renderer (const).
virtual void setStage (const Stage &stage) throw ()
 Set the stage for the renderer.
bool hasStage () const throw ()
 Test if a Stage was assigned to the Renderer.
virtual void setSize (float width, float height) throw ()
 Set the size of the display.
virtual float getWidth () const throw ()
virtual float getHeight () const throw ()

Protected Attributes

const Stagestage_
float width_
float height_

Detailed Description

Renderer is just a generic base class.

Derived classes are GLRenderer and POVRenderer. Every renderer has a pointer to a Stage object, which contains the viewpoint, the LightSource, etc. The renderer also knows the width and height, of the display, it shall render.


Constructor & Destructor Documentation

VIEW::Renderer::Renderer  )  throw ()
 

Default Constructor.

VIEW::Renderer::Renderer const Renderer renderer  )  throw ()
 

Copy constructor.


Member Function Documentation

virtual void VIEW::Renderer::clear  )  throw () [virtual]
 

Explicit default initialization.

Reimplemented from Object.

Reimplemented in VIEW::GLRenderer, VIEW::POVRenderer, and VIEW::VRMLRenderer.

virtual bool VIEW::Renderer::init const Stage stage,
float  height,
float  width
throw () [virtual]
 

Initialisation with the Stage.

Called by Scene::exportScene().

Reimplemented in VIEW::GLRenderer, and VIEW::POVRenderer.

virtual bool VIEW::Renderer::render const Representation representation  )  throw () [virtual]
 

Render a Representation.

Reimplemented in VIEW::POVRenderer.