|
Open3D (C++ API)
0.15.1
|
#include <Open3DScene.h>
Public Member Functions | |
| Open3DScene (Renderer &renderer) | |
| ~Open3DScene () | |
| View * | GetView () const |
| ViewHandle | GetViewId () const |
| void | SetViewport (std::int32_t x, std::int32_t y, std::uint32_t width, std::uint32_t height) |
| void | ShowSkybox (bool enable) |
| void | ShowAxes (bool enable) |
| void | SetBackground (const Eigen::Vector4f &color, std::shared_ptr< geometry::Image > image=nullptr) |
| const Eigen::Vector4f | GetBackgroundColor () const |
| void | ShowGroundPlane (bool enable, Scene::GroundPlane plane) |
| void | SetLighting (LightingProfile profile, const Eigen::Vector3f &sun_dir) |
| void | SetDownsampleThreshold (size_t n_points) |
| size_t | GetDownsampleThreshold () const |
| void | ClearGeometry () |
| void | AddGeometry (const std::string &name, const geometry::Geometry3D *geom, const MaterialRecord &mat, bool add_downsampled_copy_for_fast_rendering=true) |
| Adds a geometry with the specified name. Default visible is true. More... | |
| void | AddGeometry (const std::string &name, const t::geometry::Geometry *geom, const MaterialRecord &mat, bool add_downsampled_copy_for_fast_rendering=true) |
| bool | HasGeometry (const std::string &name) const |
| void | RemoveGeometry (const std::string &name) |
| void | ShowGeometry (const std::string &name, bool show) |
| Shows or hides the geometry with the specified name. More... | |
| bool | GeometryIsVisible (const std::string &name) |
| void | SetGeometryTransform (const std::string &name, const Eigen::Matrix4d &transform) |
| Eigen::Matrix4d | GetGeometryTransform (const std::string &name) |
| void | ModifyGeometryMaterial (const std::string &name, const MaterialRecord &mat) |
| void | AddModel (const std::string &name, const TriangleMeshModel &model) |
| void | UpdateMaterial (const MaterialRecord &mat) |
| Updates all geometries to use this material. More... | |
| void | UpdateModelMaterial (const std::string &name, const TriangleMeshModel &model) |
| Updates the named model to use this material. More... | |
| std::vector< std::string > | GetGeometries () |
| const geometry::AxisAlignedBoundingBox & | GetBoundingBox () |
| void | SetLOD (LOD lod) |
| LOD | GetLOD () const |
| Scene * | GetScene () const |
| Camera * | GetCamera () const |
| Renderer & | GetRenderer () const |
| open3d::visualization::rendering::Open3DScene::Open3DScene | ( | Renderer & | renderer | ) |
| open3d::visualization::rendering::Open3DScene::~Open3DScene | ( | ) |
| void open3d::visualization::rendering::Open3DScene::AddGeometry | ( | const std::string & | name, |
| const geometry::Geometry3D * | geom, | ||
| const MaterialRecord & | mat, | ||
| bool | add_downsampled_copy_for_fast_rendering = true |
||
| ) |
Adds a geometry with the specified name. Default visible is true.
| void open3d::visualization::rendering::Open3DScene::AddGeometry | ( | const std::string & | name, |
| const t::geometry::Geometry * | geom, | ||
| const MaterialRecord & | mat, | ||
| bool | add_downsampled_copy_for_fast_rendering = true |
||
| ) |
| void open3d::visualization::rendering::Open3DScene::AddModel | ( | const std::string & | name, |
| const TriangleMeshModel & | model | ||
| ) |
| void open3d::visualization::rendering::Open3DScene::ClearGeometry | ( | ) |
| bool open3d::visualization::rendering::Open3DScene::GeometryIsVisible | ( | const std::string & | name | ) |
| const Eigen::Vector4f open3d::visualization::rendering::Open3DScene::GetBackgroundColor | ( | ) | const |
|
inline |
| Camera * open3d::visualization::rendering::Open3DScene::GetCamera | ( | ) | const |
|
inline |
| std::vector< std::string > open3d::visualization::rendering::Open3DScene::GetGeometries | ( | ) |
| Eigen::Matrix4d open3d::visualization::rendering::Open3DScene::GetGeometryTransform | ( | const std::string & | name | ) |
| Open3DScene::LOD open3d::visualization::rendering::Open3DScene::GetLOD | ( | ) | const |
| Renderer & open3d::visualization::rendering::Open3DScene::GetRenderer | ( | ) | const |
| Scene * open3d::visualization::rendering::Open3DScene::GetScene | ( | ) | const |
| View * open3d::visualization::rendering::Open3DScene::GetView | ( | ) | const |
|
inline |
| bool open3d::visualization::rendering::Open3DScene::HasGeometry | ( | const std::string & | name | ) | const |
| void open3d::visualization::rendering::Open3DScene::ModifyGeometryMaterial | ( | const std::string & | name, |
| const MaterialRecord & | mat | ||
| ) |
| void open3d::visualization::rendering::Open3DScene::RemoveGeometry | ( | const std::string & | name | ) |
| void open3d::visualization::rendering::Open3DScene::SetBackground | ( | const Eigen::Vector4f & | color, |
| std::shared_ptr< geometry::Image > | image = nullptr |
||
| ) |
|
inline |
Sets the maximum number of points before AddGeometry also adds a downsampled point cloud with number of points, used when rendering speed is important.
| void open3d::visualization::rendering::Open3DScene::SetGeometryTransform | ( | const std::string & | name, |
| const Eigen::Matrix4d & | transform | ||
| ) |
| void open3d::visualization::rendering::Open3DScene::SetLighting | ( | LightingProfile | profile, |
| const Eigen::Vector3f & | sun_dir | ||
| ) |
| void open3d::visualization::rendering::Open3DScene::SetLOD | ( | LOD | lod | ) |
| void open3d::visualization::rendering::Open3DScene::SetViewport | ( | std::int32_t | x, |
| std::int32_t | y, | ||
| std::uint32_t | width, | ||
| std::uint32_t | height | ||
| ) |
| void open3d::visualization::rendering::Open3DScene::ShowAxes | ( | bool | enable | ) |
| void open3d::visualization::rendering::Open3DScene::ShowGeometry | ( | const std::string & | name, |
| bool | show | ||
| ) |
Shows or hides the geometry with the specified name.
| void open3d::visualization::rendering::Open3DScene::ShowGroundPlane | ( | bool | enable, |
| Scene::GroundPlane | plane | ||
| ) |
| void open3d::visualization::rendering::Open3DScene::ShowSkybox | ( | bool | enable | ) |
| void open3d::visualization::rendering::Open3DScene::UpdateMaterial | ( | const MaterialRecord & | mat | ) |
Updates all geometries to use this material.
| void open3d::visualization::rendering::Open3DScene::UpdateModelMaterial | ( | const std::string & | name, |
| const TriangleMeshModel & | model | ||
| ) |
Updates the named model to use this material.
1.8.13