basegfx::B2I64Tuple Class Reference

Base class for all Points/Vectors with two sal_Int64 values. More...

#include <b2i64tuple.hxx>

List of all members.

Public Member Functions

 B2I64Tuple ()
 Create a 2D Tuple.
 B2I64Tuple (sal_Int64 fX, sal_Int64 fY)
 Create a 2D Tuple.
 B2I64Tuple (const B2I64Tuple &rTup)
 Create a copy of a 2D Tuple.
 ~B2I64Tuple ()
sal_Int64 getX () const
 Get X-Coordinate of 2D Tuple.
sal_Int64 getY () const
 Get Y-Coordinate of 2D Tuple.
void setX (sal_Int64 fX)
 Set X-Coordinate of 2D Tuple.
void setY (sal_Int64 fY)
 Set Y-Coordinate of 2D Tuple.
const sal_Int64 & operator[] (int nPos) const
 Array-access to 2D Tuple.
sal_Int64 & operator[] (int nPos)
 Array-access to 2D Tuple.
B2I64Tupleoperator+= (const B2I64Tuple &rTup)
B2I64Tupleoperator-= (const B2I64Tuple &rTup)
B2I64Tupleoperator/= (const B2I64Tuple &rTup)
B2I64Tupleoperator*= (const B2I64Tuple &rTup)
B2I64Tupleoperator*= (sal_Int64 t)
B2I64Tupleoperator/= (sal_Int64 t)
B2I64Tuple operator- (void) const
bool equalZero () const
bool operator== (const B2I64Tuple &rTup) const
bool operator!= (const B2I64Tuple &rTup) const
B2I64Tupleoperator= (const B2I64Tuple &rTup)

Static Public Member Functions

static const B2I64TuplegetEmptyTuple ()

Protected Attributes

sal_Int64 mnX
sal_Int64 mnY


Detailed Description

Base class for all Points/Vectors with two sal_Int64 values.

This class provides all methods common to Point avd Vector classes which are derived from here.

Derive:
Use this class to implement Points or Vectors which are based on two sal_Int64 values

Definition at line 45 of file b2i64tuple.hxx.


Constructor & Destructor Documentation

basegfx::B2I64Tuple::B2I64Tuple (  )  [inline]

Create a 2D Tuple.

The tuple is initialized to (0, 0)

Definition at line 56 of file b2i64tuple.hxx.

Referenced by operator-().

basegfx::B2I64Tuple::B2I64Tuple ( sal_Int64  fX,
sal_Int64  fY 
) [inline]

Create a 2D Tuple.

Parameters:
fX This parameter is used to initialize the X-coordinate of the 2D Tuple.
fY This parameter is used to initialize the Y-coordinate of the 2D Tuple.

Definition at line 71 of file b2i64tuple.hxx.

basegfx::B2I64Tuple::B2I64Tuple ( const B2I64Tuple rTup  )  [inline]

Create a copy of a 2D Tuple.

Parameters:
rTup The 2D Tuple which will be copied.

Definition at line 81 of file b2i64tuple.hxx.

basegfx::B2I64Tuple::~B2I64Tuple (  )  [inline]

Definition at line 86 of file b2i64tuple.hxx.


Member Function Documentation

sal_Int64 basegfx::B2I64Tuple::getX (  )  const [inline]

Get X-Coordinate of 2D Tuple.

Definition at line 90 of file b2i64tuple.hxx.

References mnX.

Referenced by basegfx::absolute(), basegfx::average(), basegfx::interpolate(), basegfx::maximum(), and basegfx::minimum().

sal_Int64 basegfx::B2I64Tuple::getY (  )  const [inline]

Get Y-Coordinate of 2D Tuple.

Definition at line 96 of file b2i64tuple.hxx.

References mnY.

Referenced by basegfx::absolute(), basegfx::average(), basegfx::interpolate(), basegfx::maximum(), and basegfx::minimum().

void basegfx::B2I64Tuple::setX ( sal_Int64  fX  )  [inline]

Set X-Coordinate of 2D Tuple.

Definition at line 102 of file b2i64tuple.hxx.

References mnX.

void basegfx::B2I64Tuple::setY ( sal_Int64  fY  )  [inline]

Set Y-Coordinate of 2D Tuple.

Definition at line 108 of file b2i64tuple.hxx.

References mnY.

const sal_Int64& basegfx::B2I64Tuple::operator[] ( int  nPos  )  const [inline]

Array-access to 2D Tuple.

Definition at line 114 of file b2i64tuple.hxx.

References mnX.

sal_Int64& basegfx::B2I64Tuple::operator[] ( int  nPos  )  [inline]

Array-access to 2D Tuple.

Definition at line 123 of file b2i64tuple.hxx.

References mnX.

B2I64Tuple& basegfx::B2I64Tuple::operator+= ( const B2I64Tuple rTup  )  [inline]

Definition at line 134 of file b2i64tuple.hxx.

References mnX, and mnY.

B2I64Tuple& basegfx::B2I64Tuple::operator-= ( const B2I64Tuple rTup  )  [inline]

Definition at line 141 of file b2i64tuple.hxx.

References mnX, and mnY.

B2I64Tuple& basegfx::B2I64Tuple::operator/= ( const B2I64Tuple rTup  )  [inline]

Definition at line 148 of file b2i64tuple.hxx.

References mnX, and mnY.

B2I64Tuple& basegfx::B2I64Tuple::operator*= ( const B2I64Tuple rTup  )  [inline]

Definition at line 155 of file b2i64tuple.hxx.

References mnX, and mnY.

B2I64Tuple& basegfx::B2I64Tuple::operator*= ( sal_Int64  t  )  [inline]

Definition at line 162 of file b2i64tuple.hxx.

References mnX, and mnY.

B2I64Tuple& basegfx::B2I64Tuple::operator/= ( sal_Int64  t  )  [inline]

Definition at line 169 of file b2i64tuple.hxx.

References mnX, and mnY.

B2I64Tuple basegfx::B2I64Tuple::operator- ( void   )  const [inline]

Definition at line 176 of file b2i64tuple.hxx.

References B2I64Tuple(), mnX, and mnY.

bool basegfx::B2I64Tuple::equalZero (  )  const [inline]

Definition at line 181 of file b2i64tuple.hxx.

References mnX, and mnY.

bool basegfx::B2I64Tuple::operator== ( const B2I64Tuple rTup  )  const [inline]

Definition at line 183 of file b2i64tuple.hxx.

References mnX, and mnY.

bool basegfx::B2I64Tuple::operator!= ( const B2I64Tuple rTup  )  const [inline]

Definition at line 188 of file b2i64tuple.hxx.

B2I64Tuple& basegfx::B2I64Tuple::operator= ( const B2I64Tuple rTup  )  [inline]

Definition at line 193 of file b2i64tuple.hxx.

References mnX, and mnY.

const B2I64Tuple & basegfx::B2I64Tuple::getEmptyTuple (  )  [static]

Definition at line 37 of file b2i64tuple.cxx.


Member Data Documentation

sal_Int64 basegfx::B2I64Tuple::mnX [protected]

sal_Int64 basegfx::B2I64Tuple::mnY [protected]


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

Generated on Thu Apr 29 13:57:21 2010 for ooo-build Module basegfx (ooo/OOO320_m15) by  doxygen 1.5.6