SimpleWorldCanvasApp.h
Classes
- SimpleWorldCanvasApp -- Simple application class providing a PixelCanvas and WorldCanvas. (full description)
Types
- SimpleWorldCanvasAppVersion = 1
-
Interface
- Public Members
- SimpleWorldCanvasApp(const Display::ColorModel &colormodel = Display::Index)
- static void exitCB(Widget, XtPointer, XtPointer)
- static void pcmapCB(Widget, XtPointer, XtPointer)
- void printCmapInfo()
- WorldCanvas *worldCanvas()
- Widget buildWidget(Widget parent)
- void addRefreshEventHandler(WCRefreshEH & eh)
- void addMotionEventHandler(WCMotionEH & eh)
- void addPositionEventHandler(WCPositionEH & eh)
- void setSizeControlHandler(WCSizeControlHandler & sch)
- void setCoordinateHandler(WCCoordinateHandler & ch)
- void run()
- virtual ~SimpleWorldCanvasApp()
- friend ostream & operator << (ostream & os, const SimpleWorldCanvasApp & spca)
- friend AipsIO &operator<<(AipsIO &aio, const SimpleWorldCanvasApp & spca)
- friend LogIO &operator<<(LogIO &lio, const SimpleWorldCanvasApp & spca)
- friend AipsIO &operator>>(AipsIO &aio, SimpleWorldCanvasApp & spca)
- Bool ok() const
Prerequisite
Etymology
SimpleWorldCanvasApp : Simple WorldCanvas Application Class
Synopsis
SimpleWorldCanvasApp provides basic a basic GUI panel for
a simple WorldCanvas application. Event and other handlers
can be registered to the app class.
Motivation
Needed a testbed for the WorldCanvas
Example
See the test programs in Display
Member Description
Default Constructor Required
static void exitCB(Widget, XtPointer, XtPointer)
X callback to quit the program
static void pcmapCB(Widget, XtPointer, XtPointer)
get the WorldCanvas
function that builds the basic GUI
add event handlers to the WorldCanvas
add specialized handlers to the WorldCanvas
void run()
Run the application
Destructor
friend ostream & operator << (ostream & os, const SimpleWorldCanvasApp & spca)
Write a SimpleWorldCanvasApp to an ostream in a simple text form.
friend AipsIO &operator<<(AipsIO &aio, const SimpleWorldCanvasApp & spca)
Write a SimpleWorldCanvasApp to an AipsIO stream in a binary format.
friend LogIO &operator<<(LogIO &lio, const SimpleWorldCanvasApp & spca)
Write a SimpleWorldCanvasApp to a LogIO stream.
friend AipsIO &operator>>(AipsIO &aio, SimpleWorldCanvasApp & spca)
Read a SimpleWorldCanvasApp from an AipsIO stream in a binary format.
Will throw an AipsError if the current SimpleWorldCanvasApp Version does not match
that of the one on disk.
Bool ok() const
Is this SimpleWorldCanvasApp consistent?