00001 #ifndef IG_OPEN_INVENTOR_IG_SO_VIEWPOINT_H
00002 # define IG_OPEN_INVENTOR_IG_SO_VIEWPOINT_H
00003
00004
00005
00006 # include "Iguana/Inventor/interface/config.h"
00007 # include <Inventor/nodes/SoNode.h>
00008 # include <Inventor/nodes/SoSubNode.h>
00009 # include <Inventor/fields/SoSFVec3f.h>
00010 # include <Inventor/fields/SoSFRotation.h>
00011 # include <Inventor/fields/SoSFFloat.h>
00012 # include <Inventor/fields/SoSFEnum.h>
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifdef WIN32
00022 #include <SoWinLeaveScope.h>
00023 #endif // WIN32
00024
00025 class IG_OPEN_INVENTOR_API IgSoViewpoint : public SoNode
00026 {
00027 SO_NODE_HEADER (IgSoViewpoint);
00028 public:
00029 enum CameraType {
00030 Perspective = 1,
00031 Orthographic= 2};
00032
00033 SoSFVec3f position;
00034 SoSFRotation orientation;
00035 SoSFFloat aspectRatio;
00036 SoSFFloat focalDistance;
00037 SoSFFloat heightAngle;
00038 SoSFEnum cameraType;
00039
00040
00041 SoSFFloat nearDistance;
00042 SoSFFloat farDistance;
00043
00044 static void initClass (void);
00045
00046 IgSoViewpoint (void);
00047 };
00048 #ifdef WIN32
00049 #include <SoWinEnterScope.h>
00050 #endif // WIN32
00051
00052
00053
00054
00055 #endif // IG_OPEN_INVENTOR_IG_SO_VIEWPOINT_H