Package net.imglib2.type.numeric
Class AbstractARGBDoubleType<T extends AbstractARGBDoubleType<T>>
- java.lang.Object
-
- net.imglib2.type.numeric.AbstractARGBDoubleType<T>
-
- All Implemented Interfaces:
NumericType<T>
,Add<T>
,Div<T>
,Mul<T>
,MulFloatingPoint
,SetOne
,SetZero
,Sub<T>
,ValueEquals<T>
,Type<T>
- Direct Known Subclasses:
ARGBDoubleType
,NativeARGBDoubleType
public abstract class AbstractARGBDoubleType<T extends AbstractARGBDoubleType<T>> extends java.lang.Object implements NumericType<T>
- Author:
- Stephan Saalfeld
-
-
Constructor Summary
Constructors Constructor Description AbstractARGBDoubleType()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description void
add(T c)
void
div(T c)
abstract double
getA()
abstract double
getB()
abstract double
getG()
abstract double
getR()
void
mul(double c)
void
mul(float c)
void
mul(T c)
void
set(double a, double r, double g, double b)
void
set(T c)
Sets the value of anotherType
.abstract void
setA(double a)
abstract void
setB(double b)
abstract void
setG(double g)
void
setOne()
abstract void
setR(double r)
void
setZero()
void
sub(T c)
int
toARGBInt()
Create and integer packed representation of this ARGB value.boolean
valueEquals(T t)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.imglib2.type.Type
copy, createVariable
-
-
-
-
Method Detail
-
getA
public abstract double getA()
-
getR
public abstract double getR()
-
getG
public abstract double getG()
-
getB
public abstract double getB()
-
setA
public abstract void setA(double a)
-
setR
public abstract void setR(double r)
-
setG
public abstract void setG(double g)
-
setB
public abstract void setB(double b)
-
set
public void set(double a, double r, double g, double b)
-
set
public void set(T c)
Description copied from interface:Type
Sets the value of anotherType
.- Specified by:
set
in interfaceType<T extends AbstractARGBDoubleType<T>>
- Parameters:
c
- the new value
-
mul
public void mul(float c)
- Specified by:
mul
in interfaceMulFloatingPoint
-
mul
public void mul(double c)
- Specified by:
mul
in interfaceMulFloatingPoint
-
toARGBInt
public int toARGBInt()
Create and integer packed representation of this ARGB value. Crop
-
valueEquals
public boolean valueEquals(T t)
- Specified by:
valueEquals
in interfaceValueEquals<T extends AbstractARGBDoubleType<T>>
-
-