version 3.3

VRS::ShapePainter Class Reference

#include <vrs/shapepainter.h>

Inheritance diagram for VRS::ShapePainter:

VRS::Painter VRS::Handler VRS::RenderObj VRS::SharedObj VRS::Visitable EnvironmentRenderer::GreenSpaceCompositePainter EnvironmentRenderer::GreenSpacePainter EnvironmentRenderer::PolygonSetWaterSurfacePainterGL EnvironmentRenderer::SkyDomePainter VRS::GL2::AttributedShapePainter VRS::PrimitiveQuadTreeAreaPainterGL VRS::PrimitiveQuadTreeDistancePainterGL VRS::TEXT::SimplePanelPainterGl VRS::TEXT::TextureTextPainterGL

List of all members.

Public Member Functions

virtual bool render (Engine *engine, const Shape *shape)=0
 VRS_TYPEINFO (ShapePainter, Painter)


Detailed Description

Abstract Base Class for Shape Painters. Painter for a class of shapes. The actual shape class is specified in the base class method 'target' which is overloaded by concrete shape painter classes.

Member Function Documentation

virtual bool VRS::ShapePainter::render ( Engine engine,
const Shape shape 
) [pure virtual]

A painter must be able to convert the shape description in commands suitable for the underlying rendering system. Thus, shape painters are specific for rendering systems. For example, see the OpenGL shape painters. This method returns true, if it actually could paint the given shape. If not, it returns false (e.g., if some parameters of the shape make it impossible for the painter to draw it - this will cause a call to a simplifier for that shape or to another more general painter for this kind of shapes).

Implemented in EnvironmentRenderer::GreenSpaceCompositePainter, EnvironmentRenderer::GreenSpacePainter, EnvironmentRenderer::PolygonSetWaterSurfacePainterGL, EnvironmentRenderer::SkyDomePainter, VRS::GL2::AttributedShapePainter, VRS::PrimitiveQuadTreeAreaPainterGL, VRS::PrimitiveQuadTreeDistancePainterGL, VRS::TEXT::SimplePanelPainterGl, and VRS::TEXT::TextureTextPainterGL.

VRS::ShapePainter::VRS_TYPEINFO ( ShapePainter  ,
Painter   
)


The documentation for this class was generated from the following file:

Generated on Wed May 22 06:00:34 2013 by Doxygen 1.5.6
© 2001-2010 Hasso-Plattner-Institut | Impressum | Contact