new_measureregions


The new_measureregions function is a non-class version of the CMeasureRegions:new method which creates and returns a new CMeasureRegions object. You must create the object before using any class methods or properties.

Syntax

C = new_measureregions()

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

C = new_measureregions( Params )

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

C = new_measureregions( 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, allows it to be used, 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, new, delete, RegionParams Table


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