diff --git a/GraphicsView/doc_tex/GraphicsView_ref/GraphicsViewCircleInput.tex b/GraphicsView/doc_tex/GraphicsView_ref/GraphicsViewCircleInput.tex new file mode 100644 index 00000000000..cfd7185380e --- /dev/null +++ b/GraphicsView/doc_tex/GraphicsView_ref/GraphicsViewCircleInput.tex @@ -0,0 +1,42 @@ +\ccDefGlobalScope{CGAL::} +\begin{ccRefClass}[Qt::]{GraphicsViewCircleInput} + +\ccDefinition +An object of type \ccRefName\ creates a circle, defined by either +center and radius, or two or three points on the circle. A new +vertex is inserted every time the left mouse button is pressed. +The \ccc{Escape} key removes the last entered point. + + +\ccInclude{CGAL/Qt/GraphicsViewCircleInput.h} + +\ccParameters + +The template parameter of \ccRefName\ must be a \cgal\ \ccc{Kernel}. + +\ccInheritsFrom +\ccc{GraphicsViewInput} + +\ccGlue + +\ccCreation +\ccCreationVariable{in} +\ccSetTwoColumns{GraphicsViewCircleInput}{} + +\ccConstructor{GraphicsViewCircleInput(QGraphicsScene* s, int pointsOnCircle = 1);} +{\ccc{s} is the scene where we want to draw the circle. \ccc{pointsOnCircle} is the + number of points on the circle to generate.} + +\ccMethod{void generate(Object o);}{The object \ccc{o} contains a \ccc{std::pair} +for center and radius, or a \ccc{std::pair} for two points defining +the circle, or \ccc{Triple} for three points defining +the circle.} + +\end{ccRefClass} + + + + + + + diff --git a/GraphicsView/doc_tex/GraphicsView_ref/GraphicsViewPolylineInput.tex b/GraphicsView/doc_tex/GraphicsView_ref/GraphicsViewPolylineInput.tex index 5578a3beb98..99575d4c91a 100644 --- a/GraphicsView/doc_tex/GraphicsView_ref/GraphicsViewPolylineInput.tex +++ b/GraphicsView/doc_tex/GraphicsView_ref/GraphicsViewPolylineInput.tex @@ -34,6 +34,8 @@ The template parameter of \ccc{GraphicsViewPolylineInput} must be a \cgal\ \c limited. When \ccc{closed} is \ccc{true} the function displays a polygon.} +\ccMethod{void generate(Object o);}{The object \ccc{o} contains a \ccc{std:list}.} + \end{ccRefClass} diff --git a/GraphicsView/doc_tex/GraphicsView_ref/QtConverter.tex b/GraphicsView/doc_tex/GraphicsView_ref/QtConverter.tex index 36d0230a626..77c9b0cee8f 100644 --- a/GraphicsView/doc_tex/GraphicsView_ref/QtConverter.tex +++ b/GraphicsView/doc_tex/GraphicsView_ref/QtConverter.tex @@ -1,11 +1,11 @@ \ccDefGlobalScope{CGAL::} -\begin{ccRefClass}[Qt::]{QtConverter} +\begin{ccRefClass}[Qt::]{Converter} \ccDefinition An object of type \ccRefName\ converts 2D \cgal\ kernel objects to their equivalent objects in \qt, and the other way round. Note that some objects have no equivalent. -\ccInclude{CGAL/Qt/QtConverter.h} +\ccInclude{CGAL/Qt/Converter.h} \ccCreationVariable{c} @@ -14,6 +14,15 @@ objects in \qt, and the other way round. Note that some objects have no equivale \ccMethod{K::Point_2 operator()(QPointF);}{.} \ccMethod{QPointF operator()(K::Point_2);}{.} +\ccMethod{K::Segment_2 operator()(QLineF);}{.} +\ccMethod{QLineF operator()(K::Segment_2);}{.} + + +\ccMethod{K::Iso_rectangle_2 operator()(QRectF);}{.} +\ccMethod{QRectF operator()(K::Iso_rectangle_2);}{.} + +\ccMethod{std::list operator()(QPolygonF);}{.} +\ccMethod{QPolygonF operator()(std::list);}{.} \end{ccRefClass} diff --git a/GraphicsView/doc_tex/GraphicsView_ref/intro.tex b/GraphicsView/doc_tex/GraphicsView_ref/intro.tex index 629708029c7..cc88dc70575 100644 --- a/GraphicsView/doc_tex/GraphicsView_ref/intro.tex +++ b/GraphicsView/doc_tex/GraphicsView_ref/intro.tex @@ -22,6 +22,7 @@ This package provides some classes which allow to use \cgal\ classes in \subsection*{Input Classes} \ccRefIdfierPage{CGAL::Qt::GraphicsViewInput}\\ +\ccRefIdfierPage{CGAL::Qt::GraphicsViewCircleInput}\\ \ccRefIdfierPage{CGAL::Qt::GraphicsViewPolylineInput} diff --git a/GraphicsView/doc_tex/GraphicsView_ref/main.tex b/GraphicsView/doc_tex/GraphicsView_ref/main.tex index 98274a3c4ac..aebc51dacd9 100644 --- a/GraphicsView/doc_tex/GraphicsView_ref/main.tex +++ b/GraphicsView/doc_tex/GraphicsView_ref/main.tex @@ -4,6 +4,7 @@ \input{GraphicsView_ref/QtConverter.tex} \input{GraphicsView_ref/GraphicsViewInput.tex} \input{GraphicsView_ref/GraphicsViewPolylineInput.tex} +\input{GraphicsView_ref/GraphicsViewCircleInput.tex} \input{GraphicsView_ref/GraphicsItem.tex} \input{GraphicsView_ref/TriangulationGraphicsItem.tex} \input{GraphicsView_ref/ConstrainedTriangulationGraphicsItem.tex}