Loading...
Searching...
No Matches
OSubD.h
Go to the documentation of this file.
//-*****************************************************************************
//
// Copyright (c) 2009-2014,
// 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_OSubD_h
#define Alembic_AbcGeom_OSubD_h
#include <map>
#include <Alembic/Util/Export.h>
#include <Alembic/AbcGeom/Foundation.h>
#include <Alembic/AbcGeom/SchemaInfoDeclarations.h>
#include <Alembic/AbcGeom/OGeomBase.h>
#include <Alembic/AbcGeom/OFaceSet.h>
#include <Alembic/AbcGeom/OGeomParam.h>
namespace Alembic {
namespace AbcGeom {
namespace ALEMBIC_VERSION_NS {
//-*****************************************************************************
// for default values for int scalar properties here
static ALEMBIC_EXPORT_CONST
int32_t ABC_GEOM_SUBD_NULL_INT_VALUE( INT_MIN / 2 );
//-*****************************************************************************
class ALEMBIC_EXPORT OSubDSchema : public OGeomBaseSchema<SubDSchemaInfo>
{
public:
//-*************************************************************************
// SUBD SCHEMA SAMPLE TYPE
//-*************************************************************************
class Sample
{
public:
Sample() { reset(); }
Sample( const Abc::P3fArraySample &iPositions,
const Abc::Int32ArraySample &iFaceIndices,
const Abc::Int32ArraySample &iFaceCounts,
const Abc::Int32ArraySample &iCreaseIndices =
Abc::Int32ArraySample(),
const Abc::Int32ArraySample &iCreaseLengths =
Abc::Int32ArraySample(),
const Abc::FloatArraySample &iCreaseSharpnesses =
Abc::FloatArraySample(),
const Abc::Int32ArraySample &iCornerIndices =
Abc::Int32ArraySample(),
const Abc::FloatArraySample &iCornerSharpnesses =
Abc::FloatArraySample(),
const Abc::Int32ArraySample &iHoles = Abc::Int32ArraySample()
)
: m_positions( iPositions )
, m_faceIndices( iFaceIndices )
, m_faceCounts( iFaceCounts )
, m_faceVaryingInterpolateBoundary( ABC_GEOM_SUBD_NULL_INT_VALUE )
, m_faceVaryingPropagateCorners( ABC_GEOM_SUBD_NULL_INT_VALUE )
, m_interpolateBoundary( ABC_GEOM_SUBD_NULL_INT_VALUE )
, m_creaseIndices ( iCreaseIndices )
, m_creaseLengths ( iCreaseLengths )
, m_creaseSharpnesses ( iCreaseSharpnesses )
, m_cornerIndices ( iCornerIndices )
, m_cornerSharpnesses ( iCornerSharpnesses )
, m_holes ( iHoles )
, m_subdScheme ( "catmull-clark" )
{}
// main stuff
const Abc::P3fArraySample &getPositions() const { return m_positions; }
void setPositions( const Abc::P3fArraySample &iSmp )
{ m_positions = iSmp; }
const Abc::Int32ArraySample &getFaceIndices() const { return m_faceIndices; }
void setFaceIndices( const Abc::Int32ArraySample &iSmp )
{ m_faceIndices = iSmp; }
const Abc::Int32ArraySample &getFaceCounts() const { return m_faceCounts; }
void setFaceCounts( const Abc::Int32ArraySample &iCnt )
{ m_faceCounts = iCnt; }
// misc subd stuff
int32_t getFaceVaryingInterpolateBoundary() const
{ return m_faceVaryingInterpolateBoundary; }
void setFaceVaryingInterpolateBoundary( int32_t i )
{ m_faceVaryingInterpolateBoundary = i; }
int32_t getFaceVaryingPropagateCorners() const
{ return m_faceVaryingPropagateCorners; }
void setFaceVaryingPropagateCorners( int32_t i )
{ m_faceVaryingPropagateCorners = i; }
int32_t getInterpolateBoundary() const
{ return m_interpolateBoundary; }
void setInterpolateBoundary( int32_t i )
{ m_interpolateBoundary = i; }
// creases
const Abc::Int32ArraySample &getCreaseIndices() const
{ return m_creaseIndices; }
void setCreaseIndices( const Abc::Int32ArraySample &iCreaseIndices )
{ m_creaseIndices = iCreaseIndices; }
const Abc::Int32ArraySample &getCreaseLengths() const
{ return m_creaseLengths; }
void setCreaseLengths( const Abc::Int32ArraySample &iCreaseLengths )
{ m_creaseLengths = iCreaseLengths; }
const Abc::FloatArraySample &getCreaseSharpnesses() const
{ return m_creaseSharpnesses; }
void setCreaseSharpnesses( const Abc::FloatArraySample
&iCreaseSharpnesses )
{ m_creaseSharpnesses = iCreaseSharpnesses; }
void setCreases( const Abc::Int32ArraySample &iCreaseIndices,
const Abc::Int32ArraySample &iCreaseLengths )
{
m_creaseIndices = iCreaseIndices;
m_creaseLengths = iCreaseLengths;
}
void setCreases( const Abc::Int32ArraySample &iCreaseIndices,
const Abc::Int32ArraySample &iCreaseLengths,
const Abc::FloatArraySample &iCreaseSharpnesses )
{
m_creaseIndices = iCreaseIndices;
m_creaseLengths = iCreaseLengths;
m_creaseSharpnesses = iCreaseSharpnesses;
}
// corners
const Abc::Int32ArraySample &getCornerIndices() const
{ return m_cornerIndices; }
void setCornerIndices( const Abc::Int32ArraySample &iCornerIndices )
{ m_cornerIndices = iCornerIndices; }
const Abc::FloatArraySample &getCornerSharpnesses() const
{ return m_cornerSharpnesses; }
void setCornerSharpnesses( const Abc::FloatArraySample
&iCornerSharpnesses )
{ m_cornerSharpnesses = iCornerSharpnesses; }
void setCorners( const Abc::Int32ArraySample &iCornerIndices,
const Abc::FloatArraySample &iCornerSharpnesses )
{
m_cornerIndices = iCornerIndices;
m_cornerSharpnesses = iCornerSharpnesses;
}
// Holes
const Abc::Int32ArraySample &getHoles() const
{ return m_holes; }
void setHoles( const Abc::Int32ArraySample &iHoles )
{ m_holes = iHoles; }
// subdivision scheme
std::string getSubdivisionScheme() const
{ return m_subdScheme; }
void setSubdivisionScheme( const std::string &iScheme )
{ m_subdScheme = iScheme; }
// bounding boxes
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; }
// UVs; need to set these outside the Sample constructor
const OV2fGeomParam::Sample &getUVs() const { return m_uvs; }
void setUVs( const OV2fGeomParam::Sample &iUVs )
{ m_uvs = iUVs; }
void reset()
{
m_positions.reset();
m_faceIndices.reset();
m_faceCounts.reset();
m_faceVaryingInterpolateBoundary = ABC_GEOM_SUBD_NULL_INT_VALUE;
m_faceVaryingPropagateCorners = ABC_GEOM_SUBD_NULL_INT_VALUE;
m_interpolateBoundary = ABC_GEOM_SUBD_NULL_INT_VALUE;
m_creaseIndices.reset();
m_creaseLengths.reset();
m_creaseSharpnesses.reset();
m_cornerIndices.reset();
m_cornerSharpnesses.reset();
m_holes.reset();
m_subdScheme = "catmull-clark";
m_velocities.reset();
m_selfBounds.makeEmpty();
m_uvs.reset();
}
bool isPartialSample() const
{
if( !m_positions.getData() && !m_faceIndices.getData() && !m_faceCounts.getData() )
{
if( m_uvs.getVals() || m_velocities.getData() ||
(m_faceVaryingInterpolateBoundary != ABC_GEOM_SUBD_NULL_INT_VALUE) ||
(m_faceVaryingPropagateCorners != ABC_GEOM_SUBD_NULL_INT_VALUE) ||
(m_interpolateBoundary != ABC_GEOM_SUBD_NULL_INT_VALUE) ||
m_creaseIndices.getData() ||
m_creaseLengths.getData() || m_creaseSharpnesses.getData() ||
m_cornerIndices.getData() || m_cornerSharpnesses.getData() ||
m_holes.getData() )
{
return true;
}
}
return false;
}
protected:
friend class OSubDSchema;
Abc::P3fArraySample m_positions;
Abc::Int32ArraySample m_faceIndices;
Abc::Int32ArraySample m_faceCounts;
int32_t m_faceVaryingInterpolateBoundary;
int32_t m_faceVaryingPropagateCorners;
int32_t m_interpolateBoundary;
// Creases
Abc::Int32ArraySample m_creaseIndices;
Abc::Int32ArraySample m_creaseLengths;
Abc::FloatArraySample m_creaseSharpnesses;
// Corners
Abc::Int32ArraySample m_cornerIndices;
Abc::FloatArraySample m_cornerSharpnesses;
// Holes
Abc::Int32ArraySample m_holes;
// subdivision scheme
std::string m_subdScheme;
// bounds
Abc::Box3d m_selfBounds;
Abc::V3fArraySample m_velocities;
// UVs
OV2fGeomParam::Sample m_uvs;
}; // end OSubDSchema::Sample
//-*************************************************************************
// SUBD SCHEMA
//-*************************************************************************
public:
typedef OSubDSchema this_type;
//-*************************************************************************
// CONSTRUCTION, DESTRUCTION, ASSIGNMENT
//-*************************************************************************
OSubDSchema()
{
m_selectiveExport = false;
m_numSamples = 0;
m_timeSamplingIndex = 0;
}
OSubDSchema( 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() );
OSubDSchema( Abc::OCompoundProperty iParent,
const std::string &iName,
const Abc::Argument &iArg0 = Abc::Argument(),
const Abc::Argument &iArg1 = Abc::Argument(),
const Abc::Argument &iArg2 = Abc::Argument() );
OSubDSchema(const OSubDSchema& iCopy)
: OGeomBaseSchema<SubDSchemaInfo>()
{
*this = iCopy;
}
//-*************************************************************************
// SCHEMA STUFF
//-*************************************************************************
AbcA::TimeSamplingPtr getTimeSampling() const
{
if( m_positionsProperty.valid() )
{
return m_positionsProperty.getTimeSampling();
}
else
{
return getObject().getArchive().getTimeSampling( 0 );
}
}
//-*************************************************************************
// SAMPLE STUFF
//-*************************************************************************
size_t getNumSamples() const
{ return m_numSamples; }
void set( const Sample &iSamp );
void setFromPrevious( );
void setTimeSampling( uint32_t iIndex );
void setTimeSampling( AbcA::TimeSamplingPtr iTime );
//-*************************************************************************
// ABC BASE MECHANISMS
// These functions are used by Abc to deal with errors, validity,
// and so on.
//-*************************************************************************
void reset()
{
m_positionsProperty.reset();
m_faceIndicesProperty.reset();
m_faceCountsProperty.reset();
m_faceVaryingInterpolateBoundaryProperty.reset();
m_faceVaryingPropagateCornersProperty.reset();
m_interpolateBoundaryProperty.reset();
m_creaseIndicesProperty.reset();
m_creaseLengthsProperty.reset();
m_creaseSharpnessesProperty.reset();
m_cornerIndicesProperty.reset();
m_cornerSharpnessesProperty.reset();
m_holesProperty.reset();
m_subdSchemeProperty.reset();
m_velocitiesProperty.reset();
m_uvsParam.reset();
m_faceSets.clear ();
OGeomBaseSchema<SubDSchemaInfo>::reset();
}
bool valid() const
{
return ( OGeomBaseSchema<SubDSchemaInfo>::valid() &&
m_positionsProperty.valid() &&
m_faceIndicesProperty.valid() &&
m_faceCountsProperty.valid() ) ||
m_selectiveExport;
}
// FaceSet stuff
OFaceSet & createFaceSet( const std::string &iFaceSetName );
void getFaceSetNames( std::vector <std::string> & oFaceSetNames );
OFaceSet getFaceSet( const std::string &iFaceSetName );
bool hasFaceSet( const std::string &iFaceSetName );
void setUVSourceName(const std::string & iName);
ALEMBIC_OVERRIDE_OPERATOR_BOOL( OSubDSchema::valid() );
protected:
void init( uint32_t iTsIdx, bool isSparse );
void selectiveSet( const Sample &iSamp );
Abc::OP3fArrayProperty m_positionsProperty;
Abc::OInt32ArrayProperty m_faceIndicesProperty;
Abc::OInt32ArrayProperty m_faceCountsProperty;
// misc
Abc::OInt32Property m_faceVaryingInterpolateBoundaryProperty;
Abc::OInt32Property m_faceVaryingPropagateCornersProperty;
Abc::OInt32Property m_interpolateBoundaryProperty;
// Creases
Abc::OInt32ArrayProperty m_creaseIndicesProperty;
Abc::OInt32ArrayProperty m_creaseLengthsProperty;
Abc::OFloatArrayProperty m_creaseSharpnessesProperty;
// Corners
Abc::OInt32ArrayProperty m_cornerIndicesProperty;
Abc::OFloatArrayProperty m_cornerSharpnessesProperty;
// Holes
Abc::OInt32ArrayProperty m_holesProperty;
// subdivision scheme
Abc::OStringProperty m_subdSchemeProperty;
Abc::OV3fArrayProperty m_velocitiesProperty;
// UVs
OV2fGeomParam m_uvsParam;
// optional source name for the UVs
std::string m_uvSourceName;
private:
void initCreases(uint32_t iNumSamples);
void initCorners(uint32_t iNumSamples);
void initHoles(uint32_t iNumSamples);
// FaceSets created on this SubD
std::map <std::string, OFaceSet> m_faceSets;
// Write out only some properties (UVs, normals).
// This is to export data to layer into another file later.
bool m_selectiveExport;
// Number of times OSubDSchema::set() has been called
size_t m_numSamples;
uint32_t m_timeSamplingIndex;
void createSubDSchemeProperty();
void createFaceVaryingInterpolateBoundaryProperty();
void createFaceVaryingPropagateCornersProperty();
void createInterpolateBoundaryProperty();
void createVelocitiesProperty();
void createUVsProperty( const Sample &iSamp );
void createPositionsProperty();
friend class OFaceSetSchema;;
};
//-*****************************************************************************
// SCHEMA OBJECT
//-*****************************************************************************
typedef Abc::OSchemaObject<OSubDSchema> OSubD;
typedef Util::shared_ptr< OSubD > OSubDPtr;
} // End namespace ALEMBIC_VERSION_NS
using namespace ALEMBIC_VERSION_NS;
} // End namespace AbcGeom
} // End namespace Alembic
#endif
Foundation.h
SchemaInfoDeclarations.h
Export.h
ALEMBIC_EXPORT_CONST
#define ALEMBIC_EXPORT_CONST
Definition Export.h:53
ALEMBIC_EXPORT
#define ALEMBIC_EXPORT
Definition Export.h:51
OFaceSet.h
OGeomBase.h
OGeomParam.h
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OGeomBaseSchema< SubDSchemaInfo >::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::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample
Definition OSubD.h:65
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::getFaceVaryingPropagateCorners
int32_t getFaceVaryingPropagateCorners() const
Definition OSubD.h:129
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::getVelocities
const Abc::V3fArraySample & getVelocities() const
Definition OSubD.h:209
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::m_faceIndices
Abc::Int32ArraySample m_faceIndices
Definition OSubD.h:270
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::getCornerIndices
const Abc::Int32ArraySample & getCornerIndices() const
Definition OSubD.h:173
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::m_faceCounts
Abc::Int32ArraySample m_faceCounts
Definition OSubD.h:271
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::Sample
Sample()
Definition OSubD.h:69
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::setHoles
void setHoles(const Abc::Int32ArraySample &iHoles)
Definition OSubD.h:194
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::getCreaseIndices
const Abc::Int32ArraySample & getCreaseIndices() const
Definition OSubD.h:140
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::m_faceVaryingPropagateCorners
int32_t m_faceVaryingPropagateCorners
Definition OSubD.h:274
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::setInterpolateBoundary
void setInterpolateBoundary(int32_t i)
Definition OSubD.h:136
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::setPositions
void setPositions(const Abc::P3fArraySample &iSmp)
Definition OSubD.h:111
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::setCornerSharpnesses
void setCornerSharpnesses(const Abc::FloatArraySample &iCornerSharpnesses)
Definition OSubD.h:180
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::OSubDSchema
friend class OSubDSchema
Definition OSubD.h:267
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::m_velocities
Abc::V3fArraySample m_velocities
Definition OSubD.h:295
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::m_creaseLengths
Abc::Int32ArraySample m_creaseLengths
Definition OSubD.h:279
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::m_uvs
OV2fGeomParam::Sample m_uvs
Definition OSubD.h:298
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::m_creaseIndices
Abc::Int32ArraySample m_creaseIndices
Definition OSubD.h:278
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::reset
void reset()
Definition OSubD.h:218
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::getUVs
const OV2fGeomParam::Sample & getUVs() const
Definition OSubD.h:214
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::getCreaseSharpnesses
const Abc::FloatArraySample & getCreaseSharpnesses() const
Definition OSubD.h:150
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::getCreaseLengths
const Abc::Int32ArraySample & getCreaseLengths() const
Definition OSubD.h:145
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::setVelocities
void setVelocities(const Abc::V3fArraySample &iVelocities)
Definition OSubD.h:210
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::Sample
Sample(const Abc::P3fArraySample &iPositions, const Abc::Int32ArraySample &iFaceIndices, const Abc::Int32ArraySample &iFaceCounts, const Abc::Int32ArraySample &iCreaseIndices=Abc::Int32ArraySample(), const Abc::Int32ArraySample &iCreaseLengths=Abc::Int32ArraySample(), const Abc::FloatArraySample &iCreaseSharpnesses=Abc::FloatArraySample(), const Abc::Int32ArraySample &iCornerIndices=Abc::Int32ArraySample(), const Abc::FloatArraySample &iCornerSharpnesses=Abc::FloatArraySample(), const Abc::Int32ArraySample &iHoles=Abc::Int32ArraySample())
Definition OSubD.h:75
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::getFaceIndices
const Abc::Int32ArraySample & getFaceIndices() const
Definition OSubD.h:114
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::setFaceVaryingInterpolateBoundary
void setFaceVaryingInterpolateBoundary(int32_t i)
Definition OSubD.h:126
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::getSelfBounds
const Abc::Box3d & getSelfBounds() const
Definition OSubD.h:204
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::m_faceVaryingInterpolateBoundary
int32_t m_faceVaryingInterpolateBoundary
Definition OSubD.h:273
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::getPositions
const Abc::P3fArraySample & getPositions() const
Definition OSubD.h:110
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::setCreases
void setCreases(const Abc::Int32ArraySample &iCreaseIndices, const Abc::Int32ArraySample &iCreaseLengths)
Definition OSubD.h:156
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::getInterpolateBoundary
int32_t getInterpolateBoundary() const
Definition OSubD.h:134
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::m_subdScheme
std::string m_subdScheme
Definition OSubD.h:290
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::m_creaseSharpnesses
Abc::FloatArraySample m_creaseSharpnesses
Definition OSubD.h:280
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::setCornerIndices
void setCornerIndices(const Abc::Int32ArraySample &iCornerIndices)
Definition OSubD.h:175
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::setFaceVaryingPropagateCorners
void setFaceVaryingPropagateCorners(int32_t i)
Definition OSubD.h:131
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::m_cornerIndices
Abc::Int32ArraySample m_cornerIndices
Definition OSubD.h:283
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::setCreaseIndices
void setCreaseIndices(const Abc::Int32ArraySample &iCreaseIndices)
Definition OSubD.h:142
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::getCornerSharpnesses
const Abc::FloatArraySample & getCornerSharpnesses() const
Definition OSubD.h:178
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::setFaceCounts
void setFaceCounts(const Abc::Int32ArraySample &iCnt)
Definition OSubD.h:119
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::setSelfBounds
void setSelfBounds(const Abc::Box3d &iBnds)
Definition OSubD.h:205
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::setCreases
void setCreases(const Abc::Int32ArraySample &iCreaseIndices, const Abc::Int32ArraySample &iCreaseLengths, const Abc::FloatArraySample &iCreaseSharpnesses)
Definition OSubD.h:163
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::setCorners
void setCorners(const Abc::Int32ArraySample &iCornerIndices, const Abc::FloatArraySample &iCornerSharpnesses)
Definition OSubD.h:184
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::getSubdivisionScheme
std::string getSubdivisionScheme() const
Definition OSubD.h:198
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::m_positions
Abc::P3fArraySample m_positions
Definition OSubD.h:269
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::getFaceVaryingInterpolateBoundary
int32_t getFaceVaryingInterpolateBoundary() const
Definition OSubD.h:124
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::getFaceCounts
const Abc::Int32ArraySample & getFaceCounts() const
Definition OSubD.h:118
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::setFaceIndices
void setFaceIndices(const Abc::Int32ArraySample &iSmp)
Definition OSubD.h:115
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::m_holes
Abc::Int32ArraySample m_holes
Definition OSubD.h:287
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::m_interpolateBoundary
int32_t m_interpolateBoundary
Definition OSubD.h:275
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::setSubdivisionScheme
void setSubdivisionScheme(const std::string &iScheme)
Definition OSubD.h:200
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::getHoles
const Abc::Int32ArraySample & getHoles() const
Definition OSubD.h:192
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::m_cornerSharpnesses
Abc::FloatArraySample m_cornerSharpnesses
Definition OSubD.h:284
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::setCreaseSharpnesses
void setCreaseSharpnesses(const Abc::FloatArraySample &iCreaseSharpnesses)
Definition OSubD.h:152
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::setCreaseLengths
void setCreaseLengths(const Abc::Int32ArraySample &iCreaseLengths)
Definition OSubD.h:147
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::m_selfBounds
Abc::Box3d m_selfBounds
Definition OSubD.h:293
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::setUVs
void setUVs(const OV2fGeomParam::Sample &iUVs)
Definition OSubD.h:215
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::Sample::isPartialSample
bool isPartialSample() const
Definition OSubD.h:246
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::m_interpolateBoundaryProperty
Abc::OInt32Property m_interpolateBoundaryProperty
Definition OSubD.h:475
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::m_faceCountsProperty
Abc::OInt32ArrayProperty m_faceCountsProperty
Definition OSubD.h:470
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::m_subdSchemeProperty
Abc::OStringProperty m_subdSchemeProperty
Definition OSubD.h:490
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::m_creaseLengthsProperty
Abc::OInt32ArrayProperty m_creaseLengthsProperty
Definition OSubD.h:479
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::m_holesProperty
Abc::OInt32ArrayProperty m_holesProperty
Definition OSubD.h:487
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::OSubDSchema
OSubDSchema(Abc::OCompoundProperty iParent, const std::string &iName, const Abc::Argument &iArg0=Abc::Argument(), const Abc::Argument &iArg1=Abc::Argument(), const Abc::Argument &iArg2=Abc::Argument())
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::m_creaseSharpnessesProperty
Abc::OFloatArrayProperty m_creaseSharpnessesProperty
Definition OSubD.h:480
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::getNumSamples
size_t getNumSamples() const
Definition OSubD.h:381
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::m_faceVaryingInterpolateBoundaryProperty
Abc::OInt32Property m_faceVaryingInterpolateBoundaryProperty
Definition OSubD.h:473
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::m_creaseIndicesProperty
Abc::OInt32ArrayProperty m_creaseIndicesProperty
Definition OSubD.h:478
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::setUVSourceName
void setUVSourceName(const std::string &iName)
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::selectiveSet
void selectiveSet(const Sample &iSamp)
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::init
void init(uint32_t iTsIdx, bool isSparse)
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::getFaceSetNames
void getFaceSetNames(std::vector< std::string > &oFaceSetNames)
Appends the names of any FaceSets for this SubD.
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::valid
bool valid() const
Definition OSubD.h:435
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::m_uvsParam
OV2fGeomParam m_uvsParam
Definition OSubD.h:495
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::reset
void reset()
Definition OSubD.h:403
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::OSubDSchema
OSubDSchema(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())
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::OSubDSchema
OSubDSchema(const OSubDSchema &iCopy)
Copy constructor.
Definition OSubD.h:349
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::setTimeSampling
void setTimeSampling(uint32_t iIndex)
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::m_velocitiesProperty
Abc::OV3fArrayProperty m_velocitiesProperty
Definition OSubD.h:492
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::setTimeSampling
void setTimeSampling(AbcA::TimeSamplingPtr iTime)
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::OSubDSchema
OSubDSchema()
Definition OSubD.h:316
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::createFaceSet
OFaceSet & createFaceSet(const std::string &iFaceSetName)
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::m_uvSourceName
std::string m_uvSourceName
Definition OSubD.h:499
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::m_faceIndicesProperty
Abc::OInt32ArrayProperty m_faceIndicesProperty
Definition OSubD.h:469
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::this_type
OSubDSchema this_type
Definition OSubD.h:308
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::m_cornerSharpnessesProperty
Abc::OFloatArrayProperty m_cornerSharpnessesProperty
Definition OSubD.h:484
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::setFromPrevious
void setFromPrevious()
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::set
void set(const Sample &iSamp)
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::m_faceVaryingPropagateCornersProperty
Abc::OInt32Property m_faceVaryingPropagateCornersProperty
Definition OSubD.h:474
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::m_positionsProperty
Abc::OP3fArrayProperty m_positionsProperty
Definition OSubD.h:468
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::getFaceSet
OFaceSet getFaceSet(const std::string &iFaceSetName)
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::hasFaceSet
bool hasFaceSet(const std::string &iFaceSetName)
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::getTimeSampling
AbcA::TimeSamplingPtr getTimeSampling() const
Default assignment operator used.
Definition OSubD.h:363
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::OFaceSetSchema
friend class OFaceSetSchema
Definition OSubD.h:532
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::ALEMBIC_OVERRIDE_OPERATOR_BOOL
ALEMBIC_OVERRIDE_OPERATOR_BOOL(OSubDSchema::valid())
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDSchema::m_cornerIndicesProperty
Abc::OInt32ArrayProperty m_cornerIndicesProperty
Definition OSubD.h:483
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::OCompoundProperty
Definition OCompoundProperty.h:53
Alembic::Abc::ALEMBIC_VERSION_NS::OSchemaObject
Definition OSchemaObject.h:54
Alembic::AbcGeom::ALEMBIC_VERSION_NS
Definition ArchiveBounds.h:45
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OFaceSet
Abc::OSchemaObject< OFaceSetSchema > OFaceSet
Definition OFaceSet.h:220
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OV2fGeomParam
OTypedGeomParam< V2fTPTraits > OV2fGeomParam
Definition OGeomParam.h:396
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubDPtr
Util::shared_ptr< OSubD > OSubDPtr
Definition OSubD.h:540
Alembic::AbcGeom::ALEMBIC_VERSION_NS::ABC_GEOM_SUBD_NULL_INT_VALUE
static ALEMBIC_EXPORT_CONST int32_t ABC_GEOM_SUBD_NULL_INT_VALUE(INT_MIN/2)
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OSubD
Abc::OSchemaObject< OSubDSchema > OSubD
Definition OSubD.h:538
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::P3fArraySample
TypedArraySample< P3fTPTraits > P3fArraySample
Definition TypedArraySample.h:181
Alembic::Abc::ALEMBIC_VERSION_NS::Int32ArraySample
TypedArraySample< Int32TPTraits > Int32ArraySample
Definition TypedArraySample.h:155
Alembic::Abc::ALEMBIC_VERSION_NS::OP3fArrayProperty
OTypedArrayProperty< P3fTPTraits > OP3fArrayProperty
Definition OTypedArrayProperty.h:275
Alembic::Abc::ALEMBIC_VERSION_NS::OInt32Property
OTypedScalarProperty< Int32TPTraits > OInt32Property
Definition OTypedScalarProperty.h:236
Alembic::Abc::ALEMBIC_VERSION_NS::OV3fArrayProperty
OTypedArrayProperty< V3fTPTraits > OV3fArrayProperty
Definition OTypedArrayProperty.h:265
Alembic::Abc::ALEMBIC_VERSION_NS::OStringProperty
OTypedScalarProperty< StringTPTraits > OStringProperty
Definition OTypedScalarProperty.h:242
Alembic
Alembic namespace ...
Definition ArchiveInfo.h:46