|
cisst-saw
|
#include <prmStateCartesian.h>
Public Member Functions | |
| prmStateCartesian (void) | |
| prmStateCartesian (const prmStateCartesian &other) | |
| prmStateCartesian & | operator= (const prmStateCartesian &other) |
| ~prmStateCartesian () | |
| void | GetMovingFrame (std::string &placeHolder) const |
| std::string | GetMovingFrame (void) const |
| void | SetMovingFrame (const std::string &newValue) |
| const std::string & | MovingFrame (void) const |
| std::string & | MovingFrame (void) |
| void | GetReferenceFrame (std::string &placeHolder) const |
| std::string | GetReferenceFrame (void) const |
| void | SetReferenceFrame (const std::string &newValue) |
| const std::string & | ReferenceFrame (void) const |
| std::string & | ReferenceFrame (void) |
| void | GetPosition (vctFrm3 &placeHolder) const |
| vctFrm3 | GetPosition (void) const |
| void | SetPosition (const vctFrm3 &newValue) |
| const vctFrm3 & | Position (void) const |
| vctFrm3 & | Position (void) |
| void | GetPositionIsValid (bool &placeHolder) const |
| bool | GetPositionIsValid (void) const |
| void | SetPositionIsValid (const bool &newValue) |
| const bool & | PositionIsValid (void) const |
| bool & | PositionIsValid (void) |
| void | GetVelocity (vct6 &placeHolder) const |
| vct6 | GetVelocity (void) const |
| void | SetVelocity (const vct6 &newValue) |
| const vct6 & | Velocity (void) const |
| vct6 & | Velocity (void) |
| void | GetVelocityIsValid (bool &placeHolder) const |
| bool | GetVelocityIsValid (void) const |
| void | SetVelocityIsValid (const bool &newValue) |
| const bool & | VelocityIsValid (void) const |
| bool & | VelocityIsValid (void) |
| void | GetForce (vct6 &placeHolder) const |
| vct6 | GetForce (void) const |
| void | SetForce (const vct6 &newValue) |
| const vct6 & | Force (void) const |
| vct6 & | Force (void) |
| void | GetForceIsValid (bool &placeHolder) const |
| bool | GetForceIsValid (void) const |
| void | SetForceIsValid (const bool &newValue) |
| const bool & | ForceIsValid (void) const |
| bool & | ForceIsValid (void) |
| void | SerializeRaw (std::ostream &outputStream) const override |
| void | DeSerializeRaw (std::istream &inputStream) override |
| void | ToStream (std::ostream &outputStream) const override |
| void | ToStreamRaw (std::ostream &outputStream, const char delimiter=' ', bool headerOnly=false, const std::string &headerPrefix="") const override |
| void | Copy (const prmStateCartesian &source) |
| bool | ScalarNumberIsFixed (void) const override |
| size_t | ScalarNumber (void) const override |
| Public Member Functions inherited from mtsGenericObject | |
| mtsGenericObject (void) | |
| mtsGenericObject (double timestamp, bool automaticTimestamp, bool valid) | |
| mtsGenericObject (const mtsGenericObject &other) | |
| virtual | ~mtsGenericObject (void) |
| mtsGenericObject & | operator= (const mtsGenericObject &other) |
| bool | SetTimestampIfAutomatic (double timestamp) |
| virtual bool | FromStreamRaw (std::istream &inputStream, const char delimiter=' ') |
| Public Member Functions inherited from cmnGenericObject | |
| virtual | ~cmnGenericObject (void) |
| virtual const cmnClassServicesBase * | Services (void) const =0 |
| bool | ReconstructFrom (const cmnGenericObject &other) |
| std::string | ToString (void) const |
| virtual cmnLogger::StreamBufType * | GetLogMultiplexer (void) const |
| virtual double | Scalar (const size_t CMN_UNUSED(index)) const CISST_THROW(std |
| virtual std::string | ScalarDescription (const size_t CMN_UNUSED(index), const std::string &CMN_UNUSED(userDescription)) const |
Static Public Member Functions | |
| static bool | ToPositionCartesianGet (const prmStateCartesian &_state, prmPositionCartesianGet &_position) |
| static bool | ToVelocityCartesianGet (const prmStateCartesian &_state, prmVelocityCartesianGet &_velocity) |
Public Attributes | |
| void SerializeBinary(std::ostream &outputStream) const CISST_THROW(std void DeSerializeBinary(std::istream &inputStream, const cmnDataFormat &localFormat, const cmnDataFormat &remoteFormat) CISST_THROW(std void SerializeText(std::ostream &outputStream, const char delimiter=',') const CISST_THROW(std std::string | SerializeDescription (const char delimiter=',', const std::string &userDescription="") const |
| void DeSerializeText(std::istream &inputStream, const char delimiter=',') CISST_THROW(std std::string | HumanReadable (void) const |
Protected Attributes | |
| std::string | mMovingFrame |
| std::string | mReferenceFrame |
| vctFrm3 | mPosition |
| bool | mPositionIsValid |
| vct6 | mVelocity |
| bool | mVelocityIsValid |
| vct6 | mForce |
| bool | mForceIsValid |
| prmStateCartesian::prmStateCartesian | ( | void | ) |
| prmStateCartesian::prmStateCartesian | ( | const prmStateCartesian & | other | ) |
| prmStateCartesian::~prmStateCartesian | ( | ) |
| void prmStateCartesian::Copy | ( | const prmStateCartesian & | source | ) |
|
overridevirtual |
Binary deserialization
Reimplemented from mtsGenericObject.
| vct6 & prmStateCartesian::Force | ( | void | ) |
| const vct6 & prmStateCartesian::Force | ( | void | ) | const |
| bool & prmStateCartesian::ForceIsValid | ( | void | ) |
| const bool & prmStateCartesian::ForceIsValid | ( | void | ) | const |
| void prmStateCartesian::GetForce | ( | vct6 & | placeHolder | ) | const |
|
inline |
| void prmStateCartesian::GetForceIsValid | ( | bool & | placeHolder | ) | const |
|
inline |
| void prmStateCartesian::GetMovingFrame | ( | std::string & | placeHolder | ) | const |
|
inline |
| void prmStateCartesian::GetPosition | ( | vctFrm3 & | placeHolder | ) | const |
|
inline |
| void prmStateCartesian::GetPositionIsValid | ( | bool & | placeHolder | ) | const |
|
inline |
| void prmStateCartesian::GetReferenceFrame | ( | std::string & | placeHolder | ) | const |
|
inline |
| void prmStateCartesian::GetVelocity | ( | vct6 & | placeHolder | ) | const |
|
inline |
| void prmStateCartesian::GetVelocityIsValid | ( | bool & | placeHolder | ) | const |
|
inline |
| std::string & prmStateCartesian::MovingFrame | ( | void | ) |
| const std::string & prmStateCartesian::MovingFrame | ( | void | ) | const |
| prmStateCartesian & prmStateCartesian::operator= | ( | const prmStateCartesian & | other | ) |
| vctFrm3 & prmStateCartesian::Position | ( | void | ) |
| const vctFrm3 & prmStateCartesian::Position | ( | void | ) | const |
| bool & prmStateCartesian::PositionIsValid | ( | void | ) |
| const bool & prmStateCartesian::PositionIsValid | ( | void | ) | const |
| std::string & prmStateCartesian::ReferenceFrame | ( | void | ) |
| const std::string & prmStateCartesian::ReferenceFrame | ( | void | ) | const |
|
overridevirtual |
Methods for data visualization. Derived classes should override the following methods in order to be properly processed by the data visualizer of the global component manager.
Return a number of data (which can be visualized, i.e., type-casted to double)
Reimplemented from mtsGenericObject.
|
overridevirtual |
Indicates if this object has a fixed number of scalars. This is used for arrays of object in order to optimize random access for a given scalar. When defining an object with a fixed number of scalars, overloading this method to return true allows some optimizations.
Reimplemented from mtsGenericObject.
|
overridevirtual |
Binary serialization
Reimplemented from mtsGenericObject.
| void prmStateCartesian::SetForce | ( | const vct6 & | newValue | ) |
| void prmStateCartesian::SetForceIsValid | ( | const bool & | newValue | ) |
| void prmStateCartesian::SetMovingFrame | ( | const std::string & | newValue | ) |
| void prmStateCartesian::SetPosition | ( | const vctFrm3 & | newValue | ) |
| void prmStateCartesian::SetPositionIsValid | ( | const bool & | newValue | ) |
| void prmStateCartesian::SetReferenceFrame | ( | const std::string & | newValue | ) |
| void prmStateCartesian::SetVelocity | ( | const vct6 & | newValue | ) |
| void prmStateCartesian::SetVelocityIsValid | ( | const bool & | newValue | ) |
|
inlinestatic |
|
overridevirtual |
Human readable text output. This method only streams the data members of mtsGenericObject, i.e. the Timestamp and Valid flag. It should be called by any derived class re-implementing ToStream.
Reimplemented from mtsGenericObject.
|
overridevirtual |
Raw text output to stream
Reimplemented from mtsGenericObject.
|
inlinestatic |
| vct6 & prmStateCartesian::Velocity | ( | void | ) |
| const vct6 & prmStateCartesian::Velocity | ( | void | ) | const |
| bool & prmStateCartesian::VelocityIsValid | ( | void | ) |
| const bool & prmStateCartesian::VelocityIsValid | ( | void | ) | const |
| void DeSerializeText(std::istream &inputStream, const char delimiter=',') CISST_THROW(std std::string prmStateCartesian::HumanReadable(void) const |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| void SerializeBinary(std::ostream &outputStream) const CISST_THROW(std void DeSerializeBinary(std::istream &inputStream, const cmnDataFormat &localFormat, const cmnDataFormat &remoteFormat) CISST_THROW(std void SerializeText(std::ostream &outputStream, const char delimiter=',') const CISST_THROW(std std::string prmStateCartesian::SerializeDescription(const char delimiter=',', const std::string &userDescription="") const |