29 #include <filament/utils/Entity.h> 30 #include <filament/utils/EntityInstance.h> 33 #include <unordered_map> 43 class TransformManager;
48 namespace visualization {
50 class FilamentResourceManager;
67 void SetViewActive(
const ViewHandle& view_id,
bool is_active)
override;
68 void RemoveView(
const ViewHandle& view_id)
override;
76 const std::string&
name)
override;
77 std::vector<GeometryHandle> FindGeometryByName(
78 const std::string& name)
override;
85 bool receives_shadows)
override;
89 void SetLightIntensity(
const LightHandle&
id,
float intensity)
override;
91 const Eigen::Vector3f&
color)
override;
92 Eigen::Vector3f GetLightDirection(
const LightHandle&
id)
const override;
94 const Eigen::Vector3f& dir)
override;
96 const Eigen::Vector3f& pos)
override;
97 void SetLightFalloff(
const LightHandle&
id,
float falloff)
override;
101 void SetIndirectLightIntensity(
float intensity)
override;
102 float GetIndirectLightIntensity()
const override;
103 void SetIndirectLightRotation(
const Transform& rotation)
override;
104 Transform GetIndirectLightRotation()
const override;
109 bool enabled)
override;
118 void Draw(filament::Renderer& renderer);
132 bool IsValid()
const {
return !
self.isNull(); }
133 void ReleaseResources(filament::Engine& engine,
143 utils::Entity parent;
146 bool IsValid()
const {
return info.IsValid(); }
147 void ReleaseResources(filament::Engine& engine,
151 struct ViewContainer {
152 std::unique_ptr<FilamentView> view;
153 bool is_active =
true;
156 utils::EntityInstance<filament::TransformManager>
160 filament::Scene* scene_ =
nullptr;
162 filament::Engine& engine_;
165 std::unordered_map<REHandle_abstract, ViewContainer> views_;
166 std::unordered_map<REHandle_abstract, SceneEntity> entities_;
167 std::weak_ptr<filament::IndirectLight> indirect_light_;
168 std::weak_ptr<filament::Skybox> skybox_;
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:553
Definition: FilamentResourceManager.h:59
EntityType
Definition: RendererHandle.h:48
A bounding box that is aligned along the coordinate axes.
Definition: BoundingVolume.h:164
filament::Scene * GetNativeScene() const
Definition: FilamentScene.h:120
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 int32_t
Definition: K4aPlugin.cpp:394
Definition: FilamentScene.h:126
Definition: FilamentView.h:49
math::float4 color
Definition: LineSetBuffers.cpp:46
The base geometry class for 3D geometries.
Definition: Geometry3D.h:46
IndexBufferHandle ib
Definition: FilamentScene.h:130
EntityType type
Definition: FilamentScene.h:128
VertexBufferHandle vb
Definition: FilamentScene.h:129
Definition: RendererStructs.h:42
Eigen::Transform< float, 3, Eigen::Affine > Transform
Definition: Scene.h:49
Definition: Open3DViewer.h:29
std::string name
Definition: FilePCD.cpp:56
Definition: FilamentScene.h:53
Definition: FilamentCamera.h:31
Definition: RendererHandle.h:71
bool IsValid() const
Definition: FilamentScene.h:132