12 #ifndef __GP_Domain_h__
13 #define __GP_Domain_h__
45 virtual int save(std::ostream &os,
int binary = 0)
const;
50 virtual void initJSONLoad();
53 const char *field_token);
58 virtual void findParent (
GP_Domain &parent)=0;
62 float ubwidth = 0,
float vbwidth = 0,
63 int ubdivs = 2,
int vbdivs = 2,
69 virtual int modifyBasis(
int (*apply)(
void *tpsurf,
void *d),
70 void *
data = 0,
int standalone = 1) = 0;
79 if (myFrames && myOwnFrames)
delete myFrames;
104 return (myFrames && myFrames->parent())
105 ? myFrames->parent()->domain() : 0;
132 int isFeature()
const {
return myFrames->parent() != 0; }
161 void updatePolygon();
GP_FrameHierarchy * frames() const
GLboolean GLboolean GLboolean b
const UT_BoundingRect & worldBRect() const
Used to pass options and map offset values during saving.
const UT_BoundingRect & worldBRect()
const GLuint GLenum const void * binary
GP_Domain * parentDomain() const
JSON reader class which handles parsing of JSON or bJSON files.
Class which writes ASCII or binary JSON streams.
GLubyte GLubyte GLubyte GLubyte w
void originalBRect(const UT_BoundingRect &brect)
bool intersect(const Line3< T > &line, const Vec3< T > &v0, const Vec3< T > &v1, const Vec3< T > &v2, Vec3< T > &pt, Vec3< T > &barycentric, bool &front)
void polygon(GP_Point &p1, GP_Point &p2, GP_Point &p3, GP_Point &p4)
GP_Domain * relative() const
GLboolean GLboolean GLboolean GLboolean a
bool OIIO_API contains(string_view a, string_view b)
Does 'a' contain the string 'b' within it?
virtual GP_Node * copy() const
bool intersects(const Box< Vec3< T > > &b, const Line3< T > &r, Vec3< T > &ip)
const UT_BoundingRect & originalBRect() const
void relative(GP_Domain *d)
void frames(GP_FrameHierarchy *f)