39 lines
1015 B
TeX
39 lines
1015 B
TeX
|
|
\begin{ccRefClass}{QtPolylineInput<K>}
|
|
|
|
\ccDefinition
|
|
An object of type \ccRefName\ creates a list of points. A new
|
|
vertex is inserted every time the left mouse button is pressed.
|
|
The list of points is emitted on a right click. You can use the \ccc{Escape}
|
|
key if you want to remove your last entered point in the polygon.
|
|
|
|
The tool can serve at the same time for entering a single point,
|
|
a polyline with a given number of points, and for open and closed
|
|
polylines.
|
|
|
|
\ccInclude{CGAL/IO/QtPolylineInput.h}
|
|
|
|
\ccParameters
|
|
|
|
The template parameter of \ccc{QtPolylineInput<K>} must be a \cgal\ \ccc{Kernel}.
|
|
|
|
\ccInheritsFrom
|
|
\ccc{QtInput}
|
|
|
|
\ccGlue
|
|
|
|
\ccCreation
|
|
\ccCreationVariable{in}
|
|
\ccSetTwoColumns{QtPolylineInput}{}
|
|
|
|
\ccConstructor{QtPolylineInput<T>(QGraphicsScene* s, int n = 0, bool closed = true);}{\ccc{s} is the scene where we want to draw the polyline. \ccc{n} is the number of points of the polyline to generate. When \ccc{closed} is \ccc{true} the function displays a polygon.}
|
|
|
|
\end{ccRefClass}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|