#include <Fabric.h>
Public Member Functions | |
bool | decRefCount () |
Returns true if the object is destroyed. | |
virtual Factory & | getFactory () const =0 |
Returns the Factory used to create this Fabric. | |
virtual uint32_t | getNumIndices () const =0 |
Returns the number of indices stored. | |
virtual uint32_t | getNumParticles () const =0 |
Returns the number of particles. | |
virtual uint32_t | getNumPhases () const =0 |
Returns the number of constraint solve phases stored. | |
virtual uint32_t | getNumRestvalues () const =0 |
Returns the number of rest lengths stored. | |
virtual uint32_t | getNumSets () const =0 |
Returns the number of sets stored. | |
virtual uint32_t | getNumStiffnessValues () const =0 |
Returns the number of constraint stiffness values stored. | |
virtual uint32_t | getNumTethers () const =0 |
Returns the number of Tethers stored. | |
virtual uint32_t | getNumTriangles () const =0 |
Returns the number of triangles that make up the cloth mesh. | |
void | incRefCount () |
virtual void | scaleRestvalues (float)=0 |
Scales all constraint rest lengths. | |
virtual void | scaleTetherLengths (float)=0 |
Scales all tether lengths. | |
Protected Member Functions | |
Fabric () | |
Fabric (const Fabric &) | |
Fabric & | operator= (const Fabric &) |
virtual | ~Fabric () |
Protected Attributes | |
int32_t | mRefCount |
nv::cloth::Fabric::Fabric | ( | const Fabric & | ) | [protected] |
nv::cloth::Fabric::Fabric | ( | ) | [inline, protected] |
virtual nv::cloth::Fabric::~Fabric | ( | ) | [inline, protected, virtual] |
bool nv::cloth::Fabric::decRefCount | ( | ) | [inline] |
Returns true if the object is destroyed.
virtual Factory& nv::cloth::Fabric::getFactory | ( | ) | const [pure virtual] |
virtual uint32_t nv::cloth::Fabric::getNumIndices | ( | ) | const [pure virtual] |
Returns the number of indices stored.
Each constraint has a pair of indices that indicate which particles it connects.
virtual uint32_t nv::cloth::Fabric::getNumParticles | ( | ) | const [pure virtual] |
Returns the number of particles.
virtual uint32_t nv::cloth::Fabric::getNumPhases | ( | ) | const [pure virtual] |
Returns the number of constraint solve phases stored.
Phases are groups of constraints that make up the general structure of the fabric. Cloth instances can have different configuration settings per phase (see Cloth::setPhaseConfig()). Phases are usually split by type (horizontal, vertical, bending, shearing), depending on the cooker used.
virtual uint32_t nv::cloth::Fabric::getNumRestvalues | ( | ) | const [pure virtual] |
Returns the number of rest lengths stored.
Each constraint uses the rest value to determine if the two connected particles need to be pulled together or pushed apart.
virtual uint32_t nv::cloth::Fabric::getNumSets | ( | ) | const [pure virtual] |
Returns the number of sets stored.
Sets connect a phase to a range of indices.
virtual uint32_t nv::cloth::Fabric::getNumStiffnessValues | ( | ) | const [pure virtual] |
Returns the number of constraint stiffness values stored.
It is optional for a Fabric to have per constraint stiffness values provided. This function will return 0 if no values are stored. Stiffness per constraint values stored here can be used if more fine grain control is required (as opposed to the values stored in the cloth's phase configuration). The Cloth 's phase configuration stiffness values will be ignored if stiffness per constraint values are used.
virtual uint32_t nv::cloth::Fabric::getNumTethers | ( | ) | const [pure virtual] |
Returns the number of Tethers stored.
virtual uint32_t nv::cloth::Fabric::getNumTriangles | ( | ) | const [pure virtual] |
Returns the number of triangles that make up the cloth mesh.
void nv::cloth::Fabric::incRefCount | ( | ) | [inline] |
virtual void nv::cloth::Fabric::scaleRestvalues | ( | float | ) | [pure virtual] |
Scales all constraint rest lengths.
virtual void nv::cloth::Fabric::scaleTetherLengths | ( | float | ) | [pure virtual] |
Scales all tether lengths.
int32_t nv::cloth::Fabric::mRefCount [protected] |