The QTPlgContour class lets you deal with a set of in a bi–dimensional space. No assumption is done about the orientation of the reference system. The points belonging to the contour can define wether a closed region or an opened one.
Since version 6.7 of the plugin this class can be used in Console Applications
The QTPlgContour class constructors are called when you create a new instance of the class, while the ˜QTPlgContour class destructor, is called automatically when the class is no more in use. Also, you can invoke the class destructor by setting the instance of the class to nil.
Once a new class instance is returned, it is good practice to check the class property to be sure that the new object can be used. A QTPlgContour object is valid if the internal memory required to collect the points of the contour has been successfully allocated.
The class provides you with the following initializer methods:
()
This is the default constructor. This creates an empty collection in memory
(other as QTPlgContour)
This is the copy constructor. The properties of the object to be copied will be used to initialize the
new class instance properties
specifies the number of points currently owned by the contour
determines if the contour must be represented as a closed set of points; this being the case the last point of the contour
should be connected to the first one when using the contour
a zero–based array of
objects
(that is i ranges from 0 to
–1)
the coordinates of the center of the contour
(p as
)
use this method to append a new point to the contour
(i as integer)
use this method to remove from the contour the point specified by the index i ; this index can range from
0 to
–1
()
this method to removes any point from the contour
(contour as QTPlgContour)
as QTPlgContour
use the + Realbasic operator to create a new contour holding all of the points contained into the source
contours