47 namespace visualization {
52 struct TriangleMeshModel;
59 View* GetView()
const;
62 void ShowSkybox(
bool enable);
63 void ShowAxes(
bool enable);
64 void SetBackgroundColor(
const Eigen::Vector4f&
color);
70 downsample_threshold_ = n_points;
76 void AddGeometry(
const std::string&
name,
77 std::shared_ptr<const geometry::Geometry3D> geom,
79 bool add_downsampled_copy_for_fast_rendering =
true);
83 void AddGeometry(
const std::string& name,
86 bool add_downsampled_copy_for_fast_rendering =
true);
87 void RemoveGeometry(
const std::string& name);
89 void ShowGeometry(
const std::string& name,
bool show);
93 void UpdateMaterial(
const Material& mat);
95 void UpdateModelMaterial(
const std::string& name,
97 std::vector<std::string> GetGeometries();
105 void SetLOD(
LOD lod);
108 Scene* GetScene()
const;
109 Camera* GetCamera()
const;
113 struct GeometryData {
115 std::string fast_name;
116 std::string low_name;
119 GeometryData() : visible(
false) {}
120 GeometryData(
const std::string& n,
const std::string& fast)
121 :
name(n), fast_name(fast), visible(
true) {}
124 void SetGeometryToLOD(
const GeometryData&,
LOD lod);
131 LOD lod_ = LOD::HIGH_DETAIL;
132 bool use_low_quality_if_available_ =
false;
133 std::map<std::string, GeometryData> geometries_;
135 size_t downsample_threshold_ = 6000000;
Definition: Open3DScene.h:54
A bounding box that is aligned along the coordinate axes.
Definition: BoundingVolume.h:149
math::float4 color
Definition: LineSetBuffers.cpp:63
Definition: Renderer.h:65
size_t GetDownsampleThreshold() const
Definition: Open3DScene.h:72
A pointcloud contains a set of 3D points.
Definition: PointCloud.h:93
ViewHandle GetViewId() const
Definition: Open3DScene.h:60
Definition: Material.h:40
Definition: PinholeCameraIntrinsic.cpp:35
std::string name
Definition: FilePCD.cpp:58
void SetDownsampleThreshold(size_t n_points)
Definition: Open3DScene.h:69
LOD
Definition: Open3DScene.h:101
const geometry::AxisAlignedBoundingBox & GetBoundingBox()
Definition: Open3DScene.h:99