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

#include <Open3DScene.h>

Public Types

enum  LightingProfile {
  LightingProfile::HARD_SHADOWS, LightingProfile::DARK_SHADOWS, LightingProfile::MED_SHADOWS, LightingProfile::SOFT_SHADOWS,
  LightingProfile::NO_SHADOWS
}
 
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 SetBackground (const Eigen::Vector4f &color, std::shared_ptr< geometry::Image > image=nullptr)
 
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 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)
 
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...
 
void ModifyGeometryMaterial (const std::string &name, const Material &mat)
 
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

◆ LightingProfile

Enumerator
HARD_SHADOWS 
DARK_SHADOWS 
MED_SHADOWS 
SOFT_SHADOWS 
NO_SHADOWS 

◆ 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,
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

◆ HasGeometry()

bool open3d::visualization::rendering::Open3DScene::HasGeometry ( const std::string &  name) const

◆ ModifyGeometryMaterial()

void open3d::visualization::rendering::Open3DScene::ModifyGeometryMaterial ( const std::string &  name,
const Material mat 
)

◆ RemoveGeometry()

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

◆ SetBackground()

void open3d::visualization::rendering::Open3DScene::SetBackground ( const Eigen::Vector4f &  color,
std::shared_ptr< geometry::Image image = nullptr 
)

◆ 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.

◆ SetLighting()

void open3d::visualization::rendering::Open3DScene::SetLighting ( LightingProfile  profile,
const Eigen::Vector3f &  sun_dir 
)

◆ 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: