Choreonoid  1.8
Vector3Seq.h
Go to the documentation of this file.
1 
6 #ifndef CNOID_UTIL_VECTOR3_SEQ_H
7 #define CNOID_UTIL_VECTOR3_SEQ_H
8 
9 #include "Seq.h"
10 #include "EigenUtil.h"
11 #include "NullOut.h"
12 #include "exportdecl.h"
13 
14 namespace cnoid {
15 
16 class CNOID_EXPORT Vector3Seq : public Seq<Vector3>
17 {
18 public:
21 
22  Vector3Seq(int nFrames = 0);
23  Vector3Seq(const Vector3Seq& org);
24  virtual ~Vector3Seq();
25 
26  using BaseSeqType::operator=;
27  virtual std::shared_ptr<AbstractSeq> cloneSeq() const override;
28 
29  bool loadPlainFormat(const std::string& filename, std::ostream& os = nullout());
30  bool saveAsPlainFormat(const std::string& filename, std::ostream& os = nullout());
31 
32 protected:
33  virtual Vector3 defaultValue() const override;
34  virtual bool doReadSeq(const Mapping* archive, std::ostream& os) override;
35  virtual bool doWriteSeq(YAMLWriter& writer, std::function<void()> writeAdditionalPart) override;
36 };
37 
38 #ifdef CNOID_BACKWARD_COMPATIBILITY
39 typedef std::shared_ptr<Vector3Seq> Vector3SeqPtr;
40 #endif
41 
42 }
43 
44 #endif
cnoid::Mapping
Definition: ValueTree.h:253
EigenUtil.h
cnoid::Vector3
Eigen::Vector3d Vector3
Definition: EigenTypes.h:57
cnoid::Vector3Seq::value_type
BaseSeqType::value_type value_type
Definition: Vector3Seq.h:20
cnoid::YAMLWriter
Definition: YAMLWriter.h:16
cnoid::Seq
Definition: Seq.h:16
cnoid::Seq< Vector3 >::value_type
Vector3 value_type
Definition: Seq.h:21
NullOut.h
cnoid::nullout
std::ostream & nullout()
Definition: NullOut.cpp:26
cnoid
Definition: AbstractSceneLoader.h:11
cnoid::Vector3Seq::BaseSeqType
Seq< Vector3 > BaseSeqType
Definition: Vector3Seq.h:19
cnoid::Vector3Seq
Definition: Vector3Seq.h:16
Seq.h