Choreonoid
1.8
|
#include <MultiDeviceStateSeq.h>
Public Member Functions | |
MultiDeviceStateSeq () | |
MultiDeviceStateSeq (int numFrames, int numDevices=1) | |
MultiDeviceStateSeq (const MultiDeviceStateSeq &org) | |
virtual | ~MultiDeviceStateSeq () |
MultiDeviceStateSeq & | operator= (const MultiDeviceStateSeq &rhs) |
virtual std::shared_ptr< AbstractSeq > | cloneSeq () 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 () |
MultiSeqType & | operator= (const MultiSeqType &rhs) |
virtual AbstractSeq & | operator= (const AbstractSeq &rhs) override |
virtual std::shared_ptr< AbstractSeq > | cloneSeq () 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 () |
AbstractMultiSeq & | operator= (const AbstractMultiSeq &rhs) |
void | copySeqProperties (const AbstractMultiSeq &source) |
virtual int | getNumParts () const =0 |
virtual AbstractSeq & | operator= (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_ |
MultiDeviceStateSeq::MultiDeviceStateSeq | ( | ) |
MultiDeviceStateSeq::MultiDeviceStateSeq | ( | int | numFrames, |
int | numDevices = 1 |
||
) |
MultiDeviceStateSeq::MultiDeviceStateSeq | ( | const MultiDeviceStateSeq & | org | ) |
|
virtual |
|
overridevirtual |
Implements cnoid::AbstractMultiSeq.
|
overrideprotectedvirtual |
Reimplemented from cnoid::AbstractMultiSeq.
void MultiDeviceStateSeq::initialize | ( | const DeviceList<> & | devices | ) |
|
static |
MultiDeviceStateSeq & MultiDeviceStateSeq::operator= | ( | const MultiDeviceStateSeq & | rhs | ) |
|
overridevirtual |
Reimplemented from cnoid::AbstractMultiSeq.
|
overridevirtual |
Reimplemented from cnoid::AbstractMultiSeq.