LAnnCrossProduct::SetPoints

#include "ltwrappr.h"

virtual L_INT LAnnCrossProduct::SetPoints(pPoints, uCount=5)

pANNPOINT pPoints;

/* pointer to an array */

L_UINT uCount;

/* number of points in the array */

Defines the endpoints of the ruler object. This function is available in the Document/Medical Toolkits.

Parameter

Description

pPoints

Pointer to the array of LEADTOOLS ANNPOINT structures that specifies the endpoints of the annotation.

 

The ANNPOINT structure is like a Windows POINT structure, except that it uses double-precision floating-point values.

 

Coordinates of an object's points are relative to its container object. The coordinates are interpreted using the container's scaling factors and offsets, which are described in Low-Level Coordinate System for Annotations.

uCount

The number of points in the array that you specify in the pPoints parameter.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

Comments

You call this function once, passing an array of points.

Required DLLs and Libraries

LTANN

For a listing of the exact DLLs and Libraries needed, based on the toolkit version, refer to Files To Be Included With Your Application.

See Also

Functions:

Class Members

Topics:

Annotation Functions: Getting and Setting Geometric Properties

 

Annotation Functions: Using Window Coordinates to Define an Object

 

New Annotation Features of Version 14.5

 

Calibrating Annotation Ruler Objects

Example

For an example, refer to LAnnCrossProduct::GetDistance.