Skip to content

Latest commit

 

History

History
64 lines (40 loc) · 1.59 KB

File metadata and controls

64 lines (40 loc) · 1.59 KB
layout title description keywords needAutoGenerateSidebar
default-layout
class CLineSegmentsUnit - Dynamsoft Core Module C++ Edition API Reference
This page shows the C++ edition of the class CLineSegmentsUnit in Dynamsoft Core Module.
line segments, c++
true

CLineSegmentsUnit

The CLineSegmentsUnit class represents a collection of line segments in 2D space. It is a derived class of CIntermediateResultUnit.

Definition

Namespace: dynamsoft::intermediate_results

Assembly: DynamsoftCore

class CLineSegmentsUnit: public CIntermediateResultUnit 

Methods Summary

Method Description
GetCount Gets the number of line segments in the collection.
GetLineSegment Gets the specified line segment from the collection.

Inherited Methods

{%- include inherited-methods/intermediate-result-unit.md -%}

GetCount

Gets the number of line segments in the collection.

virtual int GetCount() const

Return value

Returns the number of line segments in the collection.

GetLineSegment

Gets the specified line segment from the collection.

virtual int GetLineSegement(int index, CLineSegment* line) const

Parameters

[in] index The index of the line segment to retrieve.

[in, out] line the CLineSegment object to store the retrieved line segment.

Return value

Returns 0 if the operation succeeds, or a negative value if an error occurs.

Note: The caller of this method is responsible for allocating memory for the line pointer.