MeVisLabToolboxReference
MeVisLab/Standard/Sources/Inventor/SoUtils/SoCameraViewAll.h
Go to the documentation of this file.
00001 // **InsertLicense** code
00002 //----------------------------------------------------------------------------------
00004 
00011 //----------------------------------------------------------------------------------
00012 
00013 #ifndef __SoCameraViewAll_H__
00014 #define __SoCameraViewAll_H__
00015 
00016 
00017 // Local includes
00018 #include "SoUtilsSystem.h"
00019 
00020 // Wrap inventor includes into XVEnterScope and XVLeaveScope to avoid
00021 // collisions between OpenInventor and Windows headers.
00022 #include "XVEnterScope.h"
00023 #include <Inventor/nodes/SoSubNode.h>
00024 #include <Inventor/nodes/SoNode.h>
00025 // include used fields
00026 #include <Inventor/fields/SoSFNode.h>
00027 #include <Inventor/fields/SoSFInt32.h>
00028 #include <Inventor/fields/SoSFTrigger.h>
00029 #include <Inventor/sensors/SoFieldSensor.h>
00030 #include "XVLeaveScope.h"
00031 
00032 
00033 
00035 class SOUTILS_EXPORT SoCameraViewAll : public SoNode
00036 {
00038   SO_NODE_HEADER(SoCameraViewAll);
00039 
00040 public:
00042   SoCameraViewAll();
00043 
00045   static void  initClass();
00046 
00048 
00049   SoSFNode inCamera;
00050 
00051   SoSFNode inScene;
00052 
00053   SoSFInt32 viewportWidth;
00054 
00055   SoSFInt32 viewportHeight;
00056 
00057   SoSFTrigger viewAll;
00058 
00060 
00061 
00062 
00063 protected:
00065   virtual            ~SoCameraViewAll();
00066 
00068   void viewAllChanged(SoFieldSensor* sensor);
00070   static void viewAllChangedCB(void *data, SoSensor* sens);
00071 
00072 
00073 private:
00074   SoFieldSensor* _viewAllSensor;
00075 
00076 };
00077 
00078 #endif // __SoCameraViewAll_H