LAnnProtractor::SetProtractorOptions

#include "ltwrappr.h"

virtual L_INT LAnnProtractor::SetProtractorOptions(bAcute=TRUE, uUnit=ANNANGLE_DEGREES, pszAbbrev=NULL, uPrecision=2, dArcRadius=30, uFlags=0)

L_BOOL bAcute;

flag that indicates which angle to set

L_UINT uUnit;

flag that indicates the units of the angle

L_TCHAR * pszAbbrev;

address of the character string containing the unit abbreviation string

L_UINT uPrecision;

number of digits after the decimal

L_DOUBLE dArcRadius;

length of the arc radius

L_UINT uFlags;

flag that determine which objects to process

Sets various options for a Protractor object.

Parameter Description
bAcute Flag that indicates whether to draw the inside (acute or <180 degrees) angle or the outside (obtuse or >180 degrees) angle of the protractor. Possible values are:
  Value Meaning
  TRUE Draw the inside (acute) angle of the protractor.
  FALSE Draw the outside (obtuse) angle of the protractor.
 

uUnit Flag that indicates the units of the angle. Possible values are:
  Value Meaning
  ANNANGLE_DEGREES Measure the angle in degrees. The default abbreviation for this unit is the degree sign.
  ANNANGLE_RADIANS Measure the angle in radians. The default abbreviation for this unit is "rad".
pszAbbrev Character string that contains the abbreviation to be put after the angle. Use NULL to set the default abbreviation for the specified unit.
uPrecision The number of digits after the decimal. ( "." )
dArcRadius The arc radius.
uFlags Flags that determine which objects to process. You can combine values when appropriate by using a bitwise OR ( | ). The following are valid values:
  Value Meaning
  0 Process only the specified object.
  ANNFLAG_SELECTED [0x0001] Process only objects that have the selected property set to TRUE. For getting and setting the selected property, use the LAnnotation::IsSelected and LAnnotation::SetSelected functions.
  ANNFLAG_NOINVALIDATE [0x0010] Do not invalidate the affected rectangle in the window. Use this to avoid generating unwanted paint messages.

Returns

SUCCESS

The function was successful.

< 1

An error occurred. Refer to Return Codes.

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.

Platforms

Win32, x64.

Help Version 20.0.2019.3.12
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2019 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C++ Class Library Help