Choreonoid  1.8
MprPositionStatement.h
Go to the documentation of this file.
1 #ifndef CNOID_MANIPULATOR_PLUGIN_MPR_POSITION_STATEMENT_H
2 #define CNOID_MANIPULATOR_PLUGIN_MPR_POSITION_STATEMENT_H
3 
4 #include "MprStatement.h"
5 #include <cnoid/GeneralId>
6 #include "exportdecl.h"
7 
8 namespace cnoid {
9 
10 class MprPosition;
11 class MprProgram;
12 
13 class CNOID_EXPORT MprPositionStatement : public MprStatement
14 {
15 public:
17 
18  virtual std::string label(int index) const override;
19  virtual std::string positionLabel() const;
20 
21  const GeneralId& positionId() const { return positionId_; }
22  void setPositionId(const GeneralId& id){ positionId_ = id; }
23 
24  MprPosition* position();
25  const MprPosition* position() const;
26 
27  virtual bool read(MprProgram* program, const Mapping& archive) override;
28  virtual bool write(Mapping& archive) const override;
29 
30 protected:
32  virtual Referenced* doClone(CloneMap* cloneMap) const override;
33 
34 private:
35  GeneralId positionId_;
36 };
37 
39 
40 }
41 
42 #endif
cnoid::Mapping
Definition: ValueTree.h:253
cnoid::GeneralId
Definition: GeneralId.h:11
cnoid::write
Listing * write(Mapping *mapping, const std::string &key, const Eigen::MatrixBase< Derived > &x)
Definition: EigenArchive.h:145
cnoid::MprPositionStatement::positionId
const GeneralId & positionId() const
Definition: MprPositionStatement.h:21
cnoid::read
bool read(const Mapping *mapping, const std::string &key, Eigen::MatrixBase< Derived > &x)
Definition: EigenArchive.h:43
cnoid::ref_ptr
Definition: Referenced.h:103
cnoid::MprPositionStatement
Definition: MprPositionStatement.h:13
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::MprPositionStatement::setPositionId
void setPositionId(const GeneralId &id)
Definition: MprPositionStatement.h:22
cnoid::MprPositionStatementPtr
ref_ptr< MprPositionStatement > MprPositionStatementPtr
Definition: MprPositionStatement.h:38
cnoid::CloneMap
Definition: CloneMap.h:13
cnoid::MprStatement
Definition: MprStatement.h:16
cnoid::MprPosition
Definition: MprPosition.h:23
cnoid::Referenced
Definition: Referenced.h:54
cnoid::MprProgram
Definition: MprProgram.h:21
MprStatement.h