PolygonActive

case class PolygonActive(shape: Polygon, pointerId: AnyRef) extends GraphicAffineElem with GraphicClickable with PolygonGraphicSimple

A pointable polygon without visual.

trait Serializable
trait Product
trait Equals
trait GeomElem
class Object
trait Matchable
class Any

Type members

Types

override type ThisT = PolygonActive

Value members

Concrete methods

override def ptInside(pt: Pt2): Boolean
Definition Classes
override def ptsTrans(f: Pt2 => Pt2): PolygonActive
Definition Classes
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.

Definition Classes
override def svgStr: String
Definition Classes

Inherited methods

final override def attribs: Arr[XmlAtt]
Definition Classes
Inherited from:
ShapeGraphicSimple
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
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
@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 negX: ThisT
Definition Classes
Inherited from:
SimilarPreserve
override def negY: ThisT
Definition Classes
Inherited from:
SimilarPreserve
def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product
override def prolign(matrix: ProlignMatrix): ThisT
Definition Classes
Inherited from:
ProlignPreserve
override def reflect(lineLike: LineLike): ThisT
Definition Classes
Inherited from:
SimilarPreserve
override def rotate(angle: AngleVec): ThisT
Definition Classes
Inherited from:
SimilarPreserve
override def rotate180: ThisT
Definition Classes
Inherited from:
SimilarPreserve
override def rotate270: ThisT
Definition Classes
Inherited from:
SimilarPreserve
override def rotate90: ThisT
Definition Classes
Inherited from:
SimilarPreserve
override def scale(operand: Double): ThisT
Definition Classes
Inherited from:
ProlignPreserve
override def scaleXY(xOperand: Double, yOperand: Double): ThisT
Definition Classes
Inherited from:
AffinePreserve
Inherited from:
ShapeGraphic
override def shearX(operand: Double): ThisT
Definition Classes
Inherited from:
AffinePreserve
override def shearY(operand: Double): ThisT
Definition Classes
Inherited from:
AffinePreserve
override def slateXY(xDelta: Double, yDelta: Double): ThisT
Definition Classes
Inherited from:
ProlignPreserve
override def svgElem(bounds: BoundingRect): SvgElem
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 <: SeqImut[A]](f: Pt2 => A)(implicit build: ArrBuilder[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