Alembic
1.8.11
Toggle main menu visibility
Loading...
Searching...
No Matches
AprImpl.h
1
//-*****************************************************************************
2
//
3
// Copyright (c) 2013,
4
// Sony Pictures Imageworks, Inc. and
5
// Industrial Light & Magic, a division of Lucasfilm Entertainment Company Ltd.
6
//
7
// All rights reserved.
8
//
9
// Redistribution and use in source and binary forms, with or without
10
// modification, are permitted provided that the following conditions are
11
// met:
12
// * Redistributions of source code must retain the above copyright
13
// notice, this list of conditions and the following disclaimer.
14
// * Redistributions in binary form must reproduce the above
15
// copyright notice, this list of conditions and the following disclaimer
16
// in the documentation and/or other materials provided with the
17
// distribution.
18
// * Neither the name of Sony Pictures Imageworks, nor
19
// Industrial Light & Magic nor the names of their contributors may be used
20
// to endorse or promote products derived from this software without specific
21
// prior written permission.
22
//
23
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
24
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
25
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
26
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
27
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
28
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
29
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
30
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
31
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
32
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
33
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
//
35
//-*****************************************************************************
36
37
#ifndef Alembic_AbcCoreOgawa_AprImpl_h
38
#define Alembic_AbcCoreOgawa_AprImpl_h
39
40
#include <Alembic/AbcCoreOgawa/Foundation.h>
41
42
namespace
Alembic
{
43
namespace
AbcCoreOgawa {
44
namespace
ALEMBIC_VERSION_NS {
45
46
//-*****************************************************************************
47
class
AprImpl :
48
public
AbcA::ArrayPropertyReader,
49
public
Alembic::Util::enable_shared_from_this<AprImpl>
50
{
51
public
:
52
AprImpl( AbcA::CompoundPropertyReaderPtr iParent,
53
Ogawa::IGroupPtr iGroup,
54
PropertyHeaderPtr iHeader );
55
56
// BasePropertyReader overrides
57
virtual
const
AbcA::PropertyHeader &
getHeader
()
const
;
58
virtual
AbcA::ObjectReaderPtr
getObject
();
59
virtual
AbcA::CompoundPropertyReaderPtr
getParent
();
60
virtual
AbcA::ArrayPropertyReaderPtr
asArrayPtr
();
61
62
// ArrayPropertyReader overrides
63
virtual
size_t
getNumSamples
();
64
virtual
bool
isConstant
();
65
virtual
void
getSample( index_t iSampleIndex,
66
AbcA::ArraySamplePtr &oSample );
67
virtual
std::pair<index_t, chrono_t> getFloorIndex( chrono_t iTime );
68
virtual
std::pair<index_t, chrono_t> getCeilIndex( chrono_t iTime );
69
virtual
std::pair<index_t, chrono_t> getNearIndex( chrono_t iTime );
70
virtual
bool
getKey( index_t iSampleIndex, AbcA::ArraySampleKey & oKey );
71
virtual
void
getDimensions( index_t iSampleIndex,
72
Alembic::Util::Dimensions & oDim );
73
virtual
bool
isScalarLike
();
74
virtual
void
getAs( index_t iSample,
void
*iIntoLocation,
75
Alembic::Util::PlainOldDataType iPod );
76
77
private
:
78
79
// Parent compound property writer. It must exist.
80
AbcA::CompoundPropertyReaderPtr m_parent;
81
82
// group from which all samples are read
83
Ogawa::IGroupPtr m_group;
84
85
// Stores the PropertyHeader and other info
86
PropertyHeaderPtr m_header;
87
};
88
89
}
// End namespace ALEMBIC_VERSION_NS
90
91
using namespace
ALEMBIC_VERSION_NS;
92
93
}
// End namespace AbcCoreOgawa
94
}
// End namespace Alembic
95
96
#endif
Alembic::AbcCoreOgawa::ALEMBIC_VERSION_NS::AprImpl::asArrayPtr
virtual AbcA::ArrayPropertyReaderPtr asArrayPtr()
Definition
AprImpl.cpp:85
Alembic::AbcCoreOgawa::ALEMBIC_VERSION_NS::AprImpl::getObject
virtual AbcA::ObjectReaderPtr getObject()
Definition
AprImpl.cpp:73
Alembic::AbcCoreOgawa::ALEMBIC_VERSION_NS::AprImpl::getParent
virtual AbcA::CompoundPropertyReaderPtr getParent()
Definition
AprImpl.cpp:79
Alembic::AbcCoreOgawa::ALEMBIC_VERSION_NS::AprImpl::getNumSamples
virtual size_t getNumSamples()
Definition
AprImpl.cpp:91
Alembic::AbcCoreOgawa::ALEMBIC_VERSION_NS::AprImpl::isConstant
virtual bool isConstant()
Definition
AprImpl.cpp:97
Alembic::AbcCoreOgawa::ALEMBIC_VERSION_NS::AprImpl::isScalarLike
virtual bool isScalarLike()
Definition
AprImpl.cpp:169
Alembic::AbcCoreOgawa::ALEMBIC_VERSION_NS::AprImpl::getHeader
virtual const AbcA::PropertyHeader & getHeader() const
Definition
AprImpl.cpp:67
Alembic
Alembic namespace ...
Definition
ArchiveInfo.cpp:39
AbcCoreOgawa
AprImpl.h
Generated by
1.18.0