Choreonoid  1.8
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
cnoid::CollisionSeq Class Reference

#include <CollisionSeq.h>

Inheritance diagram for cnoid::CollisionSeq:
cnoid::MultiSeq< std::shared_ptr< CollisionLinkPairList > > cnoid::Deque2D< std::shared_ptr< CollisionLinkPairList >, std::allocator< std::shared_ptr< CollisionLinkPairList > > > cnoid::AbstractMultiSeq cnoid::AbstractSeq

Public Member Functions

 CollisionSeq (CollisionSeqItem *collisionSeqItem)
 
bool loadStandardYAMLformat (const std::string &filename, std::ostream &os=nullout())
 
bool saveAsStandardYAMLformat (const std::string &filename)
 
void writeCollsionData (YAMLWriter &writer, std::shared_ptr< const CollisionLinkPairList > ptr)
 
void readCollisionData (int nFrames, const Listing &values)
 
- Public Member Functions inherited from cnoid::AbstractMultiSeq
 AbstractMultiSeq (const char *seqType)
 
 AbstractMultiSeq (const AbstractMultiSeq &org)
 
virtual ~AbstractMultiSeq ()
 
AbstractMultiSeqoperator= (const AbstractMultiSeq &rhs)
 
virtual std::shared_ptr< AbstractSeqcloneSeq () const =0
 
void copySeqProperties (const AbstractMultiSeq &source)
 
virtual int getNumParts () const =0
 
virtual int partIndex (const std::string &partLabel) const
 
virtual const std::string & partLabel (int partIndex) const
 
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...
 

Public Attributes

CollisionSeqItemcollisionSeqItem_
 

Protected Member Functions

virtual bool doReadSeq (const Mapping *archive, std::ostream &os) override
 
virtual bool doWriteSeq (YAMLWriter &writer, std::function< void()> additionalPartCallback) override
 
- 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)
 
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 ()
 

Constructor & Destructor Documentation

◆ CollisionSeq()

CollisionSeq::CollisionSeq ( CollisionSeqItem collisionSeqItem)

Member Function Documentation

◆ doReadSeq()

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

Reimplemented from cnoid::AbstractSeq.

◆ doWriteSeq()

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

Reimplemented from cnoid::AbstractMultiSeq.

◆ loadStandardYAMLformat()

bool CollisionSeq::loadStandardYAMLformat ( const std::string &  filename,
std::ostream &  os = nullout() 
)

◆ readCollisionData()

void CollisionSeq::readCollisionData ( int  nFrames,
const Listing values 
)

◆ saveAsStandardYAMLformat()

bool CollisionSeq::saveAsStandardYAMLformat ( const std::string &  filename)

◆ writeCollsionData()

void CollisionSeq::writeCollsionData ( YAMLWriter writer,
std::shared_ptr< const CollisionLinkPairList ptr 
)

Member Data Documentation

◆ collisionSeqItem_

CollisionSeqItem* cnoid::CollisionSeq::collisionSeqItem_

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