HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
HOM_Edge.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_Edge_h__
10 #define __HOM_Edge_h__
11 
12 #include "HOM_API.h"
13 #include "HOM_Defines.h"
14 #include "HOM_Errors.h"
15 #include "HOM_Vector3.h"
16 #include "HOM_PtrOrNull.h"
17 #include <vector>
18 
19 class HOM_Geometry;
20 class HOM_Attrib;
21 class HOM_Point;
22 class HOM_Prim;
23 
25 
27 {
28 public:
30  { HOM_CONSTRUCT_OBJECT(this) }
31  HOM_Edge(const HOM_Edge &)
32  { HOM_CONSTRUCT_OBJECT(this) }
33  virtual ~HOM_Edge()
34  { HOM_DESTRUCT_OBJECT(this) }
35 
36  virtual bool operator==(HOM_PtrOrNull<HOM_Edge> edge) = 0;
37 
38  virtual bool operator!=(HOM_PtrOrNull<HOM_Edge> edge) = 0;
39 
40  virtual int __hash__() = 0;
41  virtual std::string __repr__() = 0;
42 
43  SWIGOUT(%newobject geometry;)
44  virtual HOM_Geometry *geometry() = 0;
45 
46  virtual std::vector<HOM_ElemPtr<HOM_Point> > points() = 0;
47 
48  virtual std::string edgeId() = 0;
49 
50  virtual float length() = 0;
51 
52  virtual std::vector<HOM_ElemPtr<HOM_Prim> > prims() = 0;
53 
54 };
55 
56 #endif
#define HOM_DESTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1291
virtual ~HOM_Edge()
Definition: HOM_Edge.h:33
GLdouble GLdouble GLint GLint const GLdouble * points
Definition: glad.h:2676
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
#define SWIGOUT(x)
Definition: HOM_Defines.h:24
GLuint GLsizei GLsizei * length
Definition: glcorearb.h:795
string __repr__(VtArray< T > const &self)
Definition: wrapArray.h:352
Definition: Traversal.h:29
#define HOM_API
Definition: HOM_API.h:13
virtual HOM_Geometry * geometry()=0
#define HOM_CONSTRUCT_OBJECT(pointer)
Definition: HOM_Module.h:1290
bool operator!=(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Inequality operator, does exact floating point comparisons.
Definition: Mat3.h:556
HOM_Edge()
Definition: HOM_Edge.h:29
OIIO_UTIL_API bool rename(string_view from, string_view to, std::string &err)
HOM_Edge(const HOM_Edge &)
Definition: HOM_Edge.h:31
virtual int __hash__()=0
bool operator==(const Mat3< T0 > &m0, const Mat3< T1 > &m1)
Equality operator, does exact floating point comparisons.
Definition: Mat3.h:542