#include <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) | |
Detailed constructor. |
|
virtual | ~VRMLRenderer () |
Destructor. |
|
virtual void | clear () |
Clear method. |
|
Accessors
|
|
void | setFileName (const String &name) throw (Exception::FileNotFound) |
Sets the name of the file we will
create. |
|
String | VRMLColorRGBA (const ColorRGBA &input) |
Converts a ColorRGBA into a String in VRMLRay
format. |
|
String | VRMLVector3 (Vector3 input) |
Converts a Vector3 into a String in VRMLRay
format. |
|
void | VRMLColor (const ColorRGBA &color) |
Processor specific methods
|
|
virtual bool | init (const Stage &stage) |
Start method. |
|
virtual bool | finish () |
Finish method. |
|
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 |
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!
BALL::VIEW::VRMLRenderer::VRMLRenderer | ( | const String & | name | ) | throw (Exception::FileNotFound) |
Detailed constructor.
name | The name of the file we will create |
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.
virtual bool BALL::VIEW::VRMLRenderer::init | ( | const Stage & | stage | ) | [virtual] |
Start method.
This method creates the file and writes the header.
void BALL::VIEW::VRMLRenderer::setFileName | ( | const String & | name | ) | throw (Exception::FileNotFound) |
Sets the name of the file we will create.
name | The file name |