28 #pragma warning(disable : 4068 4146 4293)
34 #include <filament/Box.h>
35 #include <filament/RenderableManager.h>
54 namespace visualization {
67 static std::unique_ptr<GeometryBuffersBuilder>
GetBuilder(
69 static std::unique_ptr<GeometryBuffersBuilder>
GetBuilder(
104 size_t n_subsamples = SIZE_MAX);
192 void ConstructThinLines(
uint32_t& n_vertices,
199 void ConstructWideLines(
uint32_t& n_vertices,
The base geometry class for 3D geometries.
Definition: Geometry3D.h:28
LineSet define a sets of lines in 3D. A typical application is to display the point cloud corresponde...
Definition: LineSet.h:29
A point cloud consists of point coordinates, and optionally point colors and point normals.
Definition: PointCloud.h:36
Triangle mesh contains vertices and triangles represented by the indices to the vertices.
Definition: TriangleMesh.h:35
The base geometry class.
Definition: Geometry.h:21
A LineSet contains points and lines joining them and optionally attributes on the points and lines.
Definition: LineSet.h:84
A point cloud contains a list of 3D points.
Definition: PointCloud.h:80
A triangle mesh contains vertices and triangles.
Definition: TriangleMesh.h:92
Definition: FilamentGeometryBuffersBuilder.h:57
std::tuple< VertexBufferHandle, IndexBufferHandle, IndexBufferHandle > Buffers
Definition: FilamentGeometryBuffersBuilder.h:64
bool adjust_colors_for_srgb_tonemapping_
Definition: FilamentGeometryBuffersBuilder.h:99
virtual ~GeometryBuffersBuilder()=default
static void DeallocateBuffer(void *buffer, size_t size, void *user_ptr)
Definition: FilamentGeometryBuffersBuilder.cpp:269
virtual void SetAdjustColorsForSRGBToneMapping(bool adjust)
Definition: FilamentGeometryBuffersBuilder.h:89
std::uint32_t IndexType
Definition: FilamentGeometryBuffersBuilder.h:65
static std::unique_ptr< GeometryBuffersBuilder > GetBuilder(const geometry::Geometry3D &geometry)
Definition: FilamentGeometryBuffersBuilder.cpp:200
bool wide_lines_
Definition: FilamentGeometryBuffersBuilder.h:98
size_t downsample_threshold_
Definition: FilamentGeometryBuffersBuilder.h:97
virtual void SetWideLines()
Definition: FilamentGeometryBuffersBuilder.h:87
static IndexBufferHandle CreateIndexBuffer(size_t max_index, size_t n_subsamples=SIZE_MAX)
Definition: PointCloudBuffers.cpp:89
virtual void SetDownsampleThreshold(size_t min_points)
Definition: FilamentGeometryBuffersBuilder.h:81
virtual filament::RenderableManager::PrimitiveType GetPrimitiveType() const =0
virtual filament::Box ComputeAABB()=0
virtual Buffers ConstructBuffers()=0
Definition: FilamentGeometryBuffersBuilder.h:135
filament::RenderableManager::PrimitiveType GetPrimitiveType() const override
Definition: LineSetBuffers.cpp:86
LineSetBuffersBuilder(const geometry::LineSet &geometry)
Definition: LineSetBuffers.cpp:83
Buffers ConstructBuffers() override
Definition: LineSetBuffers.cpp:226
filament::Box ComputeAABB() override
Definition: LineSetBuffers.cpp:349
Definition: FilamentGeometryBuffersBuilder.h:121
Buffers ConstructBuffers() override
Definition: PointCloudBuffers.cpp:160
filament::RenderableManager::PrimitiveType GetPrimitiveType() const override
Definition: PointCloudBuffers.cpp:155
filament::Box ComputeAABB() override
Definition: PointCloudBuffers.cpp:266
PointCloudBuffersBuilder(const geometry::PointCloud &geometry)
Definition: PointCloudBuffers.cpp:151
Definition: FilamentGeometryBuffersBuilder.h:179
Buffers ConstructBuffers() override
Definition: LineSetBuffers.cpp:550
filament::RenderableManager::PrimitiveType GetPrimitiveType() const override
Definition: LineSetBuffers.cpp:402
filament::Box ComputeAABB() override
Definition: LineSetBuffers.cpp:632
TLineSetBuffersBuilder(const t::geometry::LineSet &geometry)
Definition: LineSetBuffers.cpp:365
Definition: FilamentGeometryBuffersBuilder.h:151
Buffers ConstructBuffers() override
Definition: TriangleMeshBuffers.cpp:614
filament::RenderableManager::PrimitiveType GetPrimitiveType() const override
Definition: TriangleMeshBuffers.cpp:610
filament::Box ComputeAABB() override
Definition: TriangleMeshBuffers.cpp:810
TMeshBuffersBuilder(const t::geometry::TriangleMesh &geometry)
Definition: TriangleMeshBuffers.cpp:565
Definition: FilamentGeometryBuffersBuilder.h:165
Buffers ConstructBuffers() override
Definition: PointCloudBuffers.cpp:337
filament::Box ComputeAABB() override
Definition: PointCloudBuffers.cpp:468
filament::RenderableManager::PrimitiveType GetPrimitiveType() const override
Definition: PointCloudBuffers.cpp:332
TPointCloudBuffersBuilder(const t::geometry::PointCloud &geometry)
Definition: PointCloudBuffers.cpp:289
Definition: FilamentGeometryBuffersBuilder.h:107
filament::Box ComputeAABB() override
Definition: TriangleMeshBuffers.cpp:549
Buffers ConstructBuffers() override
Definition: TriangleMeshBuffers.cpp:415
TriangleMeshBuffersBuilder(const geometry::TriangleMesh &geometry)
Definition: TriangleMeshBuffers.cpp:406
filament::RenderableManager::PrimitiveType GetPrimitiveType() const override
Definition: TriangleMeshBuffers.cpp:410
const char const char value recording_handle imu_sample recording_handle uint8_t size_t data_size k4a_record_configuration_t config target_format k4a_capture_t capture_handle k4a_imu_sample_t imu_sample playback_handle k4a_logging_message_cb_t void min_level device_handle k4a_imu_sample_t timeout_in_ms capture_handle capture_handle capture_handle image_handle temperature_c k4a_image_t image_handle uint8_t image_handle image_handle image_handle image_handle uint32_t
Definition: K4aPlugin.cpp:548
REHandle< EntityType::IndexBuffer > IndexBufferHandle
Definition: RendererHandle.h:139
REHandle< EntityType::VertexBuffer > VertexBufferHandle
Definition: RendererHandle.h:138
Definition: PinholeCameraIntrinsic.cpp:16