RectStad

ostrat.geom.RectStad
trait RectStad extends RectangleStad

A RectStad aligned to the X or Y axes.

Attributes

Graph
Supertypes
trait ShapeSegs
trait ShapeCentred
trait CentredElem
trait WithCentre
trait Shape
trait BoundedElem
trait Fillable
trait Drawable
trait GeomElem
class Object
trait Matchable
class Any
Show all

Members list

Type members

Inherited and Abstract types

Attributes

Inherited from:
RectangleStad

Value members

Concrete methods

override def rotate180: RectStad

Rotation of 180 degrees, 2D geometric transformation on a Drawable, returns a Drawable. The return type will be narrowed in subclasses and traits.

Rotation of 180 degrees, 2D geometric transformation on a Drawable, returns a Drawable. The return type will be narrowed in subclasses and traits.

Attributes

Definition Classes
override def rotate270: RectStad

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

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

Attributes

Definition Classes
override def rotate90: RectStad

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

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

Attributes

Definition Classes

Inherited methods

override def attribs: RArr[XmlAtt]

Attributes

Definition Classes
Inherited from:
ShapeSegs

Attributes

Inherited from:
BoundedElem

Attributes

Inherited from:
BoundedElem
final def boundingCen: 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
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:
ShapeSegs
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:
ShapeSegs
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:
ShapeSegs

Attributes

Inherited from:
BoundedElem
def canEqual(that: Any): Boolean

This canEqual override allow the comparison of Shapes.

This canEqual override allow the comparison of Shapes.

Attributes

Inherited from:
Shape
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 draw(lineWidth: Double, lineColour: Colour): ShapeDraw

Draws this geometric element to produce a GraphElem graphical element, that can be displayed or printed.

Draws this geometric element to produce a GraphElem graphical element, that can be displayed or printed.

Attributes

Definition Classes
Inherited from:
ShapeSegs
override def fill(fillColour: Colour): ShapeFill

Returns a fill graphic of this geometric object.

Returns a fill graphic of this geometric object.

Attributes

Definition Classes
Inherited from:
ShapeSegs
override def fillActive(fillColour: Colour, pointerID: Any): ShapeCompound

Attributes

Definition Classes
Inherited from:
ShapeSegs
override def fillActiveText(fillColour: Colour, pointerEv: Any, str: String, fontRatio: Double, fontColour: Colour, align: TextAlign, baseLine: BaseLine, minSize: Double): ShapeCompound

ShapeCompound graphic with a FillFacet, a TextFacet and a ShapeActive child.

ShapeCompound graphic with a FillFacet, a TextFacet and a ShapeActive child.

Attributes

Definition Classes
Inherited from:
ShapeSegs
override def fillDraw(fillColour: Colour, lineColour: Colour, lineWidth: Double): ShapeCompound

Returns a fill and draw graphic of this geometric object.

Returns a fill and draw graphic of this geometric object.

Attributes

Definition Classes
Inherited from:
ShapeSegs
override def fillInt(intValue: Int): ShapeFill

Returns a fill graphic of this geometric object from the Int RGBA value.

Returns a fill graphic of this geometric object from the Int RGBA value.

Attributes

Definition Classes
Inherited from:
ShapeSegs
def fillOrDraw(lineWidth: Double, colour: Colour): GraphicElem

If this element is Fillable applies the fill method, ignoring the line width parameter, else applies the draw method.

If this element is Fillable applies the fill method, ignoring the line width parameter, else applies the draw method.

Attributes

Inherited from:
Drawable
override def negX: ShapeSegs

Mirror, reflection 2D geometric transformation across the X axis on a Shape returns a Shape. The Return type will be narrowed in sub traits / classes.

Mirror, reflection 2D geometric transformation across the X axis on a Shape returns a Shape. The Return type will be narrowed in sub traits / classes.

Attributes

Definition Classes
Inherited from:
ShapeSegs
override def negY: ShapeSegs

Mirror, reflection 2D geometric transformation across the X axis on a Shape returns a Shape. The Return type will be narrowed in sub traits / classes.

Mirror, reflection 2D geometric transformation across the X axis on a Shape returns a Shape. The Return type will be narrowed in sub traits / classes.

Attributes

Definition Classes
Inherited from:
ShapeSegs
override def prolign(matrix: ProlignMatrix): ShapeGen

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

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

Attributes

Definition Classes
Inherited from:
ShapeSegs
override def ptInside(pt: Pt2): Boolean

Determines if the parameter point lies inside this Circle.

Determines if the parameter point lies inside this Circle.

Attributes

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

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

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

Attributes

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

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

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

Attributes

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

Uniform scaling 2D geometric transformation on a ShapeGen returns a Shape. The Return type will be narrowed in sub traits / classes. Use the xyScale method for differential scaling on the X and Y axes.

Uniform scaling 2D geometric transformation on a ShapeGen returns a Shape. The Return type will be narrowed in sub traits / classes. Use the xyScale method for differential scaling on the X and Y axes.

Attributes

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

XY scaling 2D geometric transformation on a ShapeGen returns a Shape. 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 ShapeGen returns a Shape. This allows different scaling factors across X and Y dimensions. The return type will be narrowed in sub classes and traits.

Attributes

Definition Classes
Inherited from:
ShapeSegs

The ShapeSegs that make up this Shape.

The ShapeSegs that make up this Shape.

Attributes

Inherited from:
ShapeSegs
override def shearX(operand: Double): ShapeGen

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

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

Attributes

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

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

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

Attributes

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

Translate 2D geometric transformation on a Shape returns a Shape. The Return type will be narrowed in sub traits / classes.

Translate 2D geometric transformation on a Shape returns a Shape. The Return type will be narrowed in sub traits / classes.

Attributes

Definition Classes
Inherited from:
ShapeSegs

Attributes

Inherited from:
BoundedElem

Inherited and Abstract methods

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

Inherited from:
WithCentre
def cenX: Double

The X component of the centre.

The X component of the centre.

Attributes

Inherited from:
WithCentre
def cenY: Double

The Y component of the centre.

The Y component of the centre.

Attributes

Inherited from:
WithCentre

The backing array of ShapeSegs. End users should rarely need to access this field.

The backing array of ShapeSegs. End users should rarely need to access this field.

Attributes

Inherited from:
ShapeSegs