coerce op to integer
[gpclib.git] / man / gpc.poly.nohole-class.Rd
blobc67da229e900587b6fa1c599aa5c94012ffe9872
1 \name{gpc.poly.nohole-class}
2 \docType{class}
3 \alias{gpc.poly.nohole-class}
4 \alias{coerce,numeric,gpc.poly.nohole-method}
6 \title{Class "gpc.poly.nohole"}
7 \description{
8   A class for representing polygons with multiple contours but without
9   holes.
11 \section{Objects from the Class}{
12   Objects can be created by calls of the form
13   \code{new("gpc.poly.nohole", ...) or by calling \code{read.polyfile}}.
15 \section{Slots}{
16   \describe{
17     \item{\code{pts}:}{Object of class \code{"list"}.  See the help for
18       \code{"gpc.poly"} for details.}
19   }
21 \section{Extends}{
22 Class \code{"gpc.poly"}, directly.
24 \section{Methods}{
25   \describe{
26     \item{coerce}{\code{signature(from = "numeric", to = "gpc.poly.nohole")}: ... }
27   }
29 \author{Roger D. Peng}
30 \note{
31   This class is identical to \code{"gpc.poly"} and is needed because the
32   file formats for polygons without holes is slightly different from the
33   file format for polygons with holes.  For a \code{"gpc.poly.nohole"}
34   object, the \code{hole} flag for each contour is always \code{FALSE}.
36   Also, \code{write.polyfile} will write the correct file format,
37   depending on whether the object is of class \code{"gpc.poly"} or
38   \code{"gpc.poly.nohole"}.
41 \seealso{
42   \code{\link{gpc.poly-class}}
44 \examples{
45 ## None
47 \keyword{classes}