HDK
|
A handle to simplify manipulation of multiple attributes. More...
#include <GA_AttributeRefMapDestHandle.h>
A handle to simplify manipulation of multiple attributes.
The GA_AttributeRefMapDestHandle class simplifies interaction with a GA_AttributeRefMap by tracking the current destination element.
When performing operations on object elements, all attribute classes which are uniquely identified by the owner of the object will be operated on. For example, when operating on a vertex, it is possible to uniquely identify a point object. Thus, when add()
is called, vertex and point attributes on the source detail will be processed. When add()
is called with the owner set to GA_ATTRIB_POINT, there may be multiple vertices which share the point. So, only point attributes will be processed.
This can be summarized by:
GA_AttributeRefMapDestHandlePoint:
GA_AttributeRefMapDestHandleVertex()
: GA_AttributeRefMapDestHandlePrimitive()
: GA_AttributeRefMapDestHandleGlobal()
: The same semantics are used when setting an element on the handle. If setPrimitive()
is called, destination primitive and global attributes will be modified.
By default, operations on "P" are performed as with any other attribute. However, it's possible to turn on the homogeneous flag which will ensure that operations are done using homogeneous coordinates.
Definition at line 61 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Minimal constructor.
Definition at line 70 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Copy constructor.
Definition at line 75 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Destructor.
Definition at line 78 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Add operation:
This is the generic add operation
Definition at line 136 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Add a value into the weighted sum. This advances the weighted sum with the weight given.
Definition at line 194 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Standard operations read the source and write to the destination. However. These operations operate by reading and writing the destination.
Definition at line 270 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Standard operations read the source and write to the destination. However. These operations operate by reading and writing the destination.
Definition at line 282 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Definition at line 201 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Standard operations read the source and write to the destination. However. These operations operate by reading and writing the destination.
Definition at line 288 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Compute barycentric coordinates for 3 values
Definition at line 211 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Compute bilinear interpolation over 4 values of a quadrilateral. The math is the same as SYSbilerp():
Definition at line 227 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Copy operation:
This is the generic copy operation
Definition at line 113 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Standard operations read the source and write to the destination. However. These operations operate by reading and writing the destination.
Definition at line 267 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Copy operations:
Sets any attributes that read the position attribute to an explicit value.
Definition at line 120 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Copy operations:
Sets any attributes that read the position attribute to an explicit value.
Definition at line 122 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Copy operations:
Sets any attributes that read the position attribute to an explicit value.
Definition at line 124 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Copy operations:
Sets any attributes that read the position attribute to an explicit value.
Definition at line 126 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Copy operations:
Sets any attributes that read the position attribute to an explicit value.
Definition at line 128 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Copy operations:
Sets any attributes that read the position attribute to an explicit value.
Definition at line 130 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Dehomogenize any rational attributes of the current element.
Definition at line 108 of file GA_AttributeRefMapDestHandle.h.
void GA_AttributeRefMapDestHandle< DOwner >::dump | ( | const char * | msg, |
... | |||
) | const |
Debug statement to dump all the attributes to stdout.
|
inline |
Return the number of attributes in the list.
Definition at line 82 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Return the number of attributes in the list that are paired with the source being P.
Definition at line 87 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Weighted sum operation:
Definition at line 187 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Weighted sum operation:
Definition at line 184 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Homogenize any rational attributes of the current element.
Definition at line 105 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Compare value with another elements
Definition at line 258 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Compare value with another elements
Definition at line 256 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Linear interpolation operation:
Generic linear interpolation between two of the same elements
Definition at line 158 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Standard operations read the source and write to the destination. However. These operations operate by reading and writing the destination.
Definition at line 276 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Definition at line 160 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Mul operation:
This is the generic mul operation
Definition at line 151 of file GA_AttributeRefMapDestHandle.h.
|
inline |
|
inline |
Set the destination element. Operations will write to the element specified.
Only attributes which are fully qualified by the element will be operated on.
Definition at line 100 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Weighted sum operation:
Definition at line 182 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Weighted sum operation:
Definition at line 180 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Sub operation:
This is the generic sub operation
Definition at line 144 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Standard operations read the source and write to the destination. However. These operations operate by reading and writing the destination.
Definition at line 273 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Transform attributes. This uses tags on the attribute to determine how to perform the transform.
m | The transform matrix |
im | The inverse of (i.e. m.invert(im) ) Transforms are independent of the source geometry. |
Definition at line 248 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Transform attributes. This uses tags on the attribute to determine how to perform the transform.
m | The transform matrix |
im | The inverse of (i.e. m.invert(im) ) Transforms are independent of the source geometry. |
Definition at line 250 of file GA_AttributeRefMapDestHandle.h.
|
inline |
Zero an attribute. This is equivalent to a weighted sum of 0 elements.
Definition at line 236 of file GA_AttributeRefMapDestHandle.h.