Packages

final class Shape extends AnyVal with ArrProdDbl7[CurveSeg] with Transer

Shape is 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.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Shape
  2. Transer
  3. ArrProdDbl7
  4. ArrProdDblN
  5. ArrProdHomo
  6. ArrValues
  7. ArrImut
  8. ArrayLike
  9. AnyVal
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new Shape(array: Array[Double])

Type Members

  1. type ThisT = Shape
    Definition Classes
    ShapeArrProdDblNArrValuesArrImutArrayLike

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. def ++[N <: ArrProdHomo[CurveSeg]](operand: N)(implicit factory: (Int) => N): N

    Appends ProductValue collection with the same type of Elements to a new ValueProduct collection.

    Appends ProductValue collection with the same type of Elements to a new ValueProduct collection. Note the operand collection can have a different type, although it shares the same element type. In such a case, the returned collection will have the type of the operand not this collection.

    Definition Classes
    ArrProdHomo
  4. def :+[N <: ArrProdHomo[CurveSeg]](operand: CurveSeg)(implicit factory: (Int) => N): N

    Appends an element to a new ProductValue collection of type N with the same type of Elements.

    Appends an element to a new ProductValue collection of type N with the same type of Elements.

    Definition Classes
    ArrProdHomo
  5. def :+(op: CurveSeg): ThisT
    Definition Classes
    ArrValues
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  7. def appendArray(appendProductsLength: Int): Array[Double]

    Builder helper method that provides a longer array, with the underlying array copied into the new extended Array.

    Builder helper method that provides a longer array, with the underlying array copied into the new extended Array.

    Definition Classes
    ArrProdDblN
  8. def apply(index: Int): CurveSeg
    Definition Classes
    ArrProdDbl7ArrayLike
  9. def arrLen: Int
    Definition Classes
    ArrProdDblNArrProdHomo
  10. val array: Array[Double]
    Definition Classes
    ShapeArrProdDblN
  11. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  12. def boundingRect: BoundingRect

    Not sure if this method should be a member of Transable

  13. final def buildThis(length: Int): ThisT
    Definition Classes
    ArrProdDblNArrImut
  14. def contains[A1 >: CurveSeg](elem: A1): Boolean
    Definition Classes
    ArrayLike
  15. def draw(lineWidth: Double, lineColour: Colour = Black): ShapeDraw
  16. def eMap[B, BB <: ArrImut[B]](f: (CurveSeg) => EMon[B])(implicit ev: ArrBuild[B, BB]): EMon[BB]
    Definition Classes
    ArrayLike
  17. def empty: Boolean
    Definition Classes
    ArrayLike
  18. def existsCount(f: (CurveSeg) => Boolean): Int

    Counts the number of elements that fulfil the condition A => Boolean

    Counts the number of elements that fulfil the condition A => Boolean

    Definition Classes
    ArrayLike
  19. def fTrans(f: (Vec2) => Vec2): Shape
    Definition Classes
    ShapeTranser
  20. def fill(colour: Colour): ShapeFill
  21. def fillDraw(fillColour: Colour, lineWidth: Double, lineColour: Colour = Black): ShapeFillDraw
  22. def fillDrawClick(evObj: AnyRef, fillColour: Colour, lineWidth: Double, lineColour: Colour = Black): List[GraphicElem]
  23. def fillScale(colour: Colour, factor: Double): ShapeFill
  24. def fillScaleSlate(colour: Colour, factor: Double, offset: Vec2): ShapeFill
  25. def fillSlateable(colour: Colour, evObj: AnyRef, posn: Vec2 = Vec2Z): UnScaledShape
  26. def foldHeadTail[B](initial: B)(fHead: (B, CurveSeg) => B)(fTail: (B, CurveSeg) => B): B
    Definition Classes
    ArrayLike
  27. def foldLeft[B](initial: B)(f: (B, CurveSeg) => B): B
    Definition Classes
    ArrayLike
  28. def foldTailLeft[B](initial: B)(f: (B, CurveSeg) => B): B
    Definition Classes
    ArrayLike
  29. def foldWithPrevious[B](initPrevious: CurveSeg, initAcc: B)(f: (B, CurveSeg, CurveSeg) => B): B
    Definition Classes
    ArrProdHomo
  30. def foreach[U](f: (CurveSeg) => U): Unit
    Definition Classes
    ArrayLike
  31. def foreachArr(f: (Arr[Double]) => Unit): Unit
    Definition Classes
    ArrProdDbl7ArrProdDblN
  32. def foreachInit[U](f: (CurveSeg) => U): Unit
    Definition Classes
    ArrayLike
  33. def foreachReverse[U](f: (CurveSeg) => U): Unit

    Consider changing this name, as might not be appropriate to all sub classes.

    Consider changing this name, as might not be appropriate to all sub classes.

    Definition Classes
    ArrayLike
  34. def foreachTail[U](f: (CurveSeg) => U): Unit
    Definition Classes
    ArrayLike
  35. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  36. def head: CurveSeg
    Definition Classes
    ArrayLike
  37. def head1: Double
    Definition Classes
    ArrProdDbl7
  38. def head2: Double
    Definition Classes
    ArrProdDbl7
  39. def head3: Double
    Definition Classes
    ArrProdDbl7
  40. def head4: Double
    Definition Classes
    ArrProdDbl7
  41. def head5: Double
    Definition Classes
    ArrProdDbl7
  42. def head6: Double
    Definition Classes
    ArrProdDbl7
  43. def head7: Double
    Definition Classes
    ArrProdDbl7
  44. def iForeach[U](f: (CurveSeg, Int) => U, startIndex: Int = 0): Unit

    foreach with index.

    foreach with index. The startIndex parameter is placed 2nd to allow it to have a default value of zero.

    Definition Classes
    ArrayLike
  45. def iForeachReverse[U](f: (CurveSeg, Int) => U): Unit
    Definition Classes
    ArrayLike
  46. def ifEmpty[B](vEmpty: => B, vNonEmpty: => B): B
    Definition Classes
    ArrayLike
  47. def indexOf(elem: CurveSeg): Int
    Definition Classes
    ArrayLike
  48. def indexWhere(f: (CurveSeg) => Boolean): Int

    Return the index of the first lemenet where predicate is true, or -1 if predicate not true forall.

    Return the index of the first lemenet where predicate is true, or -1 if predicate not true forall.

    Definition Classes
    ArrayLike
  49. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  50. def iterFlatMap[B, BB <: ArrImut[B]](f: (CurveSeg) => Iterable[B])(implicit ev: ArrBuild[B, BB]): BB

    FlatMaps over a function from A to any Iterable.

    FlatMaps over a function from A to any Iterable.

    Definition Classes
    ArrayLike
  51. def last: CurveSeg
    Definition Classes
    ArrayLike
  52. def lenStr: String
    Definition Classes
    ArrayLike
  53. final def length: Int
    Definition Classes
    ArrProdHomoArrayLike
  54. def map[B, BB <: ArrImut[B]](f: (CurveSeg) => B)(implicit ev: ArrBuild[B, BB]): BB
    Definition Classes
    ArrayLike
  55. def map2To1[B, BB <: ArrImut[B]](f: (CurveSeg, CurveSeg) => B)(implicit ev: ArrBuild[B, BB]): BB

    map 2 elements of A to 1 element of B.

    map 2 elements of A to 1 element of B. Ignores the last element on a collection of odd numbered length.

    Definition Classes
    ArrayLike
  56. def mapArrSeq[B <: AnyRef](f: (CurveSeg) => B)(implicit ev: ClassTag[B]): Arr[B]

    Maps to ArrSeq of type B.

    Maps to ArrSeq of type B.

    Definition Classes
    ArrProdHomo
  57. def mapList[B <: AnyRef](f: (CurveSeg) => B): List[B]

    maps ValueProduct collection to List

    maps ValueProduct collection to List

    Definition Classes
    ArrayLike
  58. def mkString(seperator: String): String

    Not sure about this method.

    Not sure about this method.

    Definition Classes
    ArrayLike
  59. def newElem(iMatch: Double, d1: Double, d2: Double, d3: Double, d4: Double, d5: Double, d6: Double): CurveSeg
    Definition Classes
    ShapeArrProdDbl7
  60. def nonEmpty: Boolean
    Definition Classes
    ArrayLike
  61. def offsetter: ArrOff[CurveSeg]
    Definition Classes
    ArrImut
  62. def pMap[B, N <: ArrProdHomo[B]](f: (CurveSeg) => B)(implicit factory: (Int) => N): N
    Definition Classes
    ArrProdHomo
  63. def productSize: Int
    Definition Classes
    ArrProdDbl7ArrProdHomo
  64. def ptInShape: (Vec2) => Boolean
  65. def removeFirst(f: (CurveSeg) => Boolean): ThisT
    Definition Classes
    ArrImut
  66. def replace(oldValue: CurveSeg, newValue: CurveSeg): ThisT

    Replaces all instances of the old value with the new value.

    Replaces all instances of the old value with the new value.

    Definition Classes
    ArrImut
  67. def returnThis: ThisT
    Definition Classes
    ArrayLike
  68. def segForeach(fLineSeg: (CurveSeg) => Unit, fArcSeg: (CurveSeg) => Unit, fBezierSeg: (CurveSeg) => Unit): Unit

    Not sure if this is useful

  69. def toArrs: Arr[Arr[Double]]
    Definition Classes
    ArrProdDbl7
  70. def toList: List[CurveSeg]
    Definition Classes
    ArrayLike
  71. def toString(): String
    Definition Classes
    ArrProdDblN → Any
  72. def toStrsFold(seperator: String = "", f: (CurveSeg) => String = _.toString): String
    Definition Classes
    ArrayLike
  73. def typeStr: String
    Definition Classes
    ShapeArrProdHomo
  74. def unsafeArrayCopy(operand: Array[CurveSeg], offset: Int, copyLength: Int): Unit
    Definition Classes
    ArrImut
  75. def unsafeFromArray(array: Array[Double]): Shape
    Definition Classes
    ShapeArrProdDblN
  76. def unsafeSetElem(index: Int, elem: CurveSeg): Unit
    Definition Classes
    ArrProdDbl7ArrImut
  77. def unsafeSetElemSeq(index: Int, elems: Iterable[CurveSeg]): Unit
    Definition Classes
    ArrImut
  78. def unsafeSetElems(index: Int, elems: CurveSeg*): Unit
    Definition Classes
    ArrImut
  79. def unsafeSetHead(value: CurveSeg): Unit
    Definition Classes
    ArrImut
  80. def unsafeSetLast(value: CurveSeg): Unit
    Definition Classes
    ArrImut

Deprecated Value Members

  1. def toArraySeq(implicit ct: ClassTag[CurveSeg]): ArraySeq[CurveSeg]

    transitional method to be removed.

    transitional method to be removed.

    Definition Classes
    ArrayLike
    Annotations
    @deprecated
    Deprecated

Inherited from Transer

Inherited from ArrProdDbl7[CurveSeg]

Inherited from ArrProdDblN[CurveSeg]

Inherited from ArrProdHomo[CurveSeg]

Inherited from ArrValues[CurveSeg]

Inherited from ArrImut[CurveSeg]

Inherited from ArrayLike[CurveSeg]

Inherited from AnyVal

Inherited from Any

Ungrouped