CImageView Class
The CImageView class wraps a Mira image view window that displays images. The Image View window uses an image set to work with a group of images. This class encloses a pointer to the view window and provides methods for displaying and adjusting images and for working with the image cursor.
Construction |
Object = CImageView:new() |
Destruction |
Object:delete() |
ptr |
A pointer to the Mira image view window. This pointer is nil if no image view window has been attached. Note: It is not wise to work directly with ptr. Instead, refer to ptr using the GetViewPtr method. |
Creates a new CImageView object. This is the global script counterpart of the GetParent method. |
|
Deletes the CImageView object. |
|
Attaches the top-most window (an Image window) to the script and creates a new CImageView object for it. NOTE: When using this method, make the target image window the top-most window and run the script using the Script Manager or the [!] button on the main toolbar, not the [!] button in the script editor window. |
|
Attaches an Image window selected from a list and creates a new CImageView object for it. |
|
Returns a pointer to the Mira image view window attached to the CImageView object. |
|
Attaches the handle of an image window to this CImageView object. |
|
Retrieves the handle of the GUI image window attached to the current object. |
Appends the CImage object to the image view window's image set, making it the last image in the image set. Creates a new image view window if necessary. |
|
Creates a new image view window and displays a CImage object in it. |
|
Inserts the CImage object into the image set at a specified index and displays the image. Creates a new window if necessary. |
Returns the number of images in the image set used by the image view window. |
|
Indexes the image set to the first image. |
|
Returns the graph one/all flag for the image set of the image view window. |
|
Creates and returns a CImage object for the view image at a specified index. |
|
Returns a pointer to the image at a specified index of the image set. May also return the current image. |
|
Returns a copy of the CImageView's image set as a new CImageSet. |
|
Returns the image set index of the CImage object in the image set of the image view window. |
|
Returns the measure one/all flag for the image set of the image view window. |
|
Returns the process one/all flag for the image set of the image view window. |
|
Sets the graph one/all flag for the image set in the image view window. |
|
Indexes the image set to the last image. |
|
Sets the measure one/all flag for the image set in the image view window. |
|
Indexes the image set to the next image. |
|
Indexes the image set to the previous image. |
|
Sets the process one/all flag for the image set in the image view window. |
|
Removes the CImage from the image set and deletes it from memory. |
|
Indexes the image set to a specified position. |
|
Swaps the CImage object with the next image in the image set of the view window. |
|
Swaps the CImage object with the previous image in the image set of the view window. |
Returns the cursor center position in pixel coordinates. |
|
Returns a CRect object that describes the image cursor. |
|
Sets the image cursor rectangle using (left, top, right, bottom) in pixel coordinates. |
|
Sets the height of the image cursor, in pixels. |
|
Centers the image cursor to pixel coordinate x,y. |
|
Centers the image cursor at world coordinate x,y. |
|
Sets the image cursor using a CRect object in pixel coordinates. |
|
Sets the image cursor style. |
|
Sets the width of the image cursor, in pixels. |
Centers the image at pixel coordinate x,y. |
|
Centers the image at world coordinate x,y. |
|
Gets the current state of the FITS flip flag. |
|
Returns the column/row averaging flag for making cursor plots. |
|
Returns the image zoom value. |
|
Sets the option for flipping FITS image display. |
|
Sets the cursor plot averaging mode to mean, median, or sum. |
|
Sets the image zoom value. |
|
update the display after changing an image. |
|
update the display of all images in the window. |