HDK
|
Class representing source capture weight data for GU_LinearSkinDeformer. More...
#include <GU_LinearSkinDeformer.h>
Public Types | |
using | CaptureElementRange = UT_IteratorRange< GU_CaptureElementArray::const_iterator > |
Public Member Functions | |
GU_LinearSkinDeformerSourceWeights () | |
int64 | getMemoryUsage (bool inclusive) const |
void | reset () |
Reset all state. More... | |
int | init (const GU_Detail &src, const GA_Range &pt_range, int max_pt_weights=0) |
const GU_Detail * | srcGdp () const |
void | setSrcGdp (const GU_Detail &src) |
bool | setRegionXformsFromGeo (const GU_Detail &rest_skel, const GA_Attribute &P, const GA_Attribute &name, const GA_Attribute &transform) |
exint | numPoints () const |
Number of points in the range given to init(). More... | |
int | numRegions () const |
Return the number of regions found by initSrc() More... | |
const UT_StringHolder & | regionName (int i) const |
const UT_Matrix4F & | regionXform (int i) const |
bool | usesRegion (int i) const |
CaptureElementRange | captureElementRange (exint ptidx) const |
Returns the range of capture elements for the given point index. More... | |
Static Public Member Functions | |
static bool | getCaptureParms (const GU_Detail &src, GA_ROAttributeRef &pcapt, GEO_AttributeCapturePath &attr_cap_path, UT_Array< UT_Matrix4F > &xforms, int &max_pt_regions) |
Static utility method to get capture parameters. More... | |
Friends | |
class | GU_LinearSkinDeformer |
Class representing source capture weight data for GU_LinearSkinDeformer.
Definition at line 156 of file GU_LinearSkinDeformer.h.
using GU_LinearSkinDeformerSourceWeights::CaptureElementRange = UT_IteratorRange<GU_CaptureElementArray::const_iterator> |
Definition at line 221 of file GU_LinearSkinDeformer.h.
GU_LinearSkinDeformerSourceWeights::GU_LinearSkinDeformerSourceWeights | ( | ) |
|
inline |
Returns the range of capture elements for the given point index.
Definition at line 247 of file GU_LinearSkinDeformer.h.
|
static |
Static utility method to get capture parameters.
int64 GU_LinearSkinDeformerSourceWeights::getMemoryUsage | ( | bool | inclusive | ) | const |
int GU_LinearSkinDeformerSourceWeights::init | ( | const GU_Detail & | src, |
const GA_Range & | pt_range, | ||
int | max_pt_weights = 0 |
||
) |
Set up from the source geometry. Returns the number of transforms required to deform using the capture weight attribute. If in error, then 0 is returned. If max_pt_weights > 0, then it will limit the number of weight entries to use per point.
|
inline |
Number of points in the range given to init().
Definition at line 191 of file GU_LinearSkinDeformer.h.
|
inline |
Return the number of regions found by initSrc()
Definition at line 194 of file GU_LinearSkinDeformer.h.
|
inline |
Return the name given the region index. init() must have been called first.
Definition at line 199 of file GU_LinearSkinDeformer.h.
|
inline |
Return the transform given the region index. init() must have been called first.
Definition at line 204 of file GU_LinearSkinDeformer.h.
void GU_LinearSkinDeformerSourceWeights::reset | ( | ) |
Reset all state.
bool GU_LinearSkinDeformerSourceWeights::setRegionXformsFromGeo | ( | const GU_Detail & | rest_skel, |
const GA_Attribute & | P, | ||
const GA_Attribute & | name, | ||
const GA_Attribute & | transform | ||
) |
Set new region transforms from point skeleton geometry with P, name, and transform. It will invert transform to match what getCaptureParms() returns.
Definition at line 178 of file GU_LinearSkinDeformer.h.
|
inline |
Definition at line 176 of file GU_LinearSkinDeformer.h.
|
inline |
Returns whether the region is referenced by at least one capture element.
Definition at line 209 of file GU_LinearSkinDeformer.h.
|
friend |
Definition at line 243 of file GU_LinearSkinDeformer.h.