Blender
V5.0
source
blender
io
usd
intern
usd_writer_points.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2024 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 <pxr/usd/usdGeom/points.h>
9
10
struct
Main
;
11
struct
PointCloud
;
12
13
namespace
blender::bke
{
14
class
AttributeIter
;
15
}
// namespace blender::bke
16
17
namespace
blender::io::usd
{
18
19
/* Writer for USD points. */
20
class
USDPointsWriter
final
:
public
USDAbstractWriter
{
21
public
:
22
USDPointsWriter
(
const
USDExporterContext
&ctx) :
USDAbstractWriter
(ctx) {}
23
~USDPointsWriter
()
final
= default;
24
25
protected:
26
void
do_write
(
HierarchyContext
&context)
override
;
27
28
private:
29
void
write_generic_data(const
bke
::AttributeIter &attr,
30
const pxr::UsdGeomPoints &usd_points,
31
pxr::UsdTimeCode time);
32
33
void
write_custom_data(const
PointCloud
*points,
34
const pxr::UsdGeomPoints &usd_points,
35
pxr::UsdTimeCode time);
36
37
void
write_velocities(const
PointCloud
*points,
38
const pxr::UsdGeomPoints &usd_points,
39
pxr::UsdTimeCode time);
40
};
41
42
}
// namespace blender::io::usd
final
#define final(a, b, c)
Definition
BLI_hash.h:19
blender::bke::AttributeIter
Definition
BKE_attribute.hh:426
blender::io::usd::USDAbstractWriter::USDAbstractWriter
USDAbstractWriter(const USDExporterContext &usd_export_context)
Definition
usd_writer_abstract.cc:145
blender::io::usd::USDPointsWriter::do_write
void do_write(HierarchyContext &context) override
Definition
usd_writer_points.cc:21
blender::io::usd::USDPointsWriter::USDPointsWriter
USDPointsWriter(const USDExporterContext &ctx)
Definition
usd_writer_points.hh:22
blender::io::usd::USDPointsWriter::~USDPointsWriter
~USDPointsWriter() final=default
blender::bke
Definition
AS_asset_library.hh:27
blender::io::usd
Definition
usd_armature_utils.cc:24
Main
Definition
BKE_main.hh:160
PointCloud
Definition
DNA_pointcloud_types.h:40
blender::io::HierarchyContext
Definition
IO_abstract_hierarchy_iterator.h:47
blender::io::usd::USDExporterContext
Definition
usd_exporter_context.hh:23
usd_writer_abstract.hh
override
bool override
Definition
wm_files.cc:1192
Generated on
for Blender by
doxygen
1.16.1