SimpleRGBPixelCanvasApp.h

Classes

SimpleRGBPixelCanvasApp -- Application class the provides basic gui for a PixelCanvas (full description)

class SimpleRGBPixelCanvasApp

Types

enum

SimpleRGBPixelCanvasAppVersion = 1

Interface

Public Members
SimpleRGBPixelCanvasApp()
static void exitCB(Widget, XtPointer, XtPointer)
Widget buildWidget(Widget parent)
void addRefreshEventHandler(const PCRefreshEH & eh)
void addMotionEventHandler(const PCMotionEH & eh)
void addPositionEventHandler(const PCPositionEH & eh)
PixelCanvas * pixelCanvas() const
void run()
virtual ~SimpleRGBPixelCanvasApp()
friend ostream & operator << (ostream & os, const SimpleRGBPixelCanvasApp & spca)
friend AipsIO &operator<<(AipsIO &aio, const SimpleRGBPixelCanvasApp & spca)
friend LogIO &operator<<(LogIO &lio, const SimpleRGBPixelCanvasApp & spca)
friend AipsIO &operator>>(AipsIO &aio, SimpleRGBPixelCanvasApp & spca)
Bool ok() const

Description

Prerequisite

Etymology

SimpleRGBPixelCanvasApp : Simple PixelCanvas Application Class

Synopsis

SimpleRGBPixelCanvasApp provides basic a basic GUI panel for a simple PixelCanvas application. Event handlers can be registered to the app class.

Motivation

Needed simple testbed for the PixelCanvas

Example

See the test programs in Display

Member Description

SimpleRGBPixelCanvasApp()

Default Constructor Required

static void exitCB(Widget, XtPointer, XtPointer)

X callback to quit the program

Widget buildWidget(Widget parent)

function that builds the basic GUI

void addRefreshEventHandler(const PCRefreshEH & eh)
void addMotionEventHandler(const PCMotionEH & eh)
void addPositionEventHandler(const PCPositionEH & eh)

functions to add event handlers to the pixel canvas

PixelCanvas * pixelCanvas() const

Direct access to the PixelCanvas

void run()

Run the program

virtual ~SimpleRGBPixelCanvasApp()

Destructor

friend ostream & operator << (ostream & os, const SimpleRGBPixelCanvasApp & spca)

Write a SimpleRGBPixelCanvasApp to an ostream in a simple text form.

friend AipsIO &operator<<(AipsIO &aio, const SimpleRGBPixelCanvasApp & spca)

Write a SimpleRGBPixelCanvasApp to an AipsIO stream in a binary format.

friend LogIO &operator<<(LogIO &lio, const SimpleRGBPixelCanvasApp & spca)

Write a SimpleRGBPixelCanvasApp to a LogIO stream.

friend AipsIO &operator>>(AipsIO &aio, SimpleRGBPixelCanvasApp & spca)

Read a SimpleRGBPixelCanvasApp from an AipsIO stream in a binary format. Will throw an AipsError if the current SimpleRGBPixelCanvasApp Version does not match that of the one on disk.

Bool ok() const

Is this SimpleRGBPixelCanvasApp consistent?

enum