PicturePath-class: Class '"PicturePath"'

PicturePath-classR Documentation

Class "PicturePath"

Description

A description of a path.

Slots

d:

Object of class "PathData". A description of how the path draws and where it draws.

rule:

Object of class "character". A single element vector specifying the fill rule of the path.

gp:

Object of class "gpar". A grid gpar object that describes graphical parameters applied to the path.

bbox:

Object of class "numeric". The bounding box of the path. Represented as [xmin, xmax, ymin, ymax]. Used for features such as clipping.

Extends

Class linkS4class{PictureContent}, directly.

Methods

applyTransform

signature(object = "PicturePath", tm = "matrix"): transforms each location described by the path's data by a 3x3 transformation matrix and returns a new "PicturePath" object with the newly transformed locations.

grobify

signature(object = "PicturePath"): converts the path description into a grid grob that represents the path.

Although not expected to be called directly, this method contains three arguments.

defs

An object of class "PictureDefinitions". This object holds definitions of advanced graphical content, primarily for use with the gridSVG package.

gpFUN

This argument expects to take a function that modifies a gpar object. This function should take a gpar object and return a modified gpar object. By default this argument is the identity function.

ext

A character vector. See grid.picture for more information on what this extension selection parameter means, in addition to the valid values this argument takes.

Author(s)

Simon Potter

See Also

PictureRect, PathData.


grImport2 documentation built on Dec. 20, 2023, 4:44 p.m.