Open3D (C++ API)  0.11.0
Data Structures | Public Types | Public Member Functions
open3d::visualization::rendering::Open3DScene Class Reference

#include <Open3DScene.h>

Public Types

enum  LOD { LOD::HIGH_DETAIL, LOD::FAST }
 

Public Member Functions

 Open3DScene (Renderer &renderer)
 
 ~Open3DScene ()
 
ViewGetView () const
 
ViewHandle GetViewId () const
 
void ShowSkybox (bool enable)
 
void ShowAxes (bool enable)
 
void SetBackgroundColor (const Eigen::Vector4f &color)
 
void SetDownsampleThreshold (size_t n_points)
 
size_t GetDownsampleThreshold () const
 
void ClearGeometry ()
 
void AddGeometry (const std::string &name, std::shared_ptr< const geometry::Geometry3D > geom, const Material &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::PointCloud *geom, const Material &mat, bool add_downsampled_copy_for_fast_rendering=true)
 
void RemoveGeometry (const std::string &name)
 
void ShowGeometry (const std::string &name, bool show)
 Shows or hides the geometry with the specified name. More...
 
void AddModel (const std::string &name, const TriangleMeshModel &model)
 
void UpdateMaterial (const Material &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::AxisAlignedBoundingBoxGetBoundingBox ()
 
void SetLOD (LOD lod)
 
LOD GetLOD () const
 
SceneGetScene () const
 
CameraGetCamera () const
 
RendererGetRenderer () const
 

Member Enumeration Documentation

◆ LOD

Enumerator
HIGH_DETAIL 
FAST 

Constructor & Destructor Documentation

◆ Open3DScene()

open3d::visualization::rendering::Open3DScene::Open3DScene ( Renderer renderer)

◆ ~Open3DScene()

open3d::visualization::rendering::Open3DScene::~Open3DScene ( )

Member Function Documentation

◆ AddGeometry() [1/2]

void open3d::visualization::rendering::Open3DScene::AddGeometry ( const std::string &  name,
std::shared_ptr< const geometry::Geometry3D geom,
const Material mat,
bool  add_downsampled_copy_for_fast_rendering = true 
)

Adds a geometry with the specified name. Default visible is true.

◆ AddGeometry() [2/2]

void open3d::visualization::rendering::Open3DScene::AddGeometry ( const std::string &  name,
const t::geometry::PointCloud geom,
const Material mat,
bool  add_downsampled_copy_for_fast_rendering = true 
)

◆ AddModel()

void open3d::visualization::rendering::Open3DScene::AddModel ( const std::string &  name,
const TriangleMeshModel model 
)

◆ ClearGeometry()

void open3d::visualization::rendering::Open3DScene::ClearGeometry ( )

◆ GetBoundingBox()

const geometry::AxisAlignedBoundingBox& open3d::visualization::rendering::Open3DScene::GetBoundingBox ( )
inline

◆ GetCamera()

Camera * open3d::visualization::rendering::Open3DScene::GetCamera ( ) const

◆ GetDownsampleThreshold()

size_t open3d::visualization::rendering::Open3DScene::GetDownsampleThreshold ( ) const
inline

◆ GetGeometries()

std::vector< std::string > open3d::visualization::rendering::Open3DScene::GetGeometries ( )

◆ GetLOD()

Open3DScene::LOD open3d::visualization::rendering::Open3DScene::GetLOD ( ) const

◆ GetRenderer()

Renderer & open3d::visualization::rendering::Open3DScene::GetRenderer ( ) const

◆ GetScene()

Scene * open3d::visualization::rendering::Open3DScene::GetScene ( ) const

◆ GetView()

View * open3d::visualization::rendering::Open3DScene::GetView ( ) const

◆ GetViewId()

ViewHandle open3d::visualization::rendering::Open3DScene::GetViewId ( ) const
inline

◆ RemoveGeometry()

void open3d::visualization::rendering::Open3DScene::RemoveGeometry ( const std::string &  name)

◆ SetBackgroundColor()

void open3d::visualization::rendering::Open3DScene::SetBackgroundColor ( const Eigen::Vector4f &  color)

◆ SetDownsampleThreshold()

void open3d::visualization::rendering::Open3DScene::SetDownsampleThreshold ( size_t  n_points)
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.

◆ SetLOD()

void open3d::visualization::rendering::Open3DScene::SetLOD ( LOD  lod)

◆ ShowAxes()

void open3d::visualization::rendering::Open3DScene::ShowAxes ( bool  enable)

◆ ShowGeometry()

void open3d::visualization::rendering::Open3DScene::ShowGeometry ( const std::string &  name,
bool  show 
)

Shows or hides the geometry with the specified name.

◆ ShowSkybox()

void open3d::visualization::rendering::Open3DScene::ShowSkybox ( bool  enable)

◆ UpdateMaterial()

void open3d::visualization::rendering::Open3DScene::UpdateMaterial ( const Material mat)

Updates all geometries to use this material.

◆ UpdateModelMaterial()

void open3d::visualization::rendering::Open3DScene::UpdateModelMaterial ( const std::string &  name,
const TriangleMeshModel model 
)

Updates the named model to use this material.


The documentation for this class was generated from the following files: