blob: 350fae6ada04ac85145ba6f43c313bc91e2741ba (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/* SPDX-License-Identifier: GPL-2.0-or-later
* Copyright 2021 Tangent Animation. All rights reserved. */
#pragma once
#include "usd.h"
#include "usd_reader_xform.h"
#include "pxr/usd/usdVol/volume.h"
namespace blender::io::usd {
class USDVolumeReader : public USDXformReader {
private:
pxr::UsdVolVolume volume_;
public:
USDVolumeReader(const pxr::UsdPrim &prim,
const USDImportParams &import_params,
const ImportSettings &settings)
: USDXformReader(prim, import_params, settings), volume_(prim)
{
}
bool valid() const override
{
return static_cast<bool>(volume_);
}
void create_object(Main *bmain, double motionSampleTime) override;
void read_object_data(Main *bmain, double motionSampleTime) override;
};
} // namespace blender::io::usd
|