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

#include <GU_RayPrimitive.h>

+ Inheritance diagram for GU_RayHPolyInfo:

Public Types

using FloatPtrArray = UT_UniquePtr< float[]>

Public Member Functions

 GU_RayHPolyInfo (GEO_ConstPrimitiveP prim, int serialidx, const UT_Vector4Array &p, float w=0.0f)
 GU_RayHPolyInfo (GEO_ConstPrimitiveP prim, int serialidx, const UT_Array< UT_Vector3 > &p, float w=0.0f)
 ~GU_RayHPolyInfo () override
template<typename ARRAY_TYPE >
void initPoly (GEO_ConstPrimitiveP p, const ARRAY_TYPE &pts)
int intersect (const GEO_Detail &geo, const UT_Vector3 &org, const UT_Vector3 &dir, GU_RayInfo &hitinfo) override
int minimum (const GEO_Detail &geo, const UT_Vector3 &p, GU_MinInfo &mininfo) override
UT_Vector3 getNormal (const UT_Vector3 &uvw) const override
int64 getMemoryUsage (bool inclusive) const override
 Report approximate memory usage. More...
- Public Member Functions inherited from GU_RayPrimInfo
 GU_RayPrimInfo (GEO_ConstPrimitiveP prim, int serialidx)
virtual int intersectPrim (const GEO_Detail &geo, const GEO_Detail &prim_geo, GU_RayPrimInfo *prim, GU_RayInfo &hitinfo)
virtual int minimumPrim (const GEO_Detail &geo, const GEO_Detail &prim_geo, GU_RayPrimInfo *prim, GU_MinInfo &mininfo)
void bumpRefCount (int dir)
void ensureClean (const GEO_Detail &geo)
virtual void init (const GEO_Detail &geo)
primP (const GEO_Detail &geo) const

Public Attributes

int npts
FloatPtrArray xval
FloatPtrArray yval
UT_Vector3 nml
float D
int x
int y
const float myW
- Public Attributes inherited from GU_RayPrimInfo
GA_Offset myPrimOffset
UT_BoundingBox bbox
float sortValue
int mySerialIdx
SYS_AtomicCounter refCount
bool degenerate:1
volatile int myDirty

Additional Inherited Members

- Static Public Member Functions inherited from GU_RayPrimInfo
static void getXYProjection (const UT_Vector3 &nml, int &x, int &y)
- Protected Member Functions inherited from GU_RayPrimInfo
void initBBox (GEO_ConstPrimitiveP prim)
virtual ~GU_RayPrimInfo ()

Detailed Description

Definition at line 600 of file GU_RayPrimitive.h.

Member Typedef Documentation

Definition at line 643 of file GU_RayPrimitive.h.

Constructor & Destructor Documentation

GU_RayHPolyInfo::GU_RayHPolyInfo ( GEO_ConstPrimitiveP  prim,
int  serialidx,
const UT_Vector4Array p,
float  w = 0.0f 
GU_RayHPolyInfo::GU_RayHPolyInfo ( GEO_ConstPrimitiveP  prim,
int  serialidx,
const UT_Array< UT_Vector3 > &  p,
float  w = 0.0f 
GU_RayHPolyInfo::~GU_RayHPolyInfo ( )

Member Function Documentation

int64 GU_RayHPolyInfo::getMemoryUsage ( bool  inclusive) const

Report approximate memory usage.

Implements GU_RayPrimInfo.

Definition at line 632 of file GU_RayPrimitive.h.

UT_Vector3 GU_RayHPolyInfo::getNormal ( const UT_Vector3 uvw) const

Reimplemented from GU_RayPrimInfo.

Definition at line 627 of file GU_RayPrimitive.h.

template<typename ARRAY_TYPE >
void GU_RayHPolyInfo::initPoly ( GEO_ConstPrimitiveP  p,
const ARRAY_TYPE &  pts 
int GU_RayHPolyInfo::intersect ( const GEO_Detail geo,
const UT_Vector3 org,
const UT_Vector3 dir,
GU_RayInfo hitinfo 

Reimplemented from GU_RayPrimInfo.

int GU_RayHPolyInfo::minimum ( const GEO_Detail geo,
const UT_Vector3 p,
GU_MinInfo mininfo 

Reimplemented from GU_RayPrimInfo.

Member Data Documentation

float GU_RayHPolyInfo::D

Definition at line 649 of file GU_RayPrimitive.h.

const float GU_RayHPolyInfo::myW

Definition at line 651 of file GU_RayPrimitive.h.

UT_Vector3 GU_RayHPolyInfo::nml

Definition at line 648 of file GU_RayPrimitive.h.

int GU_RayHPolyInfo::npts

Definition at line 645 of file GU_RayPrimitive.h.

int GU_RayHPolyInfo::x

Definition at line 650 of file GU_RayPrimitive.h.

FloatPtrArray GU_RayHPolyInfo::xval

Definition at line 646 of file GU_RayPrimitive.h.

int GU_RayHPolyInfo::y

Definition at line 650 of file GU_RayPrimitive.h.

FloatPtrArray GU_RayHPolyInfo::yval

Definition at line 647 of file GU_RayPrimitive.h.

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