HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
TS_MetaSuperQuadric Class Reference

#include <TS_SuperQuad.h>

+ Inheritance diagram for TS_MetaSuperQuadric:

Public Member Functions

 TS_MetaSuperQuadric ()
 
 TS_MetaSuperQuadric (const TS_MetaSuperQuadric *)
 
 ~TS_MetaSuperQuadric () override
 
float density (const UT_Vector3 &p) const override
 
UT_Interval density (const UT_BoundingBox &p) const override
 
float grad (const UT_Vector3 &point, UT_Vector3 &grad) const override
 
int setRay (const TS_Ray &ray) override
 
float rayDensity (float t) const override
 
UT_Interval rayDensity (const UT_Interval &t) const override
 
void transform (const UT_Matrix4 &) override
 
TS_MetaExpressionduplicate () const override
 
void setXYexp (float arg)
 
float getXYexp () const
 
void setZexp (float arg)
 
float getZexp () const
 
void init () override
 
void reset () override
 
int64 getMemoryUsage (bool inclusive) const override
 
- Public Member Functions inherited from TS_MetaPrimitive
 ~TS_MetaPrimitive () override
 
const TS_MetaPrimitiveisPrimitive () const override
 
TS_MetaPrimitiveisPrimitive () override
 
virtual void setWeight (float)
 
virtual float getWeight () const
 
const UT_BoundingBoxgetBBox () const
 
UT_Interval getBBox (UT_BoundingBox &) const override
 
virtual void setKernel (const TS_MetaKernel &)
 
void raySweepInit (const TS_Ray &ray, float clip, float &t0, float &t1) override
 
TS_MetaExpressionprune (const UT_BoundingBox &, UT_Interval &) override
 
void setGeoPrimPtr (const GEO_Primitive *g)
 
const GEO_PrimitivegetGeoPrimPtr () const
 
float listDensity (const UT_Vector3 &p, UT_ValArray< TS_MetaPrimitive * > &) override
 
void getAllPrimitives (UT_Array< TS_MetaPrimitive * > &prims) override
 
- Public Member Functions inherited from TS_MetaExpression
 TS_MetaExpression ()
 
virtual ~TS_MetaExpression ()
 
virtual TS_MetaSumisSum ()
 
virtual TS_MetaMinisMin ()
 
virtual TS_MetaMaxisMax ()
 
virtual void raySweepComplete ()
 
virtual int rayIntersect (const TS_Ray &ray, const UT_Interval &start, float &result, float tol=-1.0f)
 
virtual int rayIntersect (const TS_Ray &ray, const UT_Interval &start, UT_FloatArray &result, float tol=-1.0f)
 
const UT_BoundingBoxgetBBox () const
 
virtual TS_SweepNodeallocSweepNode (const TS_Ray &ray)
 
virtual const TS_ExpressionListgetAllKids () const
 
const TS_ExpressionListgetCellPrimitives (const UT_Vector3 &pos)
 
TS_OctreegetOctree ()
 
void setOctreeIndex (int idx)
 
int getOctreeIndex () const
 
virtual int getRibOpcode () const
 
virtual TS_SerialOp getOpCode () const
 Return the serialization operation. More...
 
int getThreadNum () const
 
virtual void setThreadNum (int thread_num)
 
virtual void countMemory (UT_MemoryCounter &counter, bool inclusive) const
 
- Public Member Functions inherited from UT_IntrusiveRefCounter< TS_MetaExpression >
SYS_FORCE_INLINE UT_IntrusiveRefCounter () noexcept
 Default constructor: Sets counter to 0. More...
 
SYS_FORCE_INLINE UT_IntrusiveRefCounter (const UT_IntrusiveRefCounter &) noexcept
 Copy constructor: Sets counter to 0. More...
 
UT_IntrusiveRefCounteroperator= (const UT_IntrusiveRefCounter &) noexcept
 Assignment operator: Does not modify counter. More...
 
SYS_FORCE_INLINE uint32 use_count () const noexcept
 Return current counter. More...
 
SYS_FORCE_INLINE bool conditionalAddRef () noexcept
 

Additional Inherited Members

- Static Public Member Functions inherited from TS_MetaExpression
static void setupThreads (int num_threads)
 
- Public Attributes inherited from TS_MetaPrimitive
int myRayIndex
 
int myOctreeRayIndex
 
int myRenderSerial
 
- Public Attributes inherited from TS_MetaExpression
int myThreadNum
 
- Protected Member Functions inherited from TS_MetaPrimitive
 TS_MetaPrimitive ()
 
 TS_MetaPrimitive (const TS_MetaPrimitive *)
 
- Protected Member Functions inherited from TS_MetaExpression
void clearOctree ()
 
virtual void buildOctree ()
 
- Protected Member Functions inherited from UT_IntrusiveRefCounter< TS_MetaExpression >
SYS_FORCE_INLINE ~UT_IntrusiveRefCounter ()
 Destructor: Only derived classes can destruct this. More...
 
- Protected Attributes inherited from TS_MetaPrimitive
float myWeight
 
TS_MetaKernel myKernel
 
- Protected Attributes inherited from TS_MetaExpression
TS_OctreemyOctree
 
UT_BoundingBox myBBox
 
int myRayIndex
 
int myOctreeRayIndex
 

Detailed Description

Definition at line 20 of file TS_SuperQuad.h.

Constructor & Destructor Documentation

TS_MetaSuperQuadric::TS_MetaSuperQuadric ( )
TS_MetaSuperQuadric::TS_MetaSuperQuadric ( const TS_MetaSuperQuadric )
TS_MetaSuperQuadric::~TS_MetaSuperQuadric ( )
override

Member Function Documentation

float TS_MetaSuperQuadric::density ( const UT_Vector3 p) const
overridevirtual

Implements TS_MetaExpression.

UT_Interval TS_MetaSuperQuadric::density ( const UT_BoundingBox p) const
overridevirtual

Implements TS_MetaExpression.

TS_MetaExpression* TS_MetaSuperQuadric::duplicate ( ) const
overridevirtual

Implements TS_MetaExpression.

int64 TS_MetaSuperQuadric::getMemoryUsage ( bool  inclusive) const
overridevirtual

Compute memory usage (includes all shared memory) NOTE: Must add in TS_MetaExpression::getMemoryUsage(false).

Implements TS_MetaPrimitive.

float TS_MetaSuperQuadric::getXYexp ( ) const
float TS_MetaSuperQuadric::getZexp ( ) const
float TS_MetaSuperQuadric::grad ( const UT_Vector3 point,
UT_Vector3 grad 
) const
overridevirtual

Implements TS_MetaExpression.

void TS_MetaSuperQuadric::init ( )
overridevirtual

Implements TS_MetaPrimitive.

float TS_MetaSuperQuadric::rayDensity ( float  t) const
overridevirtual

Implements TS_MetaExpression.

UT_Interval TS_MetaSuperQuadric::rayDensity ( const UT_Interval t) const
overridevirtual

Implements TS_MetaExpression.

void TS_MetaSuperQuadric::reset ( )
overridevirtual

Reimplemented from TS_MetaPrimitive.

int TS_MetaSuperQuadric::setRay ( const TS_Ray ray)
overridevirtual

Implements TS_MetaExpression.

void TS_MetaSuperQuadric::setXYexp ( float  arg)
void TS_MetaSuperQuadric::setZexp ( float  arg)
void TS_MetaSuperQuadric::transform ( const UT_Matrix4 )
overridevirtual

Implements TS_MetaPrimitive.


The documentation for this class was generated from the following file: