#include <BALL/VIEW/RENDERING/VRMLRenderer.h>
Public Member Functions | |
void | renderSphere_ (const Sphere &sphere) |
Render a sphere. | |
void | renderMesh_ (const Mesh &mesh) |
Render a surface mesh. | |
void | renderLine_ (const Line &miniTube) |
Render a line. | |
void | renderTwoColoredLine_ (const TwoColoredLine &miniTube) |
Render a line with two colors. | |
void | renderTube_ (const Tube &tube) |
Render a tube. | |
void | renderTwoColoredTube_ (const TwoColoredTube &tube) |
Render a tube with two colors. | |
void | out_ (const String &data) |
void | outheader_ (const String &data) |
void | outfinish_ (const String &data) |
Constructors and Destructors. | |
VRMLRenderer () | |
Default constructor. | |
VRMLRenderer (const String &name) throw (Exception::FileNotFound) | |
virtual | ~VRMLRenderer () |
Destructor. | |
virtual void | clear () |
Clear method. | |
Accessors | |
void | setFileName (const String &name) throw (Exception::FileNotFound) |
String | VRMLColorRGBA (const ColorRGBA &input) |
String | VRMLVector3 (Vector3 input) |
void | VRMLColor (const ColorRGBA &color) |
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_ |
float | smallX |
float | smallY |
float | smallZ |
float | bigX |
float | bigY |
float | bigZ |
bool | scalingUsed |
VRMLRenderer class. This class walks over all the geometric primitives in a Scene and exports them into a data file in the VRML format, which can be used to render the same scene externally.
This is unmaintained code!
Definition at line 39 of file VRMLRenderer.h.
BALL::VIEW::VRMLRenderer::VRMLRenderer | ( | ) |
Default constructor.
BALL::VIEW::VRMLRenderer::VRMLRenderer | ( | const String & | name | ) | throw (Exception::FileNotFound) |
Detailed constructor.
name | The name of the file we will create |
virtual BALL::VIEW::VRMLRenderer::~VRMLRenderer | ( | ) | [virtual] |
Destructor.
virtual void BALL::VIEW::VRMLRenderer::clear | ( | ) | [virtual] |
Clear method.
Reimplemented from BALL::VIEW::Renderer.
virtual bool BALL::VIEW::VRMLRenderer::finish | ( | ) | [virtual] |
Finish method. This method writes the ending of the file and closes it.
Reimplemented from BALL::VIEW::Renderer.
void BALL::VIEW::VRMLRenderer::footer_ | ( | ) | [protected] |
void BALL::VIEW::VRMLRenderer::header_ | ( | const Vector3 & | translation, | |
const ColorRGBA & | color, | |||
const String & | rotation = "" | |||
) | [protected] |
Start method. This method creates the file and writes the header.
void BALL::VIEW::VRMLRenderer::out_ | ( | const String & | data | ) |
void BALL::VIEW::VRMLRenderer::outfinish_ | ( | const String & | data | ) | [inline] |
Definition at line 118 of file VRMLRenderer.h.
void BALL::VIEW::VRMLRenderer::outheader_ | ( | const String & | data | ) | [inline] |
Definition at line 115 of file VRMLRenderer.h.
void BALL::VIEW::VRMLRenderer::renderLine_ | ( | const Line & | ) | [virtual] |
Render a line.
Reimplemented from BALL::VIEW::Renderer.
void BALL::VIEW::VRMLRenderer::renderMesh_ | ( | const Mesh & | ) | [virtual] |
Render a surface mesh.
Reimplemented from BALL::VIEW::Renderer.
void BALL::VIEW::VRMLRenderer::renderSphere_ | ( | const Sphere & | ) | [virtual] |
Render a sphere.
Reimplemented from BALL::VIEW::Renderer.
void BALL::VIEW::VRMLRenderer::renderTube_ | ( | const Tube & | ) | [virtual] |
Render a tube.
Reimplemented from BALL::VIEW::Renderer.
void BALL::VIEW::VRMLRenderer::renderTwoColoredLine_ | ( | const TwoColoredLine & | ) | [virtual] |
Render a line with two colors.
Reimplemented from BALL::VIEW::Renderer.
void BALL::VIEW::VRMLRenderer::renderTwoColoredTube_ | ( | const TwoColoredTube & | ) | [virtual] |
Render a tube with two colors.
Reimplemented from BALL::VIEW::Renderer.
void BALL::VIEW::VRMLRenderer::setFileName | ( | const String & | name | ) | throw (Exception::FileNotFound) |
Sets the name of the file we will create.
name | The file name |
void BALL::VIEW::VRMLRenderer::VRMLColor | ( | const ColorRGBA & | color | ) |
Converts a Vector3 into a String in VRMLRay format.
float BALL::VIEW::VRMLRenderer::bigX [protected] |
Definition at line 137 of file VRMLRenderer.h.
float BALL::VIEW::VRMLRenderer::bigY [protected] |
Definition at line 137 of file VRMLRenderer.h.
float BALL::VIEW::VRMLRenderer::bigZ [protected] |
Definition at line 137 of file VRMLRenderer.h.
Index BALL::VIEW::VRMLRenderer::current_indent_ [protected] |
Definition at line 134 of file VRMLRenderer.h.
Definition at line 121 of file VRMLRenderer.h.
Vector3 BALL::VIEW::VRMLRenderer::origin_ [protected] |
Definition at line 132 of file VRMLRenderer.h.
File BALL::VIEW::VRMLRenderer::outfile_ [protected] |
Definition at line 130 of file VRMLRenderer.h.
Matrix4x4 BALL::VIEW::VRMLRenderer::rotation_ [protected] |
Definition at line 133 of file VRMLRenderer.h.
bool BALL::VIEW::VRMLRenderer::scalingUsed [protected] |
Definition at line 140 of file VRMLRenderer.h.
float BALL::VIEW::VRMLRenderer::smallX [protected] |
Definition at line 137 of file VRMLRenderer.h.
float BALL::VIEW::VRMLRenderer::smallY [protected] |
Definition at line 137 of file VRMLRenderer.h.
float BALL::VIEW::VRMLRenderer::smallZ [protected] |
Definition at line 137 of file VRMLRenderer.h.
Definition at line 121 of file VRMLRenderer.h.