Choreonoid  1.8
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
cnoid::MultiDeviceStateSeq Class Reference

#include <MultiDeviceStateSeq.h>

Inheritance diagram for cnoid::MultiDeviceStateSeq:
cnoid::MultiSeq< DeviceStatePtr > cnoid::Deque2D< DeviceStatePtr, std::allocator< DeviceStatePtr > > cnoid::AbstractMultiSeq cnoid::AbstractSeq

Public Member Functions

 MultiDeviceStateSeq ()
 
 MultiDeviceStateSeq (int numFrames, int numDevices=1)
 
 MultiDeviceStateSeq (const MultiDeviceStateSeq &org)
 
virtual ~MultiDeviceStateSeq ()
 
MultiDeviceStateSeqoperator= (const MultiDeviceStateSeq &rhs)
 
virtual std::shared_ptr< AbstractSeqcloneSeq () const override
 
void initialize (const DeviceList<> &devices)
 
virtual int partIndex (const std::string &partLabel) const override
 
virtual const std::string & partLabel (int partIndex) const override
 
- Public Member Functions inherited from cnoid::MultiSeq< DeviceStatePtr >
 MultiSeq (const char *seqType)
 
 MultiSeq (const char *seqType, int numFrames, int numParts)
 
 MultiSeq (const MultiSeqType &org)
 
virtual ~MultiSeq ()
 
MultiSeqTypeoperator= (const MultiSeqType &rhs)
 
virtual AbstractSeqoperator= (const AbstractSeq &rhs) override
 
virtual std::shared_ptr< AbstractSeqcloneSeq () const override
 
void copySeqProperties (const MultiSeqType &source)
 
virtual void setDimension (int newNumFrames, int newNumParts, bool fillNewElements=false) override
 
virtual double getFrameRate () const override
 
double frameRate () const
 
virtual void setFrameRate (double frameRate) override
 
const double timeStep () const
 
virtual void setNumParts (int newNumParts, bool fillNewElements=false) override
 
int numFrames () const
 
virtual int getNumFrames () const override
 
virtual void setNumFrames (int newNumFrames, bool fillNewElements=false) override
 
void clearFrames ()
 
virtual int getNumParts () const override
 
int numParts () const
 
double timeLength () const
 
int frameOfTime (double time) const
 
double timeOfFrame (int frame) const
 
double offsetTime () const
 
virtual double getOffsetTime () const override
 
virtual void setOffsetTime (double time) override
 
int offsetTimeFrame () const
 
void setOffsetTimeFrame (int offset)
 
const Part part (int index) const
 
Part part (int index)
 
Frame frame (int index)
 
const Frame frame (int index) const
 
void popFrontFrame ()
 
Frame appendFrame ()
 
int clampFrameIndex (int frameIndex)
 
- Public Member Functions inherited from cnoid::AbstractMultiSeq
 AbstractMultiSeq (const char *seqType)
 
 AbstractMultiSeq (const AbstractMultiSeq &org)
 
virtual ~AbstractMultiSeq ()
 
AbstractMultiSeqoperator= (const AbstractMultiSeq &rhs)
 
void copySeqProperties (const AbstractMultiSeq &source)
 
virtual int getNumParts () const =0
 
virtual AbstractSeqoperator= (const AbstractSeq &rhs)
 
- 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...
 

Static Public Member Functions

static const std::string & key ()
 
- Static Public Member Functions inherited from cnoid::AbstractSeq
static double defaultFrameRate ()
 

Protected Member Functions

virtual bool doWriteSeq (YAMLWriter &writer, std::function< void()> additionalPartCallback) override
 
- Protected Member Functions inherited from cnoid::MultiSeq< DeviceStatePtr >
virtual value_type defaultValue () const
 
- Protected Member Functions inherited from cnoid::AbstractMultiSeq
std::vector< std::string > readSeqPartLabels (const Mapping *archive)
 
bool writeSeqPartLabels (YAMLWriter &writer)
 
- Protected Member Functions inherited from cnoid::AbstractSeq
 AbstractSeq (const char *seqType)
 
 AbstractSeq (const AbstractSeq &org)
 
void setSeqType (const std::string &type)
 
virtual bool doReadSeq (const Mapping *archive, std::ostream &os)
 
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

- Public Types inherited from cnoid::MultiSeq< DeviceStatePtr >
typedef Deque2D< DeviceStatePtr, std::allocator< DeviceStatePtr > > Container
 
typedef Container::value_type value_type
 
typedef Container::Row Frame
 
typedef Container::Column Part
 
typedef value_type Element
 
- Protected Attributes inherited from cnoid::MultiSeq< DeviceStatePtr >
double frameRate_
 
double offsetTime_
 

Constructor & Destructor Documentation

◆ MultiDeviceStateSeq() [1/3]

MultiDeviceStateSeq::MultiDeviceStateSeq ( )

◆ MultiDeviceStateSeq() [2/3]

MultiDeviceStateSeq::MultiDeviceStateSeq ( int  numFrames,
int  numDevices = 1 
)

◆ MultiDeviceStateSeq() [3/3]

MultiDeviceStateSeq::MultiDeviceStateSeq ( const MultiDeviceStateSeq org)

◆ ~MultiDeviceStateSeq()

MultiDeviceStateSeq::~MultiDeviceStateSeq ( )
virtual

Member Function Documentation

◆ cloneSeq()

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

◆ doWriteSeq()

bool MultiDeviceStateSeq::doWriteSeq ( YAMLWriter writer,
std::function< void()>  additionalPartCallback 
)
overrideprotectedvirtual

Reimplemented from cnoid::AbstractMultiSeq.

◆ initialize()

void MultiDeviceStateSeq::initialize ( const DeviceList<> &  devices)

◆ key()

const std::string & MultiDeviceStateSeq::key ( )
static

◆ operator=()

MultiDeviceStateSeq & MultiDeviceStateSeq::operator= ( const MultiDeviceStateSeq rhs)

◆ partIndex()

int MultiDeviceStateSeq::partIndex ( const std::string &  partLabel) const
overridevirtual

Reimplemented from cnoid::AbstractMultiSeq.

◆ partLabel()

const std::string & MultiDeviceStateSeq::partLabel ( int  partIndex) const
overridevirtual

Reimplemented from cnoid::AbstractMultiSeq.


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