HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_AgentTransformGroup.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_AgentTransformGroup_h__
10 #define __HOM_AgentTransformGroup_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Module.h"
14 #include "HOM_PtrOrNull.h"
15 
16 class HOM_AgentRig;
17 
18 SWIGOUT(%rename(AgentTransformGroup) HOM_AgentTransformGroup;)
19 // Force SWIG to output an __init__ method even though it determines this
20 // class is abstract.
21 SWIGOUT(%feature("notabstract") HOM_AgentTransformGroup;)
22 
24 {
25 public:
26 #ifdef SWIG
27 %extend
28 {
29  HOM_AgentTransformGroup(const char *path, const HOM_AgentRig &rig,
30  bool keep_external_ref = true)
31  { return HOM().newAgentTransformGroup(path, rig, keep_external_ref); }
32 
34  const char *name, const std::vector<int> &transforms,
35  const HOM_AgentRig &rig,
36  const std::vector<double> &weights = std::vector<double>(),
37  const std::vector<int> &channels = std::vector<int>())
38  {
39  return HOM().newAgentTransformGroup(
40  name, transforms, rig, weights, channels);
41  }
42 }
43 #else
45  { HOM_CONSTRUCT_OBJECT(this) }
46 #endif
47 
49  { HOM_DESTRUCT_OBJECT(this) }
50 
51  virtual bool
53 
55  { return !operator==(group); }
56 
57  virtual int __hash__() const = 0;
58  virtual std::string __repr__() const = 0;
59 
60  virtual std::string asJSON() const = 0;
61 
62  virtual std::string name() const = 0;
63  SWIGOUT(%kwargs fileName;)
64  virtual std::string fileName(bool expanded = false) const = 0;
65 
66  virtual std::vector<int> transformIndices() const = 0;
67  virtual std::vector<double> weights() const = 0;
68 
69  virtual std::vector<int> channelIndices() const = 0;
70 };
71 
72 #endif
bool operator!=(HOM_PtrOrNull< HOM_AgentTransformGroup > group) const
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1291
virtual std::string fileName(bool expanded=false) const =0
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
GLsizei const GLchar *const * path
Definition: glcorearb.h:3341
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:352
virtual HOM_AgentTransformGroup * newAgentTransformGroup(const char *path, const HOM_AgentRig &rig, bool keep_external_ref=true)=0
#define HOM_API
Definition: HOM_API.h:13
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1290
GLuint const GLchar * name
Definition: glcorearb.h:786
virtual std::string asJSON() const =0
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
HOM_API HOM_Module & HOM()
virtual int __hash__() const =0
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
Definition: Mat3.h:542
ImageBuf OIIO_API channels(const ImageBuf &src, int nchannels, cspan< int > channelorder, cspan< float > channelvalues={}, cspan< std::string > newchannelnames={}, bool shuffle_channel_names=false, int nthreads=0)