CMeasureLines Class Description


The CMeasureLines class draws line markers between pairs of points on a displayed image. This class works with the CImageView class and opens a Line Measurement toolbar in the image window. The marker properties and associated measurements are listed in a docking pane or measurement window, as specified. For further information about line measurements and the toolbar commands, see the Mira User's Guide under the main topic Measuring Images.

Usage

Construction

Object = new_measurelines()

Object = CMeasureLines:new()

Destruction

Object:delete()

Creation - Non-class Functions

This function is normally used to create a new CMeasureLines object as an alternative to the class-based new method.

new_measurelines

Creates a new instance of the CMeasureLines class.

Construction and Destruction - Class Methods

new

Creates a new instance of the CMeasureLines class.

delete

Deletes the instance of the CMeasureLines object.

Operations

Add

Adds a line marker to the collection and draws it on the image.

Attach

Attaches a CImageView object to the CMeasureLines object. Use this if the CMeasureLines was created without passing a CImageView object to the constructor.

SetParams

Sets line marking properties using members of the LineParams table.

Related Topics

Contents, Script Classes, CImageView, CImage class


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