Alembic
1.8.11
Toggle main menu visibility
Loading...
Searching...
No Matches
ArImpl.h
1
//-*****************************************************************************
2
//
3
// Copyright (c) 2016,
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_AbcCoreLayer_ArImpl_h
38
#define Alembic_AbcCoreLayer_ArImpl_h
39
40
#include <Alembic/AbcCoreLayer/Foundation.h>
41
42
namespace
Alembic
{
43
namespace
AbcCoreLayer {
44
namespace
ALEMBIC_VERSION_NS {
45
46
//-*****************************************************************************
47
//class OrData;
48
49
//-*****************************************************************************
50
class
ArImpl
51
:
public
AbcA::ArchiveReader
52
,
public
Alembic::Util::enable_shared_from_this<ArImpl>
53
{
54
private
:
55
friend
class
ReadArchive;
56
57
ArImpl( ArchiveReaderPtrs & iArchives );
58
59
60
public
:
61
62
virtual
~ArImpl();
63
64
//-*************************************************************************
65
// ABSTRACT FUNCTIONS
66
//-*************************************************************************
67
virtual
const
std::string &
getName
()
const
;
68
69
virtual
const
AbcA::MetaData &
getMetaData
()
const
;
70
71
virtual
AbcA::ObjectReaderPtr
getTop
();
72
73
virtual
AbcA::TimeSamplingPtr getTimeSampling( Util::uint32_t iIndex );
74
75
virtual
AbcA::ArchiveReaderPtr
asArchivePtr
();
76
77
virtual
AbcA::ReadArraySampleCachePtr
getReadArraySampleCachePtr
();
78
79
virtual
void
setReadArraySampleCachePtr( AbcA::ReadArraySampleCachePtr iPtr );
80
81
virtual
AbcA::index_t getMaxNumSamplesForTimeSamplingIndex(
82
Util::uint32_t iIndex );
83
84
virtual
Util::uint32_t
getNumTimeSamplings
();
85
86
virtual
Util::int32_t
getArchiveVersion
();
87
88
private
:
89
std::string m_fileName;
90
91
ArchiveReaderPtrs m_archives;
92
93
Alembic::Util::weak_ptr< AbcA::ObjectReader > m_top;
94
Alembic::Util::mutex
m_lock;
95
96
std::vector < AbcA::TimeSamplingPtr > m_timeSamples;
97
std::vector < AbcA::index_t > m_maxSamples;
98
ObjectHeaderPtr m_header;
99
100
Util::int32_t m_archiveVersion;
101
102
};
103
104
}
// End namespace ALEMBIC_VERSION_NS
105
106
using namespace
ALEMBIC_VERSION_NS;
107
108
}
// End namespace AbcCoreLayer
109
}
// End namespace Alembic
110
111
#endif
//_Alembic_AbcCoreLayer_ArImpl_h_
Alembic::AbcCoreLayer::ALEMBIC_VERSION_NS::ArImpl::getNumTimeSamplings
virtual Util::uint32_t getNumTimeSamplings()
Definition
ArImpl.cpp:204
Alembic::AbcCoreLayer::ALEMBIC_VERSION_NS::ArImpl::getTop
virtual AbcA::ObjectReaderPtr getTop()
Definition
ArImpl.cpp:138
Alembic::AbcCoreLayer::ALEMBIC_VERSION_NS::ArImpl::getReadArraySampleCachePtr
virtual AbcA::ReadArraySampleCachePtr getReadArraySampleCachePtr()
Definition
ArImpl.cpp:192
Alembic::AbcCoreLayer::ALEMBIC_VERSION_NS::ArImpl::asArchivePtr
virtual AbcA::ArchiveReaderPtr asArchivePtr()
Definition
ArImpl.cpp:174
Alembic::AbcCoreLayer::ALEMBIC_VERSION_NS::ArImpl::getName
virtual const std::string & getName() const
Definition
ArImpl.cpp:126
Alembic::AbcCoreLayer::ALEMBIC_VERSION_NS::ArImpl::getMetaData
virtual const AbcA::MetaData & getMetaData() const
Definition
ArImpl.cpp:132
Alembic::AbcCoreLayer::ALEMBIC_VERSION_NS::ArImpl::getArchiveVersion
virtual Util::int32_t getArchiveVersion()
Definition
ArImpl.cpp:210
Alembic::Util::ALEMBIC_VERSION_NS::mutex
Definition
Foundation.h:176
Alembic
Alembic namespace ...
Definition
ArchiveInfo.cpp:39
AbcCoreLayer
ArImpl.h
Generated by
1.18.0