MeVisLabToolboxReference
|
00001 #ifndef __SoCalculatorWrapper_H 00002 #define __SoCalculatorWrapper_H 00003 //---------------------------------------------------------------------------------- 00004 // **InsertLicense** code 00005 //---------------------------------------------------------------------------------- 00007 00012 //---------------------------------------------------------------------------------- 00013 00014 #ifndef __SoUtilsSystem_H 00015 #include "SoUtilsSystem.h" 00016 #endif 00017 #include <Inventor/engines/SoSubEngine.h> 00018 #include <Inventor/fields/SoSFFloat.h> 00019 #include <Inventor/fields/SoSFVec3f.h> 00020 00021 class SoCalculator; 00022 00023 //============================================================= 00027 00034 //============================================================= 00035 class SoCalculatorWrapper : public SoEngine { 00036 00037 SO_ENGINE_HEADER(SoCalculatorWrapper); 00038 00039 public: 00041 00043 SoSFFloat a,b,c,d,e,f,g,h; 00044 00046 SoSFVec3f va,vb,vc,vd,ve,vf,vg,vh; 00047 00049 SoSFFloat oa,ob,oc,od; 00051 SoSFVec3f ova,ovb,ovc,ovd; 00052 00054 SoSFString expression; 00055 00057 00059 static void initClass(); 00060 00062 SoCalculatorWrapper(); 00063 00065 virtual void inputChanged(SoField *whichField); 00066 00068 virtual void evaluate() {}; 00069 00070 protected: 00071 virtual ~SoCalculatorWrapper(); 00072 00073 private: 00075 SoCalculator* _calc; 00076 }; 00077 00078 #endif