OpenWalnut
1.2.5
|
Represents a std::map where for each vertex ID a color is stored. More...
#include <WColoredVertices.h>
Public Member Functions | |
WColoredVertices () | |
Default constructor. | |
WColoredVertices (const std::map< size_t, WColor > &data) | |
Initialize this with the given map. | |
virtual | ~WColoredVertices () |
Cleans up this instance. | |
virtual const std::string | getName () const |
Gets the name of this prototype. | |
virtual const std::string | getDescription () const |
Gets the description for this prototype. | |
const std::map< size_t, WColor > & | getData () const |
Reference to the data. | |
void | setData (const std::map< size_t, WColor > &data) |
Replace (copies) the internal data with the given one. | |
![]() | |
WTransferable () | |
Default constructor. | |
virtual | ~WTransferable () |
Destructor. | |
![]() | |
WPrototyped () | |
Default constructor. | |
virtual | ~WPrototyped () |
Destructor. | |
template<typename T > | |
bool | isA () |
Checks whether the actual prototype has the specified runtime type. |
Static Public Member Functions | |
static boost::shared_ptr < WPrototyped > | getPrototype () |
Returns a prototype instantiated with the true type of the deriving class. |
Static Protected Attributes | |
static boost::shared_ptr < WPrototyped > | m_prototype = boost::shared_ptr< WPrototyped >() |
The prototype as singleton. |
Private Attributes | |
std::map< size_t, WColor > | m_data |
stores the vertex ids and colors |
Represents a std::map where for each vertex ID a color is stored.
Definition at line 39 of file WColoredVertices.h.
WColoredVertices::WColoredVertices | ( | ) |
Default constructor.
Definition at line 43 of file WColoredVertices.cpp.
Referenced by getPrototype().
|
explicit |
Initialize this with the given map.
data | The map |
Definition at line 47 of file WColoredVertices.cpp.
|
virtual |
Cleans up this instance.
Definition at line 52 of file WColoredVertices.cpp.
|
inline |
Reference to the data.
Definition at line 111 of file WColoredVertices.h.
References m_data.
Referenced by wge::convertToOsgGeometry().
|
inlinevirtual |
Gets the description for this prototype.
Implements WPrototyped.
Definition at line 106 of file WColoredVertices.h.
|
inlinevirtual |
Gets the name of this prototype.
Implements WPrototyped.
Definition at line 101 of file WColoredVertices.h.
|
static |
Returns a prototype instantiated with the true type of the deriving class.
Definition at line 34 of file WColoredVertices.cpp.
References m_prototype, and WColoredVertices().
|
inline |
Replace (copies) the internal data with the given one.
data | The ID-Color map |
Definition at line 116 of file WColoredVertices.h.
References m_data.
|
private |
stores the vertex ids and colors
Definition at line 98 of file WColoredVertices.h.
|
staticprotected |
The prototype as singleton.
Definition at line 95 of file WColoredVertices.h.
Referenced by getPrototype().