Go to the documentation of this file. 1 #ifndef CNOID_UTIL_COORDINATE_FRAME_H
2 #define CNOID_UTIL_COORDINATE_FRAME_H
6 #include <cnoid/EigenTypes>
7 #include <cnoid/Signal>
9 #include "exportdecl.h"
13 class CoordinateFrameList;
19 EIGEN_MAKE_ALIGNED_OPERATOR_NEW
34 enum Mode { Local, Global };
36 int mode()
const {
return mode_; }
37 bool isLocal()
const {
return mode_ == Local; }
38 bool isGlobal()
const {
return mode_ == Global; }
44 const std::string&
note()
const {
return note_; }
45 void setNote(
const std::string& note) { note_ = note; }
56 PositionUpdate = 1 << 3
59 void notifyUpdate(
int flags);
67 Signal<void(
int flags)> sigUpdated_;
ref_ptr< CoordinateFrame > CoordinateFramePtr
Definition: CoordinateFrame.h:72
int mode() const
Definition: CoordinateFrame.h:36
Definition: ValueTree.h:253
Definition: GeneralId.h:11
const GeneralId & id() const
Definition: CoordinateFrame.h:31
Listing * write(Mapping *mapping, const std::string &key, const Eigen::MatrixBase< Derived > &x)
Definition: EigenArchive.h:145
Eigen::Isometry3d Isometry3
Definition: EigenTypes.h:73
const Isometry3 & position() const
Definition: CoordinateFrame.h:41
bool isGlobal() const
Definition: CoordinateFrame.h:38
Definition: Referenced.h:276
Mode
Definition: CoordinateFrame.h:34
bool isLocal() const
Definition: CoordinateFrame.h:37
bool read(const Mapping *mapping, const std::string &key, Eigen::MatrixBase< Derived > &x)
Definition: EigenArchive.h:43
Definition: CoordinateFrame.h:16
Definition: AbstractSceneLoader.h:11
Definition: CoordinateFrameList.h:12
void setNote(const std::string ¬e)
Definition: CoordinateFrame.h:45
const Isometry3 & T() const
Definition: CoordinateFrame.h:40
Definition: Referenced.h:54
const std::string & note() const
Definition: CoordinateFrame.h:44
void setMode(int mode)
Definition: CoordinateFrame.h:35
UpdateFlag
Definition: CoordinateFrame.h:52
void setPosition(const Isometry3 &T)
Definition: CoordinateFrame.h:42
SignalProxy< void(int flags)> sigUpdated()
Definition: CoordinateFrame.h:58