BALL::VIEW::POVRenderer Class Reference
[Renderer]

POVRenderer class. More...

#include <POVRenderer.h>

Inheritance diagram for BALL::VIEW::POVRenderer:
Inheritance graph
[legend]

List of all members.


Public Member Functions

Constructors and Destructors.
POVRenderer ()
Default constructor.
POVRenderer (const String &name) throw (Exception::FileNotFound)
Detailed constructor.
POVRenderer (const POVRenderer &renderer)
virtual ~POVRenderer ()
Destructor.
virtual void clear ()
Clear method.
Accessors
void setFileName (const String &name) throw (Exception::FileNotFound)
Sets the name of the file we will create.
void setOstream (std::ostream &out_stream)
Set a stream as output device.
void setHumanReadable (bool state)
bool isHumanReadable () const
String POVColorRGBA (const ColorRGBA &input)
Converts a ColorRGBA into a String in POVRay format.
String POVFinish (const String &object, const ColorRGBA &input)
Returns the corresponding BALLFinish declaration.
String POVVector3 (Vector3 input)
Converts a Vector3 into a String in POVRay format.
virtual bool renderOneRepresentation (const Representation &representation)
Render a Representation.
Processor specific methods
virtual bool init (Scene &scene)
Initialization routine.
virtual bool init (const Stage &stage, float width, float height)
Start method.
virtual bool finish ()
Finish method.
void renderSphere_ (const Sphere &sphere)
Render a sphere.
void renderDisc_ (const Disc &disc)
Render a disc.
void renderTube_ (const Tube &tube)
Render a tube.
void renderTwoColoredTube_ (const TwoColoredTube &tube)
Render a tube with two colors.
void renderMesh_ (const Mesh &mesh)
Render a surface mesh.
void renderTwoColoredLine_ (const TwoColoredLine &line)
Render a line with two colors.
void renderLine_ (const Line &line)
Render a line.
void renderPoint_ (const Point &point)
Render a single point.
void renderLabel_ (const Label &)
virtual void renderMultiLine_ (const MultiLine &line)
Render an illuminated line.

Protected Types

typedef HashMap< String, Size > ColorMap

Protected Member Functions

const ColorRGBA & getColor_ (const GeometricObject &object)
String trimFloatValue_ (float value)
void storeColor_ (const GeometricObject &object)
String getColorIndex_ (const ColorRGBA &color)

Protected Attributes

std::ostream * outfile_
Vector3 origin_
Matrix4x4 rotation_
vector< ClippingPlane * > clipping_planes_
bool human_readable_
ColorMap color_map_
vector< const Representation * > representations_
HashSet< const Mesh * > wireframes_
HashSet< String > color_strings_
String font_file_
double m_ [12]
Position color_index_

Detailed Description

POVRenderer class.

This class walks over all the geometric primitives in a Scene and exports them into a data file in the POVRay 1.5 format, which can be used to render the same scene externally.


Constructor & Destructor Documentation

BALL::VIEW::POVRenderer::POVRenderer ( const String & name ) throw (Exception::FileNotFound)

Detailed constructor.

Parameters:
name The name of the file we will create

Member Function Documentation

virtual bool BALL::VIEW::POVRenderer::finish ( ) [virtual]

Finish method.

This method writes the ending of the file and closes it.

Reimplemented from BALL::VIEW::Renderer.

virtual bool BALL::VIEW::POVRenderer::init ( const Stage & stage,
float width,
float height
) [virtual]

Start method.

This method creates the file and writes the header.

Reimplemented from BALL::VIEW::Renderer.

void BALL::VIEW::POVRenderer::setFileName ( const String & name ) throw (Exception::FileNotFound)

Sets the name of the file we will create.

Parameters:
name The file name

Generated on Thu Aug 6 18:30:59 2009 for BALL by doxygen 1.5.8