Go to the documentation of this file. 1 #ifndef CNOID_BASE_SCENE_POINT_SELECTION_MODE_H
2 #define CNOID_BASE_SCENE_POINT_SELECTION_MODE_H
5 #include <cnoid/EigenTypes>
6 #include <cnoid/Signal>
9 #include "exportdecl.h"
22 void setCustomModeId(
int id);
30 bool hasSameVertexWith(
const PointInfo& point)
const;
42 const Vector3f&
position()
const {
return position_; }
43 const Vector3f&
normal()
const {
return normal_; }
47 std::shared_ptr<SgNodePath> path_;
49 int triangleVertexIndex_;
54 friend class ScenePointSelectionMode::Impl;
61 const std::vector<PointInfoPtr>& selectedPoints()
const;
62 void clearSelection();
64 SignalProxy<void(
const std::vector<PointInfoPtr>& points)> sigPointSelectionAdded();
Definition: ScenePointSelectionMode.h:24
Definition: ScenePointSelectionMode.h:13
int triangleVertexIndex() const
Definition: ScenePointSelectionMode.h:40
const Vector3f & position() const
Definition: ScenePointSelectionMode.h:42
bool hasNormal() const
Definition: ScenePointSelectionMode.h:44
const SgNodePath & path() const
Definition: ScenePointSelectionMode.h:32
ref_ptr< PointInfo > PointInfoPtr
Definition: ScenePointSelectionMode.h:57
Definition: AbstractSceneLoader.h:11
const Vector3f & normal() const
Definition: ScenePointSelectionMode.h:43
bool operator==(ref_ptr< T > const &a, ref_ptr< U > const &b)
Definition: Referenced.h:211
int vertexIndex() const
Definition: ScenePointSelectionMode.h:38
Definition: Referenced.h:54
std::vector< SgNode * > SgNodePath
Definition: SceneGraph.h:24