Choreonoid  1.8
MultiVector3Seq.h
Go to the documentation of this file.
1 
6 #ifndef CNOID_UTIL_MULTI_VECTOR3_SEQ_H
7 #define CNOID_UTIL_MULTI_VECTOR3_SEQ_H
8 
9 #include "MultiSeq.h"
10 #include "EigenTypes.h"
11 #include "exportdecl.h"
12 
13 namespace cnoid {
14 
15 class Mapping;
16 class YAMLWriter;
17 
18 class CNOID_EXPORT MultiVector3Seq : public MultiSeq<Vector3, Eigen::aligned_allocator<Vector3>>
19 {
21 
22 public:
24  MultiVector3Seq(int numFrames, int numParts = 1);
25  MultiVector3Seq(const MultiVector3Seq& org);
26  virtual ~MultiVector3Seq();
27  using BaseSeqType::operator=;
28  virtual std::shared_ptr<AbstractSeq> cloneSeq() const override;
29  void copySeqProperties(const MultiVector3Seq& source);
30 
31 protected:
32  virtual Vector3 defaultValue() const override;
33  virtual bool doReadSeq(const Mapping* archive, std::ostream& os) override;
34  virtual bool doWriteSeq(YAMLWriter& writer, std::function<void()> additionalPartCallback) override;
35 };
36 
37 #ifdef CNOID_BACKWARD_COMPATIBILITY
38 typedef std::shared_ptr<MultiVector3Seq> MultiVector3SeqPtr;
39 #endif
40 
41 }
42 
43 #endif
cnoid::Mapping
Definition: ValueTree.h:253
cnoid::Vector3
Eigen::Vector3d Vector3
Definition: EigenTypes.h:57
cnoid::MultiVector3Seq
Definition: MultiVector3Seq.h:18
cnoid::YAMLWriter
Definition: YAMLWriter.h:16
MultiSeq.h
cnoid::MultiSeq
Definition: MultiSeq.h:17
cnoid
Definition: AbstractSceneLoader.h:11
EigenTypes.h