cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
osaOSGImage Class Reference

#include <osaOSGImage.h>

Inheritance diagram for osaOSGImage:

Classes

class  Image
 
class  SwitchCallback
 
class  TransformCallback
 
class  UserData
 

Public Types

enum  Switch { SWITCH_OFF, SWITCH_ON }
 

Public Member Functions

 osaOSGImage (float x, float y, float width, float height, osaOSGWorld *world, const vctFrame4x4< double > &Rt=vctFrame4x4< double >())
 OSG Image constructor. More...
 
 osaOSGImage (float x, float y, float width, float height, osaOSGHUD *hud, const vctFrame4x4< double > &Rt=vctFrame4x4< double >())
 OSG Image constructor. More...
 
 osaOSGImage (float x, float y, float width, float height, osaOSGWorld *world, const vctFrm3 &Rt)
 OSG Image constructor. More...
 
 ~osaOSGImage ()
 
virtual void SetTransform (const vctFrame4x4< double > &Rt)
 Set the transform of the image. More...
 
virtual void SetTransform (const vctFrm3 &Rt)
 
virtual vctFrm3 GetTransform () const
 
void SetImage (const osg::Image *image)
 
void SetImage (const std::string &filename)
 
void SwitchOn ()
 Set the switch of the image. More...
 
void SwitchOff ()
 

Protected Member Functions

virtual void UpdateTransform ()
 This method is called from the transform callback. More...
 
virtual void UpdateSwitch ()
 This method is called from the switch callback. More...
 
void Initialize ()
 
virtual void UpdateImage ()
 

Protected Attributes

osg::ref_ptr< osg::Referenced > userdata
 
osg::ref_ptr< TransformCallbacktransformcallback
 
vctFrame4x4< double > transform
 
osg::ref_ptr
< osg::MatrixTransform > 
osgtransform
 
osg::ref_ptr< SwitchCallbackswitchcallback
 
Switch onoff
 
osg::ref_ptr< osg::Switch > osgswitch
 
float x
 
float y
 
float width
 
float height
 
unsigned char * data
 
osg::ref_ptr< osg::Image > osgimage
 
osg::ref_ptr< osg::Texture2D > osgtexture
 
osg::ref_ptr< osg::StateSet > osgstateset
 
osg::ref_ptr< osg::Geode > osggeode
 
osg::ref_ptr< osg::Geometry > osggeom
 

Member Enumeration Documentation

Enumerator
SWITCH_OFF 
SWITCH_ON 

Constructor & Destructor Documentation

osaOSGImage::osaOSGImage ( float  x,
float  y,
float  width,
float  height,
osaOSGWorld world,
const vctFrame4x4< double > &  Rt = vctFrame4x4< double >() 
)

OSG Image constructor.

Create a OSG image.

Parameters
xThe horizontal position of the image
yThe vertical position of the image
widthThe width of the rendered geode (not of the image in pixels)
heightThe height of the rendered geode (not of the image in pixels)
worldThe OSG world the image belongs to
RtThe initial transformation of the image
osaOSGImage::osaOSGImage ( float  x,
float  y,
float  width,
float  height,
osaOSGHUD hud,
const vctFrame4x4< double > &  Rt = vctFrame4x4< double >() 
)

OSG Image constructor.

Create a OSG image.

Parameters
xThe horizontal position of the image
yThe vertical position of the image
widthThe width of the rendered geode (not of the image in pixels)
heightThe height of the rendered geode (not of the image in pixels)
hudThe OSG HUD the image belongs to
RtThe initial transformation of the image
osaOSGImage::osaOSGImage ( float  x,
float  y,
float  width,
float  height,
osaOSGWorld world,
const vctFrm3 Rt 
)

OSG Image constructor.

Create a OSG image.

Parameters
xThe horizontal position of the image
yThe vertical position of the image
widthThe width of the rendered geode (not of the image in pixels)
heightThe height of the rendered geode (not of the image in pixels)
worldThe OSG world the image belongs to
RtThe initial transformation of the image
osaOSGImage::~osaOSGImage ( )

Member Function Documentation

virtual vctFrm3 osaOSGImage::GetTransform ( ) const
virtual
void osaOSGImage::Initialize ( )
protected
void osaOSGImage::SetImage ( const osg::Image *  image)
void osaOSGImage::SetImage ( const std::string &  filename)
virtual void osaOSGImage::SetTransform ( const vctFrame4x4< double > &  Rt)
virtual

Set the transform of the image.

virtual void osaOSGImage::SetTransform ( const vctFrm3 Rt)
virtual
void osaOSGImage::SwitchOff ( )
void osaOSGImage::SwitchOn ( )

Set the switch of the image.

virtual void osaOSGImage::UpdateImage ( )
inlineprotectedvirtual
virtual void osaOSGImage::UpdateSwitch ( )
protectedvirtual

This method is called from the switch callback.

virtual void osaOSGImage::UpdateTransform ( )
protectedvirtual

This method is called from the transform callback.

Member Data Documentation

unsigned char* osaOSGImage::data
protected
float osaOSGImage::height
protected
Switch osaOSGImage::onoff
protected
osg::ref_ptr<osg::Geode> osaOSGImage::osggeode
protected
osg::ref_ptr<osg::Geometry> osaOSGImage::osggeom
protected
osg::ref_ptr<osg::Image> osaOSGImage::osgimage
protected
osg::ref_ptr<osg::StateSet> osaOSGImage::osgstateset
protected
osg::ref_ptr< osg::Switch> osaOSGImage::osgswitch
protected
osg::ref_ptr<osg::Texture2D> osaOSGImage::osgtexture
protected
osg::ref_ptr<osg::MatrixTransform> osaOSGImage::osgtransform
protected
osg::ref_ptr<SwitchCallback> osaOSGImage::switchcallback
protected
vctFrame4x4<double> osaOSGImage::transform
protected
osg::ref_ptr<TransformCallback> osaOSGImage::transformcallback
protected
osg::ref_ptr<osg::Referenced> osaOSGImage::userdata
protected
float osaOSGImage::width
protected
float osaOSGImage::x
protected
float osaOSGImage::y
protected

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