30 namespace visualization {
31 namespace visualizer {
51 std::set<SelectedIndex>>;
63 const std::map<std::string,
64 std::vector<std::pair<size_t, Eigen::Vector3d>>>&
67 const std::map<std::string,
68 std::vector<std::pair<size_t, Eigen::Vector3d>>>&
70 std::vector<SelectionSet>
GetSets();
80 const std::vector<gui::SceneWidget::PickableGeometry>& geometry);
83 void UpdatePointSize();
84 void UpdateSelectionGeometry();
90 struct SelectedPoints {
95 double point_size_ = 3.0;
96 bool is_active_ =
false;
97 size_t pick_order_ = 0;
98 std::vector<SelectedPoints> sets_;
99 int current_set_index_ = -1;
101 bool point_size_changed_ =
false;
Definition: O3DVisualizerSelections.h:35
void RemoveSet(int index)
Definition: O3DVisualizerSelections.cpp:46
void NewSet()
Definition: O3DVisualizerSelections.cpp:38
void MakeActive()
Definition: O3DVisualizerSelections.cpp:161
void SelectIndices(const std::map< std::string, std::vector< std::pair< size_t, Eigen::Vector3d >>> &indices)
Definition: O3DVisualizerSelections.cpp:74
void SelectSet(int index)
Definition: O3DVisualizerSelections.cpp:59
void MakeInactive()
Definition: O3DVisualizerSelections.cpp:183
std::map< std::string, std::set< SelectedIndex > > SelectionSet
Definition: O3DVisualizerSelections.h:51
~O3DVisualizerSelections()
Definition: O3DVisualizerSelections.cpp:36
void UnselectIndices(const std::map< std::string, std::vector< std::pair< size_t, Eigen::Vector3d >>> &indices)
Definition: O3DVisualizerSelections.cpp:94
void SetSelectableGeometry(const std::vector< gui::SceneWidget::PickableGeometry > &geometry)
Definition: O3DVisualizerSelections.cpp:194
size_t GetNumberOfSets() const
Definition: O3DVisualizerSelections.cpp:72
std::vector< SelectionSet > GetSets()
Definition: O3DVisualizerSelections.cpp:143
O3DVisualizerSelections(gui::SceneWidget &widget3d)
Definition: O3DVisualizerSelections.cpp:33
bool IsActive() const
Definition: O3DVisualizerSelections.cpp:181
void SetPointSize(double radius_world)
Definition: O3DVisualizerSelections.cpp:152
Definition: PinholeCameraIntrinsic.cpp:16
Definition: O3DVisualizerSelections.h:37
size_t index
Definition: O3DVisualizerSelections.h:38
size_t order
the index of the point within the object
Definition: O3DVisualizerSelections.h:39
bool operator!=(const SelectedIndex &rhs) const
the point in R^3 (for convenience)
Definition: O3DVisualizerSelections.h:43
Eigen::Vector3d point
Definition: O3DVisualizerSelections.h:41
bool operator<(const SelectedIndex &rhs) const
Definition: O3DVisualizerSelections.h:46