HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
OBJ_ExtractGeo.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_ExtractGeo.h (Custom Library, C++)
7  *
8  * COMMENTS: An object to fetch it's transform from another object.
9  *
10  */
11 
12 #ifndef __OBJ_ExtractGeo__
13 #define __OBJ_ExtractGeo__
14 
15 #include "OBJ_API.h"
16 #include "OBJ_Geometry.h"
17 
19 {
24 // I_EXTRACTGEOSCALE,
25 
27 };
28 
30 {
31 public:
33  const char *name,
34  OP_Operator *op);
35 
37 
38  static OP_Node *myConstructor(OP_Network *net,
39  const char *name,
40  OP_Operator *entry);
41 
42  static PRM_Template *getTemplateList();
43 
44  void SRCPATH(UT_String &str, fpreal t)
45  {
46  evalString(str, "srcpath", 0, t);
47  }
48  void DSTPATH(UT_String &str, fpreal t)
49  {
50  evalString(str, "dstpath", 0, t);
51  }
53  {
54  return evalInt("extracttranslate", 0, t);
55  }
57  {
58  return evalInt("extractrotate", 0, t);
59  }
61  {
62  return false;
63 // return evalInt("extractscale", 0, t);
64  }
65 
66 protected:
67  virtual OP_ERROR cookMyObj(OP_Context &context);
68 
69  // Used to get pointer to indirection indices for each object type
70  virtual int *getIndirect() const
71  { return extractgeoIndirect; }
72 
73  static int *extractgeoIndirect;
74 
75 };
76 #endif
77 
virtual int * getIndirect() const
UT_ErrorSeverity
Definition: UT_Error.h:25
static PRM_Template * getTemplateList(OBJ_ParmsStyle style)
bool EXTRACTTRANSLATE(fpreal t)
void DSTPATH(UT_String &str, fpreal t)
static int * extractgeoIndirect
void evalString(UT_String &val, int pi, int vi, fpreal t) const
OBJ_ExtractGeoIndex
virtual OP_ERROR cookMyObj(OP_Context &context)
GLuint const GLchar * name
Definition: glcorearb.h:785
static OP_Node * myConstructor(OP_Network *net, const char *name, OP_Operator *entry)
void SRCPATH(UT_String &str, fpreal t)
double fpreal
Definition: SYS_Types.h:269
exint evalInt(int pi, int vi, fpreal t) const
bool EXTRACTROTATE(fpreal t)
#define OBJ_API
Definition: OBJ_API.h:10
bool EXTRACTSCALE(fpreal t)