CMS 3D CMS Logo

IgSoViewpoint.h

Go to the documentation of this file.
00001 #ifndef IG_OPEN_INVENTOR_IG_SO_VIEWPOINT_H
00002 # define IG_OPEN_INVENTOR_IG_SO_VIEWPOINT_H
00003 
00004 //<<<<<< INCLUDES                                                       >>>>>>
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 //<<<<<< PUBLIC DEFINES                                                 >>>>>>
00015 //<<<<<< PUBLIC CONSTANTS                                               >>>>>>
00016 //<<<<<< PUBLIC TYPES                                                   >>>>>>
00017 //<<<<<< PUBLIC VARIABLES                                               >>>>>>
00018 //<<<<<< PUBLIC FUNCTIONS                                               >>>>>>
00019 //<<<<<< CLASS DECLARATIONS                                             >>>>>>
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     // SoSFEnum         viewportMapping;
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 //<<<<<< INLINE PUBLIC FUNCTIONS                                        >>>>>>
00053 //<<<<<< INLINE MEMBER FUNCTIONS                                        >>>>>>
00054 
00055 #endif // IG_OPEN_INVENTOR_IG_SO_VIEWPOINT_H

Generated on Tue Jun 9 17:38:44 2009 for CMSSW by  doxygen 1.5.4