5#ifndef BALL_VIEW_RENDERING_RENDERERS_XML3DRENDERER_H
6#define BALL_VIEW_RENDERING_RENDERERS_XML3DRENDERER_H
8#ifndef BALL_VIEW_RENDERING_RENDERERS_RENDERER_H
12#ifndef BALL_SYSTEM_FILE_H
16#ifndef BALL_MATHS_VECTOR3_H
20#ifndef BALL_MATHS_MATRIX44_H
24#ifndef BALL_MATHS_SURFACE_H
87 virtual void setSize(
float width,
float height);
100 { human_readable_ = state;}
104 {
return human_readable_;}
141 virtual bool init(
const Stage& stage,
float width,
float height);
#define BALL_CREATE(name)
void createSphereTemplate_()
XML3DRenderer()
Default constructor.
void renderLine_(const Line &)
Render a line.
String getColorIndex_(const ColorRGBA &color)
void renderLabel_(const Label &)
XML3DRenderer(const String &name)
void renderTwoColoredTube_(const TwoColoredTube &tube)
Render a tube with two colors.
void renderSphere_(const Sphere &sphere)
Render a sphere.
String XML3DRaytracingMaterial(const Stage::Material &)
Index current_sphere_number_
String XML3DFinish(const String &object, const ColorRGBA &input)
bool isHumanReadable() const
String XML3DVector3(Vector3 input)
vector< ClippingPlane * > clipping_planes_
void storeColor_(const GeometricObject &object)
void createTubeTransform_(const TwoColoredTube &tube)
virtual void clear()
Clear method.
void setOstream(std::ostream &out_stream)
Set a stream as output device.
XML3DRenderer(const XML3DRenderer &renderer)
HashSet< String > color_strings_
void renderPoint_(const Point &)
Render a single point.
virtual bool renderOneRepresentation(const Representation &representation)
String XML3DColorRGBA(const ColorRGBA &input, const String &name)
void setFileName(const String &name)
const ColorRGBA & getColor_(const GeometricObject &object)
void renderDisc_(const Disc &)
Render a disc.
virtual bool init(Scene &scene)
XML3DRenderer(std::ostream &name)
void renderTube_(const Tube &)
Render a tube.
virtual void renderMultiLine_(const MultiLine &line)
Render an illuminated line.
HashMap< String, Size > ColorMap
HashSet< const Mesh * > wireframes_
Stage::Material rt_material_
String trimFloatValue_(float value)
vector< const Representation * > representations_
Index current_tube_number_
void renderTwoColoredLine_(const TwoColoredLine &)
Render a line with two colors.
virtual void setSize(float width, float height)
Set the size of the display.
virtual ~XML3DRenderer()
Destructor.
String XML3DString(const String &input)
virtual bool init(const Stage &stage, float width, float height)
void renderMesh_(const Mesh &mesh)
Render a surface mesh.
void setHumanReadable(bool state)