osgEarth 2.1.1
Public Member Functions | Public Attributes

ChangeImageHandler Struct Reference

Inheritance diagram for ChangeImageHandler:
Collaboration diagram for ChangeImageHandler:

List of all members.

Public Member Functions

 ChangeImageHandler (osg::Image *image, ImageOverlay *overlay, ImageControl *preview)
void onClick (Control *control, int mouseButtonMask)

Public Attributes

ImageOverlay_overlay
osg::ref_ptr< osg::Image > _image
osg::ref_ptr< ImageControl_preview

Detailed Description

Definition at line 129 of file osgearth_imageoverlay.cpp.


Constructor & Destructor Documentation

ChangeImageHandler::ChangeImageHandler ( osg::Image *  image,
ImageOverlay overlay,
ImageControl preview 
) [inline]

Definition at line 131 of file osgearth_imageoverlay.cpp.

                                                                                       :
      _image(image),
      _overlay(overlay),
      _preview(preview){ }

Member Function Documentation

void ChangeImageHandler::onClick ( Control control,
int  mouseButtonMask 
) [inline, virtual]

Click event with mouse button mask (see osgGA::GUIEventAdapter::MouseButtonMask)

Reimplemented from osgEarth::Util::Controls::ControlEventHandler.

Definition at line 136 of file osgearth_imageoverlay.cpp.

                                                          {
        _overlay->setImage( _image.get() );
        _preview->setImage( _image.get() );
    }

Member Data Documentation

osg::ref_ptr< osg::Image > ChangeImageHandler::_image

Definition at line 141 of file osgearth_imageoverlay.cpp.

Definition at line 140 of file osgearth_imageoverlay.cpp.

Definition at line 142 of file osgearth_imageoverlay.cpp.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines