2023-06-15 16:45:22 +10:00
|
|
|
/* SPDX-FileCopyrightText: 2021 Tangent Animation. All rights reserved.
|
2023-08-16 00:20:26 +10:00
|
|
|
* SPDX-FileCopyrightText: 2023 Blender Authors
|
2023-05-31 16:19:06 +02:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
2023-06-15 16:45:22 +10:00
|
|
|
*
|
|
|
|
|
* Adapted from the Blender Alembic importer implementation. */
|
|
|
|
|
|
2021-08-03 11:55:53 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "usd.h"
|
|
|
|
|
#include "usd_reader_xform.h"
|
|
|
|
|
|
|
|
|
|
namespace blender::io::usd {
|
|
|
|
|
|
|
|
|
|
class USDCameraReader : public USDXformReader {
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
USDCameraReader(const pxr::UsdPrim &object,
|
|
|
|
|
const USDImportParams &import_params,
|
|
|
|
|
const ImportSettings &settings)
|
|
|
|
|
: USDXformReader(object, import_params, settings)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void create_object(Main *bmain, double motionSampleTime) override;
|
|
|
|
|
void read_object_data(Main *bmain, double motionSampleTime) override;
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
} // namespace blender::io::usd
|