casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Types | Public Member Functions | Private Attributes
casa::PCITFiddler Class Reference

Colormap fiddling on the PixelCanvas. More...

#include <PCITFiddler.h>

Inheritance diagram for casa::PCITFiddler:
casa::PCInvisTool casa::PCTool

List of all members.

Public Types

enum  FiddleType {
  StretchAndShift,
  BrightnessAndContrast
}

Public Member Functions

 PCITFiddler (PixelCanvas *pcanvas, const PCITFiddler::FiddleType &fiddletype=PCITFiddler::StretchAndShift, Display::KeySym keysym=Display::K_Pointer_Button1)
 Constructor.
virtual ~PCITFiddler ()
 Destructor.
virtual void setFiddleType (const PCITFiddler::FiddleType &fiddletype)
 Set/get the fiddle type.
virtual PCITFiddler::FiddleType getFiddleType ()
virtual void positionReady ()
 This function is called when a new position is ready.

Private Attributes

PCITFiddler::FiddleType itsFiddleType

Detailed Description

Colormap fiddling on the PixelCanvas.

Synopsis

This class provides colormap fiddling via an invisible tool which gets registered with a specific PixelCanvas.

Definition at line 45 of file PCITFiddler.h.


Member Enumeration Documentation

Enumerator:
StretchAndShift 
BrightnessAndContrast 

Definition at line 49 of file PCITFiddler.h.


Constructor & Destructor Documentation

Constructor.

Requires a PixelCanvas to fiddle upon, and optional specification of the fiddling type and key to detect.

virtual casa::PCITFiddler::~PCITFiddler ( ) [virtual]

Destructor.


Member Function Documentation

Definition at line 68 of file PCITFiddler.h.

References itsFiddleType.

virtual void casa::PCITFiddler::positionReady ( ) [virtual]

This function is called when a new position is ready.

We implement it to fiddle the Colormap in this class.

Reimplemented from casa::PCInvisTool.

virtual void casa::PCITFiddler::setFiddleType ( const PCITFiddler::FiddleType fiddletype) [virtual]

Set/get the fiddle type.


Member Data Documentation

Definition at line 78 of file PCITFiddler.h.

Referenced by getFiddleType().


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