forked from BlueQuartzSoftware/DREAM3D
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Michael Jackson <[email protected]>
- Loading branch information
1 parent
7ae637f
commit ec4aa27
Showing
6 changed files
with
65 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
#include "@[email protected]" | ||
|
||
#include "complex/DataStructure/DataArray.hpp" | ||
#include "complex/DataStructure/DataGroup.hpp" | ||
#include "simplnx/DataStructure/DataArray.hpp" | ||
#include "simplnx/DataStructure/DataGroup.hpp" | ||
|
||
using namespace complex; | ||
using namespace nx::core; | ||
|
||
// ----------------------------------------------------------------------------- | ||
@FILTER_NAME@::@FILTER_NAME@(DataStructure& dataStructure, const IFilter::MessageHandler& mesgHandler, const std::atomic_bool& shouldCancel, @FILTER_NAME@InputValues* inputValues) | ||
|
@@ -34,7 +34,7 @@ Result<> @FILTER_NAME@::operator()() | |
* GenerateIPFColors is one example | ||
* | ||
* If you need to determine what kind of array you have (Int32Array, Float32Array, etc) | ||
* look to the ExecuteDataFunction() in complex/Utilities/FilterUtilities.hpp template | ||
* look to the ExecuteDataFunction() in simplnx/Utilities/FilterUtilities.hpp template | ||
* function to help with that code. | ||
* An Example algorithm class is `CombineAttributeArrays` and `RemoveFlaggedVertices` | ||
* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,12 @@ | |
|
||
#include "@PLUGIN_NAME@/Filters/Algorithms/@[email protected]" | ||
|
||
#include "complex/DataStructure/DataPath.hpp" | ||
#include "complex/Filter/Actions/EmptyAction.hpp" | ||
#include "simplnx/DataStructure/DataPath.hpp" | ||
#include "simplnx/Filter/Actions/EmptyAction.hpp" | ||
@PARAMETER_INCLUDES@ | ||
using namespace complex; | ||
using namespace nx::core; | ||
|
||
namespace complex | ||
namespace nx::core | ||
{ | ||
//------------------------------------------------------------------------------ | ||
std::string @FILTER_NAME@::name() const | ||
|
@@ -92,7 +92,7 @@ IFilter::PreflightResult @FILTER_NAME@::preflightImpl(const DataStructure& dataS | |
// If your filter is making structural changes to the DataStructure then the filter | ||
// is going to create OutputActions subclasses that need to be returned. This will | ||
// store those actions. | ||
complex::Result<OutputActions> resultOutputActions; | ||
nx::core::Result<OutputActions> resultOutputActions; | ||
|
||
// If your filter is going to pass back some `preflight updated values` then this is where you | ||
// would create the code to store those values in the appropriate object. Note that we | ||
|
@@ -133,4 +133,29 @@ Result<> @FILTER_NAME@::executeImpl(DataStructure& dataStructure, const Argument | |
|
||
return @ALGORITHM_NAME@(dataStructure, messageHandler, shouldCancel, &inputValues)(); | ||
} | ||
} // namespace complex | ||
|
||
namespace | ||
{ | ||
namespace SIMPL | ||
{ | ||
@PARAMETER_JSON_CONSTANTS@ | ||
} // namespace SIMPL | ||
} // namespace | ||
|
||
|
||
//------------------------------------------------------------------------------ | ||
Result<Arguments> @FILTER_NAME@::FromSIMPLJson(const nlohmann::json& json) | ||
{ | ||
Arguments args = @FILTER_NAME@().getDefaultArguments(); | ||
|
||
std::vector<Result<>> results; | ||
|
||
@PARAMETER_JSON_CONVERSION@ | ||
|
||
Result<> conversionResult = MergeResults(std::move(results)); | ||
|
||
return ConvertResultTo<Arguments>(std::move(conversionResult), std::move(args)); | ||
} | ||
|
||
|
||
} // namespace nx::core |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ | |
#include "@PLUGIN_NAME@/Filters/@[email protected]" | ||
#include "@PLUGIN_NAME@/@PLUGIN_NAME@_test_dirs.hpp" | ||
|
||
using namespace complex; | ||
using namespace nx::core; | ||
|
||
TEST_CASE("@PLUGIN_NAME@::@FILTER_NAME@: Valid Filter Execution","[@PLUGIN_NAME@][@FILTER_NAME@][.][UNIMPLEMENTED][!mayfail]") | ||
{ | ||
|