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

#include <BALL/VIEW/RENDERING/STLRenderer.h>

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

List of all members.

Public Member Functions

void renderSphere_ (const Sphere &sphere)
 Render a sphere.
void renderMesh_ (const Mesh &mesh)
 Render a surface mesh.
void renderTube_ (const Tube &tube)
 Render a tube.
void renderTwoColoredTube_ (const TwoColoredTube &tube)
 Render a tube with two colors.
void renderLine_ (const Line &tube)
 Render a line.
void renderTwoColoredLine_ (const TwoColoredLine &tube)
 Render a line with two colors.
void out_ (const String &data)
void outheader_ (const String &data)
void outfinish_ (const String &data)
Constructors and Destructors.

 STLRenderer ()
 Default constructor.
 STLRenderer (const String &name) throw (Exception::FileNotFound)
virtual ~STLRenderer ()
 Destructor.
virtual void clear ()
 Clear method.
Accessors

void setFileName (const String &name) throw (Exception::FileNotFound)
String VRMLVector3 (Vector3 input)
Processor specific methods

virtual bool init (const Stage &stage)
virtual bool finish ()

Public Attributes

Size width
Size height

Protected Member Functions

void header_ (const Vector3 &translation, const ColorRGBA &color, const String &rotation="")
void footer_ ()

Protected Attributes

File outfile_
Vector3 origin_
Matrix4x4 rotation_
Index current_indent_
String endingName_

Detailed Description

STLRenderer class. Representation of all primitives as Meshes in stl ==> extrernal rendering of the same scene

Definition at line 35 of file STLRenderer.h.


Constructor & Destructor Documentation

BALL::VIEW::STLRenderer::STLRenderer (  ) 

Default constructor.

BALL::VIEW::STLRenderer::STLRenderer ( const String name  )  throw (Exception::FileNotFound)

Detailed constructor.

Parameters:
name The name of the file we will create
virtual BALL::VIEW::STLRenderer::~STLRenderer (  )  [virtual]

Destructor.


Member Function Documentation

virtual void BALL::VIEW::STLRenderer::clear (  )  [virtual]

Clear method.

Reimplemented from BALL::VIEW::Renderer.

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

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

Reimplemented from BALL::VIEW::Renderer.

void BALL::VIEW::STLRenderer::footer_ (  )  [protected]
void BALL::VIEW::STLRenderer::header_ ( const Vector3 translation,
const ColorRGBA color,
const String rotation = "" 
) [protected]
virtual bool BALL::VIEW::STLRenderer::init ( const Stage stage  )  [virtual]

Start method. This method creates the file and writes the header.

void BALL::VIEW::STLRenderer::out_ ( const String data  ) 
void BALL::VIEW::STLRenderer::outfinish_ ( const String data  )  [inline]

Definition at line 109 of file STLRenderer.h.

void BALL::VIEW::STLRenderer::outheader_ ( const String data  )  [inline]

Definition at line 106 of file STLRenderer.h.

void BALL::VIEW::STLRenderer::renderLine_ ( const Line  )  [virtual]

Render a line.

Reimplemented from BALL::VIEW::Renderer.

void BALL::VIEW::STLRenderer::renderMesh_ ( const Mesh  )  [virtual]

Render a surface mesh.

Reimplemented from BALL::VIEW::Renderer.

void BALL::VIEW::STLRenderer::renderSphere_ ( const Sphere  )  [virtual]

Render a sphere.

Reimplemented from BALL::VIEW::Renderer.

void BALL::VIEW::STLRenderer::renderTube_ ( const Tube  )  [virtual]

Render a tube.

Reimplemented from BALL::VIEW::Renderer.

void BALL::VIEW::STLRenderer::renderTwoColoredLine_ ( const TwoColoredLine  )  [virtual]

Render a line with two colors.

Reimplemented from BALL::VIEW::Renderer.

void BALL::VIEW::STLRenderer::renderTwoColoredTube_ ( const TwoColoredTube  )  [virtual]

Render a tube with two colors.

Reimplemented from BALL::VIEW::Renderer.

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

Sets the name of the file we will create.

Parameters:
name The file name
String BALL::VIEW::STLRenderer::VRMLVector3 ( Vector3  input  ) 

Converts a Vector3 into a String in VRML format as stl works in the same perspektive.


Member Data Documentation

Definition at line 125 of file STLRenderer.h.

Definition at line 126 of file STLRenderer.h.

Definition at line 112 of file STLRenderer.h.

Definition at line 123 of file STLRenderer.h.

Definition at line 121 of file STLRenderer.h.

Definition at line 124 of file STLRenderer.h.

Definition at line 112 of file STLRenderer.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines
Generated by  doxygen 1.6.3