MeVisLabToolboxReference
MeVisLab/Standard/Sources/Inventor/SoUtils/SoVectorToFloat.h
Go to the documentation of this file.
00001 #ifndef __SoVectorToFloat_H
00002 #define __SoVectorToFloat_H
00003 //----------------------------------------------------------------------------------
00004 // **InsertLicense** code
00005 //----------------------------------------------------------------------------------
00007 
00012 //----------------------------------------------------------------------------------
00013 
00014 #include "XVEnterScope.h"
00015 
00016 #include <Inventor/nodes/SoSubNode.h>
00017 #include <Inventor/nodes/SoSwitch.h>
00018 #include <Inventor/sensors/SoFieldSensor.h>
00019 #include <Inventor/fields/SoSFTrigger.h>
00020 #include <Inventor/fields/SoSFVec3f.h>
00021 #include <Inventor/fields/SoSFFloat.h>
00022 
00023 #include "XVLeaveScope.h"
00024 
00025 //=============================================================
00028 //=============================================================
00029 class SoVectorToFloat : public SoNode {
00030 
00031   SO_NODE_HEADER(SoVectorToFloat);
00032 
00033 public:
00035 
00036   SoSFVec3f vector;
00038   SoSFFloat x;
00040   SoSFFloat y;
00042   SoSFFloat z;
00044   SoSFTrigger changed;
00046 
00047   static void    initClass();
00048 
00049   SoVectorToFloat();
00050 
00052   void        vecChanged();
00053   static void vecChangedCB(void *data, SoSensor* a);
00054 
00055 private:
00056   virtual ~SoVectorToFloat();
00057 
00058   SoFieldSensor* _sensor;
00059 };
00060 
00061 #endif