Skip to content

Comments

ENH: Move non-trivial Filter executeImpl() logic to Algorithm classes#1544

Open
imikejackson wants to merge 1 commit intodevelopfrom
topic/move_to_algorithm_classes
Open

ENH: Move non-trivial Filter executeImpl() logic to Algorithm classes#1544
imikejackson wants to merge 1 commit intodevelopfrom
topic/move_to_algorithm_classes

Conversation

@imikejackson
Copy link
Contributor

Issue #1284

Convert 24 filters to use the Algorithm class pattern by moving execute logic from Filter files into dedicated Algorithm classes. Each filter now extracts parameters into an InputValues struct and delegates to an Algorithm operator()(). This improves separation of concerns and follows the established codebase pattern.

Filters converted:

  • ChangeAngleRepresentation
  • ComputeFeatureNeighbors,
  • ComputeFeaturePhases,
  • ComputeFeaturePhasesBinary,
  • CopyFeatureArrayToElementArray,
  • CreateFeatureArrayFromElementArray,
  • CreateGeometry,
  • CropImageGeometry,
  • CropVertexGeometry,
  • ExtractPipelineToFile,
  • InitializeImageGeomCellData,
  • InterpolatePointCloudToRegularGrid,
  • MultiThresholdObjects,
  • ReadHDF5Dataset,
  • ReadTextDataArray,
  • RemoveFlaggedVertices,
  • ReverseTriangleWinding,
  • RobustAutomaticThreshold,
  • TriangleDihedralAngle,
  • TriangleNormal,
  • WriteASCIIData,
  • WriteBinaryData,
  • WriteDREAM3D,
  • WriteFeatureDataCSV

@imikejackson imikejackson force-pushed the topic/move_to_algorithm_classes branch 4 times, most recently from 4f321d4 to d9fee72 Compare February 24, 2026 17:51
…1284)

Convert 24 filters to use the Algorithm class pattern by moving execute
logic from Filter files into dedicated Algorithm classes. Each filter now
extracts parameters into an InputValues struct and delegates to an
Algorithm operator()(). This improves separation of concerns and follows
the established codebase pattern.

Filters converted: ChangeAngleRepresentation, ComputeFeatureNeighbors,
ComputeFeaturePhases, ComputeFeaturePhasesBinary,
CopyFeatureArrayToElementArray, CreateFeatureArrayFromElementArray,
CreateGeometry, CropImageGeometry, CropVertexGeometry,
ExtractPipelineToFile, InitializeImageGeomCellData,
InterpolatePointCloudToRegularGrid, MultiThresholdObjects, ReadHDF5Dataset,
ReadTextDataArray, RemoveFlaggedVertices, ReverseTriangleWinding,
RobustAutomaticThreshold, TriangleDihedralAngle, TriangleNormal,
WriteASCIIData, WriteBinaryData, WriteDREAM3D, WriteFeatureDataCSV

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@imikejackson imikejackson force-pushed the topic/move_to_algorithm_classes branch from d9fee72 to 6e7d884 Compare February 24, 2026 17:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant