HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GT_PrimPlane.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_PrimPlane.h ( GT Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GT_PrimPlane__
12 #define __GT_PrimPlane__
13 
14 #include "GT_API.h"
15 #include "GT_Primitive.h"
16 #include "GT_GEOPrimCollect.h"
17 #include "GT_Transform.h"
18 
19 /// @brief A Plane Primitive
20 /// @endcode
22 {
23 public:
24  /// Default constructor
26  const GT_AttributeListHandle &attribs);
27  /// Destructor
28  ~GT_PrimPlane() override;
29 
30  const char *className() const override { return "GT_PrimPlane"; }
31 
32  GT_PrimitiveHandle doSoftCopy() const override
33  { return new GT_PrimPlane(*this); }
34 
35  GT_PrimitiveHandle doHarden() const override;
36 
37  bool refine(GT_Refine &refiner, const GT_RefineParms *parms) const override;
38 
39  /// @{
40  /// Methods defined on GT_Primitive
41  void enlargeBounds(UT_BoundingBox boxes[],
42  int nsegments) const override;
43  int getMotionSegments() const override;
44  int64 getMemoryUsage() const override;
45  /// @}
46 
47  /// @{
48  /// Methods defined on GT_Primitive
49  int getPrimitiveType() const override
50  { return GT_PRIM_PLANE; }
51  /// @}
52 
54  { return myAttribs; }
55 
56 protected:
57 
58 private:
59  GT_AttributeListHandle myAttribs;
60 };
61 
62 #endif
virtual int getMotionSegments() const =0
virtual bool refine(GT_Refine &refiner, const GT_RefineParms *parms=NULL) const
#define GT_API
Definition: GT_API.h:13
GT_PrimitiveHandle doSoftCopy() const override
Definition: GT_PrimPlane.h:32
A Plane Primitive .
Definition: GT_PrimPlane.h:21
long long int64
Definition: SYS_Types.h:116
GA_API const UT_StringHolder transform
The base class for all GT primitive types.
Definition: GT_Primitive.h:43
virtual GT_PrimitiveHandle doHarden() const
virtual int64 getMemoryUsage() const =0
Processes primitives generated by refinement process.
Definition: GT_Refine.h:20
GA_API const UT_StringHolder parms
int getPrimitiveType() const override
Definition: GT_PrimPlane.h:49
const char * className() const override
Definition: GT_PrimPlane.h:30
virtual void enlargeBounds(UT_BoundingBox boxes[], int nsegments) const =0
const GT_AttributeListHandle & getUniformAttributes() const override
Definition: GT_PrimPlane.h:53