HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GT_PrimCircleMesh.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  * NAME: GT_PrimCircleMesh.h ( GT Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GT_PrimCircleMesh__
12 #define __GT_PrimCircleMesh__
13 
14 #include "GT_API.h"
15 #include "GT_PrimCircle.h"
16 #include "GT_PrimQuadricMesh.h"
17 
19 {
20 public:
23  {}
25  : GT_PrimQuadricMesh(src)
26  {
27  }
28 
30  const GT_AttributeListHandle &detail,
31  const GT_TransformArrayHandle &xforms)
32  : GT_PrimQuadricMesh(vertex, detail, xforms)
33  {}
35  : GT_PrimQuadricMesh(circle)
36  {}
38 
39  virtual const char *className() const { return "GT_PrimCircleMesh"; }
40  virtual bool save(UT_JSONWriter &w) const
41  { return saveQuadricMesh(w, "CircleMesh"); }
43  { return new GT_PrimCircleMesh(*this); }
44  virtual GT_PrimitiveHandle doHarden() const;
45 
46  /// @{
47  /// Methods from GT_Primitive
48  virtual int getPrimitiveType() const;
49  /// @}
50 
51 protected:
52  /// @{
53  /// Methods from GT_PrimQuadricMesh
54  virtual void getQBounds(UT_BoundingBox &box) const;
57  const GT_TransformHandle &x,
58  const GT_RefineParms *parms) const;
59  /// @}
60 private:
61 };
62 
63 #endif
64 
A circle primitive.
Definition: GT_PrimCircle.h:31
virtual bool save(UT_JSONWriter &w) const
virtual GT_PrimitiveHandle makeQuadric(GT_Size index, const GT_AttributeListHandle &h, const GT_TransformHandle &x, const GT_RefineParms *parms) const =0
Sub-class method to make an individual primitive.
#define GT_API
Definition: GT_API.h:11
Class which writes ASCII or binary JSON streams.
Definition: UT_JSONWriter.h:32
virtual const char * className() const
virtual GT_PrimitiveHandle doSoftCopy() const
virtual void getQBounds(UT_BoundingBox &box) const =0
A virtual container used by sphere, circle and tube meshes.
bool saveQuadricMesh(UT_JSONWriter &w, const char *name) const
virtual GT_PrimitiveHandle doHarden() const
GLfloat GLfloat GLfloat GLfloat h
Definition: glcorearb.h:2001
GLuint index
Definition: glcorearb.h:785
GLint GLenum GLint x
Definition: glcorearb.h:408
GT_PrimCircleMesh(const GT_AttributeListHandle &vertex, const GT_AttributeListHandle &detail, const GT_TransformArrayHandle &xforms)
GLubyte GLubyte GLubyte GLubyte w
Definition: glcorearb.h:856
GT_PrimCircleMesh(const GT_PrimCircle *circle)
virtual int getPrimitiveType() const =0
int64 GT_Size
Definition: GT_Types.h:112
GT_PrimCircleMesh(const GT_PrimCircleMesh &src)
GLenum src
Definition: glcorearb.h:1792