25 #ifndef WCOLOREDVERTICES_H
26 #define WCOLOREDVERTICES_H
31 #include "../WTransferable.h"
32 #include "../WColor.h"
64 virtual const std::string
getName()
const;
85 const std::map< size_t, WColor >&
getData()
const;
92 void setData(
const std::map< size_t, WColor >& data );
103 return "WColoredVertices";
108 return "Represents a std::map where for each vertex ID a color is stored.";
121 #endif // WCOLOREDVERTICES_H
std::map< size_t, WColor > m_data
stores the vertex ids and colors
const std::map< size_t, WColor > & getData() const
Reference to the data.
Represents a std::map where for each vertex ID a color is stored.
virtual ~WColoredVertices()
Cleans up this instance.
WColoredVertices()
Default constructor.
virtual const std::string getName() const
Gets the name of this prototype.
static boost::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.
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.
static boost::shared_ptr< WPrototyped > m_prototype
The prototype as singleton.