object ScalarType extends Enumeration
An enumeration comprising all the data types that we can read and write, in VTK and Nifti formats.
- Alphabetic
- By Inheritance
- ScalarType
- Enumeration
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- case class Val[O](vtkId: Int, niftiId: Short)(implicit evidence$1: Scalar[O], evidence$2: ClassTag[O]) extends ScalarType.Val with Product with Serializable
- Attributes
- protected
- abstract class Value extends Ordered[Value] with Serializable
- Definition Classes
- Enumeration
- Annotations
- @SerialVersionUID()
- class ValueSet extends AbstractSet[Value] with SortedSet[Value] with SortedSetOps[Value, SortedSet, ValueSet] with StrictOptimizedIterableOps[Value, Set, ValueSet] with Serializable
- Definition Classes
- Enumeration
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val Byte: Val[Byte]
- val Double: Val[Double]
- val Float: Val[Float]
- val Int: Val[Int]
- val Short: Val[Short]
- val UByte: Val[UByte]
- val UInt: Val[UInt]
- val UShort: Val[UShort]
- final def Value(i: Int, name: String): Value
- Attributes
- protected
- Definition Classes
- Enumeration
- final def Value(name: String): Value
- Attributes
- protected
- Definition Classes
- Enumeration
- final def Value(i: Int): Value
- Attributes
- protected
- Definition Classes
- Enumeration
- final def Value: Value
- Attributes
- protected
- Definition Classes
- Enumeration
- final def apply(x: Int): Value
- Definition Classes
- Enumeration
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromNiftiId(niftiId: Short): Value
Return the ScalarType value corresponding to a given Nifti type constant
Return the ScalarType value corresponding to a given Nifti type constant
- niftiId
a Nifti type constant
- returns
the corresponding ScalarType value
- Exceptions thrown
IllegalArgumentException
if no corresponding value was found.
- def fromType[T](implicit arg0: Scalar[T], arg1: scala.reflect.api.JavaUniverse.TypeTag[T]): Value
Return the ScalarType value corresponding to a given type
Return the ScalarType value corresponding to a given type
- T
a scalar type
- returns
the corresponding ScalarType value
- Exceptions thrown
IllegalArgumentException
if no corresponding value was found.
- def fromVtkId(vtkId: Int): Value
Return the ScalarType value corresponding to a given VTK type constant
Return the ScalarType value corresponding to a given VTK type constant
- vtkId
a VTK type constant
- returns
the corresponding ScalarType value
- Exceptions thrown
IllegalArgumentException
if no corresponding value was found.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def maxId: Int
- Definition Classes
- Enumeration
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- var nextId: Int
- Attributes
- protected
- Definition Classes
- Enumeration
- var nextName: Iterator[String]
- Attributes
- protected
- Definition Classes
- Enumeration
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def ofFile(file: File): Try[Value]
Return the ScalarType value corresponding to the data present in a given file.
Return the ScalarType value corresponding to the data present in a given file. Only .vtk, .nii and .nia files are supported.
- file
the file to check
- returns
the scalar type present in the given file, wrapped in a scala.util.Success, or a scala.util.Failure explaining the error.
- def readResolve(): AnyRef
- Attributes
- protected
- Definition Classes
- Enumeration
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Enumeration → AnyRef → Any
- implicit def valueToVal[T](x: Value): Val[T]
- def values: ValueSet
- Definition Classes
- Enumeration
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def withName(s: String): Value
- Definition Classes
- Enumeration
- implicit object ValueOrdering extends Ordering[Value]
- Definition Classes
- Enumeration