CMeasurePoints:new


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

Syntax

C = CMeasurePoints:new()

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

C = CMeasurePoints:new( Params )

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

C = CMeasurePoints:new( CMeasurePoints_old )

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

Example

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

P = CMeasurePoints:new()

-- create a new CMeasurePoints

-- do things with the point description

 

P:Add( I, 120, 180 )

-- draw a marker

-- do other things

 

P:delete()

-- delete the object

Related Topics

CMeasurePoints class, delete, LineParams Table, new_measurepoints


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