public interface DataTypeService extends SingletonService<DataType<?>>, ImageJService
DataType
s.Modifier and Type | Method and Description |
---|---|
<U extends NumericType<U>,V extends NumericType<V>> |
cast(DataType<U> inputType,
U input,
DataType<V> outputType,
V output)
Fills an output with a cast from an input given information about their
DataTypes.
|
<U extends NumericType<U>,V extends NumericType<V>> |
cast(DataType<U> inputType,
U input,
DataType<V> outputType,
V output,
BigComplex tmp)
Fills an output with a cast from an input given information about their
DataTypes.
|
List<DataType<?>> |
getInstances()
Returns a list of all DataTypes known to system.
|
DataType<?> |
getTypeByAttributes(int bitCount,
boolean bounded,
boolean complex,
boolean floating,
boolean signed)
Returns the DataType whose internal type class matches the given
specifications exactly.
|
DataType<?> |
getTypeByClass(Class<?> typeClass)
Returns the DataType whose internal type class matches the given typeClass.
|
DataType<?> |
getTypeByName(String typeName)
Returns the DataType whose internal name matches the given typeName.
|
create, filterInstances, getInstance, initialize, objectService
getPlugins, getPluginService, getPluginType, pluginService
registerEventHandlers
getIdentifier, log
context, getContext, setContext
compareTo, getPriority, setPriority
getInfo, setInfo
getLocation
getVersion
dispose
List<DataType<?>> getInstances()
getInstances
in interface SingletonService<DataType<?>>
DataType<?> getTypeByName(String typeName)
DataType<?> getTypeByClass(Class<?> typeClass)
DataType<?> getTypeByAttributes(int bitCount, boolean bounded, boolean complex, boolean floating, boolean signed)
<U extends NumericType<U>,V extends NumericType<V>> void cast(DataType<U> inputType, U input, DataType<V> outputType, V output)
inputType
- The DataType of the input.input
- The input variable to cast from.outputType
- The DataType of the outputoutput
- The output variable to cast into.<U extends NumericType<U>,V extends NumericType<V>> void cast(DataType<U> inputType, U input, DataType<V> outputType, V output, BigComplex tmp)
inputType
- The DataType of the input.input
- The input variable to cast from.outputType
- The DataType of the outputoutput
- The output variable to cast into.tmp
- The working variable the method may use internally.Copyright © 2014–2022 ImageJ. All rights reserved.