BALL 1.5.0
|
#include <BALL/VIEW/RENDERING/RENDERERS/XML3DRenderer.h>
Classes | |
struct | XML3DRendererClippingPlane |
Public Member Functions | |
Constructors and Destructors. | |
XML3DRenderer () | |
Default constructor. | |
XML3DRenderer (const String &name) | |
XML3DRenderer (std::ostream &name) | |
XML3DRenderer (const XML3DRenderer &renderer) | |
virtual | ~XML3DRenderer () |
Destructor. | |
virtual void | clear () |
Clear method. | |
Accessors | |
virtual void | setSize (float width, float height) |
Set the size of the display. | |
void | setFileName (const String &name) |
void | setOstream (std::ostream &out_stream) |
Set a stream as output device. | |
void | setHumanReadable (bool state) |
bool | isHumanReadable () const |
String | XML3DColorRGBA (const ColorRGBA &input, const String &name) |
String | XML3DFinish (const String &object, const ColorRGBA &input) |
String | XML3DRaytracingMaterial (const Stage::Material &) |
String | XML3DVector3 (Vector3 input) |
String | XML3DString (const String &input) |
virtual bool | renderOneRepresentation (const Representation &representation) |
![]() | |
Renderer () | |
Renderer (const Renderer &renderer) | |
virtual | ~Renderer () |
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 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 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. | |
Additional Inherited Members | |
![]() | |
enum | StereoMode { NO_STEREO = 0 , ACTIVE_STEREO , DUAL_VIEW_STEREO , DUAL_VIEW_DIFFERENT_DISPLAY_STEREO , TOP_BOTTOM_STEREO , INTERLACED_STEREO } |
![]() | |
virtual void | renderClippingPlane_ (const ClippingPlane &) |
virtual void | renderBox_ (const Box &) |
Render a box. | |
virtual void | renderSimpleBox_ (const SimpleBox &) |
Render a simple box (parallel to the axes) | |
virtual void | renderGridVisualisation_ (const GridVisualisation &) |
Render a grid. | |
virtual void | renderQuadMesh_ (const QuadMesh &) |
Render a quad mesh. | |
![]() | |
Scene * | scene_ |
const Stage * | stage_ |
float | width_ |
float | height_ |
bool | show_preview_ |
float | volume_width_ |
bool | show_light_sources_ |
Camera | camera_ |
Vector3 | camera_offset_ |
bool | use_continuous_loop_ |
Size | stereo_frustum_conversion_width_ |
Size | stereo_frustum_conversion_height_ |
StereoMode | stereo_ |
XML3DRenderer class. This class walks over all the geometric primitives in a Scene and exports them into a data file in the XML3DRay 1.5 format, which can be used to render the same scene externally.
Definition at line 43 of file XML3DRenderer.h.
|
protected |
Definition at line 193 of file XML3DRenderer.h.
BALL::VIEW::XML3DRenderer::XML3DRenderer | ( | ) |
Default constructor.
BALL::VIEW::XML3DRenderer::XML3DRenderer | ( | const String & | name | ) |
Detailed constructor.
name | The name of the file we will create |
BALL::Exception::FileNotFound |
BALL::VIEW::XML3DRenderer::XML3DRenderer | ( | std::ostream & | name | ) |
BALL::VIEW::XML3DRenderer::XML3DRenderer | ( | const XML3DRenderer & | renderer | ) |
|
virtual |
Destructor.
|
virtual |
Clear method.
Reimplemented from BALL::VIEW::Renderer.
|
protected |
|
protected |
void BALL::VIEW::XML3DRenderer::createXHTMLFooter | ( | ) |
void BALL::VIEW::XML3DRenderer::createXHTMLHeader | ( | ) |
|
virtual |
Finish method. This method writes the ending of the file and closes it.
Reimplemented from BALL::VIEW::Renderer.
|
protected |
|
virtual |
Start method. This method creates the file and writes the header.
Reimplemented from BALL::VIEW::Renderer.
Initialization routine.
Reimplemented from BALL::VIEW::Renderer.
|
inline |
Definition at line 103 of file XML3DRenderer.h.
|
virtual |
Render a disc.
Reimplemented from BALL::VIEW::Renderer.
|
virtual |
Reimplemented from BALL::VIEW::Renderer.
|
virtual |
Render a line.
Reimplemented from BALL::VIEW::Renderer.
|
virtual |
Render a surface mesh.
Reimplemented from BALL::VIEW::Renderer.
|
virtual |
Render an illuminated line.
Reimplemented from BALL::VIEW::Renderer.
|
virtual |
Render a Representation.
Reimplemented from BALL::VIEW::Renderer.
|
virtual |
Render a single point.
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::XML3DRenderer::setFileName | ( | const String & | name | ) |
Sets the name of the file we will create.
name | The file name |
BALL::Exception::FileNotFound |
|
inline |
Definition at line 99 of file XML3DRenderer.h.
void BALL::VIEW::XML3DRenderer::setOstream | ( | std::ostream & | out_stream | ) |
Set a stream as output device.
Set the size of the display.
Reimplemented from BALL::VIEW::Renderer.
|
protected |
Returns the corresponding BALLFinish declaration
String BALL::VIEW::XML3DRenderer::XML3DRaytracingMaterial | ( | const Stage::Material & | ) |
Converts an Material into the corresponding shader properties.
Converts a Vector3 into a String in XML3DRay format.
|
protected |
Definition at line 190 of file XML3DRenderer.h.
|
protected |
Definition at line 199 of file XML3DRenderer.h.
|
protected |
Definition at line 194 of file XML3DRenderer.h.
Definition at line 197 of file XML3DRenderer.h.
|
protected |
Definition at line 200 of file XML3DRenderer.h.
|
protected |
Definition at line 207 of file XML3DRenderer.h.
|
protected |
Definition at line 208 of file XML3DRenderer.h.
|
protected |
Definition at line 210 of file XML3DRenderer.h.
|
protected |
Definition at line 211 of file XML3DRenderer.h.
|
protected |
Definition at line 191 of file XML3DRenderer.h.
|
protected |
Definition at line 198 of file XML3DRenderer.h.
|
protected |
Definition at line 188 of file XML3DRenderer.h.
|
protected |
Definition at line 180 of file XML3DRenderer.h.
|
protected |
Definition at line 195 of file XML3DRenderer.h.
|
protected |
Definition at line 189 of file XML3DRenderer.h.
|
protected |
Definition at line 205 of file XML3DRenderer.h.
|
protected |
Definition at line 202 of file XML3DRenderer.h.
|
protected |
Definition at line 203 of file XML3DRenderer.h.
Definition at line 196 of file XML3DRenderer.h.