25 #ifndef WCOLOREDVERTICES_H
26 #define WCOLOREDVERTICES_H
32 #include "../WColor.h"
33 #include "../WTransferable.h"
65 virtual const std::string
getName()
const;
86 const std::map< size_t, WColor >&
getData()
const;
93 void setData(
const std::map< size_t, WColor >& data );
104 return "WColoredVertices";
109 return "Represents a std::map where for each vertex ID a color is stored.";
Represents a std::map where for each vertex ID a color is stored.
const std::map< size_t, WColor > & getData() const
Reference to the data.
virtual ~WColoredVertices()
Cleans up this instance.
virtual const std::string getName() const
Gets the name of this prototype.
std::map< size_t, WColor > m_data
stores the vertex ids and colors
static std::shared_ptr< WPrototyped > m_prototype
The prototype as singleton.
void setData(const std::map< size_t, WColor > &data)
Replace (copies) the internal data with the given one.
virtual const std::string getDescription() const
Gets the description for this prototype.
WColoredVertices()
Default constructor.
static std::shared_ptr< WPrototyped > getPrototype()
Returns a prototype instantiated with the true type of the deriving class.
Class building the interface for classes that might be transferred using WModuleConnector.