PolygonDrawImp

ostrat.geom.PolygonDraw$.PolygonDrawImp
case class PolygonDrawImp(shape: Polygon, lineWidth: Double, lineColour: Colour) extends PolygonDraw

Immutable Graphic element that defines and draws a Polygon.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait CanvElem
trait ShapeDraw
trait GeomElem
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Concrete methods

override def rendToCanvas(cp: CanvasPlatform): Unit

Renders this functional immutable GraphicElem, using the imperative methods of the abstract pCanv.CanvasPlatform interface.

Renders this functional immutable GraphicElem, using the imperative methods of the abstract pCanv.CanvasPlatform interface.

Attributes

Definition Classes

Inherited methods

final override def attribs: RArr[XmlAtt]

Attributes

Definition Classes
Inherited from:
ShapeGraphicSimple

Attributes

Inherited from:
BoundedElem
final def boundCen: Pt2

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

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

Attributes

Inherited from:
BoundedElem

Attributes

Inherited from:
BoundedElem

The bounding Rectangle provides an initial exclusion test as to whether the pointer is inside the polygon / shape

The bounding Rectangle provides an initial exclusion test as to whether the pointer is inside the polygon / shape

Attributes

Definition Classes
Inherited from:
PolygonGraphicSimple

The width of the BoundingRect of this object.

The width of the BoundingRect of this object.

Attributes

Inherited from:
BoundedElem

Attributes

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.

Attributes

Inherited from:
BoundedElem
def foreachVert(f: Pt2 => Unit): Unit

Attributes

Inherited from:
PolygonGraphic

Checks for 2 or more vertices

Checks for 2 or more vertices

Attributes

Inherited from:
PolygonGraphic

Checks for 3 or more vertices

Checks for 3 or more vertices

Attributes

Inherited from:
PolygonGraphic
override def negX: PolygonDraw

Mirror, reflection transformation across the X axis upon a PolygonDraw returns a PolygonDraw.

Mirror, reflection transformation across the X axis upon a PolygonDraw returns a PolygonDraw.

Attributes

Definition Classes
Inherited from:
PolygonDraw
override def negY: PolygonDraw

Mirror, reflection transformation across the X axis upon a PolygonDraw returns a PolygonDraw.

Mirror, reflection transformation across the X axis upon a PolygonDraw returns a PolygonDraw.

Attributes

Definition Classes
Inherited from:
PolygonDraw
override def nonShapeAttribs: RArr[XmlAtt]

Attributes

Definition Classes
Inherited from:
ShapeDraw

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product
override def prolign(matrix: ProlignMatrix): PolygonDraw

Mirror, reflection transformation across the X axis upon a PolygonDraw returns a PolygonDraw.

Mirror, reflection transformation across the X axis upon a PolygonDraw returns a PolygonDraw.

Attributes

Definition Classes
Inherited from:
PolygonDraw
override def reflect(lineLike: LineLike): PolygonDraw

Mirror, reflection transformation across the X axis upon a PolygonDraw returns a PolygonDraw.

Mirror, reflection transformation across the X axis upon a PolygonDraw returns a PolygonDraw.

Attributes

Definition Classes
Inherited from:
PolygonDraw
override def rotate(angle: AngleVec): PolygonDraw

Mirror, rotate(radians) transformation across the X axis upon a PolygonDraw returns a PolygonDraw.

Mirror, rotate(radians) transformation across the X axis upon a PolygonDraw returns a PolygonDraw.

Attributes

Definition Classes
Inherited from:
PolygonDraw
override def rotate180: PolygonDraw

Rotation positive or anti clockwise 180 degrees, 2D geometric transformation on a GraphicElem, returns a GraphicElem. The return type will be narrowed in sub classes and traits.

Rotation positive or anti clockwise 180 degrees, 2D geometric transformation on a GraphicElem, returns a GraphicElem. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
Inherited from:
PolygonDraw
override def rotate270: PolygonDraw

Rotation positive or anti clockwise 270 degrees, 2D geometric transformation on a GraphicElem, returns a GraphicElem. The return type will be narrowed in sub classes and traits.

Rotation positive or anti clockwise 270 degrees, 2D geometric transformation on a GraphicElem, returns a GraphicElem. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
Inherited from:
PolygonDraw
override def rotate90: PolygonDraw

Rotation positive or anti clockwise 90 degrees, 2D geometric transformation on a GraphicElem, returns a GraphicElem. The return type will be narrowed in sub classes and traits.

Rotation positive or anti clockwise 90 degrees, 2D geometric transformation on a GraphicElem, returns a GraphicElem. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
Inherited from:
PolygonDraw
override def scale(operand: Double): PolygonDraw

Uniform scaling transformation a PolygonDraw, returns a PolygonDraw.

Uniform scaling transformation a PolygonDraw, returns a PolygonDraw.

Attributes

Definition Classes
Inherited from:
PolygonDraw
override def scaleXY(xOperand: Double, yOperand: Double): PolygonDraw

Independent X and Y dimension scaling upon a PolygonDraw returns a PolygonDraw.

Independent X and Y dimension scaling upon a PolygonDraw returns a PolygonDraw.

Attributes

Definition Classes
Inherited from:
PolygonDraw

Attributes

Inherited from:
ShapeGraphic
override def shearX(operand: Double): PolygonDraw

Shear along the X axis upon a PolygonDraw returns a PolygonDraw.

Shear along the X axis upon a PolygonDraw returns a PolygonDraw.

Attributes

Definition Classes
Inherited from:
PolygonDraw
override def shearY(operand: Double): PolygonDraw

Shear along the Y axis upon a PolygonDraw returns a PolygonDraw.

Shear along the Y axis upon a PolygonDraw returns a PolygonDraw.

Attributes

Definition Classes
Inherited from:
PolygonDraw
override def slateXY(xDelta: Double, yDelta: Double): PolygonDraw

Translate geometric transformation on a PolygonDraw, returns a PolygonDraw.

Translate geometric transformation on a PolygonDraw, returns a PolygonDraw.

Attributes

Definition Classes
Inherited from:
PolygonDraw

Attributes

Inherited from:
ShapeDraw

Attributes

Inherited from:
ShapeDraw
override def svgElem(bounds: BoundingRect): SvgElem

Attributes

Definition Classes
Inherited from:
PolygonGraphicSimple
final def svgInline: String

Attributes

Inherited from:
ShapeGraphic
final def svgJustElem: SvgElem

Attributes

Inherited from:
ShapeGraphic
def svgOut(indent: Int, linePosn: Int, lineLen: Int): String

Attributes

Inherited from:
ShapeGraphic

Attributes

Inherited from:
PolygonGraphicSimple

Attributes

Inherited from:
BoundedElem

Attributes

Inherited from:
BoundedElem
def vertsMap[A, ArrT <: Arr[A]](f: Pt2 => A)(implicit build: ArrMapBuilder[A, ArrT]): ArrT

Attributes

Inherited from:
PolygonGraphic

The number of vertices.

The number of vertices.

Attributes

Inherited from:
PolygonGraphic
def x1: Double

Attributes

Inherited from:
PolygonGraphic

Attributes

Inherited from:
PolygonGraphic
def y1: Double

Attributes

Inherited from:
PolygonGraphic

Attributes

Inherited from:
PolygonGraphic