Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

qgar::AbstractGenQgarPrimitive< T > Class Template Reference
[Qgar (graphical) primitives]

#include <qgarlib/primitives.H>

Inheritance diagram for qgar::AbstractGenQgarPrimitive< T >:

qgar::GenQgarArc< T > qgar::GenQgarPolygon< T > qgar::GenQgarPolyline< T > qgar::GenQgarSegment< T > List of all members.

Detailed Description

template<class T>
class qgar::AbstractGenQgarPrimitive< T >

Graphical primitives, typically resulting from vectorization, with coordinates of type T.

Such a primitive is provided with:

Predefined types: qgar::QgarPrimitive, qgar::IQgarPrimitive, qgar::FQgarPrimitive, qgar::DQgarPrimitive.

Warning:
Author:
Gérald Masini
Date:
June 20, 2003 15:15
Since:
Qgar 2.1

Definition at line 98 of file _QGAR_AbstractGenQgarPrimitive.H.

Public Types

Types
typedef T value_type
 Type of a point of a primitive.
typedef value_typereference
 Reference to qgar::AbstractGenQgarPrimitive::value_type.
typedef const value_typeconst_reference
 Constant reference to qgar::AbstractGenQgarPrimitive::value_type.
typedef value_typepointer
 Pointer to qgar::AbstractGenQgarPrimitive::value_type.
typedef const value_typeconst_pointer
 Constant pointer to qgar::AbstractGenQgarPrimitive::value_type.

Public Member Functions

Constructors
 AbstractGenQgarPrimitive (int aThickness=1, QGEcolor aColor=QGE_COLOR_BLACK, QGEoutline anOutline=QGE_OUTLINE_SOLID)
 Default constructor.
 AbstractGenQgarPrimitive (const AbstractGenQgarPrimitive< T > &aQPrim)
 Copy constructor.
Destructor
virtual ~AbstractGenQgarPrimitive ()
 Virtual destructor.
Copy
virtual AbstractGenQgarPrimitive<
value_type > * 
clone () const =0
 Create a dynamically allocated deep copy of the primitive.
Geometrical aspect
virtual const AbstractGenPrimitive<
value_type > & 
accessGeomStructure () const =0
 Get the structure implementing the geometrical aspect of the primitive.
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_typesource () const
 Get a copy of the source point.
const GenPoint< value_type > & accessTarget () const
 Get target point.
GenPoint< value_typetarget () 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.
Operators
AbstractGenQgarPrimitive<
value_type > & 
operator= (const AbstractGenQgarPrimitive< value_type > &aQPrim)
 Assignment.
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
virtual AbstractGenPrimitive<
value_type > & 
getGeomStructure ()=0
 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.


Member Typedef Documentation

template<class T>
typedef const value_type* qgar::AbstractGenQgarPrimitive< T >::const_pointer
 

Constant pointer to qgar::AbstractGenQgarPrimitive::value_type.

Reimplemented in qgar::GenQgarArc< T >, qgar::GenQgarPolygon< T >, qgar::GenQgarPolyline< T >, and qgar::GenQgarSegment< T >.

Definition at line 133 of file _QGAR_AbstractGenQgarPrimitive.H.

template<class T>
typedef const value_type& qgar::AbstractGenQgarPrimitive< T >::const_reference
 

Constant reference to qgar::AbstractGenQgarPrimitive::value_type.

Reimplemented in qgar::GenQgarArc< T >, qgar::GenQgarPolygon< T >, qgar::GenQgarPolyline< T >, and qgar::GenQgarSegment< T >.

Definition at line 123 of file _QGAR_AbstractGenQgarPrimitive.H.

template<class T>
typedef value_type* qgar::AbstractGenQgarPrimitive< T >::pointer
 

Pointer to qgar::AbstractGenQgarPrimitive::value_type.

Reimplemented in qgar::GenQgarArc< T >, qgar::GenQgarPolygon< T >, qgar::GenQgarPolyline< T >, and qgar::GenQgarSegment< T >.

Definition at line 128 of file _QGAR_AbstractGenQgarPrimitive.H.

template<class T>
typedef value_type& qgar::AbstractGenQgarPrimitive< T >::reference
 

Reference to qgar::AbstractGenQgarPrimitive::value_type.

Reimplemented in qgar::GenQgarArc< T >, qgar::GenQgarPolygon< T >, qgar::GenQgarPolyline< T >, and qgar::GenQgarSegment< T >.

Definition at line 118 of file _QGAR_AbstractGenQgarPrimitive.H.

template<class T>
typedef T qgar::AbstractGenQgarPrimitive< T >::value_type
 

Type of a point of a primitive.

Reimplemented in qgar::GenQgarArc< T >, qgar::GenQgarPolygon< T >, qgar::GenQgarPolyline< T >, and qgar::GenQgarSegment< T >.

Definition at line 113 of file _QGAR_AbstractGenQgarPrimitive.H.


Constructor & Destructor Documentation

template<class T>
qgar::AbstractGenQgarPrimitive< T >::AbstractGenQgarPrimitive int  aThickness = 1,
QGEcolor  aColor = QGE_COLOR_BLACK,
QGEoutline  anOutline = QGE_OUTLINE_SOLID
 

Default constructor.

Parameters:
aThickness thickness (default 1)
aColor color (default qgar::QGE_COLOR_BLACK)
anOutline outline (default qgar::QGE_OUTLINE_SOLID)

Definition at line 62 of file _QGAR_AbstractGenQgarPrimitive.TCC.

template<class T>
qgar::AbstractGenQgarPrimitive< T >::AbstractGenQgarPrimitive const AbstractGenQgarPrimitive< T > &  aQPrim  ) 
 

Copy constructor.

Parameters:
aQPrim Qgar primitive to be copied

Definition at line 78 of file _QGAR_AbstractGenQgarPrimitive.TCC.

template<class T>
qgar::AbstractGenQgarPrimitive< T >::~AbstractGenQgarPrimitive  )  [virtual]
 

Virtual destructor.

Definition at line 97 of file _QGAR_AbstractGenQgarPrimitive.TCC.


Member Function Documentation

template<class T>
virtual const AbstractGenPrimitive<value_type>& qgar::AbstractGenQgarPrimitive< T >::accessGeomStructure  )  const [pure virtual]
 

Get the structure implementing the geometrical aspect of the primitive.

Implemented in qgar::GenQgarArc< T >, qgar::GenQgarPolygon< T >, qgar::GenQgarPolyline< T >, and qgar::GenQgarSegment< T >.

Referenced by qgar::AbstractGenQgarPrimitive< T >::accessSource(), qgar::AbstractGenQgarPrimitive< T >::accessTarget(), qgar::AbstractGenQgarPrimitive< T >::dx(), qgar::AbstractGenQgarPrimitive< T >::dy(), qgar::AbstractGenQgarPrimitive< T >::source(), qgar::AbstractGenQgarPrimitive< T >::target(), qgar::AbstractGenQgarPrimitive< T >::xSource(), qgar::AbstractGenQgarPrimitive< T >::xTarget(), qgar::AbstractGenQgarPrimitive< T >::ySource(), and qgar::AbstractGenQgarPrimitive< T >::yTarget().

template<class T>
const GenPoint< T > & qgar::AbstractGenQgarPrimitive< T >::accessSource  )  const [inline]
 

Get source point.

Definition at line 147 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenQgarPrimitive< T >::accessGeomStructure(), and qgar::AbstractGenPrimitive< T >::accessSource().

template<class T>
const GenPoint< T > & qgar::AbstractGenQgarPrimitive< T >::accessTarget  )  const [inline]
 

Get target point.

Definition at line 167 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenQgarPrimitive< T >::accessGeomStructure(), and qgar::AbstractGenPrimitive< T >::accessTarget().

template<class T>
virtual AbstractGenQgarPrimitive<value_type>* qgar::AbstractGenQgarPrimitive< T >::clone  )  const [pure virtual]
 

Create a dynamically allocated deep copy of the primitive.

Implemented in qgar::GenQgarArc< T >, qgar::GenQgarPolygon< T >, qgar::GenQgarPolyline< T >, and qgar::GenQgarSegment< T >.

template<class T>
QGEcolor qgar::AbstractGenQgarPrimitive< T >::color  )  const [inline]
 

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().

template<class T>
T qgar::AbstractGenQgarPrimitive< T >::dx  )  const [inline]
 

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().

template<class T>
T qgar::AbstractGenQgarPrimitive< T >::dy  )  const [inline]
 

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().

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::fixSource const GenPoint< value_type > &  aPt  )  [inline]
 

Set source point.

Parameters:
aPt a point
Warning:
Function qgar::AbstractGenPrimitive::updateSource is called after the modification of the source point.

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::fixSource value_type  aX,
value_type  aY
[inline]
 

Set source point.

Parameters:
aX new X coordinate of the source point
aY new Y coordinate of the source point
Warning:
Function qgar::AbstractGenPrimitive::updateSource is called after the modification of the source point.

Definition at line 364 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenPrimitive< T >::fixSource(), and qgar::AbstractGenQgarPrimitive< T >::getGeomStructure().

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::fixSourceTarget const GenPoint< value_type > &  aSource,
const GenPoint< value_type > &  aTarget
[inline]
 

Set both source and target points.

Parameters:
aSource source point
aTarget target point
Warning:
Function qgar::AbstractGenPrimitive::updateTarget is called after the modification of the source target.

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::fixSourceTarget value_type  aXSource,
value_type  aYSource,
value_type  aXTarget,
value_type  aYTarget
[inline]
 

Set both source and target points.

Parameters:
aXSource new X coordinate of the source point
aYSource new Y coordinate of the source point
aXTarget new X coordinate of the target point
aYTarget new Y coordinate of the target point
Warning:
Function qgar::AbstractGenPrimitive::updateTarget is called after the modification of the source target.

Definition at line 402 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenPrimitive< T >::fixSourceTarget(), and qgar::AbstractGenQgarPrimitive< T >::getGeomStructure().

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::fixTarget const GenPoint< value_type > &  aPt  )  [inline]
 

Set target point.

Parameters:
aPt a point
Warning:
Function qgar::AbstractGenPrimitive::updateTarget is called after the modification of the target point.

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::fixTarget value_type  aX,
value_type  aY
[inline]
 

Set target point.

Parameters:
aX new X coordinate of the target point
aY new Y coordinate of the target point
Warning:
Function qgar::AbstractGenPrimitive::updateTarget is called after the modification of the target point.

Definition at line 383 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenPrimitive< T >::fixTarget(), and qgar::AbstractGenQgarPrimitive< T >::getGeomStructure().

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::fixXSource value_type  aX  )  [inline]
 

Set X coordinate of the source point.

Parameters:
aX new X coordinate of the source point
Warning:
Function qgar::AbstractGenPrimitive::updateSource is called after the modification of the source point.

Definition at line 474 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenPrimitive< T >::fixXSource(), and qgar::AbstractGenQgarPrimitive< T >::getGeomStructure().

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::fixXTarget value_type  aX  )  [inline]
 

Set X coordinate of the target point.

Parameters:
aX new X coordinate of the target point
Warning:
Function qgar::AbstractGenPrimitive::updateTarget is called after the modification of the target point.

Definition at line 484 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenPrimitive< T >::fixXTarget(), and qgar::AbstractGenQgarPrimitive< T >::getGeomStructure().

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::fixYSource value_type  aY  )  [inline]
 

Set Y coordinate of the source point.

Parameters:
aY new Y coordinate of the source point
Warning:
Function qgar::AbstractGenPrimitive::updateSource is called after the modification of the source point.

Definition at line 494 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenPrimitive< T >::fixYSource(), and qgar::AbstractGenQgarPrimitive< T >::getGeomStructure().

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::fixYTarget value_type  aY  )  [inline]
 

Set Y coordinate of the target point.

Parameters:
aY new Y coordinate of the target point
Warning:
Function qgar::AbstractGenPrimitive::updateTarget is called after the modification of the target point.

Definition at line 504 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenPrimitive< T >::fixYTarget(), and qgar::AbstractGenQgarPrimitive< T >::getGeomStructure().

template<class T>
virtual AbstractGenPrimitive<value_type>& qgar::AbstractGenQgarPrimitive< T >::getGeomStructure  )  [protected, pure virtual]
 

Return the geometrical aspect.

It may then be modified using appropriate transformation function members.

Implemented in qgar::GenQgarArc< T >, qgar::GenQgarPolygon< T >, qgar::GenQgarPolyline< T >, and qgar::GenQgarSegment< T >.

Referenced by qgar::AbstractGenQgarPrimitive< T >::fixSource(), qgar::AbstractGenQgarPrimitive< T >::fixSourceTarget(), qgar::AbstractGenQgarPrimitive< T >::fixTarget(), qgar::AbstractGenQgarPrimitive< T >::fixXSource(), qgar::AbstractGenQgarPrimitive< T >::fixXTarget(), qgar::AbstractGenQgarPrimitive< T >::fixYSource(), qgar::AbstractGenQgarPrimitive< T >::fixYTarget(), qgar::AbstractGenQgarPrimitive< T >::setSource(), qgar::AbstractGenQgarPrimitive< T >::setSourceTarget(), qgar::AbstractGenQgarPrimitive< T >::setTarget(), qgar::AbstractGenQgarPrimitive< T >::setXSource(), qgar::AbstractGenQgarPrimitive< T >::setXTarget(), qgar::AbstractGenQgarPrimitive< T >::setYSource(), qgar::AbstractGenQgarPrimitive< T >::setYTarget(), and qgar::AbstractGenQgarPrimitive< T >::translate().

template<class T>
AbstractGenQgarPrimitive< T > & qgar::AbstractGenQgarPrimitive< T >::operator= const AbstractGenQgarPrimitive< value_type > &  aQPrim  ) 
 

Assignment.

Parameters:
aQPrim a Qgar primitive

Definition at line 519 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenQgarPrimitive< T >::_color, qgar::AbstractGenQgarPrimitive< T >::_outline, and qgar::AbstractGenQgarPrimitive< T >::_thickness.

template<class T>
QGEoutline qgar::AbstractGenQgarPrimitive< T >::outline  )  const [inline]
 

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().

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::setColor QGEcolor  aColor  )  [inline]
 

Set color.

Parameters:
aColor a color

Definition at line 272 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenQgarPrimitive< T >::_color.

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::setOutline QGEoutline  anOutline  )  [inline]
 

Set outline.

Parameters:
anOutline an outline

Definition at line 282 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenQgarPrimitive< T >::_outline.

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::setSource const GenPoint< value_type > &  aPt  )  [inline]
 

Set source point.

Parameters:
aPt a point
Warning:
The data structure of the primitive is not subsequently updated.

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::setSource value_type  aX,
value_type  aY
[inline]
 

Set source point.

Parameters:
aX new X coordinate of the source point
aY new Y coordinate of the source point
Warning:
The data structure of the primitive is not subsequently updated.

Definition at line 298 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(), and qgar::AbstractGenPrimitive< T >::setSource().

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::setSourceTarget const GenPoint< value_type > &  aSource,
const GenPoint< value_type > &  aTarget
[inline]
 

Set both source and target points.

Parameters:
aSource source point
aTarget target point
Warning:
The data structure of the primitive is not subsequently updated.

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::setSourceTarget value_type  aXSource,
value_type  aYSource,
value_type  aXTarget,
value_type  aYTarget
[inline]
 

Set both source and target points.

Parameters:
aXSource new X coordinate of the source point
aYSource new Y coordinate of the source point
aXTarget new X coordinate of the target point
aYTarget new Y coordinate of the target point
Warning:
The data structure of the primitive is not subsequently updated.

Definition at line 336 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(), and qgar::AbstractGenPrimitive< T >::setSourceTarget().

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::setTarget const GenPoint< value_type > &  aPt  )  [inline]
 

Set target point.

Parameters:
aPt a point
Warning:
The data structure of the primitive is not subsequently updated.

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::setTarget value_type  aX,
value_type  aY
[inline]
 

Set target point.

Parameters:
aX new X coordinate of the target point
aY new Y coordinate of the target point
Warning:
The data structure of the primitive is not subsequently updated.

Definition at line 317 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(), and qgar::AbstractGenPrimitive< T >::setTarget().

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::setThickness int  aThickness  )  [inline]
 

Set thickness.

Parameters:
aThickness a thickness

Definition at line 262 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenQgarPrimitive< T >::_thickness.

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::setXSource value_type  aX  )  [inline]
 

Set X coordinate of the source point.

Parameters:
aX new X coordinate of the source point
Warning:
The data structure of the primitive is not subsequently updated.

Definition at line 429 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(), and qgar::AbstractGenPrimitive< T >::setXSource().

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::setXTarget value_type  aX  )  [inline]
 

Set X coordinate of the target point.

Parameters:
aX new X coordinate of the target point
Warning:
The data structure of the primitive is not subsequently updated.

Definition at line 439 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(), and qgar::AbstractGenPrimitive< T >::setXTarget().

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::setYSource value_type  aY  )  [inline]
 

Set Y coordinate of the source point.

Parameters:
aY new Y coordinate of the source point
Warning:
The data structure of the primitive is not subsequently updated.

Definition at line 449 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(), and qgar::AbstractGenPrimitive< T >::setYSource().

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::setYTarget value_type  aY  )  [inline]
 

Set Y coordinate of the target point.

Parameters:
aY new Y coordinate of the target point
Warning:
The data structure of the primitive is not subsequently updated.

Definition at line 459 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenQgarPrimitive< T >::getGeomStructure(), and qgar::AbstractGenPrimitive< T >::setYTarget().

template<class T>
GenPoint< T > qgar::AbstractGenQgarPrimitive< T >::source  )  const [inline]
 

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().

template<class T>
GenPoint< T > qgar::AbstractGenQgarPrimitive< T >::target  )  const [inline]
 

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().

template<class T>
int qgar::AbstractGenQgarPrimitive< T >::thickness  )  const [inline]
 

Get thickness.

Definition at line 112 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenQgarPrimitive< T >::_thickness.

Referenced by qgar::AbstractGraphicsFile::write().

template<class T>
void qgar::AbstractGenQgarPrimitive< T >::translate value_type  aTransX,
value_type  aTransY
[inline]
 

Translate along X and Y axis.

Parameters:
aTransX X translation factor
aTransY Y translation factor

Reimplemented in qgar::GenQgarPolygon< T >, and qgar::GenQgarPolyline< T >.

Definition at line 542 of file _QGAR_AbstractGenQgarPrimitive.TCC.

References qgar::AbstractGenQgarPrimitive< T >::getGeomStructure().

template<class T>
T qgar::AbstractGenQgarPrimitive< T >::xSource  )  const [inline]
 

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().

template<class T>
T qgar::AbstractGenQgarPrimitive< T >::xTarget  )  const [inline]
 

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().

template<class T>
T qgar::AbstractGenQgarPrimitive< T >::ySource  )  const [inline]
 

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().

template<class T>
T qgar::AbstractGenQgarPrimitive< T >::yTarget  )  const [inline]
 

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().


Member Data Documentation

template<class T>
QGEcolor qgar::AbstractGenQgarPrimitive< T >::_color [protected]
 

Color of the outline.

Definition at line 666 of file _QGAR_AbstractGenQgarPrimitive.H.

Referenced by qgar::AbstractGenQgarPrimitive< T >::color(), qgar::GenQgarSegment< T >::equal(), qgar::GenQgarArc< T >::equal(), qgar::GenQgarSegment< T >::notEqual(), qgar::AbstractGenQgarPrimitive< T >::operator=(), qgar::GenQgarSegment< T >::read(), qgar::GenQgarPolyline< T >::read(), qgar::GenQgarPolygon< T >::read(), qgar::GenQgarArc< T >::read(), qgar::AbstractGenQgarPrimitive< T >::setColor(), qgar::GenQgarSegment< T >::write(), qgar::GenQgarPolyline< T >::write(), qgar::GenQgarPolygon< T >::write(), and qgar::GenQgarArc< T >::write().

template<class T>
QGEoutline qgar::AbstractGenQgarPrimitive< T >::_outline [protected]
 

Type of outline.

See also:
Enum type qgar::QGEoutline

Definition at line 673 of file _QGAR_AbstractGenQgarPrimitive.H.

Referenced by qgar::GenQgarSegment< T >::equal(), qgar::GenQgarArc< T >::equal(), qgar::GenQgarSegment< T >::notEqual(), qgar::AbstractGenQgarPrimitive< T >::operator=(), qgar::AbstractGenQgarPrimitive< T >::outline(), qgar::GenQgarSegment< T >::read(), qgar::GenQgarPolyline< T >::read(), qgar::GenQgarPolygon< T >::read(), qgar::GenQgarArc< T >::read(), qgar::AbstractGenQgarPrimitive< T >::setOutline(), qgar::GenQgarSegment< T >::write(), qgar::GenQgarPolyline< T >::write(), qgar::GenQgarPolygon< T >::write(), and qgar::GenQgarArc< T >::write().

template<class T>
int qgar::AbstractGenQgarPrimitive< T >::_thickness [protected]
 

Thickness of the outline.

Definition at line 661 of file _QGAR_AbstractGenQgarPrimitive.H.

Referenced by qgar::GenQgarSegment< T >::equal(), qgar::GenQgarArc< T >::equal(), qgar::GenQgarSegment< T >::notEqual(), qgar::AbstractGenQgarPrimitive< T >::operator=(), qgar::AbstractGenQgarPrimitive< T >::setThickness(), qgar::AbstractGenQgarPrimitive< T >::thickness(), qgar::GenQgarSegment< T >::write(), qgar::GenQgarPolyline< T >::write(), qgar::GenQgarPolygon< T >::write(), and qgar::GenQgarArc< T >::write().


The documentation for this class was generated from the following files: