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 Object
implements NumericType<T>
- Author:
- Stephan Saalfeld
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidabstract doublegetA()abstract doublegetB()abstract doublegetG()abstract doublegetR()voidmul(double c) voidmul(float c) voidvoidset(double a, double r, double g, double b) voidSets the value of anotherType.abstract voidsetA(double a) abstract voidsetB(double b) abstract voidsetG(double g) voidsetOne()abstract voidsetR(double r) voidsetZero()voidintCreate and integer packed representation of this ARGB value.booleanvalueEquals(T t) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.imglib2.type.Type
copy, createVariable
-
Constructor Details
-
AbstractARGBDoubleType
public AbstractARGBDoubleType()
-
-
Method Details
-
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
Description copied from interface:TypeSets the value of anotherType.- Specified by:
setin interfaceType<T extends AbstractARGBDoubleType<T>>- Parameters:
c- the new value
-
add
- Specified by:
addin interfaceAdd<T extends AbstractARGBDoubleType<T>>
-
sub
- Specified by:
subin interfaceSub<T extends AbstractARGBDoubleType<T>>
-
mul
- Specified by:
mulin interfaceMul<T extends AbstractARGBDoubleType<T>>
-
div
- Specified by:
divin interfaceDiv<T extends AbstractARGBDoubleType<T>>
-
setZero
public void setZero() -
setOne
public void setOne() -
mul
public void mul(float c) - Specified by:
mulin interfaceMulFloatingPoint
-
mul
public void mul(double c) - Specified by:
mulin interfaceMulFloatingPoint
-
toARGBInt
public int toARGBInt()Create and integer packed representation of this ARGB value. Crop -
valueEquals
- Specified by:
valueEqualsin interfaceValueEquals<T extends AbstractARGBDoubleType<T>>
-