HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OBJ_StereoCamera.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: OBJ_StereoCamera.h ( OBJ Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __OBJ_StereoCamera__
12 #define __OBJ_StereoCamera__
13 
14 #include "OBJ_API.h"
15 #include "OBJ_Camera.h"
16 
18 {
21 
22  I_N_STEREOCAM_INDICES // should always be last in the list
23 };
24 
25 
27 {
28 public:
29  // constructor and destructor.
30  OBJ_StereoCamera(OP_Network *, const char *, OP_Operator *);
31  virtual ~OBJ_StereoCamera();
32 
33  // node factory
34  static OP_Node *myConstructor(OP_Network *net,
35  const char *name,
36  OP_Operator *entry);
37 
38  // a few standard methods for OBJs
39  static PRM_Template *getTemplateList();
40  virtual OBJ_OBJECT_TYPE getObjectType() const;
42 
43  // Utility methods that obtain left and right camera objects
44  OBJ_Node * getLeftCamera( fpreal t );
45  OBJ_Node * getRightCamera( fpreal t );
46 
47 protected:
48  // Used to get pointer to indirection indices for each object type
49  virtual int * getIndirect() const;
50 
51 private:
52  // the parameter index indirection (lookup table)
53  static int *theStereoCameraIndirect;
54 };
55 
56 #endif
virtual OBJ_StereoCamera * castToOBJStereoCamera()
Definition: OBJ_Node.h:993
OBJ_StereoCameraIndex
virtual OBJ_OBJECT_TYPE getObjectType() const
GLuint const GLchar * name
Definition: glcorearb.h:785
double fpreal
Definition: SYS_Types.h:269
static PRM_Template * getTemplateList(OBJ_ParmsStyle style)
#define OBJ_API
Definition: OBJ_API.h:10
static OP_Node * myConstructor(OP_Network *net, const char *name, OP_Operator *entry)
virtual int * getIndirect() const
Definition: OBJ_Camera.h:90
OBJ_OBJECT_TYPE
Definition: OBJ_Node.h:70