44 bool autoInstallTagDumpFieldAddOn=
true,
45 bool installInputAccessConnector=
true,
46 bool installInputMessageFilterPlugin=
true,
47 bool installOutputAccessConnector=
true);
84 IntField *
extFld[6] = {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr,
nullptr};
102 extFld[0] = mod.
addInt( (std::string(
"extX" )+suffix).c_str(), 0);
103 extFld[1] = mod.
addInt( (std::string(
"extY" )+suffix).c_str(), 0);
104 extFld[2] = mod.
addInt( (std::string(
"extZ" )+suffix).c_str(), 0);
105 extFld[3] = mod.
addInt( (std::string(
"extC" )+suffix).c_str(), 0);
106 extFld[4] = mod.
addInt( (std::string(
"extT" )+suffix).c_str(), 0);
107 extFld[5] = mod.
addInt( (std::string(
"extU" )+suffix).c_str(), 0);
118 std::string dtString;
131 extFld[0] ->setIntValue(ext.
x);
132 extFld[1] ->setIntValue(ext.
y);
133 extFld[2] ->setIntValue(ext.
z);
134 extFld[3] ->setIntValue(ext.
c);
135 extFld[4] ->setIntValue(ext.
t);
136 extFld[5] ->setIntValue(ext.
u);
147 void _initializeFieldsAndMembers();
153 OutputImageProperties _imageOutput0Properties;
#define MLDIRECTDICOMIMPORTOUTPUTS_EXPORT
DLL export macro definition.
IntField * addInt(const char *name)
Creates an IntField with name and adds it to the container. Default value is 0.
DoubleField * addDouble(const char *name)
Creates a DoubleField with name and adds it to the container. Default value is 0.
StringField * addString(const char *name)
Creates a StringField with name and adds it to the container. Default value is empty string.
MLdouble getMaxVoxelValue() const
Returns the assumed maximum value in data.
MLDataType getDataType() const
Returns the data type of the image.
ImageVector getImageExtent() const
Returns the extent of the (sub)image.
MLdouble getMinVoxelValue() const
Returns the assumed minimum value in data.
MultiFileVolumeListBaseOutput(int numInputs=0, int numOutputs=0, bool autoInstallTagDumpFieldAddOn=true, bool installInputAccessConnector=true, bool installInputMessageFilterPlugin=true, bool installOutputAccessConnector=true)
void calculateOutputImageProperties(int outIndex, PagedImage *outImg) override
Sets properties of the output image at output outIndex.
void updateToVolume(MultiFileVolume *outVolToUse) override
~MultiFileVolumeListImageOutput() override
void calculateOutputSubImage(SubImage *outSubImg, int outIndex, SubImage *inSubImgs) override
virtual void fillOutSubImageFromMultiFileVolume(SubImage outSubImg)
MultiFileVolumeListImageOutput(int numInputs=0, int numOutputs=2, bool autoInstallTagDumpFieldAddOn=true, bool installInputAccessConnector=true, bool installInputMessageFilterPlugin=true, bool installOutputAccessConnector=true)
void _updateVolumeInformation(MultiFileVolume *currVol) override
ComponentType c
Color component of the vector.
ComponentType t
Time component of the vector.
ComponentType u
Unit/Modality/User component of the vector.
ComponentType z
Z component of the vector.
ComponentType x
X component of the vector.
ComponentType y
Y component of the vector.
ComponentType compMul() const
Returns the product of all components. There is no check for integer overflow.
#define ML_MODULE_CLASS_HEADER(className)
MLEXPORT const char *const * MLDataTypeNames()
Provides the base class for an additional output for a MultiFileVolumeList module.
TImageVector< MLint > ImageVector
Defines the standard ImageVector type that is used by the ML for indexing and coordinates.
Helper container to manage fields related to an image output.
IntField * numVolVoxelsFld
Shows the number of voxels of the current volume, default is 0.
StringField * dataTypeFld
String field containing the voxel data type of the currently selected volume, default is "".
IntField * extFld[6]
Image extent of the currently selected volume, defaults are 0.
DoubleField * maxVoxelValueFld
This read-only field shows the maximum voxel value in the currently selected volume,...
void readAndSetFromPagedImage(const PagedImage *pagedImage)
Reads field contents from pagedImage if that one is not nullptr, otherwise the field values are reset...
void addFields(Module &mod, const std::string suffix="")
DoubleField * minVoxelValueFld
This read-only field shows the minimum voxel value in the currently selected volume,...