HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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  ~OBJ_StereoCamera() override;
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  OBJ_OBJECT_TYPE getObjectType() const override;
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  int * getIndirect() const override;
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:1011
int * getIndirect() const override
Definition: OBJ_Camera.h:92
OBJ_StereoCameraIndex
GLuint const GLchar * name
Definition: glcorearb.h:786
GLdouble t
Definition: glad.h:2397
static PRM_Template * getTemplateList(OBJ_ParmsStyle style)
fpreal64 fpreal
Definition: SYS_Types.h:277
#define OBJ_API
Definition: OBJ_API.h:10
static OP_Node * myConstructor(OP_Network *net, const char *name, OP_Operator *entry)
OBJ_OBJECT_TYPE getObjectType() const override
OBJ_OBJECT_TYPE
Definition: OBJ_Node.h:73