![]() |
OpenWalnut
1.5.0dev
|
Represents a std::map where for each vertex ID a color is stored. More...
#include <WColoredVertices.h>
Inheritance diagram for WColoredVertices:
Collaboration diagram for WColoredVertices:Public Member Functions | |
| WColoredVertices () | |
| Default constructor. More... | |
| WColoredVertices (const std::map< size_t, WColor > &data) | |
| Initialize this with the given map. More... | |
| virtual | ~WColoredVertices () |
| Cleans up this instance. More... | |
| virtual const std::string | getName () const |
| Gets the name of this prototype. More... | |
| virtual const std::string | getDescription () const |
| Gets the description for this prototype. More... | |
| const std::map< size_t, WColor > & | getData () const |
| Reference to the data. More... | |
| void | setData (const std::map< size_t, WColor > &data) |
| Replace (copies) the internal data with the given one. More... | |
Public Member Functions inherited from WTransferable | |
| WTransferable () | |
| Default constructor. More... | |
| virtual | ~WTransferable () |
| Destructor. More... | |
Public Member Functions inherited from WPrototyped | |
| WPrototyped () | |
| Default constructor. More... | |
| virtual | ~WPrototyped () |
| Destructor. More... | |
| template<typename T > | |
| bool | isA () |
| Checks whether the actual prototype has the specified runtime type. More... | |
Static Public Member Functions | |
| static std::shared_ptr< WPrototyped > | getPrototype () |
| Returns a prototype instantiated with the true type of the deriving class. More... | |
Static Protected Attributes | |
| static std::shared_ptr< WPrototyped > | m_prototype = std::shared_ptr< WPrototyped >() |
| The prototype as singleton. More... | |
Private Attributes | |
| std::map< size_t, WColor > | m_data |
| stores the vertex ids and colors More... | |
Represents a std::map where for each vertex ID a color is stored.
Definition at line 40 of file WColoredVertices.h.
| WColoredVertices::WColoredVertices | ( | ) |
Default constructor.
Definition at line 43 of file WColoredVertices.cpp.
Referenced by getPrototype().
Here is the caller graph for this function:
|
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 112 of file WColoredVertices.h.
References m_data.
Referenced by wge::convertToOsgGeometry().
Here is the caller graph for this function:
|
inlinevirtual |
Gets the description for this prototype.
Implements WPrototyped.
Definition at line 107 of file WColoredVertices.h.
|
inlinevirtual |
Gets the name of this prototype.
Implements WPrototyped.
Definition at line 102 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().
Here is the call graph for this function:
|
inline |
Replace (copies) the internal data with the given one.
| data | The ID-Color map |
Definition at line 117 of file WColoredVertices.h.
References m_data.
|
private |
stores the vertex ids and colors
Definition at line 99 of file WColoredVertices.h.
|
staticprotected |
The prototype as singleton.
Definition at line 96 of file WColoredVertices.h.
Referenced by getPrototype().