Skip to content

Commit a99b1fa

Browse files
ENH: Geometry Constants Cleanup & GeomTypeToString Method (#1187)
* Move all geometry constants to geometry classes and use consistent names. * Add GeomTypeToString helper method to IGeometry. * Explicitly specify namespace and optimized enum to string processing --------- Signed-off-by: Joey Kleingers <[email protected]> Co-authored-by: nyoungbq <[email protected]>
1 parent 152893f commit a99b1fa

File tree

79 files changed

+322
-220
lines changed

Some content is hidden

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

79 files changed

+322
-220
lines changed

src/Plugins/ITKImageProcessing/src/ITKImageProcessing/Filters/ITKImageReaderFilter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Parameters ITKImageReaderFilter::parameters() const
9191

9292
params.insertSeparator(Parameters::Separator{"Output Data Object(s)"});
9393
params.insert(std::make_unique<DataGroupCreationParameter>(k_ImageGeometryPath_Key, "Created Image Geometry", "The path to the created Image Geometry", DataPath({"ImageDataContainer"})));
94-
params.insert(std::make_unique<DataObjectNameParameter>(k_CellDataName_Key, "Created Cell Attribute Matrix", "The name of the created cell attribute matrix", ImageGeom::k_CellDataName));
94+
params.insert(std::make_unique<DataObjectNameParameter>(k_CellDataName_Key, "Created Cell Attribute Matrix", "The name of the created cell attribute matrix", ImageGeom::k_CellAttributeMatrixName));
9595
params.insert(std::make_unique<DataObjectNameParameter>(k_ImageDataArrayPath_Key, "Created Cell Data",
9696
"The name of the created image data array. Will be stored in the created Cell Attribute Matrix", "ImageData"));
9797

src/Plugins/ITKImageProcessing/src/ITKImageProcessing/Filters/ITKImportImageStackFilter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ Parameters ITKImportImageStackFilter::parameters() const
397397

398398
params.insertSeparator(Parameters::Separator{"Output Data"});
399399
params.insert(std::make_unique<DataGroupCreationParameter>(k_ImageGeometryPath_Key, "Created Image Geometry", "The path to the created Image Geometry", DataPath({"ImageDataContainer"})));
400-
params.insert(std::make_unique<DataObjectNameParameter>(k_CellDataName_Key, "Cell Data Name", "The name of the created cell attribute matrix", ImageGeom::k_CellDataName));
400+
params.insert(std::make_unique<DataObjectNameParameter>(k_CellDataName_Key, "Cell Data Name", "The name of the created cell attribute matrix", ImageGeom::k_CellAttributeMatrixName));
401401
params.insert(std::make_unique<DataObjectNameParameter>(k_ImageDataArrayPath_Key, "Created Image Data", "The path to the created image data array", "ImageData"));
402402

403403
params.linkParameters(k_ConvertToGrayScale_Key, k_ColorWeights_Key, true);

src/Plugins/ITKImageProcessing/src/ITKImageProcessing/Filters/ITKMhaFileReaderFilter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ Parameters ITKMhaFileReaderFilter::parameters() const
288288
params.insert(std::make_unique<DataGroupCreationParameter>(ITKImageReaderFilter::k_ImageGeometryPath_Key, "Created Image Geometry", "The path to the created Image Geometry",
289289
DataPath({"ImageDataContainer"})));
290290
params.insertSeparator(Parameters::Separator{"Output Cell Attribute Matrix"});
291-
params.insert(
292-
std::make_unique<DataObjectNameParameter>(ITKImageReaderFilter::k_CellDataName_Key, "Created Cell Attribute Matrix", "The name of the created cell attribute matrix", ImageGeom::k_CellDataName));
291+
params.insert(std::make_unique<DataObjectNameParameter>(ITKImageReaderFilter::k_CellDataName_Key, "Created Cell Attribute Matrix", "The name of the created cell attribute matrix",
292+
ImageGeom::k_CellAttributeMatrixName));
293293
params.insertSeparator(Parameters::Separator{"Output Cell Data"});
294294
params.insert(std::make_unique<DataObjectNameParameter>(ITKImageReaderFilter::k_ImageDataArrayPath_Key, "Created Cell Data",
295295
"The name of the created image data array. Will be stored in the created Cell Attribute Matrix", "ImageData"));

src/Plugins/ITKImageProcessing/test/ITKImageWriterTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ namespace
1919
{
2020
const std::string k_ImageStackDir = unit_test::k_DataDir.str() + "/ImageStack";
2121
const DataPath k_ImageGeomPath = {{"ImageGeometry"}};
22-
const DataPath k_ImageDataPath = k_ImageGeomPath.createChildPath(ImageGeom::k_CellDataName).createChildPath("ImageData");
22+
const DataPath k_ImageDataPath = k_ImageGeomPath.createChildPath(ImageGeom::k_CellAttributeMatrixName).createChildPath("ImageData");
2323

2424
/**
2525
* @return

src/Plugins/ITKImageProcessing/test/ITKImportImageStackTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace
2323
{
2424
const std::string k_ImageStackDir = unit_test::k_DataDir.str() + "/ImageStack";
2525
const DataPath k_ImageGeomPath = {{"ImageGeometry"}};
26-
const DataPath k_ImageDataPath = k_ImageGeomPath.createChildPath(ImageGeom::k_CellDataName).createChildPath("ImageData");
26+
const DataPath k_ImageDataPath = k_ImageGeomPath.createChildPath(ImageGeom::k_CellAttributeMatrixName).createChildPath("ImageData");
2727
const std::string k_FlippedImageStackDirName = "image_flip_test_images";
2828
const DataPath k_XGeneratedImageGeomPath = DataPath({"xGeneratedImageGeom"});
2929
const DataPath k_YGeneratedImageGeomPath = DataPath({"yGeneratedImageGeom"});

src/Plugins/OrientationAnalysis/pipelines/EBSD SurfaceMeshing/(02) Small IN100 Smooth Mesh.d3dpipeline

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"DataContainer/Cell Feature Data/SlipSystems",
5151
"DataContainer/Cell Feature Data/SurfaceAreaVolumeRatio",
5252
"TriangleDataContainer",
53-
"TriangleDataContainer/SharedTriList",
54-
"TriangleDataContainer/SharedVertexList",
53+
"TriangleDataContainer/Shared Faces List",
54+
"TriangleDataContainer/Shared Vertex List",
5555
"TriangleDataContainer/Face Data",
5656
"TriangleDataContainer/Vertex Data",
5757
"TriangleDataContainer/Vertex Data/NodeType",

src/Plugins/OrientationAnalysis/pipelines/EBSD SurfaceMeshing/(03) Small IN100 Mesh Statistics.d3dpipeline

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@
5050
"DataContainer/Cell Feature Data/SlipSystems",
5151
"DataContainer/Cell Feature Data/SurfaceAreaVolumeRatio",
5252
"TriangleDataContainer",
53-
"TriangleDataContainer/SharedTriList",
54-
"TriangleDataContainer/SharedVertexList",
53+
"TriangleDataContainer/Shared Faces List",
54+
"TriangleDataContainer/Shared Vertex List",
5555
"TriangleDataContainer/Face Data",
5656
"TriangleDataContainer/Vertex Data",
5757
"TriangleDataContainer/Vertex Data/NodeType",
5858
"TriangleDataContainer/Face Data/FaceLabels",
5959
"TriangleDataContainer/QM Face Feature Data",
60-
"TriangleDataContainer/Edge List"
60+
"TriangleDataContainer/Shared Edge List"
6161
],
6262
"file_path": "Data/Output/SurfaceMesh/SmallIN100_Smoothed.dream3d"
6363
},

src/Plugins/OrientationAnalysis/pipelines/EBSD SurfaceMeshing/(04) Small IN100 GBCD.d3dpipeline

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@
5050
"DataContainer/Cell Feature Data/SlipSystems",
5151
"DataContainer/Cell Feature Data/SurfaceAreaVolumeRatio",
5252
"TriangleDataContainer",
53-
"TriangleDataContainer/SharedTriList",
54-
"TriangleDataContainer/SharedVertexList",
53+
"TriangleDataContainer/Shared Faces List",
54+
"TriangleDataContainer/Shared Vertex List",
5555
"TriangleDataContainer/Face Data",
5656
"TriangleDataContainer/Vertex Data",
5757
"TriangleDataContainer/Vertex Data/NodeType",
5858
"TriangleDataContainer/Face Data/FaceLabels",
5959
"TriangleDataContainer/QM Face Feature Data",
60-
"TriangleDataContainer/Edge List",
60+
"TriangleDataContainer/Shared Edge List",
6161
"TriangleDataContainer/Face Data/FaceAreas",
6262
"TriangleDataContainer/Face Data/FaceNormals",
6363
"TriangleDataContainer/Face Data/FaceDihedralAngles",

src/Plugins/OrientationAnalysis/pipelines/EBSD SurfaceMeshing/(05) Small IN100 GBCD Metric.d3dpipeline

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,14 +50,14 @@
5050
"DataContainer/Cell Feature Data/SlipSystems",
5151
"DataContainer/Cell Feature Data/SurfaceAreaVolumeRatio",
5252
"TriangleDataContainer",
53-
"TriangleDataContainer/SharedTriList",
54-
"TriangleDataContainer/SharedVertexList",
53+
"TriangleDataContainer/Shared Faces List",
54+
"TriangleDataContainer/Shared Vertex List",
5555
"TriangleDataContainer/Face Data",
5656
"TriangleDataContainer/Vertex Data",
5757
"TriangleDataContainer/Vertex Data/NodeType",
5858
"TriangleDataContainer/Face Data/FaceLabels",
5959
"TriangleDataContainer/QM Face Feature Data",
60-
"TriangleDataContainer/Edge List",
60+
"TriangleDataContainer/Shared Edge List",
6161
"TriangleDataContainer/Face Data/FaceAreas",
6262
"TriangleDataContainer/Face Data/FaceNormals",
6363
"TriangleDataContainer/Face Data/FaceDihedralAngles",

src/Plugins/OrientationAnalysis/src/OrientationAnalysis/Filters/ComputeGBCDPoleFigureFilter.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Parameters ComputeGBCDPoleFigureFilter::parameters() const
7070
params.insertSeparator(Parameters::Separator{"Output Pole Figure"});
7171
params.insert(std::make_unique<DataGroupCreationParameter>(k_ImageGeometryName_Key, "Image Geometry", "The path to the created image geometry", DataPath({"GBCD Pole Figure"})));
7272
params.insert(std::make_unique<DataObjectNameParameter>(k_CellAttributeMatrixName_Key, "Cell Attribute Matrix Name", "The name of the cell attribute matrix for the created image geometry",
73-
ImageGeom::k_CellDataName));
73+
ImageGeom::k_CellAttributeMatrixName));
7474
params.insert(std::make_unique<DataObjectNameParameter>(k_CellIntensityArrayName_Key, "Cell MRD Array Name", "The name of the created cell intensity data array", "MRD"));
7575

7676
return params;

0 commit comments

Comments
 (0)