Alembic Version 1.1
Loading...
Searching...
No Matches
Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::PropertyHeader Class Reference

#include <PropertyHeader.h>

Public Member Functions

 PropertyHeader ()
 
 PropertyHeader (const std::string &iName, const MetaData &iMetaData)
 
 PropertyHeader (const std::string &iName, PropertyType iPropType, const MetaData &iMetaData, const DataType &iDataType, const TimeSamplingPtr &iTsamp)
 
 PropertyHeader (const PropertyHeader &iCopy)
 
PropertyHeaderoperator= (const PropertyHeader &iCopy)
 
const std::string & getName () const
 
void setName (const std::string &iName)
 
PropertyType getPropertyType () const
 
void setPropertyType (PropertyType iPtyp)
 
bool isScalar () const
 
bool isArray () const
 
bool isCompound () const
 
bool isSimple () const
 
const MetaDatagetMetaData () const
 
void setMetaData (const MetaData &iMetaData)
 
const DataTypegetDataType () const
 
void setDataType (const DataType &iDataType)
 
TimeSamplingPtr getTimeSampling () const
 
void setTimeSampling (const TimeSamplingPtr &iTsamp)
 

Detailed Description

The PropertyHeader is a collection of MetaData which helps define a Property. It also acts as a key for getting an instance of a property from a CompoundProperty.

Definition at line 78 of file PropertyHeader.h.

Constructor & Destructor Documentation

◆ PropertyHeader() [1/4]

Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::PropertyHeader::PropertyHeader ( )
inline

Default constructor creates an invalid property. The propertyType is set to Scalar, but the dataType will be set to its default value of kUnknownPOD[1]

Definition at line 84 of file PropertyHeader.h.

◆ PropertyHeader() [2/4]

Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::PropertyHeader::PropertyHeader ( const std::string & iName,
const MetaData & iMetaData )
inlineexplicit

Construct a compound property header. Just give a name and metadata, the rest is redundant or unused.

Definition at line 93 of file PropertyHeader.h.

◆ PropertyHeader() [3/4]

Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::PropertyHeader::PropertyHeader ( const std::string & iName,
PropertyType iPropType,
const MetaData & iMetaData,
const DataType & iDataType,
const TimeSamplingPtr & iTsamp )
inline

Construct a simple property header. Use this for array or scalar properties.

Definition at line 103 of file PropertyHeader.h.

◆ PropertyHeader() [4/4]

Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::PropertyHeader::PropertyHeader ( const PropertyHeader & iCopy)
inline

Copy constructor ...

Definition at line 116 of file PropertyHeader.h.

Member Function Documentation

◆ getDataType()

◆ getMetaData()

const MetaData & Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::PropertyHeader::getMetaData ( ) const
inline

All properties have metadata. ...

Definition at line 165 of file PropertyHeader.h.

Referenced by Alembic::Abc::ALEMBIC_VERSION_NS::ISchema< INFO >::ISchema(), Alembic::Abc::ALEMBIC_VERSION_NS::ITypedArrayProperty< TRAITS >::ITypedArrayProperty(), Alembic::Abc::ALEMBIC_VERSION_NS::ITypedArrayProperty< TRAITS >::ITypedArrayProperty(), Alembic::Abc::ALEMBIC_VERSION_NS::ITypedScalarProperty< TRAITS >::ITypedScalarProperty(), Alembic::Abc::ALEMBIC_VERSION_NS::ITypedScalarProperty< TRAITS >::ITypedScalarProperty(), Alembic::Abc::ALEMBIC_VERSION_NS::OTypedScalarProperty< TRAITS >::OTypedScalarProperty(), Alembic::Abc::ALEMBIC_VERSION_NS::IBasePropertyT< PROP_PTR >::getMetaData(), Alembic::Abc::ALEMBIC_VERSION_NS::OBasePropertyT< PROP_PTR >::getMetaData(), Alembic::AbcGeom::ALEMBIC_VERSION_NS::IsGeomParam(), Alembic::Abc::ALEMBIC_VERSION_NS::ISchema< INFO >::matches(), Alembic::Abc::ALEMBIC_VERSION_NS::ITypedArrayProperty< TRAITS >::matches(), Alembic::Abc::ALEMBIC_VERSION_NS::ITypedScalarProperty< TRAITS >::matches(), Alembic::Abc::ALEMBIC_VERSION_NS::OSchema< INFO >::matches(), Alembic::Abc::ALEMBIC_VERSION_NS::OTypedArrayProperty< TRAITS >::matches(), Alembic::Abc::ALEMBIC_VERSION_NS::OTypedScalarProperty< TRAITS >::matches(), Alembic::AbcGeom::ALEMBIC_VERSION_NS::IGeomBase::matches(), Alembic::AbcGeom::ALEMBIC_VERSION_NS::ITypedGeomParam< TRAITS >::matches(), and Alembic::AbcGeom::ALEMBIC_VERSION_NS::OTypedGeomParam< TRAITS >::matches().

+ Here is the caller graph for this function:

◆ getName()

const std::string & Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::PropertyHeader::getName ( ) const
inline

All properties have a name, which is unique amongst its siblings. ...

Definition at line 137 of file PropertyHeader.h.

Referenced by Alembic::AbcGeom::ALEMBIC_VERSION_NS::ITypedGeomParam< TRAITS >::ITypedGeomParam(), Alembic::Abc::ALEMBIC_VERSION_NS::IBasePropertyT< PROP_PTR >::getName(), and Alembic::Abc::ALEMBIC_VERSION_NS::OBasePropertyT< PROP_PTR >::getName().

+ Here is the caller graph for this function:

◆ getPropertyType()

PropertyType Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::PropertyHeader::getPropertyType ( ) const
inline

All properties have a type, which is the enum defined above. ...

Definition at line 143 of file PropertyHeader.h.

Referenced by Alembic::Abc::ALEMBIC_VERSION_NS::IBasePropertyT< PROP_PTR >::getPropertyType(), and Alembic::Abc::ALEMBIC_VERSION_NS::OBasePropertyT< PROP_PTR >::getPropertyType().

+ Here is the caller graph for this function:

◆ getTimeSampling()

TimeSamplingPtr Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::PropertyHeader::getTimeSampling ( ) const
inline

Non-compound properties have time sampling If this is called for a Compound Property (basically, one which returns kCompoundProperty from getType() above) it will throw an exception.

Definition at line 181 of file PropertyHeader.h.

Referenced by Alembic::Abc::ALEMBIC_VERSION_NS::IBasePropertyT< PROP_PTR >::getTimeSampling(), and Alembic::Abc::ALEMBIC_VERSION_NS::OBasePropertyT< PROP_PTR >::getTimeSampling().

+ Here is the caller graph for this function:

◆ isArray()

◆ isCompound()

◆ isScalar()

bool Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::PropertyHeader::isScalar ( ) const
inline

◆ isSimple()

bool Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::PropertyHeader::isSimple ( ) const
inline

Convenience to return whether the property is simple (non-compound) Same as getPropertyType() != kCompoundProperty

Definition at line 161 of file PropertyHeader.h.

References isCompound().

+ Here is the call graph for this function:

◆ operator=()

PropertyHeader & Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::PropertyHeader::operator= ( const PropertyHeader & iCopy)
inline

Assignment operator ...

Definition at line 125 of file PropertyHeader.h.

◆ setDataType()

void Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::PropertyHeader::setDataType ( const DataType & iDataType)
inline

Definition at line 175 of file PropertyHeader.h.

◆ setMetaData()

void Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::PropertyHeader::setMetaData ( const MetaData & iMetaData)
inline

Definition at line 167 of file PropertyHeader.h.

◆ setName()

void Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::PropertyHeader::setName ( const std::string & iName)
inline

Definition at line 139 of file PropertyHeader.h.

◆ setPropertyType()

void Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::PropertyHeader::setPropertyType ( PropertyType iPtyp)
inline

Definition at line 145 of file PropertyHeader.h.

◆ setTimeSampling()

void Alembic::AbcCoreAbstract::ALEMBIC_VERSION_NS::PropertyHeader::setTimeSampling ( const TimeSamplingPtr & iTsamp)
inline

Definition at line 184 of file PropertyHeader.h.


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