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

It typically results from vectorization.
O
+---------------> X
|\ |
| \ <-'
| \ angle (in radians, unless specified)
| \
|
V
Y
O
+---------------> X
|
| + source
| /
| /
| v
V + target
Y
Definition at line 131 of file _QGAR_GenQgarSegment.H.
Public Types | |
Types | |
| typedef T | value_type |
| Type of the source and target coordinates. | |
| typedef value_type & | reference |
| Reference to qgar::GenQgarSegment::value_type. | |
| typedef const value_type & | const_reference |
| Constant reference to qgar::GenQgarSegment::value_type. | |
| typedef value_type * | pointer |
| Pointer to qgar::GenQgarSegment::value_type. | |
| typedef const value_type * | const_pointer |
| Constant pointer to qgar::GenQgarSegment::value_type. | |
Public Member Functions | |
Access to attributes | |
| int | thickness () const |
| Get thickness. | |
| QGEcolor | color () const |
| Get color. | |
| QGEoutline | outline () const |
| Get outline. | |
Access to source and target | |
| const GenPoint< value_type > & | accessSource () const |
| Get source point. | |
| GenPoint< value_type > | source () const |
| Get a copy of the source point. | |
| const GenPoint< value_type > & | accessTarget () const |
| Get target point. | |
| GenPoint< value_type > | target () const |
| Get a copy of the target point. | |
Access to separate coordinates | |
| value_type | xSource () const |
| Get X coordinate of the source point. | |
| value_type | xTarget () const |
| Get X coordinate of the target point. | |
| value_type | ySource () const |
| Get Y coordinate of the source point. | |
| value_type | yTarget () const |
| Get Y coordinate of the target point. | |
Access to geometrical characteristics | |
| value_type | dx () const |
| Difference between target and source X coordinates. | |
| value_type | dy () const |
| Difference between target and source Y coordinates. | |
Set attributes | |
| void | setThickness (int aThickness) |
| Set thickness. | |
| void | setColor (QGEcolor aColor) |
| Set color. | |
| void | setOutline (QGEoutline anOutline) |
| Set outline. | |
Set source and/or target without update | |
| void | setSource (value_type aX, value_type aY) |
| Set source point. | |
| void | setSource (const GenPoint< value_type > &aPt) |
| Set source point. | |
| void | setTarget (value_type aX, value_type aY) |
| Set target point. | |
| void | setTarget (const GenPoint< value_type > &aPt) |
| Set target point. | |
| void | setSourceTarget (value_type aXSource, value_type aYSource, value_type aXTarget, value_type aYTarget) |
| Set both source and target points. | |
| void | setSourceTarget (const GenPoint< value_type > &aSource, const GenPoint< value_type > &aTarget) |
| Set both source and target points. | |
Set source and/or target with update | |
| void | fixSource (value_type aX, value_type aY) |
| Set source point. | |
| void | fixSource (const GenPoint< value_type > &aPt) |
| Set source point. | |
| void | fixTarget (value_type aX, value_type aY) |
| Set target point. | |
| void | fixTarget (const GenPoint< value_type > &aPt) |
| Set target point. | |
| void | fixSourceTarget (value_type aXSource, value_type aYSource, value_type aXTarget, value_type aYTarget) |
| Set both source and target points. | |
| void | fixSourceTarget (const GenPoint< value_type > &aSource, const GenPoint< value_type > &aTarget) |
| Set both source and target points. | |
Set separate (source and target) coordinates without update | |
| void | setXSource (value_type aX) |
| Set X coordinate of the source point. | |
| void | setXTarget (value_type aX) |
| Set X coordinate of the target point. | |
| void | setYSource (value_type aY) |
| Set Y coordinate of the source point. | |
| void | setYTarget (value_type aY) |
| Set Y coordinate of the target point. | |
Set separate (source and target) coordinates with update | |
| void | fixXSource (value_type aX) |
| Set X coordinate of the source point. | |
| void | fixXTarget (value_type aX) |
| Set X coordinate of the target point. | |
| void | fixYSource (value_type aY) |
| Set Y coordinate of the source point. | |
| void | fixYTarget (value_type aY) |
| Set Y coordinate of the target point. | |
Geometry: Translation | |
| void | translate (value_type aTransX, value_type aTransY) |
| Translate along X and Y axis. | |
Constructors | |
| GenQgarSegment (int aThickness=1, QGEcolor aColor=QGE_COLOR_DEFAULT, QGEoutline anOutline=QGE_OUTLINE_DEFAULT) | |
| Default constructor. | |
| GenQgarSegment (const GenQgarSegment< value_type > &aQSeg) | |
| Copy constructor. | |
| GenQgarSegment (const GenSegment< value_type > &aSeg, int aThickness=1, QGEcolor aColor=QGE_COLOR_DEFAULT, QGEoutline anOutline=QGE_OUTLINE_DEFAULT) | |
| Initialize from a geometrical segment. | |
| GenQgarSegment (const GenPoint< value_type > &aSource, const GenPoint< value_type > &aTarget, int aThickness=1, QGEcolor aColor=QGE_COLOR_DEFAULT, QGEoutline anOutline=QGE_OUTLINE_DEFAULT) | |
| Initialize from source and target points. | |
| GenQgarSegment (value_type aXSource, value_type aYSource, value_type aXTarget, value_type aYTarget, int aThickness=1, QGEcolor aColor=QGE_COLOR_DEFAULT, QGEoutline anOutline=QGE_OUTLINE_DEFAULT) | |
| Initialize from coordinates. | |
Destructor | |
| virtual | ~GenQgarSegment () |
| Virtual destructor. | |
Copy | |
| virtual GenQgarSegment< value_type > * | clone () const |
| Create a dynamically allocated deep copy of the primitive. | |
Access to geometrical features | |
| const GenSegment< value_type > & | accessGeomStructure () const |
| Get the structure implementing the geometrical aspect of a Qgar segment. | |
| double | length () const |
| Get length of the segment. | |
| double | sqr_length () const |
| Get squared length of the segment. | |
| double | rho () const |
| Distance between point (0,0) and its perpendicular projection onto the line supporting the current segment. | |
| double | theta () const |
| Angle between the X axis and the segment, in [0, 2PI[ radians. | |
| double | angle () const |
| Same as qgar::GenQgarSegment::theta. | |
| double | slope () const |
| Angle between the X axis and the segment, in [0, PI[ radians. | |
| double | thetaDegrees () const |
| Same as qgar::GenQgarSegment::theta, but the result is given in [0,360[ degrees. | |
| double | angleDegrees () const |
| Same as qgar::GenQgarSegment::theta, but the result is given in [0,360[ degrees. | |
| double | slopeDegrees () const |
| Same as qgar::GenQgarSegment::slope, but the result is given in [0,180[ degrees. | |
Geometrical predicates | |
| bool | contains (const GenPoint< T > &c, double aDist=Math::epsilonD()) |
| Return true if the given point approximately belongs to the current Qgar segment. | |
Operators | |
| GenQgarSegment< value_type > & | operator= (const GenQgarSegment< value_type > &aQSeg) |
| Assignment. | |
| bool | operator== (const GenQgarSegment< value_type > &aQSeg) const |
| Same as function qgar::GenQgarSegment::eq. | |
| bool | operator!= (const GenQgarSegment< value_type > &aQSeg) const |
| Same as function qgar::GenQgarSegment::notEq. | |
Functional operators | |
| bool | eq (const GenQgarSegment< value_type > &aQSeg) const |
| Equality. | |
| bool | equal (const GenQgarSegment< value_type > &aQSeg) const |
| Equality. | |
| bool | notEq (const GenQgarSegment< value_type > &aQSeg) const |
| Inequality. | |
| bool | notEqual (const GenQgarSegment< value_type > &aQSeg) const |
| Inequality. | |
Serialization/deserialization | |
| virtual std::istream & | read (std::istream &anInStream) |
| Deserializes the current segment from an input stream. | |
| virtual std::ostream & | write (std::ostream &anOutStream) const |
| Serializes an object to an input stream. | |
Access to attributes | |
| int | thickness () const |
| Get thickness. | |
| QGEcolor | color () const |
| Get color. | |
| QGEoutline | outline () const |
| Get outline. | |
Access to source and target | |
| const GenPoint< value_type > & | accessSource () const |
| Get source point. | |
| GenPoint< value_type > | source () const |
| Get a copy of the source point. | |
| const GenPoint< value_type > & | accessTarget () const |
| Get target point. | |
| GenPoint< value_type > | target () const |
| Get a copy of the target point. | |
Access to separate coordinates | |
| value_type | xSource () const |
| Get X coordinate of the source point. | |
| value_type | xTarget () const |
| Get X coordinate of the target point. | |
| value_type | ySource () const |
| Get Y coordinate of the source point. | |
| value_type | yTarget () const |
| Get Y coordinate of the target point. | |
Access to geometrical characteristics | |
| value_type | dx () const |
| Difference between target and source X coordinates. | |
| value_type | dy () const |
| Difference between target and source Y coordinates. | |
Set attributes | |
| void | setThickness (int aThickness) |
| Set thickness. | |
| void | setColor (QGEcolor aColor) |
| Set color. | |
| void | setOutline (QGEoutline anOutline) |
| Set outline. | |
Set source and/or target without update | |
| void | setSource (value_type aX, value_type aY) |
| Set source point. | |
| void | setSource (const GenPoint< value_type > &aPt) |
| Set source point. | |
| void | setTarget (value_type aX, value_type aY) |
| Set target point. | |
| void | setTarget (const GenPoint< value_type > &aPt) |
| Set target point. | |
| void | setSourceTarget (value_type aXSource, value_type aYSource, value_type aXTarget, value_type aYTarget) |
| Set both source and target points. | |
| void | setSourceTarget (const GenPoint< value_type > &aSource, const GenPoint< value_type > &aTarget) |
| Set both source and target points. | |
Set source and/or target with update | |
| void | fixSource (value_type aX, value_type aY) |
| Set source point. | |
| void | fixSource (const GenPoint< value_type > &aPt) |
| Set source point. | |
| void | fixTarget (value_type aX, value_type aY) |
| Set target point. | |
| void | fixTarget (const GenPoint< value_type > &aPt) |
| Set target point. | |
| void | fixSourceTarget (value_type aXSource, value_type aYSource, value_type aXTarget, value_type aYTarget) |
| Set both source and target points. | |
| void | fixSourceTarget (const GenPoint< value_type > &aSource, const GenPoint< value_type > &aTarget) |
| Set both source and target points. | |
Set separate (source and target) coordinates without update | |
| void | setXSource (value_type aX) |
| Set X coordinate of the source point. | |
| void | setXTarget (value_type aX) |
| Set X coordinate of the target point. | |
| void | setYSource (value_type aY) |
| Set Y coordinate of the source point. | |
| void | setYTarget (value_type aY) |
| Set Y coordinate of the target point. | |
Set separate (source and target) coordinates with update | |
| void | fixXSource (value_type aX) |
| Set X coordinate of the source point. | |
| void | fixXTarget (value_type aX) |
| Set X coordinate of the target point. | |
| void | fixYSource (value_type aY) |
| Set Y coordinate of the source point. | |
| void | fixYTarget (value_type aY) |
| Set Y coordinate of the target point. | |
Geometry: Translation | |
| void | translate (value_type aTransX, value_type aTransY) |
| Translate along X and Y axis. | |
Protected Member Functions | |
Non-protected access to the geometrical aspect | |
| AbstractGenPrimitive< value_type > & | getGeomStructure () |
| Return the geometrical aspect. | |
Protected Attributes | |
Attributes | |
Apply a central symmetry to the current primitive, using the point of given coordinates as the symmetry center. Apply a central symmetry to the current primitive, using the given point as the symmetry center. Apply a mirror symmetry to the current primitive, using the line passing through the two given points for the symmetry. Apply a mirror symmetry to the current primitive, using the line supporting the given segment for the symmetry. | |
| int | _thickness |
| Thickness of the outline. | |
| QGEcolor | _color |
| Color of the outline. | |
| QGEoutline | _outline |
| Type of outline. | |
Geometrical structure of a Qgar segment | |
| GenSegment< value_type > | _geomStructure |
| Structure implementing the geometrical aspect. | |
Attributes | |
Apply a central symmetry to the current primitive, using the point of given coordinates as the symmetry center. Apply a central symmetry to the current primitive, using the given point as the symmetry center. Apply a mirror symmetry to the current primitive, using the line passing through the two given points for the symmetry. Apply a mirror symmetry to the current primitive, using the line supporting the given segment for the symmetry. | |
| int | _thickness |
| Thickness of the outline. | |
| QGEcolor | _color |
| Color of the outline. | |
| QGEoutline | _outline |
| Type of outline. | |
|
|||||
|
Constant pointer to qgar::GenQgarSegment::value_type.
Reimplemented from qgar::AbstractGenQgarPrimitive< T >. Definition at line 170 of file _QGAR_GenQgarSegment.H. |
|
|||||
|
Constant reference to qgar::GenQgarSegment::value_type.
Reimplemented from qgar::AbstractGenQgarPrimitive< T >. Definition at line 160 of file _QGAR_GenQgarSegment.H. |
|
|||||
|
Pointer to qgar::GenQgarSegment::value_type.
Reimplemented from qgar::AbstractGenQgarPrimitive< T >. Definition at line 165 of file _QGAR_GenQgarSegment.H. |
|
|||||
|
Reference to qgar::GenQgarSegment::value_type.
Reimplemented from qgar::AbstractGenQgarPrimitive< T >. Definition at line 155 of file _QGAR_GenQgarSegment.H. |
|
|||||
|
Type of the source and target coordinates.
Reimplemented from qgar::AbstractGenQgarPrimitive< T >. Definition at line 150 of file _QGAR_GenQgarSegment.H. |
|
||||||||||||||||||||
|
Default constructor. Zero-length segment located at (0, 0).
Definition at line 61 of file _QGAR_GenQgarSegment.TCC. |
|
||||||||||
|
Copy constructor.
Definition at line 76 of file _QGAR_GenQgarSegment.TCC. |
|
||||||||||||||||||||||||
|
Initialize from a geometrical segment.
|
|
||||||||||||||||||||||||||||
|
Initialize from source and target points.
|
|
||||||||||||||||||||||||||||||||||||
|
Initialize from coordinates.
Definition at line 124 of file _QGAR_GenQgarSegment.TCC. |
|
|||||||||
|
Virtual destructor.
Definition at line 146 of file _QGAR_GenQgarSegment.TCC. |
|
|||||||||
|
Get the structure implementing the geometrical aspect of a Qgar segment.
Implements qgar::AbstractGenQgarPrimitive< T >. Definition at line 445 of file _QGAR_GenQgarSegment.TCC. References qgar::GenQgarSegment< T >::_geomStructure. Referenced by qgar::GenQgarPolyline< T >::GenQgarPolyline(), 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(). |
|
|||||||||
|
Same as qgar::GenQgarSegment::theta.
Definition at line 206 of file _QGAR_GenQgarSegment.TCC. References qgar::GenQgarSegment< T >::_geomStructure, and qgar::GenSegment< T >::angle(). |
|
|||||||||
|
Same as qgar::GenQgarSegment::theta, but the result is given in [0,360[ degrees.
Definition at line 226 of file _QGAR_GenQgarSegment.TCC. References qgar::GenQgarSegment< T >::_geomStructure, and qgar::GenSegment< T >::angleDegrees(). |
|
|||||||||
|
Create a dynamically allocated deep copy of the primitive.
Implements qgar::AbstractGenQgarPrimitive< T >. Definition at line 429 of file _QGAR_GenQgarSegment.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(). |
|
||||||||||||||||
|
Return true if the given point approximately belongs to the current Qgar segment. Here, ''to belong'' means to be at a distance smaller or equal to the given threshold from some point between the source and the target of the segment.
Definition at line 262 of file _QGAR_GenQgarSegment.TCC. References qgar::GenQgarSegment< T >::_geomStructure, and qgar::GenSegment< T >::contains(). |
|
|||||||||
|
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 319 of file _QGAR_GenQgarSegment.TCC. References qgar::GenQgarSegment< T >::_geomStructure, and qgar::GenSegment< T >::eq(). |
|
||||||||||
|
Equality.
Definition at line 329 of file _QGAR_GenQgarSegment.TCC. References qgar::AbstractGenQgarPrimitive< T >::_color, qgar::GenQgarSegment< T >::_geomStructure, qgar::AbstractGenQgarPrimitive< T >::_outline, and qgar::AbstractGenQgarPrimitive< T >::_thickness. |
|
||||||||||
|
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 461 of file _QGAR_GenQgarSegment.TCC. References qgar::GenQgarSegment< T >::_geomStructure. |
|
|||||||||
|
Get length of the segment.
Definition at line 161 of file _QGAR_GenQgarSegment.TCC. References qgar::GenQgarSegment< T >::_geomStructure, and qgar::GenSegment< T >::length(). |
|
||||||||||
|
Inequality.
Definition at line 343 of file _QGAR_GenQgarSegment.TCC. References qgar::GenQgarSegment< T >::_geomStructure. |
|
||||||||||
|
Inequality.
Definition at line 353 of file _QGAR_GenQgarSegment.TCC. References qgar::AbstractGenQgarPrimitive< T >::_color, qgar::GenQgarSegment< T >::_geomStructure, qgar::AbstractGenQgarPrimitive< T >::_outline, and qgar::AbstractGenQgarPrimitive< T >::_thickness. |
|
||||||||||
|
Same as function qgar::GenQgarSegment::notEq.
Definition at line 303 of file _QGAR_GenQgarSegment.TCC. References qgar::GenQgarSegment< T >::_geomStructure. |
|
||||||||||
|
Assignment.
Definition at line 277 of file _QGAR_GenQgarSegment.TCC. References qgar::GenQgarSegment< T >::_geomStructure. |
|
||||||||||
|
Same as function qgar::GenQgarSegment::eq.
Definition at line 293 of file _QGAR_GenQgarSegment.TCC. References qgar::GenQgarSegment< T >::_geomStructure. |
|
|||||||||
|
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(). |
|
||||||||||
|
Deserializes the current segment from an input stream. A serialized Qgar segment is represented as: QgarSegment(<GEOMETRICAL STRUCTURE>)(<THICKNESS>)(<COLOR>)(<OUTLINE>)
Implements qgar::ISerializable. Definition at line 370 of file _QGAR_GenQgarSegment.TCC. References qgar::AbstractGenQgarPrimitive< T >::_color, qgar::GenQgarSegment< T >::_geomStructure, qgar::AbstractGenQgarPrimitive< T >::_outline, qgar::AbstractGenQgarPrimitive< T >::color(), qgar::AbstractGenQgarPrimitive< T >::outline(), qgar::qgReadObjData(), and qgar::qgReadObjName(). |
|
|||||||||
|
Distance between point (0,0) and its perpendicular projection onto the line supporting the current segment. Always positive. Definition at line 185 of file _QGAR_GenQgarSegment.TCC. References qgar::GenQgarSegment< T >::_geomStructure, and qgar::GenSegment< T >::rho(). |
|
||||||||||
|
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 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 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(). |
|
|||||||||
|
Angle between the X axis and the segment, in [0, PI[ radians.
O O +------------------> X +-----------------> X | \ | | \ | | \ <-' angle | \ <-' angle | \ | \ | + source | + target | \ | \ | \ | \ | \ | \ v + target v + source Y Y
Definition at line 236 of file _QGAR_GenQgarSegment.TCC. References qgar::GenQgarSegment< T >::_geomStructure, and qgar::GenSegment< T >::slope(). |
|
|||||||||
|
Same as qgar::GenQgarSegment::slope, but the result is given in [0,180[ degrees.
Definition at line 246 of file _QGAR_GenQgarSegment.TCC. References qgar::GenQgarSegment< T >::_geomStructure, and qgar::GenSegment< T >::slopeDegrees(). |
|
|||||||||
|
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 squared length of the segment.
Definition at line 171 of file _QGAR_GenQgarSegment.TCC. References qgar::GenQgarSegment< T >::_geomStructure, and qgar::GenSegment< T >::sqr_length(). |
|
|||||||||
|
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(). |
|
|||||||||
|
Angle between the X axis and the segment, in [0, 2PI[ radians.
----->/ O O / / +------------------> X +---------|-------------> X | \ | | | / | | \ <-' angle | angle \_ /__/ | \ | / | + source | + target | \ | ^ | \ | / | v | / v + target v + source Y Y
Definition at line 196 of file _QGAR_GenQgarSegment.TCC. References qgar::GenQgarSegment< T >::_geomStructure, and qgar::GenSegment< T >::theta(). |
|
|||||||||
|
Same as qgar::GenQgarSegment::theta, but the result is given in [0,360[ degrees.
Definition at line 216 of file _QGAR_GenQgarSegment.TCC. References qgar::GenQgarSegment< T >::_geomStructure, and qgar::GenSegment< T >::thetaDegrees(). |
|
|||||||||
|
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 an object to an input stream. A serialized Qgar segment is represented as: QgarSegment(<GEOMETRICAL STRUCTURE>)(<THICKNESS>)(<COLOR>)(<OUTLINE>)
Implements qgar::ISerializable. Definition at line 396 of file _QGAR_GenQgarSegment.TCC. References qgar::AbstractGenQgarPrimitive< T >::_color, qgar::GenQgarSegment< T >::_geomStructure, qgar::AbstractGenQgarPrimitive< T >::_outline, and qgar::AbstractGenQgarPrimitive< T >::_thickness. |
|
|||||||||
|
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 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(). |
|
|||||
|
|||||
|
|||||
|
|||||