1 #ifndef CNOID_BASE_POSITION_TAG_GROUP_ITEM_H
2 #define CNOID_BASE_POSITION_TAG_GROUP_ITEM_H
8 #include "exportdecl.h"
12 class PositionTagGroup;
24 virtual bool setName(
const std::string& name)
override;
29 const Isometry3& parentFramePosition()
const;
31 void setOriginOffset(
const Isometry3& T_offset,
bool requestPreview =
true);
33 SignalProxy<void()> sigOriginOffsetPreviewRequested();
35 void notifyOriginOffsetUpdate(
bool requestPreview =
true);
37 void clearTagSelection();
38 void setTagSelected(
int tagIndex,
bool on =
true);
39 bool checkTagSelected(
int tagIndex)
const;
40 const std::vector<int>& selectedTagIndices()
const;
41 void setSelectedTagIndices(
const std::vector<int>& indices);
45 virtual SgNode* getScene()
override;
50 double tagMarkerSize()
const;
51 void setTagMarkerSize(
double s);
53 bool originMarkerVisibility()
const;
54 void setOriginMarkerVisibility(
bool on);
56 bool edgeVisibility()
const;
57 void setEdgeVisiblility(
bool on);
59 float transparency()
const;
60 void setTransparency(
float t);
62 virtual bool store(
Archive& archive)
override;
63 virtual bool restore(
const Archive& archive)
override;
68 virtual Item* doDuplicate()
const override;
69 virtual void onConnectedToRoot()
override;
70 virtual void onDisconnectedFromRoot()
override;
71 virtual bool onNewTreePositionCheck(
72 bool isManualOperation, std::function<
void()>& out_callbackWhenAdded)
override;