HDK
|
#include <ScalarPropertyWriter.h>
Public Member Functions | |
virtual | ~ScalarPropertyWriter () |
virtual void | setSample (const void *iSamp)=0 |
virtual void | setFromPreviousSample ()=0 |
virtual size_t | getNumSamples ()=0 |
virtual void | setTimeSamplingIndex (uint32_t iIndex)=0 |
Public Member Functions inherited from Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::BasePropertyWriter | |
virtual | ~BasePropertyWriter () |
virtual const PropertyHeader & | getHeader () const =0 |
const std::string & | getName () const |
PropertyType | getPropertyType () const |
bool | isScalar () const |
bool | isArray () const |
bool | isCompound () const |
bool | isSimple () const |
const MetaData & | getMetaData () const |
const DataType & | getDataType () const |
TimeSamplingPtr | getTimeSampling () const |
virtual ObjectWriterPtr | getObject ()=0 |
virtual CompoundPropertyWriterPtr | getParent ()=0 |
virtual ScalarPropertyWriterPtr | asScalarPtr () |
virtual ArrayPropertyWriterPtr | asArrayPtr () |
virtual CompoundPropertyWriterPtr | asCompoundPtr () |
A Scalar Property is a Rank 0 property which has a single value for each sample. This is distinguished from an Array Property, which has a variable number of elements per sample, and requires more sophisticated resource management.
Definition at line 53 of file ScalarPropertyWriter.h.
|
virtual |
Virtual destructor ...
|
pure virtual |
Return the number of samples that have been written so far. This changes as samples are written.
|
pure virtual |
Simply copies the previously written sample's value. This is an important feature.
|
pure virtual |
Sets a sample.
For specifying the sample, this takes a void pointer which points to the beginning of the memory corresponding to the scalar.
For String and Wstring, the const void *iSamp is assumed to be static_castable to const std::string * and const std::wstring *, respectively.
The data passed into this function will be used or copied locally by this function, and need not live (in the calling context) outside the return scope of this function call.
|
pure virtual |
Changes the TimeSampling used by this property. If the TimeSampling is changed to Acyclic and the number of samples currently set is more than the number of times provided in the Acyclic TimeSampling, an exception will be thrown.