[Zope3-checkins] CVS: Products3/pypgsqlda/pgtypes/interface - geometric.py:1.1.2.2
Christian Theune
ct@gocept.com
Sun, 13 Apr 2003 19:08:54 -0400
Update of /cvs-repository/Products3/pypgsqlda/pgtypes/interface
In directory cvs.zope.org:/tmp/cvs-serv23101/pgtypes/interface
Modified Files:
Tag: tiran-pypgsql_types-branch
geometric.py
Log Message:
- removed LF
- whitespace normalization
=== Products3/pypgsqlda/pgtypes/interface/geometric.py 1.1.2.1 => 1.1.2.2 ===
--- Products3/pypgsqlda/pgtypes/interface/geometric.py:1.1.2.1 Mon Apr 7 12:18:51 2003
+++ Products3/pypgsqlda/pgtypes/interface/geometric.py Sun Apr 13 19:08:53 2003
@@ -1,30 +1,30 @@
-##############################################################################
-#
-# Copyright (c) 2002 Zope Corporation and Contributors.
-# All Rights Reserved.
-#
-# This software is subject to the provisions of the Zope Public License,
-# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
-# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
-# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
-# FOR A PARTICULAR PURPOSE.
-#
-##############################################################################
-"""Geometric object interfaces.
-
-$Id$
-"""
-
+##############################################################################
+#
+# Copyright (c) 2002 Zope Corporation and Contributors.
+# All Rights Reserved.
+#
+# This software is subject to the provisions of the Zope Public License,
+# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
+# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
+# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
+# FOR A PARTICULAR PURPOSE.
+#
+##############################################################################
+"""Geometric object interfaces.
+
+$Id$
+"""
+
from zope.interface import Interface, Attribute
class IGeometricInfinite(Interface):
"""Represents the infinite size of a geometric object
"""
+
def __call__():
"""Returns __str__ function
"""
-
def __repr__():
"""Returns output of __str__ function
"""
@@ -35,6 +35,7 @@
class IGeometric2d(Interface):
"""A 2d geometric object"""
+
isClosed = Attribute("Is this object closed, e.g. a box or polygon")
isOpen = Attribute("Is this object open, e.g. a path or line")
length = Attribute("Lenght of a line or circumference of a box")
@@ -68,27 +69,26 @@
area = Attribute("area of the shape as float (ro)")
-class IPoint2d(IGeometric2d):
- """A 2 dimensional point in cartesian representation."""
-
- x = Attribute("x coordinate as float")
+class IPoint2d(IGeometric2d):
+ """A 2 dimensional point in cartesian representation."""
+
+ x = Attribute("x coordinate as float")
y = Attribute("y coordinate as float")
-
-class ICircle2d(IShape2d):
- """A circle. It is represented as a center point and a radius."""
-
- center = Attribute("center as point coordinate")
- radius = Attribute("radius as float")
-
-class IBox2d(IShape2d):
-
- upperRight = Attribute("Upper right point of the box as point coordinate")
- lowerLeft = Attribute("Lower left point of the box as point coordinate")
-
-
-class IPath2d(IGeometric2d):
- """A path is an ordered set of points. A path can be closed, which means
- that the end point is connected to the start point. A special kind of
- path is the line, which only has to points and is open."""
-
- points = Attribute("List of coordinate points")
+
+class ICircle2d(IShape2d):
+ """A circle. It is represented as a center point and a radius."""
+
+ center = Attribute("center as point coordinate")
+ radius = Attribute("radius as float")
+
+class IBox2d(IShape2d):
+
+ upperRight = Attribute("Upper right point of the box as point coordinate")
+ lowerLeft = Attribute("Lower left point of the box as point coordinate")
+
+class IPath2d(IGeometric2d):
+ """A path is an ordered set of points. A path can be closed, which means
+ that the end point is connected to the start point. A special kind of
+ path is the line, which only has to points and is open."""
+
+ points = Attribute("List of coordinate points")