HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups 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 
36  ~OBJ_ExtractGeo() override {}
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  OP_ERROR cookMyObj(OP_Context &context) override;
68 
69  // Used to get pointer to indirection indices for each object type
70  int *getIndirect() const override
71  { return extractgeoIndirect; }
72 
73  static int *extractgeoIndirect;
74 
75 };
76 #endif
77 
~OBJ_ExtractGeo() override
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
int * getIndirect() const override
OBJ_ExtractGeoIndex
virtual OP_ERROR cookMyObj(OP_Context &context)
GLuint const GLchar * name
Definition: glcorearb.h:786
static OP_Node * myConstructor(OP_Network *net, const char *name, OP_Operator *entry)
GLdouble t
Definition: glad.h:2397
void SRCPATH(UT_String &str, fpreal t)
fpreal64 fpreal
Definition: SYS_Types.h:277
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)