Loading...
Searching...
No Matches
Visibility.h
Go to the documentation of this file.
//-*****************************************************************************
//
// Copyright (c) 2009-2011,
// 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_Visibility_h
#define Alembic_AbcGeom_Visibility_h
#include <string.h>
#include <Alembic/Util/Export.h>
#include <Alembic/AbcGeom/Foundation.h>
#include <Alembic/Abc/OSchemaObject.h>
namespace Alembic {
namespace AbcGeom {
namespace ALEMBIC_VERSION_NS {
enum ObjectVisibility
{
kVisibilityDeferred = -1,
kVisibilityHidden = 0,
kVisibilityVisible = 1,
};
static ALEMBIC_EXPORT_CONST std::string kVisibilityPropertyName = "visible";
typedef Abc::ICharProperty IVisibilityProperty;
typedef Abc::OCharProperty OVisibilityProperty;
// For Writer code:
ALEMBIC_EXPORT OVisibilityProperty
CreateVisibilityProperty( OObject & iObject,
uint32_t iTimeSamplingID );
ALEMBIC_EXPORT OVisibilityProperty
CreateVisibilityProperty( OObject & iObject,
AbcA::TimeSamplingPtr iTimeSampling );
// For Reader code:
ALEMBIC_EXPORT IVisibilityProperty
GetVisibilityProperty( IObject & schemaObject );
ALEMBIC_EXPORT ObjectVisibility
GetVisibility( IObject & schemaObject,
const Abc::ISampleSelector &iSS =
Abc::ISampleSelector () );
ALEMBIC_EXPORT bool
IsAncestorInvisible( IObject schemaObject,
const Abc::ISampleSelector &iSS =
Abc::ISampleSelector () );
} // End namespace ALEMBIC_VERSION_NS
using namespace ALEMBIC_VERSION_NS;
} // End namespace AbcGeom
} // End namespace Alembic
#endif
Foundation.h
Export.h
ALEMBIC_EXPORT_CONST
#define ALEMBIC_EXPORT_CONST
Definition Export.h:53
ALEMBIC_EXPORT
#define ALEMBIC_EXPORT
Definition Export.h:51
OSchemaObject.h
Alembic::Abc::ALEMBIC_VERSION_NS::IObject
Definition IObject.h:54
Alembic::Abc::ALEMBIC_VERSION_NS::ISampleSelector
Definition ISampleSelector.h:49
Alembic::Abc::ALEMBIC_VERSION_NS::OObject
Definition OObject.h:54
Alembic::AbcGeom::ALEMBIC_VERSION_NS
Definition ArchiveBounds.h:45
Alembic::AbcGeom::ALEMBIC_VERSION_NS::OVisibilityProperty
Abc::OCharProperty OVisibilityProperty
Definition Visibility.h:81
Alembic::AbcGeom::ALEMBIC_VERSION_NS::IsAncestorInvisible
ALEMBIC_EXPORT bool IsAncestorInvisible(IObject schemaObject, const Abc::ISampleSelector &iSS=Abc::ISampleSelector())
Alembic::AbcGeom::ALEMBIC_VERSION_NS::IVisibilityProperty
Abc::ICharProperty IVisibilityProperty
Definition Visibility.h:80
Alembic::AbcGeom::ALEMBIC_VERSION_NS::ObjectVisibility
ObjectVisibility
Values for the visibility property The top-compound object of AbcGeom Schema objects can include an o...
Definition Visibility.h:61
Alembic::AbcGeom::ALEMBIC_VERSION_NS::kVisibilityVisible
@ kVisibilityVisible
The object has been explicitly made visible.
Definition Visibility.h:73
Alembic::AbcGeom::ALEMBIC_VERSION_NS::kVisibilityHidden
@ kVisibilityHidden
The object has been explicitly made hidden.
Definition Visibility.h:70
Alembic::AbcGeom::ALEMBIC_VERSION_NS::kVisibilityDeferred
@ kVisibilityDeferred
Definition Visibility.h:67
Alembic::AbcGeom::ALEMBIC_VERSION_NS::CreateVisibilityProperty
ALEMBIC_EXPORT OVisibilityProperty CreateVisibilityProperty(OObject &iObject, uint32_t iTimeSamplingID)
Alembic::AbcGeom::ALEMBIC_VERSION_NS::kVisibilityPropertyName
static ALEMBIC_EXPORT_CONST std::string kVisibilityPropertyName
Definition Visibility.h:78
Alembic::AbcGeom::ALEMBIC_VERSION_NS::GetVisibility
ALEMBIC_EXPORT ObjectVisibility GetVisibility(IObject &schemaObject, const Abc::ISampleSelector &iSS=Abc::ISampleSelector())
Alembic::AbcGeom::ALEMBIC_VERSION_NS::GetVisibilityProperty
ALEMBIC_EXPORT IVisibilityProperty GetVisibilityProperty(IObject &schemaObject)
Alembic::AbcGeom
Definition ArchiveBounds.h:44
Alembic::Abc::ALEMBIC_VERSION_NS::ICharProperty
ITypedScalarProperty< Int8TPTraits > ICharProperty
Definition ITypedScalarProperty.h:216
Alembic::Abc::ALEMBIC_VERSION_NS::OCharProperty
OTypedScalarProperty< Int8TPTraits > OCharProperty
Definition OTypedScalarProperty.h:232
Alembic
Alembic namespace ...
Definition ArchiveInfo.h:46