BALL 1.5.0
|
#include <BALL/VIEW/RENDERING/RENDERERS/VRMLRenderer.h>
Public Member Functions | |
Constructors and Destructors. | |
VRMLRenderer () | |
Default constructor. | |
VRMLRenderer (const String &name) | |
virtual | ~VRMLRenderer () |
Destructor. | |
virtual void | clear () |
Clear method. | |
Accessors | |
void | setFileName (const String &name) |
String | VRMLColorRGBA (const ColorRGBA &input) |
String | VRMLVector3 (Vector3 input) |
void | VRMLColor (const ColorRGBA &color) |
![]() | |
Renderer () | |
Renderer (const Renderer &renderer) | |
virtual | ~Renderer () |
virtual bool | init (Scene &scene) |
virtual bool | init (const Stage &stage, float height, float width) |
virtual void | setLights (bool reset_all=false) |
Set the light sources according to the stage. | |
virtual void | updateCamera (const Camera *camera=0) |
virtual void | updateMaterialForRepresentation (Representation const *) |
virtual void | updateBackgroundColor () |
Update the background color from the stage. | |
virtual void | setupEnvironmentMap (const QImage &image) |
Setup an environment map. | |
virtual void | setupStereo (float eye_separation, float focal_length) |
virtual void | useContinuousLoop (bool use_loop) |
bool | isContinuous () |
virtual bool | hasFPScounter () |
virtual double | getFPS () |
virtual Vector3 | mapViewportTo3D (Position x, Position y) |
virtual Vector2 | map3DToViewport (const Vector3 &vec) |
virtual void | pickObjects (Position x1, Position y1, Position x2, Position y2, std::list< GeometricObject * > &objects) |
virtual void | getFrustum (float &near_f, float &far_f, float &left_f, float &right_f, float &top_f, float &bottom_f) |
virtual bool | renderOneRepresentation (const Representation &representation) |
virtual void | bufferRepresentation (const Representation &) |
virtual void | removeRepresentation (const Representation &) |
virtual const Stage & | getStage () const |
virtual void | setStage (const Stage &stage) |
bool | hasStage () const |
Test if a Stage was assigned to the Renderer. | |
virtual void | setSize (float width, float height) |
Set the size of the display. | |
virtual float | getWidth () const |
virtual float | getHeight () const |
virtual void | setPreviewMode (bool show_preview) |
virtual void | showLightSources (bool show_light_sources) |
virtual void | renderRuler () |
virtual void | setStereoMode (StereoMode state) |
virtual StereoMode | getStereoMode () const |
virtual void | setStereoFrustumConversion (int width_factor, int height_factor) |
bool | operator== (const Renderer &) const |
virtual void | render_ (const GeometricObject *object) |
Wrapper for the renderering of special GeometricObjects. | |
Processor specific methods | |
Size | width |
Size | height |
File | outfile_ |
Vector3 | origin_ |
Matrix4x4 | rotation_ |
Index | current_indent_ |
float | smallX |
float | smallY |
float | smallZ |
float | bigX |
float | bigY |
float | bigZ |
bool | scalingUsed |
virtual bool | init (const Stage &stage) |
virtual bool | finish () |
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) |
void | header_ (const Vector3 &translation, const ColorRGBA &color, const String &rotation="") |
void | footer_ () |
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 40 of file VRMLRenderer.h.
BALL::VIEW::VRMLRenderer::VRMLRenderer | ( | ) |
Default constructor.
BALL::VIEW::VRMLRenderer::VRMLRenderer | ( | const String & | name | ) |
Detailed constructor.
name | The name of the file we will create |
BALL::Exception::FileNotFound |
|
virtual |
Destructor.
|
virtual |
Clear method.
Reimplemented from BALL::VIEW::Renderer.
|
virtual |
Finish method. This method writes the ending of the file and closes it.
Reimplemented from BALL::VIEW::Renderer.
|
protected |
|
protected |
Start method. This method creates the file and writes the header.
void BALL::VIEW::VRMLRenderer::out_ | ( | const String & | data | ) |
|
inline |
Definition at line 119 of file VRMLRenderer.h.
|
inline |
Definition at line 116 of file VRMLRenderer.h.
|
virtual |
Render a line.
Reimplemented from BALL::VIEW::Renderer.
|
virtual |
Render a surface mesh.
Reimplemented from BALL::VIEW::Renderer.
|
virtual |
Render a sphere.
Reimplemented from BALL::VIEW::Renderer.
|
virtual |
Render a tube.
Reimplemented from BALL::VIEW::Renderer.
|
virtual |
Render a line with two colors.
Reimplemented from BALL::VIEW::Renderer.
|
virtual |
Render a tube with two colors.
Reimplemented from BALL::VIEW::Renderer.
void BALL::VIEW::VRMLRenderer::setFileName | ( | const String & | name | ) |
Sets the name of the file we will create.
name | The file name |
BALL::Exception::FileNotFound |
void BALL::VIEW::VRMLRenderer::VRMLColor | ( | const ColorRGBA & | color | ) |
Converts a Vector3 into a String in VRMLRay format.
|
protected |
Definition at line 138 of file VRMLRenderer.h.
|
protected |
Definition at line 138 of file VRMLRenderer.h.
|
protected |
Definition at line 138 of file VRMLRenderer.h.
|
protected |
Definition at line 135 of file VRMLRenderer.h.
Size BALL::VIEW::VRMLRenderer::height |
Definition at line 122 of file VRMLRenderer.h.
|
protected |
Definition at line 133 of file VRMLRenderer.h.
|
protected |
Definition at line 131 of file VRMLRenderer.h.
|
protected |
Definition at line 134 of file VRMLRenderer.h.
|
protected |
Definition at line 141 of file VRMLRenderer.h.
|
protected |
Definition at line 138 of file VRMLRenderer.h.
|
protected |
Definition at line 138 of file VRMLRenderer.h.
|
protected |
Definition at line 138 of file VRMLRenderer.h.
Size BALL::VIEW::VRMLRenderer::width |
Definition at line 122 of file VRMLRenderer.h.