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 MdPredefinedColorMapping;
00034
00066 class MESHVIZXLM_DMAP_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 RAINBOW_TURBO
00101 } ;
00102
00124 SoSFEnum predefColorMap;
00125
00129 const MiColorMapping<double,SbColorRGBA>* getColorMapping();
00130
00131
00132 private:
00133 static void initClass() ;
00134 static void exitClass() ;
00135
00136 typedef std::map<MoPredefinedColorMapping::PredefColorMapping,MdPredefinedColorMapping*> PredefColorMappingMap;
00137
00138
00139 private:
00140 virtual void doAction(SoAction *action) ;
00141
00142 private:
00143 virtual ~MoPredefinedColorMapping() ;
00144
00145
00146 PredefColorMappingMap* m_predefColorMapping;
00147
00148 } ;
00149
00150 #endif
00151
00152