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

TxqDoublePoint Class Reference

The class TxqDoublePoint contains data in double and floating-point precision about a Cartesian coordinate point. More...

#include <TxqDoublePoint.h>

List of all members.

Public Methods

 TxqDoublePoint ()
 Constructs and initializes a point at the origin (0.,0.) of the coordinate space. More...

 TxqDoublePoint (QPoint p)
 Constructs and initializes a point with the same location as the specified QPoint object. More...

 TxqDoublePoint (int x, int y)
 Constructs and initializes a point at the specified integer (x,y) location in the coordinate space. More...

 TxqDoublePoint (double x, double y)
 Constructs and initializes a point at the specified double (x,y) location in the coordinate space. More...

void setX (double value)
 Sets the x coordinate of the point to the specified double value. More...

void setX (int value)
 Sets the x coordinate of the point to the specified integer value. More...

void setY (double value)
 Sets the y coordinate of the point to the specified double value. More...

void setY (int value)
 Sets the y coordinate of the point to the specified integer value. More...

double getDblx ()
 Get the double x coordinate value. More...

int getIntx ()
 Get the integer x coordinate value. More...

double getDbly ()
 Get the double y coordinate value. More...

int getInty ()
 Get the integer y coordinate value. More...

void translate (double dx, double dy)
 Adds the specified dx and dy double values to the current coordinates. More...

void translate (int dx, int dy)
 Adds the specified dx and dy integer values to the current coordinates. More...

virtual ~TxqDoublePoint ()
 The Destructor. More...


Public Attributes

double dblx
 The double x coordinate data member. More...

double dbly
 The double y coordinate data member. More...

int intx
 The integer x coordinate data member. More...

int inty
 The integer y coordinate data member. More...


Detailed Description

The class TxqDoublePoint contains data in double and floating-point precision about a Cartesian coordinate point.

Definition at line 25 of file TxqDoublePoint.h.


Constructor & Destructor Documentation

TxqDoublePoint::TxqDoublePoint ( ) [inline]
 

Constructs and initializes a point at the origin (0.,0.) of the coordinate space.

Definition at line 34 of file TxqDoublePoint.h.

Referenced by TxqDoublePoint().

TxqDoublePoint::TxqDoublePoint ( QPoint p ) [inline]
 

Constructs and initializes a point with the same location as the specified QPoint object.

Parameters:
p   the QPoint.

Definition at line 43 of file TxqDoublePoint.h.

TxqDoublePoint::TxqDoublePoint ( int x,
int y ) [inline]
 

Constructs and initializes a point at the specified integer (x,y) location in the coordinate space.

Parameters:
x   the x coordinate.
y   the y coordinate.

Definition at line 53 of file TxqDoublePoint.h.

TxqDoublePoint::TxqDoublePoint ( double x,
double y ) [inline]
 

Constructs and initializes a point at the specified double (x,y) location in the coordinate space.

Parameters:
x   the x coordinate.
y   the y coordinate.

Definition at line 64 of file TxqDoublePoint.h.

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

The Destructor.

Definition at line 170 of file TxqDoublePoint.h.


Member Function Documentation

double TxqDoublePoint::getDblx ( ) [inline]
 

Get the double x coordinate value.

Returns:
the x coordinate value.

Definition at line 113 of file TxqDoublePoint.h.

double TxqDoublePoint::getDbly ( ) [inline]
 

Get the double y coordinate value.

Parameters:
the   double y coordinate value.

Definition at line 129 of file TxqDoublePoint.h.

int TxqDoublePoint::getIntx ( ) [inline]
 

Get the integer x coordinate value.

Returns:
the integer x coordinate value.

Definition at line 121 of file TxqDoublePoint.h.

int TxqDoublePoint::getInty ( ) [inline]
 

Get the integer y coordinate value.

Parameters:
the   integer y coordinate value.

Definition at line 137 of file TxqDoublePoint.h.

void TxqDoublePoint::setX ( int value ) [inline]
 

Sets the x coordinate of the point to the specified integer value.

Parameters:
value   the x coordinate.

Definition at line 84 of file TxqDoublePoint.h.

void TxqDoublePoint::setX ( double value ) [inline]
 

Sets the x coordinate of the point to the specified double value.

Parameters:
value   the x coordinate.

Definition at line 74 of file TxqDoublePoint.h.

Referenced by TxqDoublePoint().

void TxqDoublePoint::setY ( int value ) [inline]
 

Sets the y coordinate of the point to the specified integer value.

Parameters:
value   the y coordinate.

Definition at line 104 of file TxqDoublePoint.h.

void TxqDoublePoint::setY ( double value ) [inline]
 

Sets the y coordinate of the point to the specified double value.

Parameters:
value   the y coordinate.

Definition at line 94 of file TxqDoublePoint.h.

Referenced by TxqDoublePoint().

void TxqDoublePoint::translate ( int dx,
int dy ) [inline]
 

Adds the specified dx and dy integer values to the current coordinates.

Parameters:
dx   the x increment value
dy   the y increment value

Definition at line 160 of file TxqDoublePoint.h.

void TxqDoublePoint::translate ( double dx,
double dy ) [inline]
 

Adds the specified dx and dy double values to the current coordinates.

Parameters:
dx   the x increment value
dy   the y increment value

Definition at line 147 of file TxqDoublePoint.h.


Member Data Documentation

double TxqDoublePoint::dblx
 

The double x coordinate data member.

Definition at line 175 of file TxqDoublePoint.h.

double TxqDoublePoint::dbly
 

The double y coordinate data member.

Definition at line 180 of file TxqDoublePoint.h.

int TxqDoublePoint::intx
 

The integer x coordinate data member.

Definition at line 185 of file TxqDoublePoint.h.

int TxqDoublePoint::inty
 

The integer y coordinate data member.

Definition at line 190 of file TxqDoublePoint.h.


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