Main Page | Modules | Namespace List | Class Hierarchy | Class List | Namespace Members | Class Members

VIEW::VRMLRenderer Class Reference
[Renderer]

VRMLRenderer class. More...

#include <VRMLRenderer.h>

Inheritance diagram for VIEW::VRMLRenderer:

VIEW::Renderer Object AutoDeletable List of all members.

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_

Detailed Description

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!


Constructor & Destructor Documentation

VIEW::VRMLRenderer::VRMLRenderer const String name  )  throw (Exception::FileNotFound)
 

Detailed constructor.

Parameters:
name The name of the file we will create


Member Function Documentation

virtual bool VIEW::VRMLRenderer::finish  )  throw () [virtual]
 

Finish method.

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

Reimplemented from VIEW::Renderer.

virtual bool VIEW::VRMLRenderer::init const Stage stage  )  throw () [virtual]
 

Start method.

This method creates the file and writes the header.

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

Sets the name of the file we will create.

Parameters:
name The file name

String VIEW::VRMLRenderer::VRMLColorRGBA const ColorRGBA input  )  throw ()
 

Converts a ColorRGBA into a String in VRMLRay format.

String VIEW::VRMLRenderer::VRMLVector3 Vector3  input  )  throw ()
 

Converts a Vector3 into a String in VRMLRay format.