Choreonoid  1.5
Public Types | Public Member Functions | List of all members
cnoid::RangeCamera Class Reference

#include <RangeCamera.h>

Inheritance diagram for cnoid::RangeCamera:
cnoid::Camera cnoid::Device cnoid::DeviceState cnoid::Referenced

Public Types

typedef std::vector< Vector3f > PointData
 
- Public Types inherited from cnoid::Camera
enum  ImageType { NO_IMAGE, COLOR_IMAGE, GRAYSCALE_IMAGE }
 

Public Member Functions

 RangeCamera ()
 
 RangeCamera (const RangeCamera &org, bool copyStateOnly=false)
 
virtual const char * typeName ()
 
void copyStateFrom (const RangeCamera &other)
 
virtual void copyStateFrom (const DeviceState &other)
 
virtual DeviceStatecloneState () const
 
virtual Deviceclone () const
 
virtual void forEachActualType (boost::function< bool(const std::type_info &type)> func)
 
virtual void clearState ()
 
int numPoints () const
 
const PointDatapoints () const
 
const PointDataconstPoints () const
 
PointDatapoints ()
 
PointDatanewPoints ()
 
bool isOrganized () const
 
void setOrganized (bool on)
 
boost::shared_ptr< const PointDatasharedPoints () const
 
void setPoints (boost::shared_ptr< PointData > &points)
 
- Public Member Functions inherited from cnoid::Camera
 Camera ()
 
 Camera (const Camera &org, bool copyStateOnly=false)
 
void copyStateFrom (const Camera &other)
 
virtual int stateSize () const
 
virtual const double * readState (const double *buf)
 
virtual double * writeState (double *out_buf) const
 
void setImageStateClonable (bool on)
 
bool isImageStateClonable () const
 
ImageType imageType () const
 
void setImageType (ImageType type)
 
bool on () const
 
void on (bool on)
 
double nearClipDistance () const
 
void setNearClipDistance (double d)
 
double farClipDistance () const
 
void setFarClipDistance (double d)
 
double fieldOfView () const
 
void setFieldOfView (double f)
 
void setResolution (int x, int y)
 
void setResolutionX (int x)
 
void setResolutionY (int y)
 
int resolutionX () const
 
int resolutionY () const
 
void setFrameRate (double r)
 
double frameRate () const
 
const Imageimage () const
 
const ImageconstImage () const
 
Imageimage ()
 
ImagenewImage ()
 
boost::shared_ptr< const ImagesharedImage () const
 
void setImage (boost::shared_ptr< Image > &image)
 
double delay () const
 
void setDelay (double time)
 
- Public Member Functions inherited from cnoid::Device
virtual ~Device ()
 
void setIndex (int index)
 
void setId (int id)
 
void setName (const std::string &name)
 
void setLink (Link *link)
 
bool hasStateOnly () const
 
const int index () const
 
const int id () const
 
const std::string & name () const
 
const Linklink () const
 
Linklink ()
 
Isometry3T_local ()
 
const Isometry3T_local () const
 
Isometry3::ConstLinearPart R_local () const
 
Isometry3::LinearPart R_local ()
 
Isometry3::ConstLinearPart localRotation () const
 
Isometry3::LinearPart localRotaion ()
 
template<typename Derived >
void setLocalRotation (const Eigen::MatrixBase< Derived > &R)
 
Isometry3::ConstTranslationPart p_local () const
 
Isometry3::TranslationPart p_local ()
 
Isometry3::ConstTranslationPart localTranslation () const
 
Isometry3::TranslationPart localTranslation ()
 
template<typename Derived >
void setLocalTranslation (const Eigen::MatrixBase< Derived > &p)
 
double cycle () const
 
void setCycle (double msec)
 
SignalProxy< void()> sigStateChanged ()
 
void notifyStateChange ()
 
- Public Member Functions inherited from cnoid::DeviceState
virtual ~DeviceState ()
 
- Public Member Functions inherited from cnoid::Referenced
virtual ~Referenced ()
 
void addRef ()
 
void releaseRef ()
 

Additional Inherited Members

- Protected Member Functions inherited from cnoid::Device
 Device ()
 
 Device (const Device &org, bool copyStateOnly=false)
 
- Protected Member Functions inherited from cnoid::DeviceState
 DeviceState ()
 
 DeviceState (const DeviceState &org)
 
- Protected Member Functions inherited from cnoid::Referenced
 Referenced ()
 
 Referenced (const Referenced &org)
 
int refCount () const
 

Member Typedef Documentation

◆ PointData

typedef std::vector<Vector3f> cnoid::RangeCamera::PointData

Constructor & Destructor Documentation

◆ RangeCamera() [1/2]

RangeCamera::RangeCamera ( )

◆ RangeCamera() [2/2]

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

Member Function Documentation

◆ clearState()

void RangeCamera::clearState ( )
virtual

Reimplemented from cnoid::Camera.

◆ clone()

Device * RangeCamera::clone ( ) const
virtual

Reimplemented from cnoid::Camera.

◆ cloneState()

DeviceState * RangeCamera::cloneState ( ) const
virtual

Reimplemented from cnoid::Camera.

◆ constPoints()

const PointData& cnoid::RangeCamera::constPoints ( ) const
inline

◆ copyStateFrom() [1/2]

void RangeCamera::copyStateFrom ( const RangeCamera other)

◆ copyStateFrom() [2/2]

void RangeCamera::copyStateFrom ( const DeviceState other)
virtual

Reimplemented from cnoid::Camera.

◆ forEachActualType()

void RangeCamera::forEachActualType ( boost::function< bool(const std::type_info &type)>  func)
virtual

Reimplemented from cnoid::Camera.

◆ isOrganized()

bool cnoid::RangeCamera::isOrganized ( ) const
inline

◆ newPoints()

RangeCamera::PointData & RangeCamera::newPoints ( )

◆ numPoints()

int cnoid::RangeCamera::numPoints ( ) const
inline

◆ points() [1/2]

const PointData& cnoid::RangeCamera::points ( ) const
inline

◆ points() [2/2]

RangeCamera::PointData & RangeCamera::points ( )

◆ setOrganized()

void RangeCamera::setOrganized ( bool  on)

◆ setPoints()

void RangeCamera::setPoints ( boost::shared_ptr< PointData > &  points)

Move semantics. If the use_count() of the given shared point data pointer is one, the data is moved to the Camera object and the ownership of the given pointer is released. Otherwise, the data is copied.

◆ sharedPoints()

boost::shared_ptr<const PointData> cnoid::RangeCamera::sharedPoints ( ) const
inline

◆ typeName()

const char * RangeCamera::typeName ( )
virtual

Reimplemented from cnoid::Camera.


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