CContour
The CContour
class represents a contour in 2D space. It contains an array of CPoint objects, which represent the vertices of the contour.
Definition
Namespace: dynamsoft::basic_structures
Assembly: DynamsoftCore
class CContour
Methods Summary
Method | Description |
---|---|
SetPoints |
Sets the point array and the points free function pointer. |
GetPointsCount |
Gets the number of points in the point array. |
GetPoints |
Gets the point array. |
~CContour |
The destructor of CContour. |
~CContour Destructor
The destructor of CContour. It releases the memory of the point array.
~CContour()
SetPoints
Sets the point array and the points free function pointer.
void SetPoints(int pointsCount, const CPoint* points, FreePointsFunc freePointsFunc);
Parameters
[in] pointsCount
: The number of points in the point array.
[in] points
: The point array.
[in] freePointsFunc
: The freePointsFunc function pointer.
GetPointsCount
Gets the number of points in the point array.
int GetPointsCount() const;
Return Value
The number of points in the point array.
GetPoints
Gets the point array.
const CPoint* GetPoints() const;
Return Value
Return the point array.