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.
The Execute Script menu command may be used to open and execute a script directly from a Mira Image Window. When a script is executed from the Execute Script command, it is automatically sent a CImageView object named ParentImageView and a CImage object named ParentImage. The ParentImageView is a CImageView object that provides access to the window's CImageSet member and other class members. The ParentImage is a CImage object attached to the current image in the Image Window. You can use these names directly in the script or you can rename them, like V = ParentImageView andI = ParentImage. A sample script call to be called from an Image Window is provided named Execute from Image Window test.lua.
Construction |
Object = new_imageview() Object = attach_imageview() Object = attachlist_imageview() Object = CImageView:new() Object = CImageView:Attach() Object = CImageView:AttachFromList() |
Destruction |
Object:delete() |
These functions are normally used to create and attach a new CImageView object as an alternative to the class-based construction methods.
Creates a new instance of the CImageView class. |
|
Creates a new CImageView object attached to the top-most image window on the Mira desktop. This is equivalent to the Attach class method. |
|
Creates a new CImageView object attached to a image editor window selected from a list of windows on the Mira desktop. This is equivalent to the AttachFromList class method. |
Creates a new CImageView object. This is the global script counterpart of the GetParent method. |
|
Deletes the CImageView object. |
|
Creates a new CImageView object attached to the top-most image window on the Mira desktop. This is equivalent to the Attach class method. |
|
Creates a new CImageView object attached to a image editor window selected from a list of windows on the Mira desktop. This is equivalent to the AttachFromList class method. |
|
Closes the CImageView window |
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. |
|
Saves an "undo" copy of the image before making changes. |
|
Restores the "undo" copy of the image. |
|
Saves an "undo" copy of the entire image set before changes. |
|
Restores the "undo" copy of the entire image set. |
|
update the display after changing an image. |
|
update the display of all images in the window. |
Returns the number of images in the image set used by the image view window. |
|
Indexes the image set to the first image. |
|
Creates and returns a CImage object for the view image at a specified index. |
|
Returns a copy of the CImageView's image set as a new CImageSet object. |
|
Returns the image set index of the CImage object in the image set of the image view window. |
|
Indexes the image set to the last image. |
|
Indexes the image set to the next image. |
|
Indexes the image set to the previous image. |
|
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. |
|
Returns the graph one/all flag for 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. |
|
Returns the image zoom value. |
|
Sets the graph one/all flag for the image set in the image view window. |
|
Sets the measure one/all flag for the image set in the image view window. |
|
Sets the process one/all flag for the image set in the image view window. |
|
Sets the image zoom value. |
|
Sets the option for flipping FITS image display. |
|
Gets the current state of the FITS flip flag. |
|
Returns the column/row averaging flag for making cursor plots. |
|
Sets the cursor plot averaging mode to mean, median, or sum. |
Script Classes, Contents, CImage class, CRect class, CLabels class, CPlotView
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2023 Mirametrics,
Inc. All Rights Reserved.