LibreOffice Module basegfx (master) 1
Public Member Functions | List of all members
basegfx::B3ITuple Class Reference

Base class for all Points/Vectors with three sal_Int32 values. More...

#include <b3ituple.hxx>

Inheritance diagram for basegfx::B3ITuple:
[legend]
Collaboration diagram for basegfx::B3ITuple:
[legend]

Public Member Functions

 B3ITuple ()
 Create a 3D Tuple. More...
 
 B3ITuple (sal_Int32 nX, sal_Int32 nY, sal_Int32 nZ)
 Create a 3D Tuple. More...
 
const sal_Int32 & operator[] (int nPos) const
 Array-access to 3D Tuple. More...
 
sal_Int32 & operator[] (int nPos)
 Array-access to 3D Tuple. More...
 
B3ITuple operator- (void) const
 
- Public Member Functions inherited from basegfx::Tuple3D< sal_Int32 >
 Tuple3D (sal_Int32 x, sal_Int32 y, sal_Int32 z)
 Create a 3D Tuple. More...
 
sal_Int32 getX () const
 Get X-Coordinate of 3D Tuple. More...
 
sal_Int32 getY () const
 Get Y-Coordinate of 3D Tuple. More...
 
sal_Int32 getZ () const
 Get Z-Coordinate of 3D Tuple. More...
 
void setX (sal_Int32 fX)
 Set X-Coordinate of 3D Tuple. More...
 
void setY (sal_Int32 fY)
 Set Y-Coordinate of 3D Tuple. More...
 
void setZ (sal_Int32 fZ)
 Set Z-Coordinate of 3D Tuple. More...
 
Tuple3Doperator+= (const Tuple3D &rTup)
 
Tuple3Doperator-= (const Tuple3D &rTup)
 
Tuple3Doperator/= (const Tuple3D &rTup)
 
Tuple3Doperator/= (sal_Int32 t)
 
Tuple3Doperator*= (const Tuple3D &rTup)
 
Tuple3Doperator*= (sal_Int32 t)
 
bool operator== (const Tuple3D &rTup) const
 
bool operator!= (const Tuple3D &rTup) const
 

Additional Inherited Members

- Public Attributes inherited from basegfx::Tuple3D< sal_Int32 >
sal_Int32 mnX
 
sal_Int32 mnY
 
sal_Int32 mnZ
 
sal_Int32 mfX
 
sal_Int32 mfY
 
sal_Int32 mfZ
 
- Protected Attributes inherited from basegfx::Tuple3D< sal_Int32 >
union {
   struct {
      TYPE   mnX
 
      TYPE   mnY
 
      TYPE   mnZ
 
   } 
 
   struct {
      TYPE   mfX
 
      TYPE   mfY
 
      TYPE   mfZ
 
   } 
 
}; 
 

Detailed Description

Base class for all Points/Vectors with three sal_Int32 values.

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

Derive: \n Use this class to implement Points or Vectors
which are based on three sal_Int32 values

Definition at line 36 of file b3ituple.hxx.

Constructor & Destructor Documentation

◆ B3ITuple() [1/2]

basegfx::B3ITuple::B3ITuple ( )
inline

Create a 3D Tuple.

The tuple is initialized to (0, 0, 0)

Definition at line 43 of file b3ituple.hxx.

◆ B3ITuple() [2/2]

basegfx::B3ITuple::B3ITuple ( sal_Int32  nX,
sal_Int32  nY,
sal_Int32  nZ 
)
inline

Create a 3D Tuple.

Parameters
nXThis parameter is used to initialize the X-coordinate of the 3D Tuple.
nYThis parameter is used to initialize the Y-coordinate of the 3D Tuple.
nZThis parameter is used to initialize the Z-coordinate of the 3D Tuple.

Definition at line 61 of file b3ituple.hxx.

Member Function Documentation

◆ operator-()

B3ITuple basegfx::B3ITuple::operator- ( void  ) const
inline

Definition at line 85 of file b3ituple.hxx.

◆ operator[]() [1/2]

sal_Int32 & basegfx::B3ITuple::operator[] ( int  nPos)
inline

Array-access to 3D Tuple.

Definition at line 75 of file b3ituple.hxx.

References nPos.

◆ operator[]() [2/2]

const sal_Int32 & basegfx::B3ITuple::operator[] ( int  nPos) const
inline

Array-access to 3D Tuple.

Definition at line 66 of file b3ituple.hxx.

References nPos.


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