RectangleCompound

ostrat.geom.RectangleCompound
See theRectangleCompound companion object

A compound graphic for rectangles.

Attributes

Companion
object
Graph
Supertypes
trait CentredElem
trait WithCentre
trait NoCanvElem
trait ShapeGraphic
trait BoundedElem
trait GraphicElem
trait GeomElem
class Object
trait Matchable
class Any
Show all
Known subtypes

Members list

Value members

Concrete methods

override def negX: RectangleCompound

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.

Attributes

Definition Classes
override def negY: RectangleCompound

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.

Attributes

Definition Classes
override def prolign(matrix: ProlignMatrix): RectangleCompound

2D geometric transformation using a ProlignMatrix on a GraphicElem, returns a GraphicElem. The Return type will be narrowed in sub traits / classes.

2D geometric transformation using a ProlignMatrix on a GraphicElem, returns a GraphicElem. The Return type will be narrowed in sub traits / classes.

Attributes

Definition Classes
override def reflect(lineLike: LineLike): RectangleCompound

Reflect 2D geometric transformation across a line, line segment or ray on a GraphicElem, returns a GraphicElem. The Return type will be narrowed in sub traits / classes.

Reflect 2D geometric transformation across a line, line segment or ray on a GraphicElem, returns a GraphicElem. The Return type will be narrowed in sub traits / classes.

Attributes

Definition Classes
override def rotate(angle: AngleVec): RectangleCompound

Rotation 2D geometric transformation on a GraphicElem taking the rotation as a scalar measured in radians, returns a GraphicElem. The Return type will be narrowed in sub traits / classes.

Rotation 2D geometric transformation on a GraphicElem taking the rotation as a scalar measured in radians, returns a GraphicElem. The Return type will be narrowed in sub traits / classes.

Attributes

Definition Classes
override def rotate90: RectangleCompound

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
override def scale(operand: Double): RectangleCompound

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.

Attributes

Definition Classes
override def scaleXY(xOperand: Double, yOperand: Double): RectangleCompound

XY scaling 2D geometric transformation on a GraphicElem, returns a GrpahicElem. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in sub classes and traits.

XY scaling 2D geometric transformation on a GraphicElem, returns a GrpahicElem. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
override def slateXY(xDelta: Double, yDelta: Double): RectangleCompound

Translate geometric transformation.

Translate geometric transformation.

Attributes

Definition Classes

Inherited methods

Functionally adds more child GraphicElem graphics. These child graphics will be at placed in front of previous children.

Functionally adds more child GraphicElem graphics. These child graphics will be at placed in front of previous children.

Attributes

Inherited from:
PolygonCompound
final override def attribs: RArr[XmlAtt]

Attributes

Definition Classes
Inherited from:
ShapeCompound

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
final override def boundingHeight: Double

The height of the BoundingRect of this object.

The height of the BoundingRect of this object.

Attributes

Definition Classes
Inherited from:
ShapeGraphic
final override def boundingRect: Rect

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:
ShapeGraphic
final override def boundingWidth: Double

The width of the BoundingRect of this object.

The width of the BoundingRect of this object.

Attributes

Definition Classes
Inherited from:
ShapeGraphic

Attributes

Inherited from:
BoundedElem
override def canvElems: RArr[CanvElem]

This method converts this non standard graphic element into CanvElems that can be processed by the pCanv.CanvasPlatform.

This method converts this non standard graphic element into CanvElems that can be processed by the pCanv.CanvasPlatform.

Attributes

Definition Classes
Inherited from:
PolygonCompound
override def cen: Pt2

The centre of this geometric / graphical element. The centre will not change if the object type is capable of being rotated and is rotated. The cenDefault on other bounded elements may move relative to points on the object when the object is rotated.

The centre of this geometric / graphical element. The centre will not change if the object type is capable of being rotated and is rotated. The cenDefault on other bounded elements may move relative to points on the object when the object is rotated.

Attributes

Definition Classes
Inherited from:
ShapeGraphicCentred
final override def cenDefault: Pt2

The default centre of this object is the centre. The centre will not change if the object type is capable of being rotated and is rotated.

The default centre of this object is the centre. The centre will not change if the object type is capable of being rotated and is rotated.

Attributes

Definition Classes
Inherited from:
CentredElem
override def cenX: Double

The X component of the centre.

The X component of the centre.

Attributes

Definition Classes
Inherited from:
ShapeGraphicCentred
override def cenY: Double

The Y component of the centre.

The Y component of the centre.

Attributes

Definition Classes
Inherited from:
ShapeGraphicCentred

The ShapeCompound type will be widened at a later point.

The ShapeCompound type will be widened at a later point.

Attributes

Inherited from:
ShapeCompound

Attributes

Inherited from:
ShapeCompound
def ifv2: Boolean

Checks for 2 or more vertices

Checks for 2 or more vertices

Attributes

Inherited from:
PolygonGraphic
def ifv3: Boolean

Checks for 3 or more vertices

Checks for 3 or more vertices

Attributes

Inherited from:
PolygonGraphic
override def mainSvgElem: SvgElem

Attributes

Definition Classes
Inherited from:
PolygonCompound
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 from:
PolygonCompound
def rightX: Double

Attributes

Inherited from:
PolygonCompound
override def rotate180: PolygonCompound

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:
PolygonCompound
override def rotate270: PolygonCompound

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:
PolygonCompound
override def shape: Rectangle

Attributes

Definition Classes
Inherited from:
RectangleGraphic

Attributes

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

Shear 2D geometric transformation along the X Axis on a GraphicElem, returns a GraphicElem. The return type will be narrowed in sub classes and traits.

Shear 2D geometric transformation along the X Axis on a GraphicElem, returns a GraphicElem. The return type will be narrowed in sub classes and traits.

Attributes

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

Shear 2D geometric transformation along the Y Axis on a GraphicElem, returns a GraphicElem. The return type will be narrowed in sub classes and traits.

Shear 2D geometric transformation along the Y Axis on a GraphicElem, returns a GraphicElem. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
Inherited from:
PolygonCompound
override def svgElems: RArr[SvgElem]

Attributes

Definition Classes
Inherited from:
ShapeCompound
override def svgInline: HtmlSvg

Attributes

Definition Classes
Inherited from:
ShapeCompound
final def svgInlineStr: String

Attributes

Inherited from:
ShapeGraphic

Attributes

Inherited from:
BoundedElem
def vertsFoldLeft[B](init: B)(f: (B, Pt2) => B): B

Attributes

Inherited from:
PolygonGraphic
def vertsFoldLeft[B](f: (B, Pt2) => B)(implicit default: DefaultValue[B]): B

Attributes

Inherited from:
PolygonGraphic
def vertsForeach(f: Pt2 => Unit): Unit

Attributes

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

Attributes

Inherited from:
PolygonGraphic
def vertsNum: Int

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