LibreOffice Module tools (master)  1
Public Member Functions | Friends | List of all members
Point Class Referencefinal

#include <gen.hxx>

Inheritance diagram for Point:
[legend]
Collaboration diagram for Point:
[legend]

Public Member Functions

 Point ()
 
 Point (long nX, long nY)
 
long X () const
 
long Y () const
 
void Move (long nHorzMove, long nVertMove)
 
void Move (Size const &s)
 
long AdjustX (long nHorzMove)
 
long AdjustY (long nVertMove)
 
void RotateAround (long &rX, long &rY, short nOrientation) const
 
void RotateAround (Point &, short nOrientation) const
 
Pointoperator+= (const Point &rPoint)
 
Pointoperator-= (const Point &rPoint)
 
Pointoperator*= (const long nVal)
 
Pointoperator/= (const long nVal)
 
long getX () const
 
long getY () const
 
void setX (long nX)
 
void setY (long nY)
 
Pair const & toPair () const
 
PairtoPair ()
 

Friends

Point operator+ (const Point &rVal1, const Point &rVal2)
 
Point operator- (const Point &rVal1, const Point &rVal2)
 
Point operator* (const Point &rVal1, const long nVal2)
 
Point operator/ (const Point &rVal1, const long nVal2)
 

Additional Inherited Members

- Protected Member Functions inherited from Pair
 Pair ()
 
 Pair (long _nA, long _nB)
 
long A () const
 
long B () const
 
long & A ()
 
long & B ()
 
TOOLS_DLLPUBLIC rtl::OString toString () const
 
- Protected Attributes inherited from Pair
long nA
 
long nB
 

Detailed Description

Definition at line 70 of file gen.hxx.

Constructor & Destructor Documentation

Point::Point ( )
inline

Definition at line 73 of file gen.hxx.

Point::Point ( long  nX,
long  nY 
)
inline

Definition at line 74 of file gen.hxx.

Member Function Documentation

long Point::AdjustX ( long  nHorzMove)
inline

Definition at line 81 of file gen.hxx.

References Pair::nA.

Referenced by Move(), and tools::Polygon::Move().

long Point::AdjustY ( long  nVertMove)
inline

Definition at line 82 of file gen.hxx.

References Pair::nB.

Referenced by Move(), and tools::Polygon::Move().

long Point::getX ( ) const
inline

Definition at line 97 of file gen.hxx.

References X.

Referenced by tools::GenericTypeSerializer::writePoint().

long Point::getY ( ) const
inline

Definition at line 98 of file gen.hxx.

References Y.

Referenced by tools::GenericTypeSerializer::writePoint().

void Point::Move ( long  nHorzMove,
long  nVertMove 
)
inline

Definition at line 108 of file gen.hxx.

References Pair::nA, and Pair::nB.

void Point::Move ( Size const &  s)
inline

Definition at line 227 of file gen.hxx.

References AdjustX(), AdjustY(), Size::Height(), and Size::Width().

Point & Point::operator*= ( const long  nVal)
inline

Definition at line 128 of file gen.hxx.

References Pair::nA, and Pair::nB.

Point & Point::operator+= ( const Point rPoint)
inline

Definition at line 114 of file gen.hxx.

References Pair::nA, and Pair::nB.

Point & Point::operator-= ( const Point rPoint)
inline

Definition at line 121 of file gen.hxx.

References Pair::nA, and Pair::nB.

Point & Point::operator/= ( const long  nVal)
inline

Definition at line 135 of file gen.hxx.

References Pair::nA, and Pair::nB.

void Point::RotateAround ( long &  rX,
long &  rY,
short  nOrientation 
) const

Definition at line 33 of file point.cxx.

References F_PI1800, X(), and Y().

Referenced by RotateAround().

void Point::RotateAround ( Point rPoint,
short  nOrientation 
) const

Definition at line 23 of file point.cxx.

References RotateAround(), setX(), setY(), X(), and Y().

void Point::setX ( long  nX)
inline
void Point::setY ( long  nY)
inline
Pair const& Point::toPair ( ) const
inline

Definition at line 102 of file gen.hxx.

Referenced by operator==().

Pair& Point::toPair ( )
inline

Definition at line 103 of file gen.hxx.

long Point::X ( ) const
inline
long Point::Y ( ) const
inline

Friends And Related Function Documentation

Point operator* ( const Point rVal1,
const long  nVal2 
)
friend

Definition at line 152 of file gen.hxx.

Point operator+ ( const Point rVal1,
const Point rVal2 
)
friend

Definition at line 142 of file gen.hxx.

Point operator- ( const Point rVal1,
const Point rVal2 
)
friend

Definition at line 147 of file gen.hxx.

Point operator/ ( const Point rVal1,
const long  nVal2 
)
friend

Definition at line 157 of file gen.hxx.


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