summaryrefslogtreecommitdiff
path: root/basegfx/inc/basegfx/point
diff options
context:
space:
mode:
authorThorsten Behrens <thb@openoffice.org>2004-01-16 09:34:43 +0000
committerThorsten Behrens <thb@openoffice.org>2004-01-16 09:34:43 +0000
commitfb6fefbd9482f6fa26447be417286ae1935c0702 (patch)
treedf3b1b957f17a5f70a83b705865b4c1291b1f382 /basegfx/inc/basegfx/point
parent08761ff6d5991730ed66b7e13817b325ce848da3 (diff)
#110496# Added integer point, size and rectangle classes, needed for the new canvas
Diffstat (limited to 'basegfx/inc/basegfx/point')
-rw-r--r--basegfx/inc/basegfx/point/b2dhompoint.hxx22
-rw-r--r--basegfx/inc/basegfx/point/b2dpoint.hxx14
-rw-r--r--basegfx/inc/basegfx/point/b3dhompoint.hxx22
-rw-r--r--basegfx/inc/basegfx/point/b3dpoint.hxx14
4 files changed, 32 insertions, 40 deletions
diff --git a/basegfx/inc/basegfx/point/b2dhompoint.hxx b/basegfx/inc/basegfx/point/b2dhompoint.hxx
index ca5fdb9fb9b0..d08cfa11440e 100644
--- a/basegfx/inc/basegfx/point/b2dhompoint.hxx
+++ b/basegfx/inc/basegfx/point/b2dhompoint.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: b2dhompoint.hxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: aw $ $Date: 2003-12-03 09:24:24 $
+ * last change: $Author: thb $ $Date: 2004-01-16 10:33:54 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -92,9 +92,9 @@ namespace basegfx
/** Test if this homogen point does have a homogenous part
- @return Returns sal_True if this point has no homogenous part
+ @return Returns true if this point has no homogenous part
*/
- sal_Bool implIsHomogenized() const;
+ bool implIsHomogenized() const;
/** Remove homogenous part of this Point
@@ -119,12 +119,10 @@ namespace basegfx
public:
/** Create a homogen point
- @param fVal
- This parameter is used to initialize the coordinate
- part of the Point. The homogenous part is initialized to 1.0.
+ The point is initialized to (0.0, 0.0)
*/
- B2DHomPoint(double fVal = 0.0)
- : maTuple(fVal),
+ B2DHomPoint()
+ : maTuple(),
mfW(1.0)
{}
@@ -149,7 +147,7 @@ namespace basegfx
The 2D point which will be copied. The homogenous part
is initialized to 1.0.
*/
- B2DHomPoint(const B2DPoint& rVec)
+ explicit B2DHomPoint(const B2DPoint& rVec)
: maTuple(rVec),
mfW(1.0)
{}
@@ -233,9 +231,9 @@ namespace basegfx
B2DHomPoint& operator-(void);
- sal_Bool operator==( const B2DHomPoint& rPnt ) const;
+ bool operator==( const B2DHomPoint& rPnt ) const;
- sal_Bool operator!=( const B2DHomPoint& rPnt ) const;
+ bool operator!=( const B2DHomPoint& rPnt ) const;
B2DHomPoint& operator=( const B2DHomPoint& rPnt );
};
diff --git a/basegfx/inc/basegfx/point/b2dpoint.hxx b/basegfx/inc/basegfx/point/b2dpoint.hxx
index ed07229f4e59..b9c29ee312f9 100644
--- a/basegfx/inc/basegfx/point/b2dpoint.hxx
+++ b/basegfx/inc/basegfx/point/b2dpoint.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: b2dpoint.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: aw $ $Date: 2003-11-28 11:17:51 $
+ * last change: $Author: thb $ $Date: 2004-01-16 10:33:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -84,12 +84,10 @@ namespace basegfx
public:
/** Create a 2D Point
- @param fVal
- This parameter is used to initialize the coordinate
- part of the 2D Point.
+ The point is initialized to (0.0, 0.0)
*/
- B2DPoint(double fVal = 0.0)
- : B2DTuple(fVal)
+ B2DPoint()
+ : B2DTuple()
{}
/** Create a 2D Point
@@ -118,7 +116,7 @@ namespace basegfx
/** constructor with tuple to allow copy-constructing
from B2DTuple-based classes
*/
- B2DPoint(const ::basegfx::B2DTuple& rTuple)
+ explicit B2DPoint(const ::basegfx::B2DTuple& rTuple)
: B2DTuple(rTuple)
{}
diff --git a/basegfx/inc/basegfx/point/b3dhompoint.hxx b/basegfx/inc/basegfx/point/b3dhompoint.hxx
index 2366ea578d70..d84dc8c9ef18 100644
--- a/basegfx/inc/basegfx/point/b3dhompoint.hxx
+++ b/basegfx/inc/basegfx/point/b3dhompoint.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: b3dhompoint.hxx,v $
*
- * $Revision: 1.6 $
+ * $Revision: 1.7 $
*
- * last change: $Author: aw $ $Date: 2003-12-03 09:24:25 $
+ * last change: $Author: thb $ $Date: 2004-01-16 10:33:56 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -92,9 +92,9 @@ namespace basegfx
/** Test if this homogen point does have a homogenous part
- @return Returns sal_True if this point has no homogenous part
+ @return Returns true if this point has no homogenous part
*/
- sal_Bool implIsHomogenized() const
+ bool implIsHomogenized() const
{
const double fOne(1.0);
return ::basegfx::fTools::equal(mfW, fOne);
@@ -127,12 +127,10 @@ namespace basegfx
public:
/** Create a homogen point
- @param fVal
- This parameter is used to initialize the coordinate
- part of the Point. The homogenous part is initialized to 1.0.
+ The point is initialized to (0.0, 0.0, 0.0)
*/
- B3DHomPoint(double fVal = 0.0)
- : maTuple(fVal),
+ B3DHomPoint()
+ : maTuple(),
mfW(1.0)
{}
@@ -161,7 +159,7 @@ namespace basegfx
The 3D point which will be copied. The homogenous part
is initialized to 1.0.
*/
- B3DHomPoint(const B3DPoint& rVec)
+ explicit B3DHomPoint(const B3DPoint& rVec)
: maTuple(rVec),
mfW(1.0)
{}
@@ -320,13 +318,13 @@ namespace basegfx
return *this;
}
- sal_Bool operator==( const B3DHomPoint& rPnt ) const
+ bool operator==( const B3DHomPoint& rPnt ) const
{
implTestAndHomogenize();
return (maTuple == rPnt.maTuple);
}
- sal_Bool operator!=( const B3DHomPoint& rPnt ) const
+ bool operator!=( const B3DHomPoint& rPnt ) const
{
implTestAndHomogenize();
return (maTuple != rPnt.maTuple);
diff --git a/basegfx/inc/basegfx/point/b3dpoint.hxx b/basegfx/inc/basegfx/point/b3dpoint.hxx
index 06a4b7e346e1..6dcbad842e9b 100644
--- a/basegfx/inc/basegfx/point/b3dpoint.hxx
+++ b/basegfx/inc/basegfx/point/b3dpoint.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: b3dpoint.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: aw $ $Date: 2003-11-28 11:17:51 $
+ * last change: $Author: thb $ $Date: 2004-01-16 10:33:57 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -84,12 +84,10 @@ namespace basegfx
public:
/** Create a 3D Point
- @param fVal
- This parameter is used to initialize the coordinate
- part of the 3D Point.
+ The point is initialized to (0.0, 0.0, 0.0)
*/
- B3DPoint(double fVal = 0.0)
- : B3DTuple(fVal)
+ B3DPoint()
+ : B3DTuple()
{}
/** Create a 3D Point
@@ -122,7 +120,7 @@ namespace basegfx
/** constructor with tuple to allow copy-constructing
from B3DTuple-based classes
*/
- B3DPoint(const ::basegfx::B3DTuple& rTuple)
+ explicit B3DPoint(const ::basegfx::B3DTuple& rTuple)
: B3DTuple(rTuple)
{}