Blender V5.3
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
7
9#include "BLI_vector.hh"
10
11#include <pxr/usd/usdGeom/xformable.h>
12
13namespace blender::io::usd {
14
16 private:
18
19 public:
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
USDAbstractWriter(const USDExporterContext &usd_export_context)
USDTransformWriter(const USDExporterContext &ctx)
void set_xform_ops(const float4x4 &parent_relative_matrix, const pxr::UsdGeomXformable &xf)
bool check_is_animated(const HierarchyContext &context) const override
void do_write(HierarchyContext &context) override
virtual pxr::UsdGeomXformable create_xformable() const
bool should_apply_root_xform(const HierarchyContext &context) const
MatBase< float, 4, 4 > float4x4