Skip to content

Commit 7bd36d0

Browse files
committed
Formatting code to match the intended ClangFormat style.
1 parent 1b94501 commit 7bd36d0

File tree

336 files changed

+16031
-17089
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

336 files changed

+16031
-17089
lines changed

ITKImageProcessingConstants.h

Lines changed: 27 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -40,43 +40,41 @@
4040
*/
4141
namespace ITKImageProcessingConstants
4242
{
43-
const QString ITKImageProcessingPluginFile("ITKImageProcessingPlugin");
44-
const QString ITKImageProcessingPluginDisplayName("ITKImageProcessingPlugin");
45-
const QString ITKImageProcessingBaseName("ITKImageProcessingPlugin");
43+
const QString ITKImageProcessingPluginFile("ITKImageProcessingPlugin");
44+
const QString ITKImageProcessingPluginDisplayName("ITKImageProcessingPlugin");
45+
const QString ITKImageProcessingBaseName("ITKImageProcessingPlugin");
4646

47-
namespace FilterGroups
48-
{
49-
const QString ITKImageProcessingFilters("ITKImageProcessing");
50-
}
47+
namespace FilterGroups
48+
{
49+
const QString ITKImageProcessingFilters("ITKImageProcessing");
50+
}
5151

52-
//define pixels for dream3d variable types
53-
typedef int8_t Int8PixelType;
54-
typedef uint8_t UInt8PixelType;
55-
typedef int16_t Int16PixelType;
56-
typedef uint16_t UInt16PixelType;
57-
typedef int32_t Int32PixelType;
58-
typedef uint32_t UInt32PixelType;
59-
typedef int64_t Int64PixelType;
60-
typedef uint64_t UInt64PixelType;
61-
typedef float FloatPixelType;
62-
typedef double DoublePixelType;
52+
// define pixels for dream3d variable types
53+
typedef int8_t Int8PixelType;
54+
typedef uint8_t UInt8PixelType;
55+
typedef int16_t Int16PixelType;
56+
typedef uint16_t UInt16PixelType;
57+
typedef int32_t Int32PixelType;
58+
typedef uint32_t UInt32PixelType;
59+
typedef int64_t Int64PixelType;
60+
typedef uint64_t UInt64PixelType;
61+
typedef float FloatPixelType;
62+
typedef double DoublePixelType;
6363

64-
//define default pixel type
64+
// define default pixel type
6565
#if ImageProcessing_BitDepth == 8
66-
typedef UInt8PixelType DefaultPixelType;
67-
typedef DataArray<DefaultPixelType> DefaultArrayType;
66+
typedef UInt8PixelType DefaultPixelType;
67+
typedef DataArray<DefaultPixelType> DefaultArrayType;
6868
#elif ImageProcessing_BitDepth == 16
69-
typedef UInt16PixelType DefaultPixelType;
70-
typedef UInt16ArrayType DefaultArrayType;
69+
typedef UInt16PixelType DefaultPixelType;
70+
typedef UInt16ArrayType DefaultArrayType;
7171
#elif ImageProcessing_BitDepth == 32
72-
typedef FloatPixelType DefaultPixelType;
73-
typedef FloatArrayType DefaultArrayType;
72+
typedef FloatPixelType DefaultPixelType;
73+
typedef FloatArrayType DefaultArrayType;
7474
#else
75-
typedef UInt8PixelType DefaultPixelType;
76-
typedef UInt8ArrayType DefaultArrayType;
75+
typedef UInt8PixelType DefaultPixelType;
76+
typedef UInt8ArrayType DefaultArrayType;
7777
#endif
78-
79-
8078
}
8179

8280
/**

ITKImageProcessingFilters/Dream3DTemplateAliasMacro.h

Lines changed: 216 additions & 211 deletions
Large diffs are not rendered by default.

ITKImageProcessingFilters/ITKAbsImage.cpp

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,23 @@
99
#include "SIMPLib/Common/Constants.h"
1010
#include "SIMPLib/FilterParameters/AbstractFilterParametersReader.h"
1111
#include "SIMPLib/FilterParameters/DataArraySelectionFilterParameter.h"
12-
#include "SIMPLib/FilterParameters/StringFilterParameter.h"
1312
#include "SIMPLib/FilterParameters/LinkedBooleanFilterParameter.h"
1413
#include "SIMPLib/FilterParameters/SeparatorFilterParameter.h"
14+
#include "SIMPLib/FilterParameters/StringFilterParameter.h"
1515

1616
#include "SIMPLib/Geometry/ImageGeom.h"
1717

18-
19-
20-
#include "ITKImageProcessing/ITKImageProcessingFilters/itkDream3DImage.h"
2118
#include "ITKImageProcessing/ITKImageProcessingFilters/Dream3DTemplateAliasMacro.h"
19+
#include "ITKImageProcessing/ITKImageProcessingFilters/itkDream3DImage.h"
2220

2321
// Include the MOC generated file for this class
2422
#include "moc_ITKAbsImage.cpp"
2523

2624
// -----------------------------------------------------------------------------
2725
//
2826
// -----------------------------------------------------------------------------
29-
ITKAbsImage::ITKAbsImage() :
30-
ITKImageBase()
27+
ITKAbsImage::ITKAbsImage()
28+
: ITKImageBase()
3129
{
3230

3331
setupFilterParameters();
@@ -47,16 +45,13 @@ void ITKAbsImage::setupFilterParameters()
4745
{
4846
FilterParameterVector parameters;
4947

50-
51-
5248
QStringList linkedProps;
5349
linkedProps << "NewCellArrayName";
5450
parameters.push_back(SIMPL_NEW_LINKED_BOOL_FP("Save as New Array", SaveAsNewArray, FilterParameter::Parameter, ITKAbsImage, linkedProps));
5551
parameters.push_back(SeparatorFilterParameter::New("Cell Data", FilterParameter::RequiredArray));
5652
{
5753
DataArraySelectionFilterParameter::RequirementType req =
58-
DataArraySelectionFilterParameter::CreateRequirement(SIMPL::Defaults::AnyPrimitive, SIMPL::Defaults::AnyComponentSize,
59-
AttributeMatrix::Type::Cell, IGeometry::Type::Image);
54+
DataArraySelectionFilterParameter::CreateRequirement(SIMPL::Defaults::AnyPrimitive, SIMPL::Defaults::AnyComponentSize, AttributeMatrix::Type::Cell, IGeometry::Type::Image);
6055
parameters.push_back(SIMPL_NEW_DA_SELECTION_FP("Attribute Array to filter", SelectedCellArrayPath, FilterParameter::RequiredArray, ITKAbsImage, req));
6156
}
6257
parameters.push_back(SeparatorFilterParameter::New("Cell Data", FilterParameter::CreatedArray));
@@ -71,18 +66,17 @@ void ITKAbsImage::setupFilterParameters()
7166
void ITKAbsImage::readFilterParameters(AbstractFilterParametersReader* reader, int index)
7267
{
7368
reader->openFilterGroup(this, index);
74-
setSelectedCellArrayPath( reader->readDataArrayPath( "SelectedCellArrayPath", getSelectedCellArrayPath() ) );
75-
setNewCellArrayName( reader->readString( "NewCellArrayName", getNewCellArrayName() ) );
76-
setSaveAsNewArray( reader->readValue( "SaveAsNewArray", getSaveAsNewArray() ) );
69+
setSelectedCellArrayPath(reader->readDataArrayPath("SelectedCellArrayPath", getSelectedCellArrayPath()));
70+
setNewCellArrayName(reader->readString("NewCellArrayName", getNewCellArrayName()));
71+
setSaveAsNewArray(reader->readValue("SaveAsNewArray", getSaveAsNewArray()));
7772

7873
reader->closeFilterGroup();
7974
}
8075

8176
// -----------------------------------------------------------------------------
8277
//
8378
// -----------------------------------------------------------------------------
84-
template<typename InputPixelType, typename OutputPixelType, unsigned int Dimension>
85-
void ITKAbsImage::dataCheck()
79+
template <typename InputPixelType, typename OutputPixelType, unsigned int Dimension> void ITKAbsImage::dataCheck()
8680
{
8781
// Check consistency of parameters
8882

@@ -102,24 +96,22 @@ void ITKAbsImage::dataCheckInternal()
10296
//
10397
// -----------------------------------------------------------------------------
10498

105-
template<typename InputPixelType, typename OutputPixelType, unsigned int Dimension>
106-
void ITKAbsImage::filter()
99+
template <typename InputPixelType, typename OutputPixelType, unsigned int Dimension> void ITKAbsImage::filter()
107100
{
108101
typedef itk::Dream3DImage<InputPixelType, Dimension> InputImageType;
109102
typedef itk::Dream3DImage<OutputPixelType, Dimension> OutputImageType;
110-
//define filter
103+
// define filter
111104
typedef itk::AbsImageFilter<InputImageType, OutputImageType> FilterType;
112105
typename FilterType::Pointer filter = FilterType::New();
113106
this->ITKImageBase::filter<InputPixelType, OutputPixelType, Dimension, FilterType>(filter);
114-
115107
}
116108

117109
// -----------------------------------------------------------------------------
118110
//
119111
// -----------------------------------------------------------------------------
120112
void ITKAbsImage::filterInternal()
121113
{
122-
Dream3DArraySwitchMacro(this->filter, getSelectedCellArrayPath(), -4);
114+
Dream3DArraySwitchMacro(this->filter, getSelectedCellArrayPath(), -4);
123115
}
124116

125117
// -----------------------------------------------------------------------------
@@ -139,12 +131,14 @@ AbstractFilter::Pointer ITKAbsImage::newFilterInstance(bool copyFilterParameters
139131
//
140132
// -----------------------------------------------------------------------------
141133
const QString ITKAbsImage::getHumanLabel()
142-
{ return "ITK::Abs Image Filter"; }
134+
{
135+
return "ITK::Abs Image Filter";
136+
}
143137

144138
// -----------------------------------------------------------------------------
145139
//
146140
// -----------------------------------------------------------------------------
147141
const QString ITKAbsImage::getSubGroupName()
148-
{ return "ITK IntensityTransformation"; }
149-
150-
142+
{
143+
return "ITK IntensityTransformation";
144+
}

ITKImageProcessingFilters/ITKAbsImage.h

Lines changed: 60 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -14,83 +14,77 @@
1414

1515
#include "ITKImageBase.h"
1616

17-
#include "SIMPLib/SIMPLib.h"
1817
#include "SIMPLib/Common/SIMPLibSetGetMacros.h"
18+
#include "SIMPLib/SIMPLib.h"
1919

20-
//Auto includes
20+
// Auto includes
2121
#include <itkAbsImageFilter.h>
2222

23-
2423
/**
2524
* @brief The ITKAbsImage class. See [Filter documentation](@ref ITKAbsImage) for details.
2625
*/
2726
class ITKAbsImage : public ITKImageBase
2827
{
2928
Q_OBJECT
3029

31-
public:
32-
SIMPL_SHARED_POINTERS(ITKAbsImage)
33-
SIMPL_STATIC_NEW_MACRO(ITKAbsImage)
34-
SIMPL_TYPE_MACRO_SUPER_OVERRIDE(ITKAbsImage, AbstractFilter)
35-
36-
virtual ~ITKAbsImage();
37-
38-
39-
40-
/**
41-
* @brief newFilterInstance Reimplemented from @see AbstractFilter class
42-
*/
43-
virtual AbstractFilter::Pointer newFilterInstance(bool copyFilterParameters) override;
44-
45-
/**
46-
* @brief getHumanLabel Reimplemented from @see AbstractFilter class
47-
*/
48-
virtual const QString getHumanLabel() override;
49-
50-
/**
51-
* @brief getSubGroupName Reimplemented from @see AbstractFilter class
52-
*/
53-
virtual const QString getSubGroupName() override;
54-
55-
/**
56-
* @brief setupFilterParameters Reimplemented from @see AbstractFilter class
57-
*/
58-
virtual void setupFilterParameters() override;
59-
60-
/**
61-
* @brief readFilterParameters Reimplemented from @see AbstractFilter class
62-
*/
63-
virtual void readFilterParameters(AbstractFilterParametersReader* reader, int index) override;
64-
65-
protected:
66-
ITKAbsImage();
67-
68-
/**
69-
* @brief dataCheckInternal overloads dataCheckInternal in ITKImageBase and calls templated dataCheck
70-
*/
71-
void virtual dataCheckInternal() override;
72-
73-
/**
74-
* @brief dataCheck Checks for the appropriate parameter values and availability of arrays
75-
*/
76-
template<typename InputImageType, typename OutputImageType, unsigned int Dimension>
77-
void dataCheck();
78-
79-
/**
80-
* @brief filterInternal overloads filterInternal in ITKImageBase and calls templated filter
81-
*/
82-
void virtual filterInternal() override;
83-
84-
/**
85-
* @brief Applies the filter
86-
*/
87-
template<typename InputImageType, typename OutputImageType, unsigned int Dimension>
88-
void filter();
89-
90-
private:
91-
92-
ITKAbsImage(const ITKAbsImage&); // Copy Constructor Not Implemented
93-
void operator=(const ITKAbsImage&); // Operator '=' Not Implemented
30+
public:
31+
SIMPL_SHARED_POINTERS(ITKAbsImage)
32+
SIMPL_STATIC_NEW_MACRO(ITKAbsImage)
33+
SIMPL_TYPE_MACRO_SUPER_OVERRIDE(ITKAbsImage, AbstractFilter)
34+
35+
virtual ~ITKAbsImage();
36+
37+
/**
38+
* @brief newFilterInstance Reimplemented from @see AbstractFilter class
39+
*/
40+
virtual AbstractFilter::Pointer newFilterInstance(bool copyFilterParameters) override;
41+
42+
/**
43+
* @brief getHumanLabel Reimplemented from @see AbstractFilter class
44+
*/
45+
virtual const QString getHumanLabel() override;
46+
47+
/**
48+
* @brief getSubGroupName Reimplemented from @see AbstractFilter class
49+
*/
50+
virtual const QString getSubGroupName() override;
51+
52+
/**
53+
* @brief setupFilterParameters Reimplemented from @see AbstractFilter class
54+
*/
55+
virtual void setupFilterParameters() override;
56+
57+
/**
58+
* @brief readFilterParameters Reimplemented from @see AbstractFilter class
59+
*/
60+
virtual void readFilterParameters(AbstractFilterParametersReader* reader, int index) override;
61+
62+
protected:
63+
ITKAbsImage();
64+
65+
/**
66+
* @brief dataCheckInternal overloads dataCheckInternal in ITKImageBase and calls templated dataCheck
67+
*/
68+
void virtual dataCheckInternal() override;
69+
70+
/**
71+
* @brief dataCheck Checks for the appropriate parameter values and availability of arrays
72+
*/
73+
template <typename InputImageType, typename OutputImageType, unsigned int Dimension> void dataCheck();
74+
75+
/**
76+
* @brief filterInternal overloads filterInternal in ITKImageBase and calls templated filter
77+
*/
78+
void virtual filterInternal() override;
79+
80+
/**
81+
* @brief Applies the filter
82+
*/
83+
template <typename InputImageType, typename OutputImageType, unsigned int Dimension> void filter();
84+
85+
private:
86+
ITKAbsImage(const ITKAbsImage&); // Copy Constructor Not Implemented
87+
void operator=(const ITKAbsImage&); // Operator '=' Not Implemented
9488
};
9589

9690
#ifdef __clang__

0 commit comments

Comments
 (0)