mirror of https://github.com/CGAL/cgal
Add support for circular arcs
This commit is contained in:
parent
15ad06b081
commit
95dd6eb40f
|
|
@ -0,0 +1,36 @@
|
||||||
|
\ccDefGlobalScope{CGAL::}
|
||||||
|
\begin{ccRefClass}[Qt::]{CircularArcGraphicsItem<CK>}
|
||||||
|
|
||||||
|
\ccDefinition
|
||||||
|
An object of type \ccRefName\ is a graphics item that encapsulates a circular arc.
|
||||||
|
|
||||||
|
\ccInclude{CGAL/Qt/CircularArcGraphicsItem.h}
|
||||||
|
|
||||||
|
\ccParameters
|
||||||
|
|
||||||
|
The template parameter of \ccRefName\ must be a
|
||||||
|
\cgal\ \ccc{CircularKernel}.
|
||||||
|
|
||||||
|
|
||||||
|
\ccInheritsFrom
|
||||||
|
\ccc{Qt::GraphicsItem}
|
||||||
|
|
||||||
|
\ccCreation
|
||||||
|
\ccCreationVariable{cagi}
|
||||||
|
|
||||||
|
\ccConstructor{CircularArcGraphicsItem<CK>();}{Constructs a graphics
|
||||||
|
item for a circular arc.}
|
||||||
|
|
||||||
|
\ccOperations
|
||||||
|
|
||||||
|
\ccMethod{QPen edgesPen()() const;}{Returns the pen used to draw edges.}
|
||||||
|
\ccMethod{void setEdgesPen()(const QPen& p);}{Sets the pen used to draw edges.}
|
||||||
|
\ccMethid{void setArc(const Circular_arc_2<CK>& ca2){Sets the circular arc.}
|
||||||
|
\end{ccRefClass}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -0,0 +1,40 @@
|
||||||
|
\ccDefGlobalScope{CGAL::}
|
||||||
|
\begin{ccRefClass}[Qt::]{GraphicsViewCircularArcInput<K>}
|
||||||
|
|
||||||
|
\ccDefinition
|
||||||
|
An object of type \ccRefName\ creates a circular arc, defined by three points on a circle. A new
|
||||||
|
vertex is inserted every time the left mouse button is released.
|
||||||
|
The \ccc{Del} key removes the last entered point. The \ccc{Esc}
|
||||||
|
key removes all entered points.
|
||||||
|
|
||||||
|
|
||||||
|
\ccInclude{CGAL/Qt/GraphicsViewCircularArcInput.h}
|
||||||
|
|
||||||
|
\ccParameters
|
||||||
|
|
||||||
|
The template parameter of \ccRefName\ must be a \cgal\ \ccc{CircularKernel}.
|
||||||
|
|
||||||
|
\ccInheritsFrom
|
||||||
|
\ccc{Qt::GraphicsViewInput}
|
||||||
|
|
||||||
|
\ccGlue
|
||||||
|
|
||||||
|
\ccCreation
|
||||||
|
\ccCreationVariable{in}
|
||||||
|
\ccSetTwoColumns{GraphicsViewCircularArcInput}{}
|
||||||
|
|
||||||
|
\ccConstructor{GraphicsViewCircularArcInput<T>(QObject *p, QGraphicsScene* s);}
|
||||||
|
{\ccc{p} is a parent object. \ccc{s} is the scene where the circular arc is generated.}
|
||||||
|
|
||||||
|
\ccHeading{Signals}
|
||||||
|
|
||||||
|
\ccMethod{void generate(Object o);}{The object \ccc{o} contains a \ccc{Circular_arc_2<K>}.}
|
||||||
|
|
||||||
|
\end{ccRefClass}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
Reference in New Issue