Class

software.uncharted.salt.core.projection

Projection

Related Doc: package projection

Permalink

abstract class Projection[DC, TC, BC] extends Serializable

A mapping from data-space to visualization-space (tile/bin coordinate). While there are potentially an infinite number of tiles, each tile is finite in terms of the number of bins.

DC

the abstract type representing a data-space coordinate

TC

the abstract type representing a tile coordinate.

BC

the abstract type representing a bin coordinate. Must be something that can be represented in 1 dimension.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Projection
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Projection()

    Permalink

Abstract Value Members

  1. abstract def binFrom1D(index: Int, maxBin: BC): BC

    Permalink

    Project a 1 dimensional index into a bin index for easy retrieval of bin values from an array

    Project a 1 dimensional index into a bin index for easy retrieval of bin values from an array

    index

    An array index

    maxBin

    The maximum possible bin index (i.e. if your tile is 256x256, this would be (255, 255))

    returns

    The bin index indicated by this one dimensional representation

  2. abstract def binTo1D(bin: BC, maxBin: BC): Int

    Permalink

    Project a bin index BC into 1 dimension for easy storage of bin values in an array

    Project a bin index BC into 1 dimension for easy storage of bin values in an array

    bin

    A bin index

    maxBin

    The maximum possible bin index (i.e. if your tile is 256x256, this would be (255,255))

    returns

    the bin index converted into its one-dimensional representation

  3. abstract def project(dc: Option[DC], maxBin: BC): Option[Traversable[(TC, BC)]]

    Permalink

    Project a data-space coordinate into the corresponding tile coordinate and bin coordinate

    Project a data-space coordinate into the corresponding tile coordinate and bin coordinate

    dc

    the data-space coordinate

    maxBin

    The maximum possible bin index (i.e. if your tile is 256x256, this would be (255,255))

    returns

    Option[Traversable[(TC, Int)]] representing a series of tile coordinate/bin index pairs if the given source row is within the bounds of the viz. None otherwise.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  16. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped