HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GT_PrimMultiSegment.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_PrimMultiSegment.h (GT Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GT_PrimMultiSegment__
12 #define __GT_PrimMultiSegment__
13 
14 #include "GT_API.h"
15 #include "GT_Primitive.h"
16 
17 /// A primitive which contains a list of primitives for motion segments
18 /// This takes a list of primitives and creates a single primitive with
19 /// multiple segments.
21 {
22 public:
24 
25  GT_PrimMultiSegment(const PrimList &list);
27  ~GT_PrimMultiSegment() override;
28 
29  /// @{
30  /// Method defined on GT_Primitive
31  const char *className() const override;
32  void enlargeBounds(UT_BoundingBox boxes[],
33  int nsegs) const override;
35  int n) const override;
36  bool refine(GT_Refine &refiner,
37  const GT_RefineParms *parms=NULL
38  ) const override;
39  int getMotionSegments() const override;
40  int64 getMemoryUsage() const override;
41  bool save(UT_JSONWriter &w) const override;
42  GT_PrimitiveHandle doSoftCopy() const override
43  { return new GT_PrimMultiSegment(*this); }
44  /// @}
45 
46  /// Return the primitive for a given segment
47  const GT_PrimitiveHandle &prim(int i) const { return myList(i); }
48 
49 private:
50  PrimList myList;
51 };
52 
53 #endif
54 
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
UT_Array< GT_PrimitiveHandle > PrimList
Class which writes ASCII or binary JSON streams.
Definition: UT_JSONWriter.h:37
GLdouble n
Definition: glcorearb.h:2008
virtual void enlargeRenderBounds(UT_BoundingBox boxes[], int nsegments) const
long long int64
Definition: SYS_Types.h:116
GLboolean GLboolean GLboolean b
Definition: glcorearb.h:1222
The base class for all GT primitive types.
Definition: GT_Primitive.h:43
virtual int64 getMemoryUsage() const =0
GT_PrimitiveHandle doSoftCopy() const override
Processes primitives generated by refinement process.
Definition: GT_Refine.h:20
virtual bool save(UT_JSONWriter &w) const
GLubyte GLubyte GLubyte GLubyte w
Definition: glcorearb.h:857
virtual void enlargeBounds(UT_BoundingBox boxes[], int nsegments) const =0
virtual const char * className() const =0
const GT_PrimitiveHandle & prim(int i) const
Return the primitive for a given segment.
GLenum src
Definition: glcorearb.h:1793