HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GA_AIFEditDeltaIndexPairLegacyStream Class Referenceabstract

Interface class for loading legacy index pair delta data. More...

#include <GA_AIFEdit.h>

Public Member Functions

virtual ~GA_AIFEditDeltaIndexPairLegacyStream ()
 
virtual int getObjectCount () const =0
 
virtual int getPropertyCount () const =0
 
virtual bool getPropertyInfo (int prop_index, UT_String &name, GA_Storage &storage, int &size) const =0
 
virtual bool getPropertyDefault (int prop_index, UT_StringArray &def) const =0
 
virtual bool getPropertyDefault (int prop_index, UT_IntArray &def) const =0
 
virtual bool getPropertyDefault (int prop_index, UT_FloatArray &def) const =0
 
virtual bool getPropertyValue (int obj_index, int prop_index, UT_StringArray &value) const =0
 
virtual bool getPropertyValue (int obj_index, int prop_index, UT_IntArray &value) const =0
 
virtual bool getPropertyValue (int obj_index, int prop_index, UT_FloatArray &value) const =0
 
virtual GA_Size extractObjectDeltaCount ()=0
 
virtual bool extractObjectDelta (GA_Index &index, fpreal &delta)=0
 

Detailed Description

Interface class for loading legacy index pair delta data.

An interface class to allow a GA_AIFEditDelta implementation to load a legacy stream without specific knowledge of the stream format.

Definition at line 148 of file GA_AIFEdit.h.

Constructor & Destructor Documentation

virtual GA_AIFEditDeltaIndexPairLegacyStream::~GA_AIFEditDeltaIndexPairLegacyStream ( )
inlinevirtual

Definition at line 151 of file GA_AIFEdit.h.

Member Function Documentation

virtual bool GA_AIFEditDeltaIndexPairLegacyStream::extractObjectDelta ( GA_Index index,
fpreal delta 
)
pure virtual

Extracting a delta will consume it, so this method should be called exactly extractObjectDeltaCount() times for each object.

for (i = 0; i < stream.getObjectCount(); i++)
{
GA_Size delta_count = stream.extractObjectDeltaCount();
for (j = 0; j < delta_count; j++)
if (!stream.extractObjectDelta(delta_index, delta_data))
return error();
}
virtual GA_Size GA_AIFEditDeltaIndexPairLegacyStream::extractObjectDeltaCount ( )
pure virtual

This method should be called once per object immediately before extracting that object's deltas.

virtual int GA_AIFEditDeltaIndexPairLegacyStream::getObjectCount ( ) const
pure virtual
virtual int GA_AIFEditDeltaIndexPairLegacyStream::getPropertyCount ( ) const
pure virtual
virtual bool GA_AIFEditDeltaIndexPairLegacyStream::getPropertyDefault ( int  prop_index,
UT_StringArray def 
) const
pure virtual
virtual bool GA_AIFEditDeltaIndexPairLegacyStream::getPropertyDefault ( int  prop_index,
UT_IntArray def 
) const
pure virtual
virtual bool GA_AIFEditDeltaIndexPairLegacyStream::getPropertyDefault ( int  prop_index,
UT_FloatArray def 
) const
pure virtual
virtual bool GA_AIFEditDeltaIndexPairLegacyStream::getPropertyInfo ( int  prop_index,
UT_String name,
GA_Storage storage,
int size 
) const
pure virtual
virtual bool GA_AIFEditDeltaIndexPairLegacyStream::getPropertyValue ( int  obj_index,
int  prop_index,
UT_StringArray value 
) const
pure virtual
virtual bool GA_AIFEditDeltaIndexPairLegacyStream::getPropertyValue ( int  obj_index,
int  prop_index,
UT_IntArray value 
) const
pure virtual
virtual bool GA_AIFEditDeltaIndexPairLegacyStream::getPropertyValue ( int  obj_index,
int  prop_index,
UT_FloatArray value 
) const
pure virtual

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