MeVisLabToolboxReference
MeVisLab/Standard/Sources/Inventor/SoUtils/SoMLLUTChangeColor.h
Go to the documentation of this file.
00001 #ifndef __SoMLLUTChangeColor_H
00002 #define __SoMLLUTChangeColor_H
00003 
00004 // **InsertLicense** code
00005 //-----------------------------------------------------------------------------
00007 
00013 //----------------------------------------------------------------------------------
00014 
00015 #include "SoMLLUTExtension.h"
00016 #include <mlLUTFunction.h>
00017 #include <mlLUTFColor.h>
00018 #include <mlLUTBasic.h>
00019 
00020 #include <Inventor/nodes/SoSubNode.h>
00021 #include <Inventor/fields/SoSFBool.h>
00022 #include <Inventor/fields/SoSFColor.h>
00023 #include <Inventor/fields/SoSFEnum.h>
00024 #include <Inventor/fields/SoSFFloat.h>
00025 
00027 class SoMLLUTChangeColor : public SoMLLUTExtension {
00028 
00029   SO_NODE_HEADER(SoMLLUTChangeColor);
00030 
00031 public:
00032 
00033   // Taken from mlLUTBasic (MLLUT)!
00034   enum VisualTypes {
00035     As_Input= 0,
00036     L,
00037     LA,
00038     RGB,
00039     RGBA
00040   };
00041 
00043 
00044   SoSFBool enabled;
00045 
00047   SoSFEnum visualType;
00048 
00050   SoSFColor color;
00051 
00053   SoSFFloat intensity;
00054   SoSFFloat alpha;
00055 
00057 
00058   SoMLLUTChangeColor();
00059 
00061   static void    initClass();
00062 
00064   virtual ml::LUTFunction* changeLUT(ml::LUTFunction* lut);
00065 
00066 protected:
00067   virtual ~SoMLLUTChangeColor();
00068 
00070   ml::LUTFColor _lutfColor;
00071 
00072 };
00073 
00074 #endif