Blender
V5.3
source
blender
io
usd
intern
usd_writer_transform.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2019 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
#pragma once
5
6
#include "
usd_writer_abstract.hh
"
7
8
#include "
BLI_math_matrix_types.hh
"
9
#include "
BLI_vector.hh
"
10
11
#include <pxr/usd/usdGeom/xformable.h>
12
13
namespace
blender::io::usd
{
14
15
class
USDTransformWriter
:
public
USDAbstractWriter
{
16
private
:
17
Vector<pxr::UsdGeomXformOp>
xformOps_;
18
19
public
:
20
USDTransformWriter
(
const
USDExporterContext
&ctx);
21
22
protected
:
23
void
do_write
(
HierarchyContext
&context)
override
;
24
bool
check_is_animated
(
const
HierarchyContext
&context)
const override
;
25
bool
should_apply_root_xform
(
const
HierarchyContext
&context)
const
;
26
void
set_xform_ops
(
const
float4x4
&parent_relative_matrix,
const
pxr::UsdGeomXformable &xf);
27
28
/* Subclasses may override this to create prims other than UsdGeomXform. */
29
virtual
pxr::UsdGeomXformable
create_xformable
()
const
;
30
};
31
32
}
// namespace blender::io::usd
BLI_math_matrix_types.hh
BLI_vector.hh
blender::Vector
Definition
BLI_vector.hh:76
blender::io::usd::USDAbstractWriter::USDAbstractWriter
USDAbstractWriter(const USDExporterContext &usd_export_context)
Definition
usd_writer_abstract.cc:218
blender::io::usd::USDTransformWriter::USDTransformWriter
USDTransformWriter(const USDExporterContext &ctx)
Definition
usd_writer_transform.cc:30
blender::io::usd::USDTransformWriter::set_xform_ops
void set_xform_ops(const float4x4 &parent_relative_matrix, const pxr::UsdGeomXformable &xf)
Definition
usd_writer_transform.cc:142
blender::io::usd::USDTransformWriter::check_is_animated
bool check_is_animated(const HierarchyContext &context) const override
Definition
usd_writer_transform.cc:128
blender::io::usd::USDTransformWriter::do_write
void do_write(HierarchyContext &context) override
Definition
usd_writer_transform.cc:69
blender::io::usd::USDTransformWriter::create_xformable
virtual pxr::UsdGeomXformable create_xformable() const
Definition
usd_writer_transform.cc:32
blender::io::usd::USDTransformWriter::should_apply_root_xform
bool should_apply_root_xform(const HierarchyContext &context) const
Definition
usd_writer_transform.cc:50
blender::io::usd
Definition
usd_armature_utils.cc:24
blender::float4x4
MatBase< float, 4, 4 > float4x4
Definition
BLI_math_matrix_types.hh:1024
blender::io::HierarchyContext
Definition
IO_abstract_hierarchy_iterator.h:52
blender::io::usd::USDExporterContext
Definition
usd_exporter_context.hh:25
usd_writer_abstract.hh
Generated on
for Blender by
doxygen
1.18.0