15 namespace visualization {
32 std::function<
void(
bool)> on_toggled);
44 std::unique_ptr<Impl> impl_;
52 std::function<
void(
bool)> on_enabled,
53 std::function<
void(
const Color&)> on_color_changed);
66 std::unique_ptr<Impl> impl_;
73 std::function<
void(
double)> on_value_changed,
74 std::function<
void(
const Color&)> on_color_changed);
86 std::unique_ptr<Impl> impl_;
135 std::function<
void(
ItemId)> on_selection_changed);
139 std::unique_ptr<Impl> impl_;
math::float4 color
Definition: LineSetBuffers.cpp:45
ImGuiContext * context
Definition: Window.cpp:76
Definition: TreeView.h:28
~CheckableTextTreeCell()
Definition: TreeView.cpp:47
std::shared_ptr< Checkbox > GetCheckbox()
Definition: TreeView.cpp:49
std::shared_ptr< Label > GetLabel()
Definition: TreeView.cpp:53
void Layout(const LayoutContext &context) override
Definition: TreeView.cpp:65
CheckableTextTreeCell(const char *text, bool is_checked, std::function< void(bool)> on_toggled)
Definition: TreeView.cpp:33
Size CalcPreferredSize(const LayoutContext &context, const Constraints &constraints) const override
Definition: TreeView.cpp:57
Definition: TreeView.h:69
std::shared_ptr< NumberEdit > GetNumberEdit()
Definition: TreeView.cpp:172
Size CalcPreferredSize(const LayoutContext &context, const Constraints &constraints) const override
Definition: TreeView.cpp:180
std::shared_ptr< ColorEdit > GetColorEdit()
Definition: TreeView.cpp:176
void Layout(const LayoutContext &context) override
Definition: TreeView.cpp:188
ColormapTreeCell(double value, const Color &color, std::function< void(double)> on_value_changed, std::function< void(const Color &)> on_color_changed)
Definition: TreeView.cpp:152
~ColormapTreeCell()
Definition: TreeView.cpp:170
Definition: TreeView.h:47
std::shared_ptr< Checkbox > GetCheckbox()
Definition: TreeView.cpp:107
std::shared_ptr< ColorEdit > GetColorEdit()
Definition: TreeView.cpp:113
void Layout(const LayoutContext &context) override
Definition: TreeView.cpp:125
std::shared_ptr< Label > GetLabel()
Definition: TreeView.cpp:111
LUTTreeCell(const char *text, bool is_checked, const Color &color, std::function< void(bool)> on_enabled, std::function< void(const Color &)> on_color_changed)
Definition: TreeView.cpp:84
Size CalcPreferredSize(const LayoutContext &context, const Constraints &constraints) const override
Definition: TreeView.cpp:115
~LUTTreeCell()
Definition: TreeView.cpp:105
Definition: TreeView.h:89
Size CalcMinimumSize(const LayoutContext &context) const override
Definition: TreeView.cpp:354
std::vector< ItemId > GetItemChildren(ItemId parent_id) const
Definition: TreeView.cpp:308
ItemId AddTextItem(ItemId parent_id, const char *text)
Adds a text item to the tree.
Definition: TreeView.cpp:258
int ItemId
Definition: TreeView.h:93
void Clear()
Clears all the items.
Definition: TreeView.cpp:294
DrawResult Draw(const DrawContext &context) override
Definition: TreeView.cpp:364
ItemId AddItem(ItemId parent_id, std::shared_ptr< Widget > item)
Adds an item to the tree.
Definition: TreeView.cpp:236
void SetCanSelectItemsWithChildren(bool can_select)
Definition: TreeView.cpp:328
void RemoveItem(ItemId item_id)
Removes an item an all its children (if any) from the tree.
Definition: TreeView.cpp:263
ItemId GetRootItem() const
Definition: TreeView.cpp:234
~TreeView()
Definition: TreeView.cpp:232
ItemId GetSelectedItemId() const
Returns the currently selected item id in the tree.
Definition: TreeView.cpp:332
void Layout(const LayoutContext &context) override
Definition: TreeView.cpp:358
std::shared_ptr< Widget > GetItem(ItemId item_id) const
Returns item, or nullptr if item_id cannot be found.
Definition: TreeView.cpp:300
TreeView()
Definition: TreeView.cpp:226
Size CalcPreferredSize(const LayoutContext &context, const Constraints &constraints) const override
Definition: TreeView.cpp:349
void SetSelectedItemId(ItemId item_id)
Selects the indicated item of the list. Does not call onValueChanged.
Definition: TreeView.cpp:340
bool GetCanSelectItemsWithChildren() const
Definition: TreeView.cpp:324
void SetOnSelectionChanged(std::function< void(ItemId)> on_selection_changed)
Definition: TreeView.cpp:344
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 int
Definition: K4aPlugin.cpp:474
Definition: PinholeCameraIntrinsic.cpp:16
Definition: TreeView.cpp:28
Definition: TreeView.cpp:147
Definition: TreeView.cpp:77
Definition: TreeView.cpp:203