00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef _MO_PREDEFINEDCOLORMAPPING_
00025 #define _MO_PREDEFINEDCOLORMAPPING_
00026
00027 #include <Inventor/fields/SoMFVec4f.h>
00028
00029 #include <MeshVizXLM/mapping/MoMeshVizDataMapping.h>
00030 #include <MeshVizXLM/mapping/nodes/MoColorMapping.h>
00031 #include <MeshVizXLM/mapping/interfaces/MiColorMapping.h>
00032
00033 class MbPredefinedColorMapping;
00034
00066 class MESHIVIZDM_API MoPredefinedColorMapping : public MoColorMapping {
00067
00068 SO_NODE_HEADER(MoPredefinedColorMapping) ;
00069
00070 public:
00071
00075 MoPredefinedColorMapping() ;
00076
00078
00082 SoSFFloat minValue;
00083 SoSFFloat maxValue;
00085
00089 enum PredefColorMapping{
00090 NONE,
00091 GREY,
00092 TEMPERATURE,
00093 PHYSICS,
00094 STANDARD,
00095 GLOW,
00096 BLUE_RED,
00097 SEISMIC,
00098 BLUE_WHITE_RED,
00099 INTENSITY
00100 } ;
00101
00122 SoSFEnum predefColorMap;
00123
00127 const MiColorMapping<double,SbColorRGBA>* getColorMapping();
00128
00129
00130 private:
00131 static void initClass() ;
00132 static void exitClass() ;
00133
00134 typedef std::map<MoPredefinedColorMapping::PredefColorMapping,MbPredefinedColorMapping*> PredefColorMappingMap;
00135
00136
00137 private:
00138 virtual void doAction(SoAction *action) ;
00139
00140 private:
00141 virtual ~MoPredefinedColorMapping() ;
00142
00143
00144 PredefColorMappingMap* m_predefColorMapping;
00145
00146 } ;
00147
00148 #endif
00149
00150