32 namespace visualization {
36 struct MaterialRecord;
37 struct TriangleMeshModel;
54 std::shared_ptr<geometry::Image>
image =
nullptr);
72 downsample_threshold_ = n_points;
81 bool add_downsampled_copy_for_fast_rendering =
true);
88 bool add_downsampled_copy_for_fast_rendering =
true);
95 const Eigen::Matrix4d& transform);
123 struct GeometryData {
125 std::string fast_name;
126 std::string low_name;
129 GeometryData() : visible(false) {}
130 GeometryData(
const std::string& n,
const std::string& fast)
131 :
name(n), fast_name(fast), visible(true) {}
134 void SetGeometryToLOD(
const GeometryData&,
LOD lod);
141 Eigen::Vector4f background_color;
143 bool use_low_quality_if_available_ =
false;
144 bool axis_dirty_ =
true;
145 std::map<std::string, GeometryData> geometries_;
147 size_t downsample_threshold_ = 6000000;
std::shared_ptr< core::Tensor > image
CloudViewerScene::LightingProfile profile
Hierarchical CLOUDVIEWER Object.
void SetViewport(std::int32_t x, std::int32_t y, std::uint32_t width, std::uint32_t height)
const ccBBox & GetBoundingBox()
Eigen::Matrix4d GetGeometryTransform(const std::string &name)
void ShowSkybox(bool enable)
void ShowGeometry(const std::string &name, bool show)
Shows or hides the geometry with the specified name.
bool HasGeometry(const std::string &name) const
void ModifyGeometryMaterial(const std::string &name, const MaterialRecord &mat)
std::vector< std::string > GetGeometries()
void SetDownsampleThreshold(size_t n_points)
void UpdateModelMaterial(const std::string &name, const TriangleMeshModel &model)
Updates the named model to use this material.
void SetBackground(const Eigen::Vector4f &color, std::shared_ptr< geometry::Image > image=nullptr)
void SetGeometryTransform(const std::string &name, const Eigen::Matrix4d &transform)
const Eigen::Vector4f GetBackgroundColor() const
ViewHandle GetViewId() const
void RemoveGeometry(const std::string &name)
Renderer & GetRenderer() const
void ShowGroundPlane(bool enable, Scene::GroundPlane plane)
void ShowAxes(bool enable)
void UpdateMaterial(const MaterialRecord &mat)
Updates all geometries to use this material.
bool GeometryIsVisible(const std::string &name)
size_t GetDownsampleThreshold() const
void SetLighting(LightingProfile profile, const Eigen::Vector3f &sun_dir)
Camera * GetCamera() const
void AddGeometry(const std::string &name, const ccHObject *geom, const MaterialRecord &mat, bool add_downsampled_copy_for_fast_rendering=true)
Adds a geometry with the specified name. Default visible is true.
CloudViewerScene(Renderer &renderer)
void AddModel(const std::string &name, const TriangleMeshModel &model)
::ccPointCloud PointCloud
REHandle< EntityType::Scene > SceneHandle
REHandle< EntityType::View > ViewHandle
Generic file read and write utility for python interface.