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 TypeMethodDescriptionvoid
void
abstract double
getA()
abstract double
getB()
abstract double
getG()
abstract double
getR()
void
mul
(double c) void
mul
(float c) void
void
set
(double a, double r, double g, double b) void
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
int
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
-
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:Type
Sets the value of anotherType
.- Specified by:
set
in interfaceType<T extends AbstractARGBDoubleType<T>>
- Parameters:
c
- the new value
-
add
- Specified by:
add
in interfaceAdd<T extends AbstractARGBDoubleType<T>>
-
sub
- Specified by:
sub
in interfaceSub<T extends AbstractARGBDoubleType<T>>
-
mul
- Specified by:
mul
in interfaceMul<T extends AbstractARGBDoubleType<T>>
-
div
- Specified by:
div
in interfaceDiv<T extends AbstractARGBDoubleType<T>>
-
setZero
public void setZero() -
setOne
public void setOne() -
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
- Specified by:
valueEquals
in interfaceValueEquals<T extends AbstractARGBDoubleType<T>>
-