#include "Obit.h"
#include "ObitErr.h"
#include "ObitRPC.h"
#include "ObitDConCleanWindow.h"
Go to the source code of this file.
Classes | |
| struct | ObitDisplay |
| ObitDisplay Class structure. More... | |
| struct | ObitDisplayClassInfo |
| ClassInfo Structure. More... | |
Defines | |
| #define | ObitDisplayUnref(in) ObitUnref (in) |
| Macro to unreference (and possibly destroy) an ObitDisplay returns a ObitDisplay*. | |
| #define | ObitDisplayRef(in) ObitRef (in) |
| Macro to reference (update reference count) an ObitDisplay. | |
| #define | ObitDisplayIsA(in) ObitIsA (in, ObitDisplayGetClass()) |
| Macro to determine if an object is the member of this or a derived class. | |
Typedefs | |
| typedef ObitDisplay *(* | ObitDisplayCreateFP )(gchar *name, gchar *ServerURL, ObitErr *err) |
| Typedef for definition of class pointer structure. | |
| typedef gboolean(* | ObitDisplayShowFP )(ObitDisplay *display, Obit *image, ObitDConCleanWindow *window, gint field, ObitErr *err) |
| Typedef for definition of class pointer structure. | |
| typedef void(* | ObitDisplayTurnOnFP )(ObitDisplay *display) |
| Typedef for definition of class pointer structure. | |
| typedef void(* | ObitDisplayTurnOffFP )(ObitDisplay *display) |
| Typedef for definition of class pointer structure. | |
Enumerations | |
| enum | obitDisplayRequest { OBIT_Request_Continue = 0, OBIT_Request_Abort, OBIT_Request_Quit, OBIT_Request_NoTV, OBIT_Request_View, OBIT_Request_Edit } |
| enum Display request coads (MUST be synchronized with server usage which is defined in ObitRPC.h #ObitRPCRequestType) This specifies the request More... | |
Functions | |
| void | ObitDisplayClassInit (void) |
| Public: Class initializer. | |
| ObitDisplay * | newObitDisplay (gchar *name) |
| Public: Default Constructor. | |
| ObitDisplay * | ObitDisplayCreate (gchar *name, gchar *ServerURL, ObitErr *err) |
| Public: Create/initialize ObitDisplay structures. | |
| gconstpointer | ObitDisplayGetClass (void) |
| Public: ClassInfo pointer. | |
| gboolean | ObitDisplayShow (ObitDisplay *display, Obit *image, ObitDConCleanWindow *window, gint field, ObitErr *err) |
| Public: Send Display and Window edit request. | |
| void | ObitDisplayTurnOn (ObitDisplay *display) |
| Public: Turn display on. | |
| void | ObitDisplayTurnOff (ObitDisplay *display) |
| Public: Turn display off. | |
This class is derived from the Obit class.
This class communicates with the Image Display server The implementation is based on ObitView, only one allowed and return
The communication model is the client/server model where the client makes a call with a single (xml) argument and the server performs its service and returns a single (xml) reply. (Since xml is very flexible the requirement of a single argument and reply is not a limitation). In this model, the interaction between client and server is stateless, i.e., makes no assumption about any previous or future interactions, although both the client and do have state. In this implementation, the response from the server may include a request for a further action by the client. Examples of this are to display and/or edit the CLEAN window for another field of a mosaic or to abort the program.
The returned xml from the server contains up to three components:
A copy of a pointer to an ObitDisplay should always be made using the ObitDisplayRef function which updates the reference count in the object. Then whenever freeing an ObitDisplay or changing a pointer, the function ObitDisplayUnref will decrement the reference count and destroy the object when the reference count hits 0. There is no explicit destructor.
|
|
Macro to determine if an object is the member of this or a derived class. Returns TRUE if a member, else FALSE in = object to reference |
|
|
Macro to reference (update reference count) an ObitDisplay. returns a ObitDisplay*. in = object to reference |
|
|
Macro to unreference (and possibly destroy) an ObitDisplay returns a ObitDisplay*. in = object to unreference |
|
|
Typedef for definition of class pointer structure.
|
|
|
Typedef for definition of class pointer structure.
|
|
|
Typedef for definition of class pointer structure.
|
|
|
Typedef for definition of class pointer structure.
|
|
|
enum Display request coads (MUST be synchronized with server usage which is defined in ObitRPC.h #ObitRPCRequestType) This specifies the request
|
|
|
Public: Default Constructor. Initializes class if needed on first call.
|
|
|
Public: Class initializer.
|
|
||||||||||||||||
|
Public: Create/initialize ObitDisplay structures.
|
|
|
Public: ClassInfo pointer.
|
|
||||||||||||||||||||||||
|
Public: Send Display and Window edit request. For a mosaic, the user can request other images from the mosaic. If the display is remote, the image is copied as a gzipped FITS file.
|
|
|
Public: Turn display off.
|
|
|
Public: Turn display on.
|
1.3.9.1