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

This class provides a convenient abstraction of the contents of an index pair attribute for a single const element. More...

#include <GEO_AttributeIndexPairs.h>

Public Member Functions

 GEO_ConstAttributeIndexPairs (GA_Offset elem_off, const GA_ROAttributeRef &ref)
 
 GEO_ConstAttributeIndexPairs (GA_Offset elem_off, const GA_Attribute *attrib, const GA_AIFIndexPair *aifindexpair)
 
 ~GEO_ConstAttributeIndexPairs ()
 Destructor. More...
 
int32 getEntryIndex (int n) const
 
fpreal32 getEntryValue (int n, int component=0) const
 
void getEntry (int n, int32 &index, fpreal32 &value) const
 
void bind (GA_Offset elem_off, const GA_Attribute *attrib, const GA_AIFIndexPair *aifindexpair)
 
void bind (GA_Offset elem_off, const GA_ROAttributeRef &ref)
 

Detailed Description

This class provides a convenient abstraction of the contents of an index pair attribute for a single const element.

Warning
This is being used internally by Side Effects to simplify forward compatibility issues. The lifetime of this class is not well known and code should not rely on any methods herein.

Definition at line 149 of file GEO_AttributeIndexPairs.h.

Constructor & Destructor Documentation

GEO_ConstAttributeIndexPairs::GEO_ConstAttributeIndexPairs ( GA_Offset  elem_off,
const GA_ROAttributeRef ref 
)
inline

No Default constructor. An instance must always be bound.

Precondition
ref.isValid() == true

Definition at line 154 of file GEO_AttributeIndexPairs.h.

GEO_ConstAttributeIndexPairs::GEO_ConstAttributeIndexPairs ( GA_Offset  elem_off,
const GA_Attribute attrib,
const GA_AIFIndexPair aifindexpair 
)
inline

Definition at line 156 of file GEO_AttributeIndexPairs.h.

GEO_ConstAttributeIndexPairs::~GEO_ConstAttributeIndexPairs ( )
inline

Destructor.

Definition at line 162 of file GEO_AttributeIndexPairs.h.

Member Function Documentation

void GEO_ConstAttributeIndexPairs::bind ( GA_Offset  elem_off,
const GA_Attribute attrib,
const GA_AIFIndexPair aifindexpair 
)
inline

Bind a element

Precondition
ref.isValid() == true

Definition at line 167 of file GEO_AttributeIndexPairs.h.

void GEO_ConstAttributeIndexPairs::bind ( GA_Offset  elem_off,
const GA_ROAttributeRef ref 
)

Bind a element

Precondition
ref.isValid() == true
void GEO_ConstAttributeIndexPairs::getEntry ( int  n,
int32 index,
fpreal32 value 
) const
inline

Definition at line 179 of file GEO_AttributeIndexPairs.h.

int32 GEO_ConstAttributeIndexPairs::getEntryIndex ( int  n) const
fpreal32 GEO_ConstAttributeIndexPairs::getEntryValue ( int  n,
int  component = 0 
) const

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