-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
21 changed files
with
197 additions
and
132 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
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
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
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
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
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
30 changes: 30 additions & 0 deletions
30
Source/PCGExtendedToolkit/Public/Graph/Edges/Refining/PCGExEdgeRefineKeepByFilter.h
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright Timothé Lapetite 2024 | ||
// Released under the MIT license https://opensource.org/license/MIT/ | ||
|
||
#pragma once | ||
|
||
#include "CoreMinimal.h" | ||
#include "PCGExEdgeRefineOperation.h" | ||
#include "PCGExEdgeRefineKeepByFilter.generated.h" | ||
|
||
namespace PCGExCluster | ||
{ | ||
struct FNode; | ||
} | ||
|
||
/** | ||
* | ||
*/ | ||
UCLASS(MinimalAPI, BlueprintType, meta=(DisplayName="Keep by Filter")) | ||
class /*PCGEXTENDEDTOOLKIT_API*/ UPCGExEdgeKeepByFilter : public UPCGExEdgeRefineOperation | ||
{ | ||
GENERATED_BODY() | ||
|
||
public: | ||
virtual bool RequiresIndividualEdgeProcessing() override { return true; } | ||
|
||
virtual void ProcessEdge(PCGExGraph::FIndexedEdge& Edge) override | ||
{ | ||
FPlatformAtomics::InterlockedExchange(&Edge.bValid, *(EdgesFilters->GetData() + Edge.EdgeIndex) ? 0 : 1); | ||
} | ||
}; |
31 changes: 31 additions & 0 deletions
31
Source/PCGExtendedToolkit/Public/Graph/Edges/Refining/PCGExEdgeRefineRemoveByFilter.h
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright Timothé Lapetite 2024 | ||
// Released under the MIT license https://opensource.org/license/MIT/ | ||
|
||
#pragma once | ||
|
||
#include "CoreMinimal.h" | ||
#include "PCGExEdgeRefineOperation.h" | ||
#include "PCGExEdgeRefineRemoveByFilter.generated.h" | ||
|
||
namespace PCGExCluster | ||
{ | ||
struct FNode; | ||
} | ||
|
||
/** | ||
* | ||
*/ | ||
UCLASS(MinimalAPI, BlueprintType, meta=(DisplayName="Remove by Filter")) | ||
class /*PCGEXTENDEDTOOLKIT_API*/ UPCGExEdgeRemoveByFilter : public UPCGExEdgeRefineOperation | ||
{ | ||
GENERATED_BODY() | ||
|
||
public: | ||
virtual bool RequiresIndividualEdgeProcessing() override { return true; } | ||
|
||
virtual void ProcessEdge(PCGExGraph::FIndexedEdge& Edge) override | ||
{ | ||
FPlatformAtomics::InterlockedExchange(&Edge.bValid, *(EdgesFilters->GetData() + Edge.EdgeIndex) ? 1 : 0); | ||
} | ||
|
||
}; |
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
Oops, something went wrong.