Choreonoid  1.8
Public Member Functions | Protected Member Functions | List of all members
cnoid::DeviceState Class Referenceabstract

#include <Device.h>

Inheritance diagram for cnoid::DeviceState:
cnoid::ClonableReferenced cnoid::Referenced cnoid::Device cnoid::AccelerationSensor cnoid::AttachmentDevice cnoid::Camera cnoid::DigitalIoDevice cnoid::ForceSensor cnoid::HolderDevice cnoid::Light cnoid::MarkerDevice cnoid::RangeSensor cnoid::RateGyroSensor

Public Member Functions

virtual ~DeviceState ()
 
virtual const char * typeName () const =0
 
virtual void copyStateFrom (const DeviceState &other)=0
 
virtual DeviceStatecloneState () const =0
 
virtual int stateSize () const =0
 
virtual const double * readState (const double *buf)=0
 
virtual double * writeState (double *out_buf) const =0
 
- Public Member Functions inherited from cnoid::ClonableReferenced
virtual ReferenceddoClone (CloneMap *cloneMap) const =0
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 

Protected Member Functions

 DeviceState ()
 
 DeviceState (const DeviceState &)
 
- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
int refCount () const
 

Constructor & Destructor Documentation

◆ DeviceState() [1/2]

cnoid::DeviceState::DeviceState ( )
inlineprotected

◆ DeviceState() [2/2]

cnoid::DeviceState::DeviceState ( const DeviceState )
inlineprotected

◆ ~DeviceState()

virtual cnoid::DeviceState::~DeviceState ( )
inlinevirtual

Member Function Documentation

◆ cloneState()

virtual DeviceState* cnoid::DeviceState::cloneState ( ) const
pure virtual

◆ copyStateFrom()

virtual void cnoid::DeviceState::copyStateFrom ( const DeviceState other)
pure virtual

◆ readState()

virtual const double* cnoid::DeviceState::readState ( const double *  buf)
pure virtual
Returns
The position in the buf after reading. The value is used when the super class's readState is called by the inherited class.

Implemented in cnoid::Camera, cnoid::RangeSensor, cnoid::Light, cnoid::ForceSensor, cnoid::MarkerDevice, cnoid::AccelerationSensor, cnoid::PointLight, cnoid::RateGyroSensor, cnoid::HolderDevice, cnoid::SpotLight, cnoid::AttachmentDevice, and cnoid::DigitalIoDevice.

◆ stateSize()

virtual int cnoid::DeviceState::stateSize ( ) const
pure virtual

◆ typeName()

virtual const char* cnoid::DeviceState::typeName ( ) const
pure virtual

◆ writeState()

virtual double* cnoid::DeviceState::writeState ( double *  out_buf) const
pure virtual
Returns
The position in the buf after reading. The value is used when the super class's readState is called by the inherited class.

Implemented in cnoid::Camera, cnoid::RangeSensor, cnoid::Light, cnoid::ForceSensor, cnoid::MarkerDevice, cnoid::AccelerationSensor, cnoid::PointLight, cnoid::RateGyroSensor, cnoid::HolderDevice, cnoid::SpotLight, cnoid::AttachmentDevice, and cnoid::DigitalIoDevice.


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