12#ifndef POINTMARKERHELPER_H_6014714286
13#define POINTMARKERHELPER_H_6014714286
15#include <Carna/Carna.h>
66 const std::unique_ptr< Details > pimpl;
73 const static unsigned int DEFAULT_POINT_SIZE = 6;
79 (
unsigned int geometryType
80 ,
unsigned int pointSize = DEFAULT_POINT_SIZE );
85 (
unsigned int geometryType
86 ,
unsigned int meshRole
87 ,
unsigned int materialRole
88 ,
unsigned int pointSize = DEFAULT_POINT_SIZE );
Represents a color. Objects from this class are copyable and assignable.
Defines scene graph leafs. Instances of this class represent visible geometry that can be rendered....
Simplifies the creation and maintenance of point markers.
base::Geometry * createPointMarker(const base::Color &color) const
Creates new point marker of preferred pixel size with color. This method creates a new material each ...
~PointMarkerHelper()
Releases all previously acquired materials.
const unsigned int pointSize
Holds the preferred pixel size of the markers.
const unsigned int meshRole
Holds the role used to attach the mesh to the markers.
PointMarkerHelper(unsigned int geometryType, unsigned int pointSize=DEFAULT_POINT_SIZE)
Instantiates.
void releaseGeometryFeatures()
Releases all previously acquired materials. Invoke this method when it is sure that no further marker...
base::Geometry * createPointMarker() const
Creates new point marker of preferred pixel size, colored differently than the last point marker crea...
PointMarkerHelper(unsigned int geometryType, unsigned int meshRole, unsigned int materialRole, unsigned int pointSize=DEFAULT_POINT_SIZE)
static void resetDefaultColor()
Resets the color that the next invocation to the argument-less version of createPointMarker uses.
const unsigned int materialRole
Holds the role used to attach the material to the markers.
const unsigned int geometryType
Holds the markers' geometry type.
base::Geometry * createPointMarker(unsigned int pointSize) const
Creates new point marker of pointSize colored differently than the last point marker created by any P...
base::Geometry * createPointMarker(const base::Color &color, unsigned int pointSize) const
Creates new point marker of pointSize with color. This method creates a new material each time it is ...
#define NON_COPYABLE
Features class it is placed in as non-copyable.