Alembic Version 1.1
|
#include <CompoundPropertyWriter.h>
Public Member Functions | |
virtual | ~CompoundPropertyWriter () |
virtual size_t | getNumProperties ()=0 |
virtual const PropertyHeader & | getPropertyHeader (size_t i)=0 |
virtual const PropertyHeader * | getPropertyHeader (const std::string &iName)=0 |
BasePropertyWriterPtr | getProperty (size_t i) |
virtual BasePropertyWriterPtr | getProperty (const std::string &iName)=0 |
virtual ScalarPropertyWriterPtr | createScalarProperty (const std::string &iName, const MetaData &iMetaData, const DataType &iDataType, uint32_t iTimeSamplingIndex)=0 |
virtual ArrayPropertyWriterPtr | createArrayProperty (const std::string &iName, const MetaData &iMetaData, const DataType &iDataType, uint32_t iTimeSamplingIndex)=0 |
virtual CompoundPropertyWriterPtr | createCompoundProperty (const std::string &iName, const MetaData &iMetaData)=0 |
![]() | |
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 CompoundProperty is a group of other properties, possibly Simple or possibly Compound. Every object has at one of these.
Definition at line 51 of file CompoundPropertyWriter.h.
|
virtual |
Virtual destructor ...
|
pure virtual |
Create and return the requested array property. If a property already exists with the same name, throws. an exception. An exception will also be thrown if the DataType, or time sampling index is illegal.
|
pure virtual |
Create and return the requested compound property. If a property already exists with the same name, throws an exception.
|
pure virtual |
Create and return the requested scalar property. If a property already exists with the same name, throws an exception. An exception will also be thrown if the DataType, or time sampling index is illegal.
|
pure virtual |
Returns the number of properties that have been created thus far. May change as more are created.
|
pure virtual |
Returns an ALREADY ADDED PROPERTY by name. If it can't find one by name, it returns an empty pointer. This can also happen if the property was added, but has been closed (deleted).
BasePropertyWriterPtr Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::CompoundPropertyWriter::getProperty | ( | size_t | i | ) |
It is an error to request for a property by index out of range. This returns a property that has ALREADY BEEN ADDED. This will throw an exception on out-of-range access. There is a possibility it could return a NULL pointer, if the added property has been closed (deleted). This is just a convenience function which calls getPropertyHeader and then getProperty.
|
pure virtual |
Return the header of a property that has already been added, found by name. A typical use of this would be for an application that wants to incrementally add properties, and wishes to query whether a property of a given name has already been added, before attempting to add a new one. This will return NULL if no property of the given name has been added.
|
pure virtual |
Return the header of a property that has already been added. Property is selected by index. This will throw an exception on out-of-range access.