SimplePixelCanvasApp.h

Classes

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

class SimplePixelCanvasApp

Types

enum

SimplePixelCanvasAppVersion = 1

Interface

Public Members
SimplePixelCanvasApp()
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 ~SimplePixelCanvasApp()
friend ostream & operator << (ostream & os, const SimplePixelCanvasApp & spca)
friend AipsIO &operator<<(AipsIO &aio, const SimplePixelCanvasApp & spca)
friend LogIO &operator<<(LogIO &lio, const SimplePixelCanvasApp & spca)
friend AipsIO &operator>>(AipsIO &aio, SimplePixelCanvasApp & spca)
Bool ok() const

Description

Prerequisite

Etymology

SimplePixelCanvasApp : Simple PixelCanvas Application Class

Synopsis

SimplePixelCanvasApp 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

SimplePixelCanvasApp()

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 ~SimplePixelCanvasApp()

Destructor

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

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

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

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

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

Write a SimplePixelCanvasApp to a LogIO stream.

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

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

Bool ok() const

Is this SimplePixelCanvasApp consistent?

enum