ShapeCentred

ostrat.geom.ShapeCentred
trait ShapeCentred extends Shape with CentredElem

A Shape with a centre field.

Attributes

Graph
Supertypes
trait Shape
trait Fillable
trait Drawable
trait GeomElem
class Object
trait Matchable
class Any
Known subtypes
trait Ellipse
class Circle
trait HexReg
class HexRegImp
trait Hexlign
class HexParrX
class HexParrY
trait Rectangle
class PhiRect
class PhiRectY
trait Rect
class RectImp
class Sqlign
trait Square
class SquareImp

Members list

Concise view

Value members

Inherited methods

Attributes

Inherited from:
Shape

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

Inherited from:
BoundedElem

The width of the BoundingRect of this object.

The width of the BoundingRect of this object.

Attributes

Inherited from:
BoundedElem

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
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
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

The X component of the centre.

The X component of the centre.

Attributes

Inherited from:
WithCentre

The Y component of the centre.

The Y component of the centre.

Attributes

Inherited from:
WithCentre
def draw(lineColour: Colour, lineWidth: Double): ShapeDraw

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

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

Attributes

Inherited from:
Shape
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:
Shape
def fillDraw(fillColour: Colour, lineColour: Colour, lineWidth: Double): GraphicElem

Returns a fill and draw graphic of this geometric object.

Returns a fill and draw graphic of this geometric object.

Attributes

Inherited from:
Fillable
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:
Shape
override def negX: Shape

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:
Shape
override def negY: Shape

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:
Shape
override def prolign(matrix: ProlignMatrix): Shape

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:
Shape
override def reflect(lineLike: LineLike): Shape

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:
Shape
override def rotate(angle: AngleVec): Shape

Rotation 2D geometric transformation on a Shape 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 Shape 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:
Shape
override def rotate180: Shape

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

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

Attributes

Definition Classes
Inherited from:
Shape
override def rotate270: Shape

Rotation positive or anti clockwise 270 degrees, 2D geometric transformation on a Drawable, returns a Drawable. The return type will be narrowed in sub classes 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 sub classes and traits.

Attributes

Definition Classes
Inherited from:
Shape
override def rotate90: Shape

Rotation positive or anti clockwise 90 degrees, 2D geometric transformation on a Drawable, returns a Drawable. The return type will be narrowed in sub classes 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 sub classes and traits.

Attributes

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

Uniform scaling 2D geometric transformation on a Shape 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 Shape 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:
Shape
override def scaleXY(xOperand: Double, yOperand: Double): Shape

XY scaling 2D geometric transformation on a Shape 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 Shape 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:
Shape
override def shearX(operand: Double): Shape

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:
Shape
override def shearY(operand: Double): Shape

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:
Shape
override def slateXY(xDelta: Double, yDelta: Double): Shape

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:
Shape

Attributes

Inherited from:
BoundedElem

Attributes

Inherited from:
BoundedElem