ShapeGenOld

class ShapeGenOld(val arrayUnsafe: Array[Double]) extends DataDbl7s[CurveTail] with AffinePreserve

The generalised implementation of a Shape. A closed sequence of curve segments. An Array[Double] based collection for a sequence of CurveSegs, similar to a Polygon which is an Array[Double based collection of just LineSegs. It Uses 6 Doubles for each CurveSeg. The first Double of each curveSeg is set to Negative Infinity for a LineSeg positive infinity for an ArcSeg, but represents the x component of the first control point for a BezierSeg.

Companion
object
trait GeomElem
class Object
trait Matchable
class Any

Type members

Types

Value members

Concrete methods

Not sure if this method should be a member of Transable

Not sure if this method should be a member of Transable

override
def dataElem(iMatch: Double, d1: Double, d2: Double, d3: Double, d4: Double, d5: Double, d6: Double): CurveTail
Definition Classes
def draw(lineColour: Colour, lineWidth: Double): PolyCurveDraw
override
def fElemStr: CurveTail => String
Definition Classes
def fill(colour: Colour): PolyCurveFill
def fillScale(colour: Colour, factor: Double): PolyCurveFill
def fillScaleSlate(colour: Colour, factor: Double, offset: Pt2): PolyCurveFill
def ptInShape: Pt2 => Boolean
@inline
def shapeAll(shape: ShapeGenOld, evObj: AnyRef, fillColour: Colour, str: String, fontSize: Int, lineWidth: Double, lineColour: Colour): PolyCurveAllOld
def tailForeach(fLineSeg: CurveTail => Unit, fArcSeg: CurveTail => Unit, fBezierSeg: CurveTail => Unit): Unit

Not sure if this is useful

Not sure if this is useful

override
def typeStr: String
Definition Classes
def unsafeFromArray(array: Array[Double]): ShapeGenOld

Inherited methods

override
def arrLen: Int
Definition Classes
Inherited from
DataDblNs
def dataForeach[U](f: CurveTail => U): Unit

Performs a side effecting function on each element of this sequence in order.

Performs a side effecting function on each element of this sequence in order.

Inherited from
DataGen
def dataIForeach[U](f: (CurveTail, Int) => U): Unit

Performs a side effecting function on each element of this sequence in order.

Performs a side effecting function on each element of this sequence in order.

Inherited from
DataGen
Inherited from
DataGen
def dataMap[B, ArrB <: ArrBase[B]](f: CurveTail => B)(implicit ev: ArrBuilder[B, ArrB]): ArrB

Specialised map to an immutable ArrBase of B.

Specialised map to an immutable ArrBase of B.

Inherited from
DataGen
def dataTailForeach[U](f: CurveTail => U): Unit

Foreachs over the tail of the data sequence.

Foreachs over the tail of the data sequence.

Inherited from
DataGen
def dataTailfold[B](initial: B)(f: (B, CurveTail) => B): B

foldLeft over the tail of the data sequence.

foldLeft over the tail of the data sequence.

Inherited from
DataGen
def elemProdSize: Int
Inherited from
DataDbl7s
def elemsLenStr: String

Just a handy short cut to give the length of this collection as a string.

Just a handy short cut to give the length of this collection as a string.

Inherited from
DataGen
final override
def elemsNum: Int

The number of product elements in this collection. For example in a [[PolygonImp], this is the number of Pt2s in the Polygon

The number of product elements in this collection. For example in a [[PolygonImp], this is the number of Pt2s in the Polygon

Definition Classes
Inherited from
DataValueNs
final
def elemsStr: String

The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.

The element String allows the composition of toString for the whole collection. The syntax of the output will be reworked.

Inherited from
DataGen
def indexData(index: Int): CurveTail
Inherited from
DataDbl7s
override
def negX: ThisT
Definition Classes
Inherited from
SimilarPreserve
override
def negY: ThisT
Definition Classes
Inherited from
SimilarPreserve
override
Definition Classes
Inherited from
ProlignPreserve
override
def reflect(lineLike: LineLike): ThisT
Definition Classes
Inherited from
SimilarPreserve
override
Definition Classes
Inherited from
DataDblNs
override
def rotate(angle: AngleVec): ThisT
Definition Classes
Inherited from
SimilarPreserve
override
Definition Classes
Inherited from
SimilarPreserve
override
Definition Classes
Inherited from
SimilarPreserve
override
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
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
final override
def toString: String
Definition Classes
DataGen -> Any
Inherited from
DataGen
final override
def unsafeSameSize(length: Int): ThisT
Definition Classes
Inherited from
DataDblNs
override
def unsafeSetElem(index: Int, elem: CurveTail): Unit
Definition Classes
Inherited from
DataDbl7s
def unsafeSetElems(index: Int, elems: CurveTail*): Unit

Sets / mutates elements in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Sets / mutates elements in the Arr. This method should rarely be needed by end users, but is used by the initialisation and factory methods.

Inherited from
DataGen

Concrete fields

val arrayUnsafe: Array[Double]