Loading...
Searching...
No Matches
MaterialAssignment.h
Go to the documentation of this file.
//-*****************************************************************************
//
// Copyright (c) 2009-2015,
// 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_AbcMaterial_MaterialAssignment_h
#define Alembic_AbcMaterial_MaterialAssignment_h
#include <Alembic/Util/Export.h>
#include <Alembic/AbcMaterial/IMaterial.h>
#include <Alembic/AbcMaterial/OMaterial.h>
namespace Alembic {
namespace AbcMaterial {
namespace ALEMBIC_VERSION_NS {
#define MATERIALASSIGN_PROPNAME ".material.assign"
#define MATERIAL_PROPNAME ".material"
ALEMBIC_EXPORT void addMaterialAssignment(
Abc::OObject iObject,
const std::string & iValue,
const std::string & iPropName = MATERIALASSIGN_PROPNAME );
ALEMBIC_EXPORT void addMaterialAssignment(
Abc::OCompoundProperty iProp,
const std::string & iValue,
const std::string & iPropName = MATERIALASSIGN_PROPNAME );
ALEMBIC_EXPORT OMaterialSchema addMaterial(
Abc::OObject iObject,
const std::string & iPropName = MATERIAL_PROPNAME );
ALEMBIC_EXPORT OMaterialSchema addMaterial(
Abc::OCompoundProperty iProp,
const std::string & iPropName = MATERIAL_PROPNAME );
ALEMBIC_EXPORT bool getMaterialAssignmentPath(
Abc::IObject iObject,
std::string & oResult,
const std::string & iPropName = MATERIALASSIGN_PROPNAME );
ALEMBIC_EXPORT bool getMaterialAssignmentPath(
Abc::ICompoundProperty iProp,
std::string & oResult,
const std::string & iPropName = MATERIALASSIGN_PROPNAME );
ALEMBIC_EXPORT bool hasMaterial(
Abc::IObject iObject,
IMaterialSchema & oResult,
const std::string & iPropName = MATERIAL_PROPNAME );
ALEMBIC_EXPORT bool hasMaterial(
Abc::ICompoundProperty iCompound,
IMaterialSchema & oResult,
const std::string & iPropName = MATERIAL_PROPNAME );
} // End namespace ALEMBIC_VERSION_NS
using namespace ALEMBIC_VERSION_NS;
} // End namespace AbcMaterial
} // End namespace Alembic
#endif
Export.h
ALEMBIC_EXPORT
#define ALEMBIC_EXPORT
Definition Export.h:51
IMaterial.h
MATERIAL_PROPNAME
#define MATERIAL_PROPNAME
Definition MaterialAssignment.h:50
MATERIALASSIGN_PROPNAME
#define MATERIALASSIGN_PROPNAME
Definition MaterialAssignment.h:49
OMaterial.h
Alembic::AbcMaterial::ALEMBIC_VERSION_NS::IMaterialSchema
Definition IMaterial.h:54
Alembic::AbcMaterial::ALEMBIC_VERSION_NS::OMaterialSchema
Definition OMaterial.h:55
Alembic::Abc::ALEMBIC_VERSION_NS::ICompoundProperty
Definition ICompoundProperty.h:53
Alembic::Abc::ALEMBIC_VERSION_NS::IObject
Definition IObject.h:54
Alembic::Abc::ALEMBIC_VERSION_NS::OCompoundProperty
Definition OCompoundProperty.h:53
Alembic::Abc::ALEMBIC_VERSION_NS::OObject
Definition OObject.h:54
Alembic::AbcMaterial::ALEMBIC_VERSION_NS
Definition IMaterial.h:46
Alembic::AbcMaterial::ALEMBIC_VERSION_NS::hasMaterial
ALEMBIC_EXPORT bool hasMaterial(Abc::IObject iObject, IMaterialSchema &oResult, const std::string &iPropName=MATERIAL_PROPNAME)
Alembic::AbcMaterial::ALEMBIC_VERSION_NS::addMaterialAssignment
ALEMBIC_EXPORT void addMaterialAssignment(Abc::OObject iObject, const std::string &iValue, const std::string &iPropName=MATERIALASSIGN_PROPNAME)
Alembic::AbcMaterial::ALEMBIC_VERSION_NS::getMaterialAssignmentPath
ALEMBIC_EXPORT bool getMaterialAssignmentPath(Abc::IObject iObject, std::string &oResult, const std::string &iPropName=MATERIALASSIGN_PROPNAME)
Alembic::AbcMaterial::ALEMBIC_VERSION_NS::addMaterial
ALEMBIC_EXPORT OMaterialSchema addMaterial(Abc::OObject iObject, const std::string &iPropName=MATERIAL_PROPNAME)
Alembic::AbcMaterial
Definition IMaterial.h:45
Alembic
Alembic namespace ...
Definition ArchiveInfo.h:46