Choreonoid  1.8
Public Types | Public Member Functions | Protected Member Functions | List of all members
cnoid::MarkerDevice Class Reference

#include <MarkerDevice.h>

Inheritance diagram for cnoid::MarkerDevice:
cnoid::Device cnoid::DeviceState cnoid::ClonableReferenced cnoid::Referenced

Public Types

enum  MarkerType { CROSS_MARKER, SPHERE_MARKER, AXES_MARKER, N_MARKER_TYPES }
 

Public Member Functions

EIGEN_MAKE_ALIGNED_OPERATOR_NEW MarkerDevice ()
 
 MarkerDevice (const MarkerDevice &org, bool copyStateOnly=false)
 
virtual const char * typeName () const override
 
void copyMarkerDeviceStateFrom (const MarkerDevice &other)
 
virtual void copyStateFrom (const DeviceState &other) override
 
virtual DeviceStatecloneState () const override
 
virtual void forEachActualType (std::function< bool(const std::type_info &type)> func) override
 
virtual int stateSize () const override
 
virtual const double * readState (const double *buf) override
 
virtual double * writeState (double *out_buf) const override
 
bool readSpecifications (const Mapping *node)
 
bool writeSpecifications (Mapping *node) const
 
virtual bool on () const override
 
virtual void on (bool on) override
 
int markerType () const
 
void setMarkerType (int type)
 
double markerSize () const
 
void setMarkerSize (double size)
 
const Vector3f & color () const
 
void setColor (const Vector3f &c)
 
float emission () const
 
void setEmission (float r)
 
float transparency () const
 
void setTransparency (float t)
 
const Isometry3offsetPosition () const
 
void setOffsetPosition (const Isometry3 &T)
 
void setOffsetTranslation (const Vector3 &p)
 
- Public Member Functions inherited from cnoid::Device
virtual ~Device ()
 
Deviceclone () const
 
Deviceclone (CloneMap &cloneMap) const
 
virtual bool copyFrom (const Device *other)
 
void setIndex (int index)
 
void setId (int id)
 
void setName (const std::string &name)
 
void setLink (Link *link)
 
bool hasStateOnly () const
 
int index () const
 
int id () const
 
const std::string & name () const
 
const Linklink () const
 
Linklink ()
 
const Bodybody () const
 
Bodybody ()
 
Isometry3T_local ()
 
const Isometry3T_local () const
 
const Isometry3localPosition () const
 
template<class Scalar , int Mode, int Options>
void setLocalPosition (const Eigen::Transform< Scalar, 3, Mode, Options > &T)
 
Isometry3::ConstLinearPart R_local () const
 
Isometry3::LinearPart R_local ()
 
Isometry3::ConstLinearPart localRotation () const
 
template<typename Derived >
void setLocalRotation (const Eigen::MatrixBase< Derived > &R)
 
Isometry3::ConstTranslationPart p_local () const
 
Isometry3::TranslationPart p_local ()
 
Isometry3::ConstTranslationPart localTranslation () const
 
template<typename Derived >
void setLocalTranslation (const Eigen::MatrixBase< Derived > &p)
 
virtual void clearState ()
 
SignalProxy< void()> sigStateChanged ()
 
void notifyStateChange ()
 
SignalProxy< void(double time)> sigTimeChanged ()
 
void notifyTimeChange (double time)
 
const Isometry3T_local_org () const
 
void setLocalAttitude (const Isometry3 &Ta)
 
double cycle () const
 
void setCycle (double msec)
 
- Public Member Functions inherited from cnoid::DeviceState
virtual ~DeviceState ()
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 

Protected Member Functions

virtual ReferenceddoClone (CloneMap *cloneMap) const override
 
- Protected Member Functions inherited from cnoid::Device
 Device ()
 
 Device (const Device &org, bool copyStateOnly=false)
 
void copySpecFrom (const Device *other)
 
- Protected Member Functions inherited from cnoid::DeviceState
 DeviceState ()
 
 DeviceState (const DeviceState &)
 
- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &)
 
int refCount () const
 

Member Enumeration Documentation

◆ MarkerType

Enumerator
CROSS_MARKER 
SPHERE_MARKER 
AXES_MARKER 
N_MARKER_TYPES 

Constructor & Destructor Documentation

◆ MarkerDevice() [1/2]

MarkerDevice::MarkerDevice ( )

◆ MarkerDevice() [2/2]

MarkerDevice::MarkerDevice ( const MarkerDevice org,
bool  copyStateOnly = false 
)

Member Function Documentation

◆ cloneState()

DeviceState * MarkerDevice::cloneState ( ) const
overridevirtual

Implements cnoid::DeviceState.

◆ color()

const Vector3f& cnoid::MarkerDevice::color ( ) const
inline

◆ copyMarkerDeviceStateFrom()

void MarkerDevice::copyMarkerDeviceStateFrom ( const MarkerDevice other)

◆ copyStateFrom()

void MarkerDevice::copyStateFrom ( const DeviceState other)
overridevirtual

Implements cnoid::DeviceState.

◆ doClone()

Referenced * MarkerDevice::doClone ( CloneMap cloneMap) const
overrideprotectedvirtual

◆ emission()

float cnoid::MarkerDevice::emission ( ) const
inline

◆ forEachActualType()

void MarkerDevice::forEachActualType ( std::function< bool(const std::type_info &type)>  func)
overridevirtual

Reimplemented from cnoid::Device.

◆ markerSize()

double cnoid::MarkerDevice::markerSize ( ) const
inline

◆ markerType()

int cnoid::MarkerDevice::markerType ( ) const
inline

◆ offsetPosition()

const Isometry3& cnoid::MarkerDevice::offsetPosition ( ) const
inline

◆ on() [1/2]

bool MarkerDevice::on ( ) const
overridevirtual

Reimplemented from cnoid::Device.

◆ on() [2/2]

void MarkerDevice::on ( bool  on)
overridevirtual

Reimplemented from cnoid::Device.

◆ readSpecifications()

bool MarkerDevice::readSpecifications ( const Mapping node)

◆ readState()

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

Implements cnoid::DeviceState.

◆ setColor()

void cnoid::MarkerDevice::setColor ( const Vector3f &  c)
inline

◆ setEmission()

void cnoid::MarkerDevice::setEmission ( float  r)
inline

◆ setMarkerSize()

void cnoid::MarkerDevice::setMarkerSize ( double  size)
inline

◆ setMarkerType()

void cnoid::MarkerDevice::setMarkerType ( int  type)
inline

◆ setOffsetPosition()

void cnoid::MarkerDevice::setOffsetPosition ( const Isometry3 T)
inline

◆ setOffsetTranslation()

void cnoid::MarkerDevice::setOffsetTranslation ( const Vector3 p)
inline

◆ setTransparency()

void cnoid::MarkerDevice::setTransparency ( float  t)
inline

◆ stateSize()

int MarkerDevice::stateSize ( ) const
overridevirtual

Size of the double-precision floating numbers for representing the state.

Implements cnoid::DeviceState.

◆ transparency()

float cnoid::MarkerDevice::transparency ( ) const
inline

◆ typeName()

const char * MarkerDevice::typeName ( ) const
overridevirtual

Implements cnoid::DeviceState.

◆ writeSpecifications()

bool MarkerDevice::writeSpecifications ( Mapping node) const

◆ writeState()

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

Implements cnoid::DeviceState.


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