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 
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  ~GT_PrimSubdivisionCurves() override;
44 
45  int getPrimitiveType() const override
46  { return GT_PRIM_SUBDIVISION_CURVES; }
47  const char *className() const override { return "GT_PrimCurveMesh"; }
48 
49  // Refine to a GT_PrimCurveMesh of tessellated curves
50  bool refine(GT_Refine &refiner,
51  const GT_RefineParms *parms) const override;
52 
53 };
54 
55 #endif
56 
SIM_API const UT_StringHolder vertex
#define GT_API
Definition: GT_API.h:13
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)
int getPrimitiveType() const override
A mesh of curves.
GT_PrimSubdivisionCurves(const GT_PrimCurveMesh &src)
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
const char * className() const override
A single linear or cubic patch.
Definition: GT_PrimCurve.h:18
bool refine(GT_Refine &refiner, const GT_RefineParms *parms) const override
GLenum src
Definition: glcorearb.h:1793
A bunch of subdivision curves.