Blender
V2.93
source
blender
io
alembic
intern
abc_reader_archive.h
Go to the documentation of this file.
1
/*
2
* This program is free software; you can redistribute it and/or
3
* modify it under the terms of the GNU General Public License
4
* as published by the Free Software Foundation; either version 2
5
* of the License, or (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software Foundation,
14
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15
*
16
* The Original Code is Copyright (C) 2016 Kévin Dietrich.
17
* All rights reserved.
18
*/
19
#pragma once
20
25
#include <Alembic/Abc/All.h>
26
#include <Alembic/AbcCoreOgawa/All.h>
27
28
#include <fstream>
29
30
struct
Main
;
31
32
namespace
blender::io::alembic
{
33
34
/* Wrappers around input and output archives. The goal is to be able to use
35
* streams so that unicode paths work on Windows (T49112), and to make sure that
36
* the stream objects remain valid as long as the archives are open.
37
*/
38
39
class
ArchiveReader
{
40
Alembic::Abc::IArchive m_archive;
41
std::ifstream m_infile;
42
std::vector<std::istream *> m_streams;
43
44
public
:
45
ArchiveReader
(
struct
Main
*bmain,
const
char
*filename);
46
47
bool
valid
()
const
;
48
49
Alembic::Abc::IObject
getTop
();
50
};
51
52
}
// namespace blender::io::alembic
blender::io::alembic::ArchiveReader
Definition:
abc_reader_archive.h:39
blender::io::alembic::ArchiveReader::ArchiveReader
ArchiveReader(struct Main *bmain, const char *filename)
Definition:
abc_reader_archive.cc:79
blender::io::alembic::ArchiveReader::getTop
Alembic::Abc::IObject getTop()
Definition:
abc_reader_archive.cc:104
blender::io::alembic::ArchiveReader::valid
bool valid() const
Definition:
abc_reader_archive.cc:99
blender::io::alembic
Definition:
abc_archive.cc:40
Main
Definition:
BKE_main.h:116
Generated on Tue Jan 31 2023 14:37:24 for Blender by
doxygen
1.9.1