Loading...
Searching...
No Matches
OCurves.h
Go to the documentation of this file.
//-*****************************************************************************
//
// Copyright (c) 2009-2013,
// Sony Pictures Imageworks, Inc. and
// Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
//
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Sony Pictures Imageworks, nor
// Industrial Light & Magic nor the names of their contributors may be used
// to endorse or promote products derived from this software without specific
// prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
//-*****************************************************************************
#ifndef Alembic_AbcGeom_OCurves_h
#define Alembic_AbcGeom_OCurves_h
#include <Alembic/Util/Export.h>
#include <Alembic/AbcGeom/Foundation.h>
#include <Alembic/AbcGeom/Basis.h>
#include <Alembic/AbcGeom/CurveType.h>
#include <Alembic/AbcGeom/SchemaInfoDeclarations.h>
#include <Alembic/AbcGeom/OGeomParam.h>
#include <Alembic/AbcGeom/OGeomBase.h>
namespace Alembic {
namespace AbcGeom {
namespace ALEMBIC_VERSION_NS {
//-*****************************************************************************
// Curves definition - Similar in form to the Geometric primitive used to
// specify curves in renderman.
// "type" - linear or cubic, one type for all curves
// "wrap" - periodic or nonperiodic, one mode for all curves
// ---
// "P" - vertexes for the curves being written
// "width" - can be constant or can vary
// "N" - (just like PolyMesh, via a geom parameter) Normals
// "uv" - (just like PolyMesh, via a geom parameter) u-v coordinates
class ALEMBIC_EXPORT OCurvesSchema : public OGeomBaseSchema<CurvesSchemaInfo>
{
public:
//-*************************************************************************
// CURVE SCHEMA SAMPLE TYPE
//-*************************************************************************
class Sample
{
public:
Sample()
{
// even though this might not be written out
// (unless curvesNumVertices and points is set) give some reasonable
// and predictable defaults
reset();
m_type = kCubic;
m_wrap = kNonPeriodic;
m_basis = kBezierBasis;
}
Sample( const Abc::P3fArraySample &iPos )
: m_positions( iPos )
{
// even though this might not be written out
// (unless curvesNumVertices is set) give some reasonable
// and predictable defaults
m_type = kCubic;
m_wrap = kNonPeriodic;
m_basis = kBezierBasis;
}
Sample(
const Abc::P3fArraySample &iPos,
const Abc::Int32ArraySample &iNVertices,
const CurveType &iType = kCubic,
const CurvePeriodicity iWrap = kNonPeriodic,
const OFloatGeomParam::Sample &iWidths = \
OFloatGeomParam::Sample(),
const OV2fGeomParam::Sample &iUVs = OV2fGeomParam::Sample(),
const ON3fGeomParam::Sample &iNormals = ON3fGeomParam::Sample(),
const BasisType &iBasis = kBezierBasis,
const Abc::FloatArraySample &iPosWeight = \
Abc::FloatArraySample(),
const Abc::UcharArraySample &iOrders = Abc::UcharArraySample(),
const Abc::FloatArraySample &iKnots = Abc::FloatArraySample()
): m_positions( iPos ),
m_nVertices( iNVertices ),
m_type( iType ),
m_wrap( iWrap ),
m_widths( iWidths ),
m_uvs( iUVs ),
m_normals( iNormals ),
m_basis( iBasis ),
m_positionWeights( iPosWeight ),
m_orders( iOrders ),
m_knots( iKnots ) {}
// widths accessor
const OFloatGeomParam::Sample &getWidths() const { return m_widths; }
void setWidths( const OFloatGeomParam::Sample &iWidths )
{ m_widths = iWidths; }
// positions accessor
const Abc::P3fArraySample &getPositions() const { return m_positions; }
void setPositions( const Abc::P3fArraySample &iSmp )
{ m_positions = iSmp; }
// position weights, if it isn't set, it's 1 for every point
const Abc::FloatArraySample &getPositionWeights() const
{ return m_positionWeights; }
void setPositionWeights( const Abc::FloatArraySample &iSmp )
{ m_positionWeights = iSmp; }
// type accessors
void setType( const CurveType &iType )
{ m_type = iType; }
CurveType getType() const { return m_type; }
// wrap accessors
void setWrap( const CurvePeriodicity &iWrap )
{ m_wrap = iWrap; }
CurvePeriodicity getWrap() const { return m_wrap; }
std::size_t getNumCurves() const { return m_nVertices.size(); }
void setCurvesNumVertices( const Abc::Int32ArraySample &iNVertices)
{ m_nVertices = iNVertices; }
const Abc::Int32ArraySample &getCurvesNumVertices() const
{ return m_nVertices; }
// UVs
const OV2fGeomParam::Sample &getUVs() const { return m_uvs; }
void setUVs( const OV2fGeomParam::Sample &iUVs )
{ m_uvs = iUVs; }
// bounding box accessors
const Abc::Box3d &getSelfBounds() const { return m_selfBounds; }
void setSelfBounds( const Abc::Box3d &iBnds )
{ m_selfBounds = iBnds; }
// velocities accessor
const Abc::V3fArraySample &getVelocities() const { return m_velocities; }
void setVelocities( const Abc::V3fArraySample &iVelocities )
{ m_velocities = iVelocities; }
// normal accessors
const ON3fGeomParam::Sample &getNormals() const { return m_normals; }
void setNormals( const ON3fGeomParam::Sample &iNormals )
{ m_normals = iNormals; }
// basis accessors
BasisType getBasis() const { return m_basis; }
void setBasis( const BasisType &iBasis )
{ m_basis = iBasis; }
// orders accessors
const Abc::UcharArraySample &getOrders() const { return m_orders; }
void setOrders( const Abc::UcharArraySample &iOrders)
{ m_orders = iOrders; }
// knot accessors
const Abc::FloatArraySample &getKnots() const { return m_knots; }
void setKnots( const Abc::FloatArraySample &iKnots)
{ m_knots = iKnots; }
void reset()
{
m_positions.reset();
m_positionWeights.reset();
m_velocities.reset();
m_uvs.reset();
m_normals.reset();
m_widths.reset();
m_nVertices.reset();
m_orders.reset();
m_knots.reset();
m_selfBounds.makeEmpty();
m_type = kCubic;
m_wrap = kNonPeriodic;
m_basis = kBezierBasis;
}
bool isPartialSample() const
{
if( !m_positions.getData() )
{
if( m_uvs.getVals() || m_normals.getVals() || m_velocities.getData() )
{
return true;
}
}
return false;
}
protected:
// properties
Abc::P3fArraySample m_positions;
Abc::V3fArraySample m_velocities;
Abc::Int32ArraySample m_nVertices;
CurveType m_type;
CurvePeriodicity m_wrap;
OFloatGeomParam::Sample m_widths;
OV2fGeomParam::Sample m_uvs;
ON3fGeomParam::Sample m_normals;
BasisType m_basis;
// optional properties
Abc::FloatArraySample m_positionWeights;
Abc::UcharArraySample m_orders;
Abc::FloatArraySample m_knots;
// bounding box attributes
Abc::Box3d m_selfBounds;
};
//-*************************************************************************
// CURVE SCHEMA
//-*************************************************************************
public:
typedef OCurvesSchema this_type;
typedef OCurvesSchema::Sample sample_type;
//-*************************************************************************
// CONSTRUCTION, DESTRUCTION, ASSIGNMENT
//-*************************************************************************
OCurvesSchema()
{
m_selectiveExport = false;
m_numSamples = 0;
m_timeSamplingIndex = 0;
}
OCurvesSchema( AbcA::CompoundPropertyWriterPtr iParent,
const std::string &iName,
const Abc::Argument &iArg0 = Abc::Argument(),
const Abc::Argument &iArg1 = Abc::Argument(),
const Abc::Argument &iArg2 = Abc::Argument(),
const Abc::Argument &iArg3 = Abc::Argument() )
: OGeomBaseSchema<CurvesSchemaInfo>( iParent, iName,
iArg0, iArg1, iArg2, iArg3)
{
// Meta data and error handling are eaten up by
// the super type, so all that's left is time sampling.
AbcA::TimeSamplingPtr tsPtr =
Abc::GetTimeSampling( iArg0, iArg1, iArg2, iArg3 );
AbcA::index_t tsIndex =
Abc::GetTimeSamplingIndex( iArg0, iArg1, iArg2, iArg3 );
if ( tsPtr )
{
tsIndex = GetCompoundPropertyWriterPtr( iParent )->getObject(
)->getArchive()->addTimeSampling( *tsPtr );
}
init( tsIndex, Abc::IsSparse( iArg0, iArg1, iArg2, iArg3 ) );
}
OCurvesSchema( const OCurvesSchema& iCopy )
: OGeomBaseSchema<CurvesSchemaInfo>()
{
*this = iCopy;
}
//-*************************************************************************
// SCHEMA STUFF
//-*************************************************************************
AbcA::TimeSamplingPtr getTimeSampling() const
{
if( m_positionsProperty.valid() )
{
return m_positionsProperty.getTimeSampling();
}
else
{
return getObject().getArchive().getTimeSampling( 0 );
}
}
void setTimeSampling( uint32_t iIndex );
void setTimeSampling( AbcA::TimeSamplingPtr iTime );
//-*************************************************************************
// SAMPLE STUFF
//-*************************************************************************
size_t getNumSamples() const { return m_numSamples; }
void set( const sample_type &iSamp );
void setFromPrevious();
//-*************************************************************************
// ABC BASE MECHANISMS
// These functions are used by Abc to deal with errors, validity,
// and so on.
//-*************************************************************************
void reset()
{
m_positionsProperty.reset();
m_positionWeightsProperty.reset();
m_uvsParam.reset();
m_normalsParam.reset();
m_widthsParam.reset();
m_nVerticesProperty.reset();
m_ordersProperty.reset();
m_knotsProperty.reset();
m_basisAndTypeProperty.reset();
OGeomBaseSchema<CurvesSchemaInfo>::reset();
}
bool valid() const
{
return ( ( OGeomBaseSchema<CurvesSchemaInfo>::valid() &&
m_positionsProperty.valid() )
|| m_selectiveExport );
}
ALEMBIC_OVERRIDE_OPERATOR_BOOL( this_type::valid() );
private:
void init( const AbcA::index_t iTsIdx, bool isSparse );
void selectiveSet( const Sample &iSamp );
// point data
Abc::OP3fArrayProperty m_positionsProperty;
Abc::OInt32ArrayProperty m_nVerticesProperty;
// Write out only some properties (UVs, normals).
// This is to export data to layer into another file later.
bool m_selectiveExport;
// Number of times OPolyMeshSchema::set() has been called
size_t m_numSamples;
uint32_t m_timeSamplingIndex;
void createPositionProperty();
void createVertexProperties();
void createVelocityProperty();
void createUVsProperty( const Sample &iSamp );
void createNormalsProperty( const Sample &iSamp );
void createWidthProperty( const Sample &iSamp );
void createPositionWeightsProperty();
void createOrdersProperty();
void createKnotsProperty();
void calcBasisAndType(Alembic::Util::uint8_t (&basisAndType)[4], const Sample &iSamp);
// optional data
OV2fGeomParam m_uvsParam;
ON3fGeomParam m_normalsParam;
OFloatGeomParam m_widthsParam;
Abc::OV3fArrayProperty m_velocitiesProperty;
Abc::OFloatArrayProperty m_positionWeightsProperty;
Abc::OUcharArrayProperty m_ordersProperty;
Abc::OFloatArrayProperty m_knotsProperty;
Abc::OScalarProperty m_basisAndTypeProperty;
};
//-*****************************************************************************
// SCHEMA OBJECT
//-*****************************************************************************
typedef Abc::OSchemaObject<OCurvesSchema> OCurves;
typedef Util::shared_ptr< OCurves > OCurvesPtr;
} // End namespace ALEMBIC_VERSION_NS
using namespace ALEMBIC_VERSION_NS;
} // End namespace AbcGeom
} // End namespace Alembic
#endif
Foundation.h
SchemaInfoDeclarations.h
Basis.h
CurveType.h
Export.h
ALEMBIC_EXPORT
#define ALEMBIC_EXPORT
Definition Export.h:51
OGeomBase.h
OGeomParam.h
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample
Definition OCurves.h:69
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::getCurvesNumVertices
const Abc::Int32ArraySample & getCurvesNumVertices() const
Definition OCurves.h:161
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::m_velocities
Abc::V3fArraySample m_velocities
Definition OCurves.h:237
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::setUVs
void setUVs(const OV2fGeomParam::Sample &iUVs)
Definition OCurves.h:166
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::getOrders
const Abc::UcharArraySample & getOrders() const
Definition OCurves.h:190
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::Sample
Sample(const Abc::P3fArraySample &iPos, const Abc::Int32ArraySample &iNVertices, const CurveType &iType=kCubic, const CurvePeriodicity iWrap=kNonPeriodic, const OFloatGeomParam::Sample &iWidths=OFloatGeomParam::Sample(), const OV2fGeomParam::Sample &iUVs=OV2fGeomParam::Sample(), const ON3fGeomParam::Sample &iNormals=ON3fGeomParam::Sample(), const BasisType &iBasis=kBezierBasis, const Abc::FloatArraySample &iPosWeight=Abc::FloatArraySample(), const Abc::UcharArraySample &iOrders=Abc::UcharArraySample(), const Abc::FloatArraySample &iKnots=Abc::FloatArraySample())
Definition OCurves.h:103
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::getVelocities
const Abc::V3fArraySample & getVelocities() const
Definition OCurves.h:175
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::setOrders
void setOrders(const Abc::UcharArraySample &iOrders)
Definition OCurves.h:191
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::setWidths
void setWidths(const OFloatGeomParam::Sample &iWidths)
Definition OCurves.h:131
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::isPartialSample
bool isPartialSample() const
Definition OCurves.h:220
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::m_widths
OFloatGeomParam::Sample m_widths
Definition OCurves.h:243
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::m_selfBounds
Abc::Box3d m_selfBounds
Definition OCurves.h:255
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::getSelfBounds
const Abc::Box3d & getSelfBounds() const
Definition OCurves.h:170
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::getBasis
BasisType getBasis() const
Definition OCurves.h:185
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::reset
void reset()
Definition OCurves.h:199
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::getWidths
const OFloatGeomParam::Sample & getWidths() const
Definition OCurves.h:130
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::m_nVertices
Abc::Int32ArraySample m_nVertices
Definition OCurves.h:238
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::m_basis
BasisType m_basis
Definition OCurves.h:247
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::getNormals
const ON3fGeomParam::Sample & getNormals() const
Definition OCurves.h:180
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::setType
void setType(const CurveType &iType)
Definition OCurves.h:146
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::getPositions
const Abc::P3fArraySample & getPositions() const
Definition OCurves.h:135
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::m_normals
ON3fGeomParam::Sample m_normals
Definition OCurves.h:245
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::m_orders
Abc::UcharArraySample m_orders
Definition OCurves.h:251
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::m_positions
Abc::P3fArraySample m_positions
Definition OCurves.h:236
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::m_wrap
CurvePeriodicity m_wrap
Definition OCurves.h:241
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::getNumCurves
std::size_t getNumCurves() const
Definition OCurves.h:155
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::setCurvesNumVertices
void setCurvesNumVertices(const Abc::Int32ArraySample &iNVertices)
Definition OCurves.h:159
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::getType
CurveType getType() const
Definition OCurves.h:148
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::Sample
Sample()
Definition OCurves.h:73
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::getUVs
const OV2fGeomParam::Sample & getUVs() const
Definition OCurves.h:165
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::setWrap
void setWrap(const CurvePeriodicity &iWrap)
Definition OCurves.h:151
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::setSelfBounds
void setSelfBounds(const Abc::Box3d &iBnds)
Definition OCurves.h:171
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::m_knots
Abc::FloatArraySample m_knots
Definition OCurves.h:252
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::getWrap
CurvePeriodicity getWrap() const
Definition OCurves.h:153
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::setNormals
void setNormals(const ON3fGeomParam::Sample &iNormals)
Definition OCurves.h:181
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::setBasis
void setBasis(const BasisType &iBasis)
Definition OCurves.h:186
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::getKnots
const Abc::FloatArraySample & getKnots() const
Definition OCurves.h:195
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::Sample
Sample(const Abc::P3fArraySample &iPos)
Definition OCurves.h:86
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::setPositionWeights
void setPositionWeights(const Abc::FloatArraySample &iSmp)
Definition OCurves.h:142
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::setVelocities
void setVelocities(const Abc::V3fArraySample &iVelocities)
Definition OCurves.h:176
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::m_positionWeights
Abc::FloatArraySample m_positionWeights
Definition OCurves.h:250
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::m_type
CurveType m_type
Definition OCurves.h:240
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::m_uvs
OV2fGeomParam::Sample m_uvs
Definition OCurves.h:244
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::getPositionWeights
const Abc::FloatArraySample & getPositionWeights() const
Definition OCurves.h:140
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::setPositions
void setPositions(const Abc::P3fArraySample &iSmp)
Definition OCurves.h:136
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::Sample::setKnots
void setKnots(const Abc::FloatArraySample &iKnots)
Definition OCurves.h:196
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::sample_type
OCurvesSchema::Sample sample_type
Definition OCurves.h:268
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::reset
void reset()
Definition OCurves.h:367
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::getTimeSampling
AbcA::TimeSamplingPtr getTimeSampling() const
Default assignment operator used.
Definition OCurves.h:328
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::ALEMBIC_OVERRIDE_OPERATOR_BOOL
ALEMBIC_OVERRIDE_OPERATOR_BOOL(this_type::valid())
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::this_type
OCurvesSchema this_type
Definition OCurves.h:267
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::OCurvesSchema
OCurvesSchema(const OCurvesSchema &iCopy)
Definition OCurves.h:314
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::OCurvesSchema
OCurvesSchema(AbcA::CompoundPropertyWriterPtr iParent, const std::string &iName, const Abc::Argument &iArg0=Abc::Argument(), const Abc::Argument &iArg1=Abc::Argument(), const Abc::Argument &iArg2=Abc::Argument(), const Abc::Argument &iArg3=Abc::Argument())
Definition OCurves.h:288
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::OCurvesSchema
OCurvesSchema()
Definition OCurves.h:276
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::getNumSamples
size_t getNumSamples() const
Definition OCurves.h:349
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::valid
bool valid() const
Definition OCurves.h:385
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::setTimeSampling
void setTimeSampling(AbcA::TimeSamplingPtr iTime)
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::set
void set(const sample_type &iSamp)
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::setTimeSampling
void setTimeSampling(uint32_t iIndex)
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesSchema::setFromPrevious
void setFromPrevious()
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OGeomBaseSchema< CurvesSchemaInfo >::OGeomBaseSchema
OGeomBaseSchema()
Definition OGeomBase.h:74
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OGeomBaseSchema::reset
virtual void reset()
Definition OGeomBase.h:110
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OGeomBaseSchema::valid
virtual bool valid() const
Definition OGeomBase.h:119
Alembic::Abc::ALEMBIC_VERSION_NS::Argument
Definition Argument.h:120
Alembic::Abc::ALEMBIC_VERSION_NS::OBasePropertyT< AbcA::CompoundPropertyWriterPtr >::getObject
OObject getObject() const
Definition OBaseProperty.h:225
Alembic::Abc::ALEMBIC_VERSION_NS::OScalarProperty
Definition OScalarProperty.h:53
Alembic::Abc::ALEMBIC_VERSION_NS::OSchemaObject
Definition OSchemaObject.h:54
Alembic::Util::ALEMBIC_VERSION_NS::uint8_t
Alembic::AbcGeom::ALEMBIC_VERSION_NS
Definition ArchiveBounds.h:45
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OV2fGeomParam
OTypedGeomParam< V2fTPTraits > OV2fGeomParam
Definition OGeomParam.h:396
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OFloatGeomParam
OTypedGeomParam< Float32TPTraits > OFloatGeomParam
Definition OGeomParam.h:389
Alembic::AbcGeom::ALEMBIC_VERSION_NS::CurvePeriodicity
CurvePeriodicity
Definition CurveType.h:46
Alembic::AbcGeom::ALEMBIC_VERSION_NS::kNonPeriodic
@ kNonPeriodic
Definition CurveType.h:47
Alembic::AbcGeom::ALEMBIC_VERSION_NS::ON3fGeomParam
OTypedGeomParam< N3fTPTraits > ON3fGeomParam
Definition OGeomParam.h:443
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurves
Abc::OSchemaObject< OCurvesSchema > OCurves
Definition OCurves.h:443
Alembic::AbcGeom::ALEMBIC_VERSION_NS::BasisType
BasisType
Definition Basis.h:48
Alembic::AbcGeom::ALEMBIC_VERSION_NS::kBezierBasis
@ kBezierBasis
Definition Basis.h:50
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OCurvesPtr
Util::shared_ptr< OCurves > OCurvesPtr
Definition OCurves.h:445
Alembic::AbcGeom::ALEMBIC_VERSION_NS::CurveType
CurveType
Definition CurveType.h:51
Alembic::AbcGeom::ALEMBIC_VERSION_NS::kCubic
@ kCubic
Definition CurveType.h:52
Alembic::AbcGeom
Definition ArchiveBounds.h:44
Alembic::Abc::ALEMBIC_VERSION_NS::OFloatArrayProperty
OTypedArrayProperty< Float32TPTraits > OFloatArrayProperty
Definition OTypedArrayProperty.h:253
Alembic::Abc::ALEMBIC_VERSION_NS::V3fArraySample
TypedArraySample< V3fTPTraits > V3fArraySample
Definition TypedArraySample.h:171
Alembic::Abc::ALEMBIC_VERSION_NS::OInt32ArrayProperty
OTypedArrayProperty< Int32TPTraits > OInt32ArrayProperty
Definition OTypedArrayProperty.h:249
Alembic::Abc::ALEMBIC_VERSION_NS::FloatArraySample
TypedArraySample< Float32TPTraits > FloatArraySample
Definition TypedArraySample.h:159
Alembic::Abc::ALEMBIC_VERSION_NS::OUcharArrayProperty
OTypedArrayProperty< Uint8TPTraits > OUcharArrayProperty
Definition OTypedArrayProperty.h:244
Alembic::Abc::ALEMBIC_VERSION_NS::GetTimeSampling
AbcA::TimeSamplingPtr GetTimeSampling(const Argument &iArg0, const Argument &iArg1=Argument(), const Argument &iArg2=Argument(), const Argument &iArg3=Argument())
Definition Argument.h:288
Alembic::Abc::ALEMBIC_VERSION_NS::P3fArraySample
TypedArraySample< P3fTPTraits > P3fArraySample
Definition TypedArraySample.h:181
Alembic::Abc::ALEMBIC_VERSION_NS::GetCompoundPropertyWriterPtr
AbcA::CompoundPropertyWriterPtr GetCompoundPropertyWriterPtr(AbcA::CompoundPropertyWriterPtr iPtr)
Definition Foundation.h:174
Alembic::Abc::ALEMBIC_VERSION_NS::GetTimeSamplingIndex
uint32_t GetTimeSamplingIndex(const Argument &iArg0, const Argument &iArg1=Argument(), const Argument &iArg2=Argument(), const Argument &iArg3=Argument())
Definition Argument.h:303
Alembic::Abc::ALEMBIC_VERSION_NS::Int32ArraySample
TypedArraySample< Int32TPTraits > Int32ArraySample
Definition TypedArraySample.h:155
Alembic::Abc::ALEMBIC_VERSION_NS::IsSparse
bool IsSparse(const Argument &iArg0, const Argument &iArg1=Argument(), const Argument &iArg2=Argument(), const Argument &iArg3=Argument())
Definition Argument.h:333
Alembic::Abc::ALEMBIC_VERSION_NS::OP3fArrayProperty
OTypedArrayProperty< P3fTPTraits > OP3fArrayProperty
Definition OTypedArrayProperty.h:275
Alembic::Abc::ALEMBIC_VERSION_NS::UcharArraySample
TypedArraySample< Uint8TPTraits > UcharArraySample
Definition TypedArraySample.h:150
Alembic::Abc::ALEMBIC_VERSION_NS::OV3fArrayProperty
OTypedArrayProperty< V3fTPTraits > OV3fArrayProperty
Definition OTypedArrayProperty.h:265
Alembic
Alembic namespace ...
Definition ArchiveInfo.h:46