|
BALL
1.4.2
|
#include <BALL/VIEW/RENDERING/POVRenderer.h>
Classes | |
| struct | POVRendererClippingPlane |
Public Member Functions | |
Constructors and Destructors. | |
| POVRenderer () | |
| Default constructor. More... | |
| POVRenderer (const String &name) throw (Exception::FileNotFound) | |
| POVRenderer (const POVRenderer &renderer) | |
| virtual | ~POVRenderer () |
| Destructor. More... | |
| virtual void | clear () |
| Clear method. More... | |
Accessors | |
| void | setFileName (const String &name) throw (Exception::FileNotFound) |
| void | setOstream (std::ostream &out_stream) |
| Set a stream as output device. More... | |
| void | setHumanReadable (bool state) |
| bool | isHumanReadable () const |
| String | POVColorRGBA (const ColorRGBA &input) |
| String | POVFinish (const String &object, const ColorRGBA &input) |
| String | POVVector3 (Vector3 input) |
| virtual bool | renderOneRepresentation (const Representation &representation) |
Processor specific methods | |
| virtual bool | init (Scene &scene) |
| virtual bool | init (const Stage &stage, float width, float height) |
| virtual bool | finish () |
| void | renderSphere_ (const Sphere &sphere) |
| Render a sphere. More... | |
| void | renderDisc_ (const Disc &disc) |
| Render a disc. More... | |
| void | renderTube_ (const Tube &tube) |
| Render a tube. More... | |
| void | renderTwoColoredTube_ (const TwoColoredTube &tube) |
| Render a tube with two colors. More... | |
| void | renderMesh_ (const Mesh &mesh) |
| Render a surface mesh. More... | |
| void | renderTwoColoredLine_ (const TwoColoredLine &line) |
| Render a line with two colors. More... | |
| void | renderLine_ (const Line &line) |
| Render a line. More... | |
| void | renderPoint_ (const Point &point) |
| Render a single point. More... | |
| void | renderLabel_ (const Label &) |
| virtual void | renderMultiLine_ (const MultiLine &line) |
| Render an illuminated line. More... | |
Public Member Functions inherited from BALL::VIEW::Renderer | |
| Renderer () | |
| Renderer (const Renderer &renderer) | |
| virtual | ~Renderer () |
| virtual void | setLights (bool reset_all=false) |
| Set the light sources according to the stage. More... | |
| virtual void | updateCamera (const Camera *camera=0) |
| virtual void | updateBackgroundColor () |
| Update the background color from the stage. More... | |
| virtual void | setupStereo (float eye_separation, float focal_length) |
| virtual void | useContinuousLoop (bool use_loop) |
| bool | isContinuous () |
| virtual Vector3 | mapViewportTo3D (Position x, Position y) |
| virtual Vector2 | map3DToViewport (const Vector3 &vec) |
| 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. More... | |
| virtual void | setSize (float width, float height) |
| Set the size of the display. More... | |
| virtual float | getWidth () const |
| virtual float | getHeight () const |
| virtual void | setPreviewMode (bool show_preview) |
| virtual void | showLightSources (bool show_light_sources) |
| virtual void | renderRuler () |
| bool | operator== (const Renderer &) const |
| virtual void | render_ (const GeometricObject *object) |
| Wrapper for the renderering of special GeometricObjects. More... | |
Public Member Functions inherited from BALL::Object | |
| Object () | |
| Default constructor. More... | |
| Object (const Object &object) | |
| Copy constructor. More... | |
| virtual | ~Object () |
| Destructor. More... | |
| const Object & | operator= (const Object &) |
| bool | operator== (const Object &object) const |
| bool | operator!= (const Object &object) const |
| bool | operator< (const Object &object) const |
| bool | operator<= (const Object &object) const |
| bool | operator>= (const Object &object) const |
| bool | operator> (const Object &object) const |
| int | compare (const Object &object) const |
| virtual bool | isValid () const |
| virtual void | dump (::std::ostream &s=std::cout, Size depth=0) const |
| Handle | getHandle () const |
Public Member Functions inherited from BALL::AutoDeletable | |
| virtual | ~AutoDeletable () |
| void * | operator new (size_t size) |
| void | operator delete (void *ptr) |
| void * | operator new (size_t size, void *ptr) |
| void | operator delete (void *ptr, void *) |
| bool | isAutoDeletable () const |
| void | setAutoDeletable (bool enable) |
Protected Types | |
| typedef HashMap< String, Size > | ColorMap |
Protected Member Functions | |
| const ColorRGBA & | getColor_ (const GeometricObject &object) |
| String | trimFloatValue_ (float value) |
| void | storeColor_ (const GeometricObject &object) |
| String | getColorIndex_ (const ColorRGBA &color) |
Protected Member Functions inherited from BALL::VIEW::Renderer | |
| virtual void | renderClippingPlane_ (const ClippingPlane &) |
| virtual void | renderBox_ (const Box &) |
| Render a box. More... | |
| virtual void | renderSimpleBox_ (const SimpleBox &) |
| Render a simple box (parallel to the axes) More... | |
| virtual void | renderGridVisualisation_ (const GridVisualisation &) |
| Render a grid. More... | |
| virtual void | renderQuadMesh_ (const QuadMesh &) |
| Render a quad mesh. More... | |
Protected Attributes | |
| std::ostream * | outfile_ |
| Vector3 | origin_ |
| Matrix4x4 | rotation_ |
| vector< ClippingPlane * > | clipping_planes_ |
| bool | human_readable_ |
| ColorMap | color_map_ |
| vector< const Representation * > | representations_ |
| HashSet< const Mesh * > | wireframes_ |
| HashSet< String > | color_strings_ |
| String | font_file_ |
| double | m_ [12] |
| Position | color_index_ |
Protected Attributes inherited from BALL::VIEW::Renderer | |
| 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_ |
Additional Inherited Members | |
Static Public Member Functions inherited from BALL::Object | |
| static Handle | getNextHandle () |
| static Handle | getNewHandle () |
Static Public Member Functions inherited from BALL::AutoDeletable | |
| static void | clearLastPtr () |
POVRenderer class. This class walks over all the geometric primitives in a Scene and exports them into a data file in the POVRay 1.5 format, which can be used to render the same scene externally.
Definition at line 39 of file POVRenderer.h.
|
protected |
Definition at line 170 of file POVRenderer.h.
| BALL::VIEW::POVRenderer::POVRenderer | ( | ) |
Default constructor.
| BALL::VIEW::POVRenderer::POVRenderer | ( | const String & | name | ) | throw (Exception::FileNotFound) |
Detailed constructor.
| name | The name of the file we will create |
| BALL::VIEW::POVRenderer::POVRenderer | ( | const POVRenderer & | renderer | ) |
|
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 |
Initialization routine.
Reimplemented from BALL::VIEW::Renderer.
|
virtual |
Start method. This method creates the file and writes the header.
Reimplemented from BALL::VIEW::Renderer.
|
inline |
Definition at line 95 of file POVRenderer.h.
Returns the corresponding BALLFinish declaration
Converts a Vector3 into a String in POVRay format.
|
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::POVRenderer::setFileName | ( | const String & | name | ) | throw (Exception::FileNotFound) |
Sets the name of the file we will create.
| name | The file name |
|
inline |
Definition at line 91 of file POVRenderer.h.
| void BALL::VIEW::POVRenderer::setOstream | ( | std::ostream & | out_stream | ) |
Set a stream as output device.
|
protected |
|
protected |
Definition at line 167 of file POVRenderer.h.
|
protected |
Definition at line 177 of file POVRenderer.h.
|
protected |
Definition at line 171 of file POVRenderer.h.
Definition at line 174 of file POVRenderer.h.
|
protected |
Definition at line 175 of file POVRenderer.h.
|
protected |
Definition at line 168 of file POVRenderer.h.
|
protected |
Definition at line 176 of file POVRenderer.h.
|
protected |
Definition at line 165 of file POVRenderer.h.
|
protected |
Definition at line 160 of file POVRenderer.h.
|
protected |
Definition at line 172 of file POVRenderer.h.
|
protected |
Definition at line 166 of file POVRenderer.h.
Definition at line 173 of file POVRenderer.h.
1.8.3.1