Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Txq2dPoint Class Reference

A Txq2dPoint is a symbol drawn at a point with respect to the real-world coordinate system. More...

#include <Txq2dPoint.h>

Inheritance diagram for Txq2dPoint::

Txq2dDrawable TxqDrawable Txq2dPointArray Txq2dPoints List of all members.

Public Methods

 Txq2dPoint ()
 This constructor is default. More...

 Txq2dPoint (TxqDoublePoint p)
 Construct with a TxqDoublePoint value for both x and y. More...

 Txq2dPoint (double x, double y)
 Construct with a x and y point position. More...

 Txq2dPoint (int x, int y)
 Construct with a x and y integer position. More...

 Txq2dPoint (QPoint p)
 Construct with a QPoint position. More...

virtual ~Txq2dPoint ()
 The destructor is default. More...

void setPoint (TxqDoublePoint p)
 Set the point in the real-world coordinate system. More...

void setPoint (double x, double y)
 Set the point in the real-world coordinate system. More...

void setPoint (int x, int y)
 Set the point in the real-world coordinate system. More...

void setPoint (QPoint p)
 Set the point in the real-world coordinate system. More...

TxqDoublePoint getPoint ()
 Returns the point in the real-world coordinate system. More...

void setLocation (int x, int y)
 Overrided to make sure the point is translated with moves to new locations. More...

void paint (QPainter *g)
 Paints the point. More...


Protected Methods

virtual void initialize ()
 Initialize the class variables. More...

void dump (QTextStream *ts)
 Dump the object contents to the text stream ts. More...


Protected Attributes

TxqDoublePoint point
 The point location to draw. More...


Detailed Description

A Txq2dPoint is a symbol drawn at a point with respect to the real-world coordinate system.

Copyright 2000 by Tech-X Corporation

Author:
Kelly G. Luetkemeyer

Version:
Id:
Txq2dPoint.h,v 1.6 2002/01/17 19:29:21 kgl Exp

Definition at line 32 of file Txq2dPoint.h.


Constructor & Destructor Documentation

Txq2dPoint::Txq2dPoint ( )
 

This constructor is default.

Txq2dPoint::Txq2dPoint ( TxqDoublePoint p )
 

Construct with a TxqDoublePoint value for both x and y.

Parameters:
p   the point to draw

Txq2dPoint::Txq2dPoint ( double x,
double y )
 

Construct with a x and y point position.

Parameters:
x   the x location to draw
y   the y location to draw

Txq2dPoint::Txq2dPoint ( int x,
int y )
 

Construct with a x and y integer position.

Parameters:
x   the x location to draw
y   the y location to draw

Txq2dPoint::Txq2dPoint ( QPoint p )
 

Construct with a QPoint position.

Parameters:
p   the point to draw

Txq2dPoint::~Txq2dPoint ( ) [inline, virtual]
 

The destructor is default.

Definition at line 70 of file Txq2dPoint.h.


Member Function Documentation

void Txq2dPoint::dump ( QTextStream * ts ) [protected, virtual]
 

Dump the object contents to the text stream ts.

Parameters:
ts   the text stream to dump contents

Reimplemented from TxqDrawable.

Reimplemented in Txq2dPointArray, and Txq2dPoints.

TxqDoublePoint Txq2dPoint::getPoint ( )
 

Returns the point in the real-world coordinate system.

Returns:
the point location as a TxqDoublePoint.

void Txq2dPoint::initialize ( ) [protected, virtual]
 

Initialize the class variables.

Reimplemented from TxqDrawable.

Reimplemented in Txq2dPointArray, and Txq2dPoints.

void Txq2dPoint::paint ( QPainter * g ) [virtual]
 

Paints the point.

Parameters:
g   the paint device

Reimplemented from Txq2dDrawable.

Reimplemented in Txq2dPointArray, and Txq2dPoints.

void Txq2dPoint::setLocation ( int x,
int y ) [virtual]
 

Overrided to make sure the point is translated with moves to new locations.

Parameters:
x   the x location
y   the y location

Reimplemented from TxqDrawable.

Reimplemented in Txq2dPointArray, and Txq2dPoints.

void Txq2dPoint::setPoint ( QPoint p )
 

Set the point in the real-world coordinate system.

Parameters:
p   the QPoint location to draw

void Txq2dPoint::setPoint ( int x,
int y )
 

Set the point in the real-world coordinate system.

Parameters:
x   the x location to draw
y   the y location to draw

void Txq2dPoint::setPoint ( double x,
double y )
 

Set the point in the real-world coordinate system.

Parameters:
x   the x location to draw
y   the y location to draw

void Txq2dPoint::setPoint ( TxqDoublePoint p )
 

Set the point in the real-world coordinate system.

Parameters:
p   the TxqDoublePoint location to draw


Member Data Documentation

TxqDoublePoint Txq2dPoint::point [protected]
 

The point location to draw.

Definition at line 136 of file Txq2dPoint.h.


The documentation for this class was generated from the following file: Copyright Tech-X Corporation, all rights reserved.