Go to the documentation of this file.
5 #ifndef CNOID_BASE_POINT_SET_ITEM_H
6 #define CNOID_BASE_POINT_SET_ITEM_H
10 #include <cnoid/RectRegionMarker>
11 #include <cnoid/stdx/optional>
12 #include "exportdecl.h"
17 class PointSetItemImpl;
28 virtual bool setName(
const std::string& name)
override;
33 virtual void notifyUpdate()
override;
35 virtual SgNode* getScene()
override;
38 void setOffsetPosition(
const Isometry3& T);
40 void notifyOffsetPositionChange(
bool doNotifyScene =
true);
44 [[deprecated(
"Use offsetPosition.")]]
46 [[deprecated(
"Use setOffsetPosition.")]]
48 [[deprecated(
"Use sigOffsetPositionChanged.")]]
50 [[deprecated(
"Use notifyOffsetPositionChange.")]]
57 void setRenderingMode(
int mode);
58 int renderingMode()
const;
60 void setPointSize(
double size);
61 double pointSize()
const;
63 static double defaultVoxelSize();
64 double voxelSize()
const;
65 void setVoxelSize(
double size);
67 void setEditable(
bool on);
68 bool isEditable()
const;
70 int numAttentionPoints()
const;
71 Vector3 attentionPoint(
int index)
const;
72 void clearAttentionPoints();
73 void addAttentionPoint(
const Vector3& p);
75 void notifyAttentionPointChange();
77 stdx::optional<Vector3> attentionPoint()
const;
79 void clearAttentionPoint();
80 void setAttentionPoint(
const Vector3& p);
86 virtual bool store(
Archive& archive)
override;
87 virtual bool restore(
const Archive& archive)
override;
90 virtual Item* doDuplicate()
const override;
94 PointSetItemImpl* impl;
Definition: PolyhedralRegion.h:13
Eigen::Vector3d Vector3
Definition: EigenTypes.h:57
SignalProxy< void(const Isometry3 &T)> sigOffsetTransformChanged()
Definition: PointSetItem.h:49
Definition: ExtensionManager.h:23
Definition: PutPropertyFunction.h:51
RenderingMode
Definition: PointSetItem.h:53
Eigen::Isometry3d Isometry3
Definition: EigenTypes.h:73
Definition: Referenced.h:103
ref_ptr< PointSetItem > PointSetItemPtr
Definition: PointSetItem.h:98
@ VOXEL
Definition: PointSetItem.h:54
Definition: AbstractSceneLoader.h:11
Definition: RenderableItem.h:11
Definition: SceneDrawables.h:636
const Isometry3 & offsetTransform() const
Definition: PointSetItem.h:45
void notifyOffsetTransformChange()
Definition: PointSetItem.h:51
void setOffsetTransform(const Isometry3 &T)
Definition: PointSetItem.h:47
Definition: SceneGraph.h:157
Definition: PointSetItem.h:19