Choreonoid  1.8
Public Types | Public Member Functions | Protected Member Functions | List of all members
cnoid::Vector3Seq Class Reference

#include <Vector3Seq.h>

Inheritance diagram for cnoid::Vector3Seq:
cnoid::Seq< Vector3 > cnoid::AbstractSeq cnoid::ZMPSeq

Public Types

typedef Seq< Vector3BaseSeqType
 
typedef BaseSeqType::value_type value_type
 
- Public Types inherited from cnoid::Seq< Vector3 >
typedef Vector3 value_type
 

Public Member Functions

 Vector3Seq (int nFrames=0)
 
 Vector3Seq (const Vector3Seq &org)
 
virtual ~Vector3Seq ()
 
virtual std::shared_ptr< AbstractSeqcloneSeq () const override
 
bool loadPlainFormat (const std::string &filename, std::ostream &os=nullout())
 
bool saveAsPlainFormat (const std::string &filename, std::ostream &os=nullout())
 
- Public Member Functions inherited from cnoid::Seq< Vector3 >
 Seq (const char *seqType, int nFrames=0.0)
 
 Seq (const SeqType &org)
 
SeqTypeoperator= (const SeqType &rhs)
 
virtual AbstractSeqoperator= (const AbstractSeq &rhs) override
 
virtual std::shared_ptr< AbstractSeqcloneSeq () const override
 
virtual ~Seq ()
 
double frameRate () const
 
virtual double getFrameRate () const override
 
virtual void setFrameRate (double frameRate) override
 
int numFrames () const
 
virtual int getNumFrames () const override
 
virtual void setNumFrames (int n, bool fillNewElements=false) override
 
void clear ()
 
bool empty () const
 
double timeLength () const
 
int frameOfTime (double time) const
 
int lastFrameOfTime (double time) const
 
double timeOfFrame (int frame) const
 
virtual double getOffsetTime () const override
 
virtual void setOffsetTime (double time) override
 
int offsetTimeFrame () const
 
void setOffsetTimeFrame (int offset)
 
Vector3operator[] (int frameIndex)
 
const Vector3operator[] (int frameIndex) const
 
Vector3at (int frameIndex)
 
const Vector3at (int frameIndex) const
 
Vector3front ()
 
const Vector3front () const
 
Vector3back ()
 
const Vector3back () const
 
int clampFrameIndex (int frameIndex, bool &out_isValidRange)
 
- Public Member Functions inherited from cnoid::AbstractSeq
virtual ~AbstractSeq ()
 
void copySeqProperties (const AbstractSeq &source)
 
const std::string & seqType () const
 
virtual double getFrameRate () const =0
 
double getTimeStep () const
 
void setTimeStep (double timeStep)
 
double getTimeOfFrame (int frame) const
 
int getFrameOfTime (double time) const
 
virtual double getOffsetTime () const =0
 
int getOffsetTimeFrame () const
 
virtual int getNumFrames () const =0
 
void setTimeLength (double length, bool clearNewElements=false)
 
double getTimeLength () const
 
const std::string & seqContentName ()
 
virtual void setSeqContentName (const std::string &name)
 
bool readSeq (const Mapping *archive, std::ostream &os=nullout())
 
bool writeSeq (YAMLWriter &writer)
 
const std::string & seqMessage () const
 deprecated. Use the os parameter of readSeq to get messages in reading More...
 

Protected Member Functions

virtual Vector3 defaultValue () const override
 
virtual bool doReadSeq (const Mapping *archive, std::ostream &os) override
 
virtual bool doWriteSeq (YAMLWriter &writer, std::function< void()> writeAdditionalPart) override
 
- Protected Member Functions inherited from cnoid::Seq< Vector3 >
virtual Vector3 defaultValue () const
 
- Protected Member Functions inherited from cnoid::AbstractSeq
 AbstractSeq (const char *seqType)
 
 AbstractSeq (const AbstractSeq &org)
 
void setSeqType (const std::string &type)
 
void clearSeqMessage ()
 deprecated. Use the os parameter of readSeq to get messages in reading More...
 
void addSeqMessage (const std::string &message)
 deprecated. Use the os parameter of readSeq to get messages in reading More...
 

Additional Inherited Members

- Static Public Member Functions inherited from cnoid::AbstractSeq
static double defaultFrameRate ()
 
- Protected Attributes inherited from cnoid::Seq< Vector3 >
std::vector< Vector3container
 
double frameRate_
 
double offsetTime_
 

Member Typedef Documentation

◆ BaseSeqType

◆ value_type

Constructor & Destructor Documentation

◆ Vector3Seq() [1/2]

Vector3Seq::Vector3Seq ( int  nFrames = 0)

◆ Vector3Seq() [2/2]

Vector3Seq::Vector3Seq ( const Vector3Seq org)

◆ ~Vector3Seq()

Vector3Seq::~Vector3Seq ( )
virtual

Member Function Documentation

◆ cloneSeq()

std::shared_ptr< AbstractSeq > Vector3Seq::cloneSeq ( ) const
overridevirtual

Implements cnoid::AbstractSeq.

Reimplemented in cnoid::ZMPSeq.

◆ defaultValue()

Vector3 Vector3Seq::defaultValue ( ) const
overrideprotectedvirtual

◆ doReadSeq()

bool Vector3Seq::doReadSeq ( const Mapping archive,
std::ostream &  os 
)
overrideprotectedvirtual

Reimplemented from cnoid::AbstractSeq.

Reimplemented in cnoid::ZMPSeq.

◆ doWriteSeq()

bool Vector3Seq::doWriteSeq ( YAMLWriter writer,
std::function< void()>  writeAdditionalPart 
)
overrideprotectedvirtual

Reimplemented from cnoid::AbstractSeq.

Reimplemented in cnoid::ZMPSeq.

◆ loadPlainFormat()

bool Vector3Seq::loadPlainFormat ( const std::string &  filename,
std::ostream &  os = nullout() 
)

◆ saveAsPlainFormat()

bool Vector3Seq::saveAsPlainFormat ( const std::string &  filename,
std::ostream &  os = nullout() 
)

The documentation for this class was generated from the following files: