new_apphot
The new_apphot function is a non-class version of the CApphot:new method which creates and returns a new CApphot object.
A = new_apphot()
Default constructor. The new CApphot A has all properties set to default values.
A = new_apphot( CApphot_old )
This is a copy constructor. The new CApphot A is initialized to the properties of CApphot_old. In place of CApphot and CApphot_old, use the actual name of the objects, such as A and A2.
The following example shows the default constructor and destructor pair:
|
-- create a new instance of A of the CApphot class. |
|
-- other uses of the class go here, between new and delete. |
|
-- deletes the object and its associated memory. |
The next example shows the use of both constructors:
|
-- copy constructor, duplicates the data in A1 |
|
-- default constructor |
|
-- Set the value of nRadius1 |
|
-- Set the value of nRadius2 |
|
-- Set the value of nRadius3 |
|
-- Measure object at (x,y) in CImage I |
|
-- result: Mag = 15.256 |
Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics,
Inc. All Rights Reserved.