![]()  | 
CApphot:new
The new method creates an instance of the CApphot class. Note that this object can also be created using the new_apphot function.
Note: This method's name uses all lower case to present it as the analog of the C++ new operator. Generally, the names of class methods begin with an uppercase letter but new and delete are different.
A = CApphot:new()
    Default constructor. The new
CApphot A has all properties set
to default values.
A = CApphot:new( CApphot2 )
    This
is a copy constructor. The new CApphot A is initialized to the properties of CApphot2. In place of CApphot and CApphot2, use the
actual names 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  | 
CApphot, Copy, delete, new_apphot
Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024
Mirametrics, Inc. All Rights Reserved.