HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_ViewerHandleContext.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  * COMMENTS:
7  */
8 
9 #ifndef HOM_ViewerHandleContext_h
10 #define HOM_ViewerHandleContext_h
11 
12 #include "HOM_API.h"
13 #include "HOM_Module.h"
14 #include "HOM_ElemPtr.h"
15 #include "HOM_Vector3.h"
16 #include "HOM_GadgetContext.h"
17 #include <UT/UT_NonCopyable.h>
18 
19 SWIGOUT(%rename(ViewerHandleContext) HOM_ViewerHandleContext;)
20 SWIGOUT(%feature("notabstract") HOM_ViewerHandleContext;)
21 
23 {
24 public:
25  typedef int64 DrawH;
26 
27 #ifdef SWIG
28 %extend
29 {
31  {
32  return HOM().newViewerHandleContext(val);
33  }
34 }
35 #else
37  {
39  }
40 #endif
41 
43  {
44  HOM_DESTRUCT_OBJECT(this)
45  }
46 
47  // SWIG has problems with parsing deleted operator=()
48 #ifndef SWIG
50 #endif
51 
52  virtual std::string __repr__() = 0;
53 
54  virtual bool isParameterEnabled(std::string const & parm_name) const = 0;
55  virtual double scaleFactor(const HOM_Vector3 & ref_pos=HOM_Vector3()) = 0;
56  virtual double scaleValue() const = 0;
57  virtual double handleScaleValue(const HOM_Vector3 & ref_pos=HOM_Vector3()) = 0;
58 
59  virtual HOM_Matrix4 objectWorldTransform() const = 0;
60  virtual HOM_Matrix4 objectLocalTransform() const = 0;
61 
62  virtual void setDrawOrder(const std::vector<std::string> & drawable_names) = 0;
63  virtual void draw(DrawH handle) = 0;
64 };
65 
66 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1345
virtual HOM_ViewerHandleContext * newViewerHandleContext(int64 val)=0
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:312
#define HOM_API
Definition: HOM_API.h:13
virtual void draw()=0
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1344
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.
long long int64
Definition: SYS_Types.h:116
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
GLuint GLfloat * val
Definition: glcorearb.h:1608
HOM_API HOM_Module & HOM()