CMeasureRegions:new


The new method constructs a new instance of a CMeasureRegions object. You must create the object before using any class methods or properties. Note that the object can also be created using new_measureregions.

Syntax

C = CMeasureRegions:new()

bullet.gif    Creates a default CMeasureRegions object with properties initialized to default values.

C = CMeasureRegions:new( Params )

bullet.gif    Creates a CMeasureRegions object with default properties updated to values in the RegionParams Table, Params.

C = CMeasureRegions:new( CMeasureRegions_old )

bullet.gif    This is a copy constructor. It creates a new CMeasureRegions object initialized to the members of theCMeasureRegions_old argument.

Example

The following script creates a new CMeasureRegions object, uses it, then deletes it when no longer needed.

R = CMeasureRegions:new()

-- create a new CMeasureRegions

-- do things with the region description

 

R:Add( I, tblData )

-- draw a marker

-- do other things

 

R:delete()

-- delete the object

Related Topics

CMeasureRegions class, delete, RegionParams Table, new_measureregions


Mira Pro x64 Script User's Guide, Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.