Skip to content
Sections
Personal tools
You are here: Home » BALLView » Documentation » 1.2 » classBALL_1_1VIEW_1_1VRMLRenderer_html

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

VRMLRenderer class. More...

#include <VRMLRenderer.h>

Inheritance diagram for BALL::VIEW::VRMLRenderer:

BALL::VIEW::Renderer BALL::Object BALL::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

BALL::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 BALL::VIEW::VRMLRenderer::finish ( ) throw () [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 ) throw () [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.

Parameters:
name The file name
String BALL::VIEW::VRMLRenderer::VRMLColorRGBA ( const ColorRGBA & input ) throw ()

Converts a ColorRGBA into a String in VRMLRay format.

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

Converts a Vector3 into a String in VRMLRay format.


The documentation for this class was generated from the following file:
 
 

Powered by Plone

This site conforms to the following standards: