00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef WCOLOREDVERTICES_H
00026 #define WCOLOREDVERTICES_H
00027
00028 #include <map>
00029 #include <string>
00030
00031 #include "../WTransferable.h"
00032 #include "../WColor.h"
00033
00034 #include "../WExportCommon.h"
00035
00036
00037
00038
00039 class OWCOMMON_EXPORT WColoredVertices : public WTransferable
00040 {
00041 public:
00042
00043
00044
00045 WColoredVertices();
00046
00047
00048
00049
00050
00051
00052 explicit WColoredVertices( const std::map< size_t, WColor >& data );
00053
00054
00055
00056
00057 virtual ~WColoredVertices();
00058
00059
00060
00061
00062
00063
00064 virtual const std::string getName() const;
00065
00066
00067
00068
00069
00070
00071 virtual const std::string getDescription() const;
00072
00073
00074
00075
00076
00077
00078 static boost::shared_ptr< WPrototyped > getPrototype();
00079
00080
00081
00082
00083
00084
00085 const std::map< size_t, WColor >& getData() const;
00086
00087
00088
00089
00090
00091
00092 void setData( const std::map< size_t, WColor >& data );
00093
00094 protected:
00095 static boost::shared_ptr< WPrototyped > m_prototype;
00096
00097 private:
00098 std::map< size_t, WColor > m_data;
00099 };
00100
00101 inline const std::string WColoredVertices::getName() const
00102 {
00103 return "WColoredVertices";
00104 }
00105
00106 inline const std::string WColoredVertices::getDescription() const
00107 {
00108 return "Represents a std::map where for each vertex ID a color is stored.";
00109 }
00110
00111 inline const std::map< size_t, WColor >& WColoredVertices::getData() const
00112 {
00113 return m_data;
00114 }
00115
00116 inline void WColoredVertices::setData( const std::map< size_t, WColor >& data )
00117 {
00118 m_data = data;
00119 }
00120
00121 #endif // WCOLOREDVERTICES_H