Skip to content

Commit

Permalink
SIMPLNxCore filters (2)
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Jackson <[email protected]>
  • Loading branch information
imikejackson committed Apr 28, 2024
1 parent 5abf352 commit c5bb80f
Show file tree
Hide file tree
Showing 105 changed files with 698 additions and 692 deletions.
2 changes: 1 addition & 1 deletion pipelines/Combo-EBSD-osc_r0c0.d3dpipeline
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::FindNeighbors",
"name": "simplnx::FindNeighborsFilter",
"uuid": "7177e88c-c3ab-4169-abe9-1fdaff20e598"
},
"isDisabled": false
Expand Down
4 changes: 2 additions & 2 deletions pipelines/PorosityAnalysis.d3dpipeline
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::CopyFeatureArrayToElementArray",
"name": "simplnx::CopyFeatureArrayToElementArrayFilter",
"uuid": "4c8c976a-993d-438b-bd8e-99f71114b9a1"
},
"isDisabled": false
Expand All @@ -129,7 +129,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::CreateDataArray",
"name": "simplnx::CreateDataArrayFilter",
"uuid": "67041f9b-bdc6-4122-acc6-c9fe9280e90d"
},
"isDisabled": false
Expand Down
2 changes: 1 addition & 1 deletion scripts/generate_simpl_conversion_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def create_filter_conversion(simpl_filter: SIMPLFilterInfo, complex_filter_name:
converter_code.append('\n')
converter_code.append(f'Result<Arguments> {complex_filter_name}::FromSIMPLJson(const nlohmann::json& json)\n')
converter_code.append('{\n')
converter_code.append(' Arguments args = CreateDataArray().getDefaultArguments();\n')
converter_code.append(' Arguments args = CreateDataArrayFilter().getDefaultArguments();\n')
converter_code.append('\n')
converter_code.append(' std::vector<Result<>> results;\n')
converter_code.append('\n')
Expand Down
16 changes: 8 additions & 8 deletions scripts/simpl_filters.json
Original file line number Diff line number Diff line change
Expand Up @@ -1135,7 +1135,7 @@
"uuid": "{6cc3148c-0bad-53b4-9568-ee1971cadb00}"
},
{
"name": "FindNeighborListStatistics",
"name": "FindNeighborListStatisticsFilter",
"parameters": [
{
"name": "FindLength",
Expand Down Expand Up @@ -2371,7 +2371,7 @@
"uuid": "{5a2b714e-bae9-5213-8171-d1e190609e2d}"
},
{
"name": "RemoveFlaggedVertices",
"name": "RemoveFlaggedVerticesFilter",
"parameters": [
{
"name": "VertexGeometry",
Expand All @@ -2389,7 +2389,7 @@
"uuid": "{379ccc67-16dd-530a-984f-177db2314bac}"
},
{
"name": "RobustAutomaticThreshold",
"name": "RobustAutomaticThresholdFilter",
"parameters": [
{
"name": "InputArrayPath",
Expand Down Expand Up @@ -8983,7 +8983,7 @@
"uuid": "{697ed3de-db33-5dd1-a64b-04fb71e7d63e}"
},
{
"name": "FindNeighbors",
"name": "FindNeighborsFilter",
"parameters": [
{
"name": "StoreBoundaryCells",
Expand Down Expand Up @@ -11707,7 +11707,7 @@
"uuid": "{f4ba5fa4-bb5c-5dd1-9429-0dd86d0ecb37}"
},
{
"name": "CopyFeatureArrayToElementArray",
"name": "CopyFeatureArrayToElementArrayFilter",
"parameters": [
{
"name": "",
Expand Down Expand Up @@ -11781,7 +11781,7 @@
"uuid": "{93375ef0-7367-5372-addc-baa019b1b341}"
},
{
"name": "CreateDataArray",
"name": "CreateDataArrayFilter",
"parameters": [
{
"name": "ScalarType",
Expand Down Expand Up @@ -11825,7 +11825,7 @@
"uuid": "{816fbe6b-7c38-581b-b149-3f839fb65b93}"
},
{
"name": "CreateFeatureArrayFromElementArray",
"name": "CreateFeatureArrayFromElementArrayFilter",
"parameters": [
{
"name": "",
Expand Down Expand Up @@ -12491,7 +12491,7 @@
"uuid": "{34a19028-c50b-5dea-af0e-e06c798d3686}"
},
{
"name": "MoveData",
"name": "MoveDataFilter",
"parameters": [
{
"name": "WhatToMove",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::CopyFeatureArrayToElementArray",
"name": "simplnx::CopyFeatureArrayToElementArrayFilter",
"uuid": "4c8c976a-993d-438b-bd8e-99f71114b9a1"
},
"isDisabled": false
Expand All @@ -131,7 +131,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::CreateDataArray",
"name": "simplnx::CreateDataArrayFilter",
"uuid": "67041f9b-bdc6-4122-acc6-c9fe9280e90d"
},
"isDisabled": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@
},
"comments": "",
"filter": {
"name": "nx::core::FindNeighbors",
"name": "simplnx::FindNeighborsFilter",
"uuid": "7177e88c-c3ab-4169-abe9-1fdaff20e598"
},
"isDisabled": false
Expand Down Expand Up @@ -331,7 +331,7 @@
},
"comments": "",
"filter": {
"name": "nx::core::FindNeighbors",
"name": "simplnx::FindNeighborsFilter",
"uuid": "7177e88c-c3ab-4169-abe9-1fdaff20e598"
},
"isDisabled": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"surface_features_name": "SurfaceFeatures"
},
"filter": {
"name": "simplnx::FindNeighbors",
"name": "simplnx::FindNeighborsFilter",
"uuid": "7177e88c-c3ab-4169-abe9-1fdaff20e598"
},
"isDisabled": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::FindNeighbors",
"name": "simplnx::FindNeighborsFilter",
"uuid": "7177e88c-c3ab-4169-abe9-1fdaff20e598"
},
"isDisabled": false
Expand Down Expand Up @@ -397,7 +397,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::FindNeighbors",
"name": "simplnx::FindNeighborsFilter",
"uuid": "7177e88c-c3ab-4169-abe9-1fdaff20e598"
},
"isDisabled": false
Expand Down Expand Up @@ -580,7 +580,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::FindNeighbors",
"name": "simplnx::FindNeighborsFilter",
"uuid": "7177e88c-c3ab-4169-abe9-1fdaff20e598"
},
"isDisabled": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::MoveData",
"name": "simplnx::MoveDataFilter",
"uuid": "651e5894-ab7c-4176-b7f0-ea466c521753"
},
"isDisabled": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::CreateDataArray",
"name": "simplnx::CreateDataArrayFilter",
"uuid": "67041f9b-bdc6-4122-acc6-c9fe9280e90d"
},
"isDisabled": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::FindNeighbors",
"name": "simplnx::FindNeighborsFilter",
"uuid": "7177e88c-c3ab-4169-abe9-1fdaff20e598"
},
"isDisabled": false
Expand Down Expand Up @@ -653,7 +653,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::FindNeighbors",
"name": "simplnx::FindNeighborsFilter",
"uuid": "7177e88c-c3ab-4169-abe9-1fdaff20e598"
},
"isDisabled": false
Expand Down Expand Up @@ -836,7 +836,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::FindNeighbors",
"name": "simplnx::FindNeighborsFilter",
"uuid": "7177e88c-c3ab-4169-abe9-1fdaff20e598"
},
"isDisabled": false
Expand Down Expand Up @@ -1094,7 +1094,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::MoveData",
"name": "simplnx::MoveDataFilter",
"uuid": "651e5894-ab7c-4176-b7f0-ea466c521753"
},
"isDisabled": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ enum class RotationRepresentation : uint64_t

} // namespace RotateSampleRefFrame

namespace RenameDataObject
namespace RenameDataObjectFilter
{
static inline constexpr nx::core::StringLiteral k_DataObject_Key = "data_object";
static inline constexpr nx::core::StringLiteral k_NewName_Key = "new_name";
} // namespace RenameDataObject
} // namespace RenameDataObjectFilter

namespace DeleteDataFilter
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const FilterHandle k_ReadTextDataArrayFilterHandle(k_ReadTextDataArrayFilterId,
// Make sure we can instantiate the Read DREAM3D Data File
const Uuid k_ReadDREAM3DFilterId = *Uuid::FromString("0dbd31c7-19e0-4077-83ef-f4a6459a0e2d");
const FilterHandle k_ReadDREAM3DFilterHandle(k_ReadDREAM3DFilterId, k_SimplnxCorePluginId);
// Make sure we can instantiate the Read RenameDataObject
// Make sure we can instantiate the Read RenameDataObjectFilter
const Uuid k_RenameDataObjectFilterId = *Uuid::FromString("911a3aa9-d3c2-4f66-9451-8861c4b726d5");
const FilterHandle k_RenameDataObjectFilterHandle(k_RenameDataObjectFilterId, k_SimplnxCorePluginId);
// Make sure we can instantiate the Crop Image Geometry
Expand Down
20 changes: 10 additions & 10 deletions src/Plugins/SimplnxCore/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ set(FilterList
ConvertColorToGrayScaleFilter
ConvertDataFilter
CopyDataObjectFilter
CopyFeatureArrayToElementArray
CopyFeatureArrayToElementArrayFilter
CreateAttributeMatrixFilter
CreateDataArray
CreateDataArrayFilter
CreateDataGroupFilter
CreateFeatureArrayFromElementArray
CreateFeatureArrayFromElementArrayFilter
CreateGeometryFilter
CreateImageGeometryFilter
CropImageGeometryFilter
Expand Down Expand Up @@ -59,8 +59,8 @@ set(FilterList
FindFeaturePhasesFilter
FindLargestCrossSectionsFilter
FindNeighborhoodsFilter
FindNeighborListStatistics
FindNeighbors
FindNeighborListStatisticsFilter
FindNeighborsFilter
FindNumFeaturesFilter
FindSurfaceAreaToVolumeFilter
FindSurfaceFeaturesFilter
Expand All @@ -83,7 +83,7 @@ set(FilterList
LaplacianSmoothingFilter
MapPointCloudToRegularGridFilter
MinNeighborsFilter
MoveData
MoveDataFilter
MultiThresholdObjectsFilter
NearestPointFuseRegularGridsFilter
PartitionGeometryFilter
Expand All @@ -93,22 +93,22 @@ set(FilterList
ReadCSVFileFilter
ReadDeformKeyFileV12Filter
ReadDREAM3DFilter
ReadHDF5Dataset
ReadHDF5DatasetFilter
ReadRawBinaryFilter
ReadStlFileFilter
ReadTextDataArrayFilter
ReadVolumeGraphicsFileFilter
RegularGridSampleSurfaceMeshFilter
RemoveFlaggedFeaturesFilter
RemoveFlaggedTrianglesFilter
RemoveFlaggedVertices
RemoveFlaggedVerticesFilter
RemoveMinimumSizeFeaturesFilter
RenameDataObject
RenameDataObjectFilter
ReplaceElementAttributesWithNeighborValuesFilter
ResampleImageGeomFilter
ResampleRectGridToImageGeomFilter
ReverseTriangleWindingFilter
RobustAutomaticThreshold
RobustAutomaticThresholdFilter
RotateSampleRefFrameFilter
ScalarSegmentFeaturesFilter
SetImageGeomOriginScalingFilter
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::CreateDataArray",
"name": "simplnx::CreateDataArrayFilter",
"uuid": "67041f9b-bdc6-4122-acc6-c9fe9280e90d"
},
"isDisabled": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::CreateDataArray",
"name": "simplnx::CreateDataArrayFilter",
"uuid": "67041f9b-bdc6-4122-acc6-c9fe9280e90d"
},
"isDisabled": false
Expand All @@ -35,7 +35,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::CreateDataArray",
"name": "simplnx::CreateDataArrayFilter",
"uuid": "67041f9b-bdc6-4122-acc6-c9fe9280e90d"
},
"isDisabled": false
Expand All @@ -54,7 +54,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::CreateDataArray",
"name": "simplnx::CreateDataArrayFilter",
"uuid": "67041f9b-bdc6-4122-acc6-c9fe9280e90d"
},
"isDisabled": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::FindNeighbors",
"name": "simplnx::FindNeighborsFilter",
"uuid": "7177e88c-c3ab-4169-abe9-1fdaff20e598"
},
"isDisabled": false
Expand Down
2 changes: 1 addition & 1 deletion src/Plugins/SimplnxCore/pipelines/Import_ASCII.d3dpipeline
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
},
"comments": "",
"filter": {
"name": "complex::CreateDataArray",
"name": "complex::CreateDataArrayFilter",
"uuid": "67041f9b-bdc6-4122-acc6-c9fe9280e90d"
},
"isDisabled": false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::CreateDataArray",
"name": "simplnx::CreateDataArrayFilter",
"uuid": "67041f9b-bdc6-4122-acc6-c9fe9280e90d"
},
"isDisabled": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::FindNeighbors",
"name": "simplnx::FindNeighborsFilter",
"uuid": "7177e88c-c3ab-4169-abe9-1fdaff20e598"
},
"isDisabled": false
Expand Down Expand Up @@ -352,7 +352,7 @@
},
"comments": "",
"filter": {
"name": "simplnx::FindNeighbors",
"name": "simplnx::FindNeighborsFilter",
"uuid": "7177e88c-c3ab-4169-abe9-1fdaff20e598"
},
"isDisabled": false
Expand Down
Loading

0 comments on commit c5bb80f

Please sign in to comment.