Package net.imglib2.type.volatiles
Class AbstractVolatileRealType<R extends RealType<R>,T extends AbstractVolatileRealType<R,T>>
java.lang.Object
net.imglib2.Volatile<R>
net.imglib2.type.volatiles.AbstractVolatileRealType<R,T>
- Type Parameters:
R- wrappedRealType.T- type of derived concrete class.
- All Implemented Interfaces:
Comparable<T>,ComplexType<T>,NumericType<T>,RealType<T>,Add<T>,Div<T>,Mul<T>,MulFloatingPoint,SetOne,SetZero,Sub<T>,ValueEquals<T>,Type<T>
- Direct Known Subclasses:
VolatileRealType
public abstract class AbstractVolatileRealType<R extends RealType<R>,T extends AbstractVolatileRealType<R,T>>
extends Volatile<R>
implements RealType<T>
Abstract base class for
VolatileRealTypes that wrap RealType.- Author:
- Tobias Pietzsch, Stephan Saalfeld
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintvoidvoiddec()voidintdoublefloatdoubledoubledoubledoublefloatdoublefloatdoublefloatvoidinc()voidmul(double c) voidmul(float c) voidvoidSets the value of anotherType.voidsetComplexNumber(double r, double i) voidsetComplexNumber(float r, float i) voidsetImaginary(double f) voidsetImaginary(float f) voidsetOne()voidsetReal(double f) voidsetReal(float f) voidsetZero()voidbooleanvalueEquals(T other) 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
-
AbstractVolatileRealType
-
-
Method Details
-
getRealDouble
public double getRealDouble()- Specified by:
getRealDoublein interfaceComplexType<R extends RealType<R>>
-
getRealFloat
public float getRealFloat()- Specified by:
getRealFloatin interfaceComplexType<R extends RealType<R>>
-
getImaginaryDouble
public double getImaginaryDouble()- Specified by:
getImaginaryDoublein interfaceComplexType<R extends RealType<R>>
-
getImaginaryFloat
public float getImaginaryFloat()- Specified by:
getImaginaryFloatin interfaceComplexType<R extends RealType<R>>
-
setReal
public void setReal(float f) - Specified by:
setRealin interfaceComplexType<R extends RealType<R>>
-
setReal
public void setReal(double f) - Specified by:
setRealin interfaceComplexType<R extends RealType<R>>
-
setImaginary
public void setImaginary(float f) - Specified by:
setImaginaryin interfaceComplexType<R extends RealType<R>>
-
setImaginary
public void setImaginary(double f) - Specified by:
setImaginaryin interfaceComplexType<R extends RealType<R>>
-
setComplexNumber
public void setComplexNumber(float r, float i) - Specified by:
setComplexNumberin interfaceComplexType<R extends RealType<R>>
-
setComplexNumber
public void setComplexNumber(double r, double i) - Specified by:
setComplexNumberin interfaceComplexType<R extends RealType<R>>
-
getPowerFloat
public float getPowerFloat()- Specified by:
getPowerFloatin interfaceComplexType<R extends RealType<R>>
-
getPowerDouble
public double getPowerDouble()- Specified by:
getPowerDoublein interfaceComplexType<R extends RealType<R>>
-
getPhaseFloat
public float getPhaseFloat()- Specified by:
getPhaseFloatin interfaceComplexType<R extends RealType<R>>
-
getPhaseDouble
public double getPhaseDouble()- Specified by:
getPhaseDoublein interfaceComplexType<R extends RealType<R>>
-
complexConjugate
public void complexConjugate()- Specified by:
complexConjugatein interfaceComplexType<R extends RealType<R>>
-
compareTo
- Specified by:
compareToin interfaceComparable<R extends RealType<R>>
-
inc
public void inc() -
dec
public void dec() -
getMaxValue
public double getMaxValue()- Specified by:
getMaxValuein interfaceRealType<R extends RealType<R>>
-
getMinValue
public double getMinValue()- Specified by:
getMinValuein interfaceRealType<R extends RealType<R>>
-
getMinIncrement
public double getMinIncrement()- Specified by:
getMinIncrementin interfaceRealType<R extends RealType<R>>
-
getBitsPerPixel
public int getBitsPerPixel()- Specified by:
getBitsPerPixelin interfaceRealType<R extends RealType<R>>
-
set
Description copied from interface:TypeSets the value of anotherType. -
add
-
sub
-
mul
-
div
-
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
-
valueEquals
- Specified by:
valueEqualsin interfaceValueEquals<R extends RealType<R>>
-