DD::Image::AttribContext Class Reference

List of all members.

Public Member Functions

bool empty () const
bool not_empty () const
void * array (const unsigned *indices) const
float & flt (const unsigned *indices) const
Vector2vector2 (const unsigned *indices) const
Vector3vector3 (const unsigned *indices) const
Vector4vector4 (const unsigned *indices) const
Vector3normal (const unsigned *indices) const
int & integer (const unsigned *indices) const
char *& string (const unsigned *indices) const
std::string & stdstring (const unsigned *indices) const
void *& pointer (const unsigned *indices) const
Matrix3matrix3 (const unsigned *indices) const
Matrix4matrix4 (const unsigned *indices) const
void copy_to_channels (const unsigned *indices, VArray &out) const
void print_info () const

Public Attributes

GroupType group
 Geometry group attribute is associated with.
const char * name
 Attribute name - should be a NYI dictionary reference!!
AttribType type
 Attribute type - should be a NYI dictionary reference!!
AttributePtr attribute
 The allocation.
unsigned channel
 Starting channel in a packed float array.
bool varying
 Whether the attribute should be interpolated.
bool recursive
 Whether the attribute should be recursed.

Detailed Description

Attribute reference class.


Member Function Documentation

void AttribContext::copy_to_channels ( const unsigned *  indices,
VArray out 
) const

Copy the float data from the attribute to a VArray structure.

References attribute, channel, and group.

void AttribContext::print_info ( ) const

Print some information about the reference to stdout.

References attribute, channel, group, DD::Image::group_names, name, and recursive.