LImageViewerCell::GetCobbAngleValue

Summary

Gets the cobb-angle value using one of the two lines that is used to create the cobb angle.

Syntax

#include "ltwrappr.h"

L_INT LImageViewerCell::GetCobbAngleValue(nSubCellIndex, hAttachedLine, pnAngle);

Parameters

L_INT nSubCellIndex

A zero-based index into the image list attached to the cell. This sub-cell is the one that the annotation container will be set to. Pass -2 to refer to the selected sub-cell. If the cell contains 1 frame then the nSubCellIndex should be 0.

HANNOBJECT hAttachedLine

Handle to the one of the two annotation lines that creates the cobb angle.

L_DOUBLE * pnAngle

address of the variable to be updated with the cobb angle value of the specified line hAttachedLine if such value is found.

Returns

Value Meaning
SUCCESS The function was successful.
< 1 An error occurred. To get extended error information, call GetLastError, and refer to Return Codes.

Comments

To create a cobb angle, you must add two lines to the sub-cell / cell, then pass them to the function LImageViewerCell::AddCobbAngle.

To delete a cobb angle, use the function LImageViewerCell::RemoveCobbAngle.

Required DLLs and Libraries

See Also

Functions

Topics

Example

For an example, refer to LImageViewerCell::AddCobbAngle.

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

LEADTOOLS Medical Image Viewer C++ Class Library Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.