24 class MultiFileVolume;
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);
108 numVolVoxelsFld = mod.
addInt( (std::string(
"numVolVoxels")+suffix).c_str(), 0);
109 dataTypeFld = mod.
addString((std::string(
"dataType" )+suffix).c_str(),
"");
110 minVoxelValueFld = mod.
addDouble((std::string(
"minVoxVal" )+suffix).c_str(), 0);
111 maxVoxelValueFld = mod.
addDouble((std::string(
"maxVoxVal" )+suffix).c_str(), 0);
118 std::string dtString;
147 void _initializeFieldsAndMembers();
153 OutputImageProperties _imageOutput0Properties;
#define MLDIRECTDICOMIMPORTOUTPUTS_EXPORT
DLL export macro definition.
Field to encapsulate a double value.
void setDoubleValue(double doubleValue)
Sets the field value to doubleValue. By default, the entire double type range can be set.
DoubleField * addDouble(const char *name)
Creates a DoubleField with name and adds it to the container. Default value is 0.
IntField * addInt(const char *name)
Creates an IntField 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.
Field to encapsulate an integer value.
void setIntValue(MLint intValue)
Sets field value to intValue.
Base class for an image processing module of the ML.
The ML module base class MultiFileVolumeListBaseOutput used to implement further output modules for t...
The ML module class MultiFileVolumeListImageOutput for extending the number of image outputs of Multi...
void calculateOutputImageProperties(int outIndex, PagedImage *outImg) override
Sets properties of the output image at output outIndex.
void updateToVolume(MultiFileVolume *outVolToUse) override
Updates image outputs and internal pointer to the passed MultiFileVolume.
~MultiFileVolumeListImageOutput() override
void calculateOutputSubImage(SubImage *outSubImg, int outIndex, SubImage *inSubImgs) override
Calculates page outSubImg of output image with index outIndex by using inSubimgs.
virtual void fillOutSubImageFromMultiFileVolume(SubImage outSubImg)
Fill outSubImg with data from MultiFileVolumeListBaseOutput::getCurrentlySetVolume() which is expecte...
MultiFileVolumeListImageOutput(int numInputs=0, int numOutputs=2, bool autoInstallTagDumpFieldAddOn=true, bool installInputAccessConnector=true, bool installInputMessageFilterPlugin=true, bool installOutputAccessConnector=true)
Constructor.
void _updateVolumeInformation(MultiFileVolume *currVol) override
This is called by the super class if the volume has changed.
Management class used by DirectDicomImport to create, represent and describe volumes composed of mult...
Field without value for notifications.
The class PagedImage, representing a fragmented image that manages properties and data of an image lo...
Field to encapsulate a string value.
void setStringValue(const std::string &stringValue) override
Sets value of the field to stringValue.
This class manages/represents a rectangular 6D image region that is organized linearly in memory.
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)
Similar to ML_CLASS_HEADER for the usage of derived classes from Module.
MLEXPORT const char *const * MLDataTypeNames()
Function that returns the table of C-strings of all scalar and registered datatypes.
Provides the base class for an additional output for a MultiFileVolumeList module.
Helper container to manage fields related to an image output.
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="")
Create fields and add their pointers for field container of mod; suffix is appended to all field name...