Files
test2/source/blender/io/usd/intern/usd_reader_pointinstancer.hh
Bastien Montagne 21e2dfc6b4 Cleanup: Make io/usd/intern headers fully Cpp ones.
This code was actually already full Cpp, so it's essentially a massive
filenames cleanup.
2024-02-06 12:00:34 +01:00

43 lines
1.1 KiB
C++

/* SPDX-FileCopyrightText: 2023 Blender Authors
*
* SPDX-License-Identifier: GPL-2.0-or-later */
#pragma once
#include "usd_reader_xform.hh"
struct Collection;
namespace blender::io::usd {
/* Wraps the UsdGeomPointInstancer schema. Creates a Blender point cloud object. */
class USDPointInstancerReader : public USDXformReader {
public:
USDPointInstancerReader(const pxr::UsdPrim &prim,
const USDImportParams &import_params,
const ImportSettings &settings);
bool valid() const override;
void create_object(Main *bmain, double motionSampleTime) override;
void read_object_data(Main *bmain, double motionSampleTime) override;
pxr::SdfPathVector proto_paths() const;
/**
* Set the given collection on the Collection Info
* node referenced by the geometry nodes modifier
* on the object created by the reader. This assumes
* create_object() and read_object_data() have already
* been called.
*
* \param bmain: Pointer to Main
* \param coll: The collection to set
*/
void set_collection(Main *bmain, Collection &coll);
};
} // namespace blender::io::usd