PolygonCompound

A compound polygon based Graphic. May contain multiple facets and child graphic members.

Companion
object
trait GeomElem
class Object
trait Matchable
class Any

Value members

Concrete methods

override def attribs: Arr[XmlAtt]
Definition Classes
override def canvElems: Arr[CanvElem]
Definition Classes
override def negX: PolygonCompound

Mirror, reflection transformation across the X axis. This method has been left abstract in GeomElemNew to allow the return type to be narrowed in sub classes.

Mirror, reflection transformation across the X axis. This method has been left abstract in GeomElemNew to allow the return type to be narrowed in sub classes.

Definition Classes
override def negY: PolygonCompound

Mirror, reflection transformation across the X axis. This method has been left abstract in GeomElemNew to allow the return type to be narrowed in sub classes.

Mirror, reflection transformation across the X axis. This method has been left abstract in GeomElemNew to allow the return type to be narrowed in sub classes.

Definition Classes
override def rendToCanvas(cp: CanvasPlatform): Unit
Definition Classes
override def scale(operand: Double): PolygonCompound

Uniform scaling transformation. The scale name was chosen for this operation as it is normally the desired operation and preserves Circles and Squares. Use the xyScale method for differential scaling.

Uniform scaling transformation. The scale name was chosen for this operation as it is normally the desired operation and preserves Circles and Squares. Use the xyScale method for differential scaling.

Definition Classes
override def scaleXY(xOperand: Double, yOperand: Double): PolygonCompound
override def shearX(operand: Double): PolygonCompound
override def shearY(operand: Double): PolygonCompound
override def slateXY(xDelta: Double, yDelta: Double): PolygonCompound

Translate geometric transformation.

Translate geometric transformation.

Definition Classes
override def svgElem(bounds: BoundingRect): SvgElem
Definition Classes
override def svgStr: String
Definition Classes

Inherited methods

Inherited from
BoundedElem
@inline
final def boundCen: Pt2

The centre of the bounding rectangle. consider also using cenDefault.

The centre of the bounding rectangle. consider also using cenDefault.

Inherited from
BoundedElem
def boundingHeight: Double
Inherited from
BoundedElem
Definition Classes
Inherited from
PolygonGraphic
def boundingWidth: Double

The width of the BoundingRect of this object.

The width of the BoundingRect of this object.

Inherited from
BoundedElem
Inherited from
BoundedElem

If the geometric element has a defined centre then the cenDefault uses that, else it defaults to the centre of the bounding rectangle.

If the geometric element has a defined centre then the cenDefault uses that, else it defaults to the centre of the bounding rectangle.

Inherited from
BoundedElem

The ShapeCompound type will be widened at a later point.

The ShapeCompound type will be widened at a later point.

Inherited from
ShapeCompound
Inherited from
ShapeCompound
@inline
def foreachVert(f: Pt2 => Unit): Unit
Inherited from
PolygonGraphic
def ifv2: Boolean

Checks for 2 or more vertices

Checks for 2 or more vertices

Inherited from
PolygonGraphic
def ifv3: Boolean

Checks for 3 or more vertices

Checks for 3 or more vertices

Inherited from
PolygonGraphic
override def shape: Polygon
Definition Classes
Inherited from
PolygonGraphic
Inherited from
ShapeGraphic
final def svgInline: String
Inherited from
ShapeGraphic
final def svgJustElem: SvgElem
Inherited from
ShapeGraphic
def svgOut(indent: Int, linePosn: Int, lineLen: Int): String
Inherited from
ShapeGraphic
Inherited from
BoundedElem
Inherited from
BoundedElem
@inline
def vertsMap[A, ArrT <: ArrImut[A]](f: Pt2 => A)(implicit build: ArrTBuilder[A, ArrT]): ArrT
Inherited from
PolygonGraphic
def vertsNum: Int

The number of vertices.

The number of vertices.

Inherited from
PolygonGraphic
def x1: Double
Inherited from
PolygonGraphic
def xVertsArray: Array[Double]
Inherited from
PolygonGraphic
def y1: Double
Inherited from
PolygonGraphic
def yVertsArray: Array[Double]
Inherited from
PolygonGraphic