9 #ifndef __HOM_Point_h__
10 #define __HOM_Point_h__
45 virtual int number() = 0;
50 virtual void setPosition(
const std::vector<double> &
position) = 0;
52 virtual double weight() = 0;
53 virtual void setWeight(
double weight) = 0;
59 virtual double floatAttribValue(
const char *
name) = 0;
61 virtual double floatAttribValue(
HOM_Attrib &attrib) = 0;
63 virtual std::vector<double> floatListAttribValue(
const char *
name) = 0;
65 virtual std::vector<double> floatListAttribValue(
HOM_Attrib &attrib) = 0;
67 virtual int64 intAttribValue(
const char *
name) = 0;
71 virtual std::vector<int64> intListAttribValue(
const char *
name) = 0;
73 virtual std::vector<int64> intListAttribValue(
HOM_Attrib &attrib) = 0;
79 virtual std::vector<std::string> stringListAttribValue(
const char *
name) = 0;
81 virtual std::vector<std::string> stringListAttribValue(
HOM_Attrib &attrib) = 0;
82 virtual std::map<std::string,hboost::any> dictAttribValue(
const char *
name) = 0;
83 virtual std::map<std::string,hboost::any> dictAttribValue(
HOM_Attrib &
name) = 0;
84 virtual std::vector<std::map<std::string,hboost::any> > dictListAttribValue(
const char *
name) = 0;
85 virtual std::vector<std::map<std::string,hboost::any> > dictListAttribValue(
HOM_Attrib &
name) = 0;
88 virtual void setAttribValue(
90 virtual void setAttribValue(
92 virtual void setAttribValue(
93 HOM_Attrib &attrib,
const char *attrib_value) = 0;
94 virtual void setAttribValue(
95 HOM_Attrib &attrib,
const std::vector<int64> &attrib_value) = 0;
96 virtual void setAttribValue(
97 HOM_Attrib &attrib,
const std::vector<double> &attrib_value) = 0;
98 virtual void setAttribValue(
99 HOM_Attrib &attrib,
const std::vector<std::string> &attrib_value) = 0;
100 virtual void setAttribValue(
101 HOM_Attrib &attrib,
const std::map<std::string, hboost::any> &attrib_value) = 0;
102 virtual void setAttribValue(
103 HOM_Attrib &attrib,
const std::vector<std::map<std::string,hboost::any> > &attrib_value) = 0;
105 virtual void setAttribValue(
106 const char *attrib_name,
int64 attrib_value) = 0;
107 virtual void setAttribValue(
108 const char *attrib_name,
double attrib_value) = 0;
109 virtual void setAttribValue(
110 const char *attrib_name,
const char *attrib_value) = 0;
118 virtual void setAttribValue(
119 const char *attrib_name,
const std::vector<int64> &attrib_value) = 0;
120 virtual void setAttribValue(
121 const char *attrib_name,
const std::vector<double> &attrib_value) = 0;
122 virtual void setAttribValue(
123 const char *attrib_name,
124 const std::vector<std::string> &attrib_value) = 0;
125 virtual void setAttribValue(
126 const char *attrib_name,
127 const std::map<std::string, hboost::any> &attrib_value) = 0;
128 virtual void setAttribValue(
129 const char *attrib_name,
130 const std::vector<std::map<std::string,hboost::any> > &attrib_value) = 0;
132 SWIGOUT(%newobject _getPointParent;)
133 virtual HOM_Point *_getPointParent() = 0;
135 SWIGOUT(%newobject _getPointTransform;)
138 virtual void _attribInfo(
const char *
name,
int &attr_data_type,
int &attr_size,
bool &is_array_type) = 0;
143 InterpreterObject attribValue(
const char *
name)
144 {
return HOMattribValue(*
self, name); }
146 InterpreterObject attribValue(
HOM_Attrib &attrib)
147 {
return HOMattribValue(*
self, attrib); }
151 virtual std::vector<HOM_ElemPtr<HOM_Vertex> > vertices() = 0;
152 virtual std::vector<HOM_ElemPtr<HOM_Prim> > prims() = 0;
#define HOM_DESTRUCT_OBJECT(pointer)
GLsizei const GLchar *const * string
string __repr__(VtArray< T > const &self)
virtual HOM_Geometry * geometry()=0
#define HOM_CONSTRUCT_OBJECT(pointer)
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
GLuint const GLchar * name
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
SIM_API const UT_StringHolder position
HOM_Point(const HOM_Point &)
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.