HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GT_PrimSubdivisionCurves.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_PrimSubdivisionCurves.h ( GT Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GT_PrimSubdivisionCurves__
12 #define __GT_PrimSubdivisionCurves__
13 
14 #include "GT_API.h"
15 #include "GT_PrimCurveMesh.h"
16 
17 /// A bunch of subdivision curves
19 {
20 public:
22 
24  : GT_PrimCurveMesh(src) {}
25 
27  : GT_PrimCurveMesh(curve) {}
28 
30  const GT_AttributeListHandle &vattrib,
31  const GT_AttributeListHandle &uattrib,
32  const GT_AttributeListHandle &dattrib)
33  : GT_PrimCurveMesh(src, vattrib, uattrib, dattrib) {}
34 
36  const GT_AttributeListHandle &vertex,
37  const GT_AttributeListHandle &uniform,
38  const GT_AttributeListHandle &detail,
39  bool wrap)
40  : GT_PrimCurveMesh(GT_BASIS_LINEAR, vtx_counts, vertex, uniform, detail,
41  wrap) {}
42 
43  virtual ~GT_PrimSubdivisionCurves();
44 
45  virtual int getPrimitiveType() const
46  { return GT_PRIM_SUBDIVISION_CURVES; }
47  virtual const char *className() const { return "GT_PrimCurveMesh"; }
48 
49  // Refine to a GT_PrimCurveMesh of tessellated curves
50  virtual bool refine(GT_Refine &refiner,
51  const GT_RefineParms *parms) const;
52 
53 };
54 
55 #endif
56 
#define GT_API
Definition: GT_API.h:11
virtual int getPrimitiveType() const
GT_PrimSubdivisionCurves(const GT_DataArrayHandle &vtx_counts, const GT_AttributeListHandle &vertex, const GT_AttributeListHandle &uniform, const GT_AttributeListHandle &detail, bool wrap)
GT_PrimSubdivisionCurves(const GT_PrimCurve &curve)
A mesh of curves.
GT_PrimSubdivisionCurves(const GT_PrimCurveMesh &src)
virtual bool refine(GT_Refine &refiner, const GT_RefineParms *parms) const
virtual const char * className() const
GT_PrimSubdivisionCurves(const GT_PrimCurveMesh &src, const GT_AttributeListHandle &vattrib, const GT_AttributeListHandle &uattrib, const GT_AttributeListHandle &dattrib)
Processes primitives generated by refinement process.
Definition: GT_Refine.h:20
A single linear or cubic patch.
Definition: GT_PrimCurve.h:18
GLenum src
Definition: glcorearb.h:1792
A bunch of subdivision curves.