#include <qgarlib/primitives.H>
Inheritance diagram for qgar::GenQgarArc< T >:

O
+---------------> X
|\ |
| \ <-'
| \ angle (in radians, unless specified)
| \
|
V
Y
O O
+----------------------> X +----------------------> X
| center |
| + + source | -----
| | | arc / \
| / arc | | + v
| target +<- | \ + target
| | +
V V source
Y Y
Definition at line 131 of file _QGAR_GenQgarArc.H.
Public Types | |
Types related to Qgar arcs | |
| typedef T | value_type |
| Type of the coordinates of the source, target and center. | |
| typedef value_type & | reference |
| Reference to qgar::GenQgarArc::value_type. | |
| typedef const value_type & | const_reference |
| Constant reference to qgar::GenQgarArc::value_type. | |
| typedef value_type * | pointer |
| Pointer to qgar::GenQgarArc::value_type. | |
| typedef const value_type * | const_pointer |
| Constant pointer to qgar::GenQgarArc::value_type. | |
Public Member Functions | |
Constructors | |
| GenQgarArc (int aThickness=1, QGEcolor aColor=QGE_COLOR_DEFAULT, QGEoutline anOutline=QGE_OUTLINE_DEFAULT) | |
| Default constructor. | |
| GenQgarArc (const GenQgarArc< value_type > &aQArc) | |
| Copy constructor. | |
| GenQgarArc (const GenArc< value_type > &anArc, int aThickness=1, QGEcolor aColor=QGE_COLOR_DEFAULT, QGEoutline anOutline=QGE_OUTLINE_DEFAULT) | |
| Initialize from a geometrical arc. | |
| GenQgarArc (const GenPoint< value_type > &aSource, const GenPoint< value_type > &aTarget, const GenPoint< value_type > &aCenter, int aThickness=1, QGEcolor aColor=QGE_COLOR_DEFAULT, QGEoutline anOutline=QGE_OUTLINE_DEFAULT) | |
| Initialize from three points. | |
Destructor | |
| virtual | ~GenQgarArc () |
| Virtual destructor. | |
Copy | |
| virtual GenQgarArc< value_type > * | clone () const |
| Create a dynamically allocated deep copy of the primitive. | |
Access to geometrical features | |
| const GenArc< value_type > & | accessGeomStructure () const |
| Get the structure implementing the geometrical aspect of a Qgar arc. | |
| double | radius () const |
| Get the radius. | |
| double | length () const |
| Get length of the arc. | |
| double | angle () const |
| Get the angle of the arc, in [0, 2PI] radians. | |
| double | angleDegrees () const |
| Get the angle of the arc, in [0, 360] degrees. | |
| double | sourceAngle () const |
| Get the so-called source angle. | |
| double | sourceAngleDegrees () const |
| Get the source angle, in [0, 360] degrees. | |
| double | targetAngle () const |
| Get the so-called target angle. | |
| double | targetAngleDegrees () const |
| Get the target angle, in [0, 360] degrees. | |
Center | |
| const GenPoint< value_type > & | accessCenter () const |
| Get the center point. | |
| GenPoint< value_type > | center () const |
| Get a copy of the center point. | |
| value_type | xCenter () const |
| Get X coordinate of center point. | |
| value_type | yCenter () const |
| Get Y coordinate of center point. | |
| void | setXCenter (value_type aX) |
| Set X coordinate of the center point. | |
| void | setYCenter (value_type aY) |
| Set Y coordinate of the center point. | |
| void | setCenter (value_type aX, value_type aY) |
| Set the center point. | |
| void | setCenter (const GenPoint< value_type > &aCenter) |
| Set the center point. | |
Operators | |
| GenQgarArc< value_type > & | operator= (const GenQgarArc< value_type > &aQArc) |
| Assignment. | |
| bool | operator== (const GenQgarArc< value_type > &aQArc) const |
| Same as function qgar::GenQgarArc::eq. | |
| bool | operator!= (const GenQgarArc< value_type > &aQArc) const |
| Same as function qgar::GenQgarArc::notEq. | |
Functional operators | |
| bool | eq (const GenQgarArc< value_type > &aQArc) const |
| Equality. | |
| bool | equal (const GenQgarArc< value_type > &aQArc) const |
| Equality. | |
| bool | notEq (const GenQgarArc< value_type > &aQArc) const |
| Inequality. | |
| bool | notEqual (const GenQgarArc< value_type > &aQArc) const |
| Inequality. | |
Serialization/deserialization | |
| virtual std::istream & | read (std::istream &anInStream) |
| Deserializes the current arc from an input stream. | |
| virtual std::ostream & | write (std::ostream &anOutStream) const |
| Serializes the current arc to an input stream. | |
Protected Member Functions | |
Non-protected access to the geometrical aspect | |
| virtual AbstractGenPrimitive< value_type > & | getGeomStructure () |
| Return the geometrical aspect. | |
Protected Attributes | |
Geometrical structure of a Qgar arc | |
| GenArc< value_type > | _geomStructure |
| Geometrical structure. | |
|
|||||
|
Constant pointer to qgar::GenQgarArc::value_type.
Reimplemented from qgar::AbstractGenQgarPrimitive< T >. Definition at line 169 of file _QGAR_GenQgarArc.H. |
|
|||||
|
Constant reference to qgar::GenQgarArc::value_type.
Reimplemented from qgar::AbstractGenQgarPrimitive< T >. Definition at line 159 of file _QGAR_GenQgarArc.H. |
|
|||||
|
Pointer to qgar::GenQgarArc::value_type.
Reimplemented from qgar::AbstractGenQgarPrimitive< T >. Definition at line 164 of file _QGAR_GenQgarArc.H. |
|
|||||
|
Reference to qgar::GenQgarArc::value_type.
Reimplemented from qgar::AbstractGenQgarPrimitive< T >. Definition at line 154 of file _QGAR_GenQgarArc.H. |
|
|||||
|
Type of the coordinates of the source, target and center.
Reimplemented from qgar::AbstractGenQgarPrimitive< T >. Definition at line 149 of file _QGAR_GenQgarArc.H. |
|
||||||||||||||||||||
|
Default constructor. Zero-length arc located at the origin of the coordinate system.
Definition at line 59 of file _QGAR_GenQgarArc.TCC. |
|
||||||||||
|
Copy constructor.
Definition at line 76 of file _QGAR_GenQgarArc.TCC. |
|
||||||||||||||||||||||||
|
Initialize from a geometrical arc.
|
|
||||||||||||||||||||||||||||||||
|
Initialize from three points.
|
|
|||||||||
|
Virtual destructor.
Definition at line 128 of file _QGAR_GenQgarArc.TCC. |
|
|||||||||
|
Get the center point.
Definition at line 322 of file _QGAR_GenQgarArc.TCC. |
|
|||||||||
|
Get the structure implementing the geometrical aspect of a Qgar arc.
Implements qgar::AbstractGenQgarPrimitive< T >. Definition at line 479 of file _QGAR_GenQgarArc.TCC. References qgar::GenQgarArc< T >::_geomStructure. Referenced by qgar::GenQgarArc< T >::eq(), qgar::GenQgarArc< T >::notEq(), and qgar::AbstractGraphicsFile::write(). |
|
|||||||||
|
Get source point.
Definition at line 147 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::accessGeomStructure(), and qgar::AbstractGenPrimitive< T >::accessSource(). |
|
|||||||||
|
Get target point.
Definition at line 167 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::accessGeomStructure(), and qgar::AbstractGenPrimitive< T >::accessTarget(). |
|
|||||||||
|
Get the angle of the arc, in [0, 2PI] radians. Always positive. Definition at line 297 of file _QGAR_GenQgarArc.TCC. |
|
|||||||||
|
Get the angle of the arc, in [0, 360] degrees. Always positive. Definition at line 307 of file _QGAR_GenQgarArc.TCC. |
|
|||||||||
|
Get a copy of the center point.
Definition at line 332 of file _QGAR_GenQgarArc.TCC. Referenced by RWARCVECTOR_arcsInLoop(). |
|
|||||||||
|
Create a dynamically allocated deep copy of the primitive.
Implements qgar::AbstractGenQgarPrimitive< T >. Definition at line 463 of file _QGAR_GenQgarArc.TCC. |
|
|||||||||
|
Get color.
Definition at line 122 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::_color. Referenced by qgar::GenQgarSegment< T >::read(), qgar::GenQgarPolyline< T >::read(), qgar::GenQgarPolygon< T >::read(), qgar::GenQgarArc< T >::read(), and qgar::AbstractGraphicsFile::write(). |
|
|||||||||
|
Difference between target and source X coordinates.
Definition at line 237 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::accessGeomStructure(), and qgar::AbstractGenPrimitive< T >::dx(). |
|
|||||||||
|
Difference between target and source Y coordinates.
Definition at line 247 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::accessGeomStructure(), and qgar::AbstractGenPrimitive< T >::dy(). |
|
||||||||||
|
Equality.
Definition at line 184 of file _QGAR_GenQgarArc.TCC. References qgar::GenQgarArc< T >::accessGeomStructure(). Referenced by qgar::GenQgarArc< T >::equal(), and qgar::GenQgarArc< T >::operator==(). |
|
||||||||||
|
Equality.
Definition at line 194 of file _QGAR_GenQgarArc.TCC. References qgar::AbstractGenQgarPrimitive< T >::_color, qgar::AbstractGenQgarPrimitive< T >::_outline, qgar::AbstractGenQgarPrimitive< T >::_thickness, and qgar::GenQgarArc< T >::eq(). |
|
||||||||||
|
Set source point.
|
|
||||||||||||||||
|
Set source point.
Definition at line 364 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenPrimitive< T >::fixSource(), and qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(). |
|
||||||||||||||||
|
Set both source and target points.
|
|
||||||||||||||||||||||||
|
Set both source and target points.
Definition at line 402 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenPrimitive< T >::fixSourceTarget(), and qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(). |
|
||||||||||
|
Set target point.
|
|
||||||||||||||||
|
Set target point.
Definition at line 383 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenPrimitive< T >::fixTarget(), and qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(). |
|
||||||||||
|
Set X coordinate of the source point.
Definition at line 474 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenPrimitive< T >::fixXSource(), and qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(). |
|
||||||||||
|
Set X coordinate of the target point.
Definition at line 484 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenPrimitive< T >::fixXTarget(), and qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(). |
|
||||||||||
|
Set Y coordinate of the source point.
Definition at line 494 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenPrimitive< T >::fixYSource(), and qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(). |
|
||||||||||
|
Set Y coordinate of the target point.
Definition at line 504 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenPrimitive< T >::fixYTarget(), and qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(). |
|
|||||||||
|
Return the geometrical aspect. It may then be modified using appropriate transformation function members. Implements qgar::AbstractGenQgarPrimitive< T >. Definition at line 495 of file _QGAR_GenQgarArc.TCC. References qgar::GenQgarArc< T >::_geomStructure. |
|
|||||||||
|
Get length of the arc.
Definition at line 247 of file _QGAR_GenQgarArc.TCC. |
|
||||||||||
|
Inequality.
Definition at line 208 of file _QGAR_GenQgarArc.TCC. References qgar::GenQgarArc< T >::accessGeomStructure(). Referenced by qgar::GenQgarArc< T >::notEqual(), and qgar::GenQgarArc< T >::operator!=(). |
|
||||||||||
|
Inequality.
Definition at line 218 of file _QGAR_GenQgarArc.TCC. References qgar::GenQgarArc< T >::notEq(). |
|
||||||||||
|
Same as function qgar::GenQgarArc::notEq.
Definition at line 169 of file _QGAR_GenQgarArc.TCC. References qgar::GenQgarArc< T >::notEq(). |
|
||||||||||
|
Assignment.
Definition at line 143 of file _QGAR_GenQgarArc.TCC. References qgar::GenQgarArc< T >::_geomStructure. |
|
||||||||||
|
Same as function qgar::GenQgarArc::eq.
Definition at line 159 of file _QGAR_GenQgarArc.TCC. References qgar::GenQgarArc< T >::eq(). |
|
|||||||||
|
Get outline.
Definition at line 132 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::_outline. Referenced by qgar::GenQgarSegment< T >::read(), qgar::GenQgarPolyline< T >::read(), qgar::GenQgarPolygon< T >::read(), qgar::GenQgarArc< T >::read(), and qgar::AbstractGraphicsFile::write(). |
|
|||||||||
|
Get the radius.
Definition at line 237 of file _QGAR_GenQgarArc.TCC. |
|
||||||||||
|
Deserializes the current arc from an input stream. A serialized Qgar arc is represented as: QgarArc(<GEOMETRICAL STRUCTURE>)(<THICKNESS>)(<COLOR>)(<OUTLINE>)
Implements qgar::ISerializable. Definition at line 403 of file _QGAR_GenQgarArc.TCC. References qgar::AbstractGenQgarPrimitive< T >::_color, qgar::AbstractGenQgarPrimitive< T >::_outline, qgar::AbstractGenQgarPrimitive< T >::color(), qgar::AbstractGenQgarPrimitive< T >::outline(), qgar::qgReadObjData(), and qgar::qgReadObjName(). |
|
||||||||||
|
Set the center point.
|
|
||||||||||||||||
|
Set the center point.
Definition at line 382 of file _QGAR_GenQgarArc.TCC. References qgar::GenQgarArc< T >::_geomStructure. |
|
||||||||||
|
Set color.
Definition at line 272 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::_color. |
|
||||||||||
|
Set outline.
Definition at line 282 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::_outline. |
|
||||||||||
|
Set source point.
|
|
||||||||||||||||
|
Set source point.
Definition at line 298 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(), and qgar::AbstractGenPrimitive< T >::setSource(). |
|
||||||||||||||||
|
Set both source and target points.
|
|
||||||||||||||||||||||||
|
Set both source and target points.
Definition at line 336 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(), and qgar::AbstractGenPrimitive< T >::setSourceTarget(). |
|
||||||||||
|
Set target point.
|
|
||||||||||||||||
|
Set target point.
Definition at line 317 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(), and qgar::AbstractGenPrimitive< T >::setTarget(). |
|
||||||||||
|
Set thickness.
Definition at line 262 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::_thickness. |
|
||||||||||
|
Set X coordinate of the center point.
Definition at line 362 of file _QGAR_GenQgarArc.TCC. References qgar::GenQgarArc< T >::_geomStructure. |
|
||||||||||
|
Set X coordinate of the source point.
Definition at line 429 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(), and qgar::AbstractGenPrimitive< T >::setXSource(). |
|
||||||||||
|
Set X coordinate of the target point.
Definition at line 439 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(), and qgar::AbstractGenPrimitive< T >::setXTarget(). |
|
||||||||||
|
Set Y coordinate of the center point.
Definition at line 372 of file _QGAR_GenQgarArc.TCC. References qgar::GenQgarArc< T >::_geomStructure. |
|
||||||||||
|
Set Y coordinate of the source point.
Definition at line 449 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(), and qgar::AbstractGenPrimitive< T >::setYSource(). |
|
||||||||||
|
Set Y coordinate of the target point.
Definition at line 459 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(), and qgar::AbstractGenPrimitive< T >::setYTarget(). |
|
|||||||||
|
Get a copy of the source point.
Definition at line 157 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::accessGeomStructure(), and qgar::AbstractGenPrimitive< T >::source(). Referenced by RWARCVECTOR_arcsInLoop(). |
|
|||||||||
|
Get the so-called source angle. It is the angle between the vector joining the center to the source point and the X axis, in [0, 2PI] radians. Definition at line 257 of file _QGAR_GenQgarArc.TCC. |
|
|||||||||
|
Get the source angle, in [0, 360] degrees.
Definition at line 267 of file _QGAR_GenQgarArc.TCC. |
|
|||||||||
|
Get a copy of the target point.
Definition at line 177 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::accessGeomStructure(), and qgar::AbstractGenPrimitive< T >::target(). Referenced by qgar::GenPolyline< T >::append(), and RWARCVECTOR_arcsInLoop(). |
|
|||||||||
|
Get the so-called target angle. Its is the angle between the vector joining the center to the target point and the X axis, in [0, 2PI] radians. Definition at line 277 of file _QGAR_GenQgarArc.TCC. |
|
|||||||||
|
Get the target angle, in [0, 360] degrees.
Definition at line 287 of file _QGAR_GenQgarArc.TCC. |
|
|||||||||
|
Get thickness.
Definition at line 112 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::_thickness. Referenced by qgar::AbstractGraphicsFile::write(). |
|
||||||||||||||||
|
Translate along X and Y axis.
Reimplemented in qgar::GenQgarPolygon< T >, and qgar::GenQgarPolyline< T >. Definition at line 542 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(). |
|
||||||||||
|
Serializes the current arc to an input stream. A serialized Qgar arc is represented as: QgarArc(<GEOMETRICAL STRUCTURE>)(<THICKNESS>)(<COLOR>)(<OUTLINE>)
Implements qgar::ISerializable. Definition at line 429 of file _QGAR_GenQgarArc.TCC. References qgar::AbstractGenQgarPrimitive< T >::_color, qgar::GenQgarArc< T >::_geomStructure, qgar::AbstractGenQgarPrimitive< T >::_outline, and qgar::AbstractGenQgarPrimitive< T >::_thickness. |
|
|||||||||
|
Get X coordinate of center point.
Definition at line 342 of file _QGAR_GenQgarArc.TCC. |
|
|||||||||
|
Get X coordinate of the source point.
Definition at line 192 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::accessGeomStructure(), and qgar::AbstractGenPrimitive< T >::xSource(). |
|
|||||||||
|
Get X coordinate of the target point.
Definition at line 202 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::accessGeomStructure(), and qgar::AbstractGenPrimitive< T >::xTarget(). |
|
|||||||||
|
Get Y coordinate of center point.
Definition at line 352 of file _QGAR_GenQgarArc.TCC. |
|
|||||||||
|
Get Y coordinate of the source point.
Definition at line 212 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::accessGeomStructure(), and qgar::AbstractGenPrimitive< T >::ySource(). |
|
|||||||||
|
Get Y coordinate of the target point.
Definition at line 222 of file _QGAR_AbstractGenQgarPrimitive.TCC. References qgar::AbstractGenQgarPrimitive< T >::accessGeomStructure(), and qgar::AbstractGenPrimitive< T >::yTarget(). |
|
|||||
|
|||||
|
Geometrical structure.
Definition at line 499 of file _QGAR_GenQgarArc.H. Referenced by qgar::GenQgarArc< T >::accessGeomStructure(), qgar::GenQgarArc< T >::getGeomStructure(), qgar::GenQgarArc< T >::operator=(), qgar::GenQgarArc< T >::setCenter(), qgar::GenQgarArc< T >::setXCenter(), qgar::GenQgarArc< T >::setYCenter(), and qgar::GenQgarArc< T >::write(). |
|
|||||
|
|||||