11 #ifndef __GT_PrimTube__
12 #define __GT_PrimTube__
35 : myTaper(
SYSmax(0.0, taper))
37 , myAttributes(attribs)
43 , myTaper(src.myTaper)
45 , myAttributes(src.myAttributes)
51 const char *
className()
const override {
return "GT_PrimTube"; }
70 myTaper =
SYSmax(0.0, taper);
72 myAttributes = attribs;
85 {
return myAttributes; }
95 {
return myAttributes; }
101 int nsegments)
const override;
virtual int getMotionSegments() const =0
virtual bool refine(GT_Refine &refiner, const GT_RefineParms *parms=NULL) const
virtual int getPrimitiveType() const
A tapered tube primitive (mapping to GEO_PrimTube)
GT_PrimTube(const GT_PrimTube &src)
Copy constructor.
Class which writes ASCII or binary JSON streams.
GT_AttributeListHandle myAttributes
const bool & getCaps() const
GT_PrimTube()
Default constructor.
const char * className() const override
GA_API const UT_StringHolder transform
The base class for all GT primitive types.
virtual GT_PrimitiveHandle doHarden() const
virtual int64 getMemoryUsage() const =0
Processes primitives generated by refinement process.
void setPrimitiveTransform(const GT_TransformHandle &x)
Set the transform for a the primitive.
GT_PrimitiveHandle doSoftCopy() const override
GT_PrimTube(const GT_AttributeListHandle &attribs, const GT_TransformHandle &transform, fpreal taper, bool caps)
Useful constructor.
virtual bool save(UT_JSONWriter &w) const
const GT_AttributeListHandle & getDetailAttributes() const override
bool init(const GT_AttributeListHandle &attribs, const GT_TransformHandle &transform, fpreal taper, bool caps)
GLubyte GLubyte GLubyte GLubyte w
const GT_AttributeListHandle & getAttributes() const
virtual void enlargeBounds(UT_BoundingBox boxes[], int nsegments) const =0
const fpreal & getTaper() const