#include <VRMLRenderer.h>
Inheritance diagram for VIEW::VRMLRenderer:
Public Member Functions | |
void | renderSphere_ (const Sphere &sphere) throw () |
Render a sphere. | |
void | renderMesh_ (const Mesh &mesh) throw () |
Render a surface mesh. | |
void | renderTube_ (const Tube &tube) throw () |
Render a tube. | |
void | renderTwoColoredTube_ (const TwoColoredTube &tube) throw () |
Render a tube with two colors. | |
void | out_ (const String &data) throw () |
void | outheader_ (const String &data) throw () |
void | outfinish_ (const String &data) throw () |
Constructors and Destructors. | |
VRMLRenderer () throw () | |
Default constructor. | |
VRMLRenderer (const String &name) throw (Exception::FileNotFound) | |
Detailed constructor. | |
virtual | ~VRMLRenderer () throw () |
Destructor. | |
virtual void | clear () throw () |
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) throw () |
Converts a ColorRGBA into a String in VRMLRay format. | |
String | VRMLVector3 (Vector3 input) throw () |
Converts a Vector3 into a String in VRMLRay format. | |
void | VRMLColor (const ColorRGBA &color) throw () |
Processor specific methods | |
virtual bool | init (const Stage &stage) throw () |
Start method. | |
virtual bool | finish () throw () |
Finish method. | |
Public Attributes | |
Size | width |
Size | height |
Protected Member Functions | |
void | header_ (const Vector3 &translation, const ColorRGBA &color, const String &rotation="") throw () |
void | footer_ () throw () |
Protected Attributes | |
File | outfile_ |
Vector3 | origin_ |
Matrix4x4 | rotation_ |
Index | current_intend_ |
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!
|
Detailed constructor.
|
|
Finish method. This method writes the ending of the file and closes it. Reimplemented from VIEW::Renderer. |
|
Start method. This method creates the file and writes the header. |
|
Sets the name of the file we will create.
|
|
Converts a ColorRGBA into a String in VRMLRay format.
|
|
Converts a Vector3 into a String in VRMLRay format.
|