:: com :: sun :: star :: rendering ::
|
unpublished |
interface XLinePolyPolygon2D |
|
|
- Base Interfaces
XLinePolyPolygon2D
┗ XPolyPolygon2D
XPolyPolygon2D |
- (referenced interface's summary:)
- Generic interface for poly-polygons in 2D.
|
|
- Usage Restrictions
- not published
- Description
- Specialized interface for a 2D poly-polygon containing only straight line segments.
- Since
- OOo 2.0
|
Methods' Summary |
getPoints |
Query subset of this poly-polygon, starting at the given
polygon and the given point within that polygon, and
containing the specified number of polygons and points in the
last polygon.
|
setPoints |
Set the specified sequence of points to the poly-polygon.
This method can either set the whole poly-polygon to the new
data, or insert the points at the given index
|
getPoint |
Get a single point from the poly-polygon
|
setPoint |
Set a single point on the poly-polygon. The remaining points of
the poly-polygon will not be changed by this method.
|
Methods' Details |
getPoints
sequence< sequence< ::com::sun::star::geometry::RealPoint2D > > |
getPoints( |
[in] long |
nPolygonIndex, |
| [in] long |
nNumberOfPolygons, |
| [in] long |
nPointIndex, |
| [in] long |
nNumberOfPoints ) |
raises( |
::com::sun::star::lang::IndexOutOfBoundsException ); |
- Description
- Query subset of this poly-polygon, starting at the given
polygon and the given point within that polygon, and
containing the specified number of polygons and points in the
last polygon.
- Parameter nPolygonIndex
- The index number of the polygon to start with extracting
points. Set to 0 to start with the first polygon.
- Parameter nNumberOfPolygons
- The number of polygons, starting with nPolygonIndex, to
extract points from. Set to -1 to extract all polygons,
starting with nPolygonIndex (i.e. a total of
getNumberOfPolygons() - nPolygonIndex polygons is extracted).
- Parameter nPointIndex
- The index of the point within the first polygon (that with the
index number nPolygonIndex) to start extraction with. Set to 0
to start with the first point in this polygon.
- Parameter nNumberOfPoints
- The number of points in the last polygon of the extraction
sequence, to be extracted. Set to -1 to extract all points
from the last polygon.
|
|
setPoints
- Description
- Set the specified sequence of points to the poly-polygon.
This method can either set the whole poly-polygon to the new
data, or insert the points at the given index
- Parameter nPolygonIndex
- The index of the polygon to start point insertion with. This
index must be in the range [0,numPolygons], and the insertion
will take place before this position (i.e. when
specifying 0 here, the given point sequence will precede all
existing polygons already within the poly-polygon). To append
to a poly-polygon, call setPoints() with
XLinePolyPolygon2D::getNumberOfPolygons()
as the polygon index. If nPolygonIndex is -1, the given
sequence of points replaces the poly-polygon content,
such that after this method completes, it contains exactly the
specified point data.
- Throws
- com::sun::star::lang::IndexOutOfBoundsException
if one of the given values exceed the permissible range.
|
|
getPoint
- Description
- Get a single point from the poly-polygon
|
|
setPoint
- Description
- Set a single point on the poly-polygon. The remaining points of
the poly-polygon will not be changed by this method.
|
|
Top of Page
Copyright © 2000, 2012 LibreOffice contributors and/or their affiliates. All rights reserved.
LibreOffice was created by The Document Foundation, based on OpenOffice.org, which is Copyright 2000, 2010 Oracle and/or its affiliates.
The Document Foundation acknowledges all community members, please find more info at our website.
Privacy Policy | Impressum (Legal Info) | Copyright information: The source code of LibreOffice is licensed under the GNU Lesser General Public License (LGPLv3). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.