Commit ed809578 authored by Jan Kremer's avatar Jan Kremer
Browse files

Cleanup

parent 458d783d
......@@ -11,3 +11,5 @@
/Saved/Config/Windows/EditorPerProjectUserSettings.ini
/Intermediate/ProjectFiles
/Resources/*.h5part
/Content/Scripts/__pycache__
/enc_temp_folder
This diff is collapsed.
......@@ -6,6 +6,7 @@
#include "HDF5Library.h"
#include "Plot3D.h"
#include "PawnBase.h"
#include "Plot2D.h"
#include "Runtime/Engine/Classes/Engine/World.h"
#include "Runtime/Engine/Classes/Kismet/KismetMathLibrary.h"
#include "Runtime/Core/Public/Async/ParallelFor.h"
......@@ -326,8 +327,12 @@ void UDataComponent::BrushPoints(TArray<int32> BrushPoints, bool Add, bool Rebui
BrushPoint(BrushPoints[i], Add);
}
Cast<APawnBase>(GetOwner())->Plot3D->BrushPoints(BrushPoints, Rebuild);
// TODO For all 2D Plots
APawnBase* BasePawn = Cast<APawnBase>(GetOwner());
BasePawn->Plot3D->BrushPoints(BrushPoints, Rebuild);
for (APlot2D* Plot2D : BasePawn->Plots2D)
{
Plot2D->Redraw();
}
}
void UDataComponent::BrushPoint(int32 PointIndex, bool Add)
......@@ -348,8 +353,12 @@ void UDataComponent::ResetPoints(bool Rebuild)
BrushPoint(i, false);
}
Cast<APawnBase>(GetOwner())->Plot3D->ResetPoints(Rebuild);
// TODO For all 2D Plots
APawnBase* BasePawn = Cast<APawnBase>(GetOwner());
BasePawn->Plot3D->ResetPoints(Rebuild);
for (APlot2D* Plot2D : BasePawn->Plots2D)
{
Plot2D->Redraw();
}
}
// does not use the standard BrushPoints, for performance reasons
......@@ -375,6 +384,10 @@ void UDataComponent::InvertPoints(bool Rebuild)
}
});*/
Cast<APawnBase>(GetOwner())->Plot3D->InvertPoints(Rebuild);
// TODO For all 2D Plots
APawnBase* BasePawn = Cast<APawnBase>(GetOwner());
BasePawn->Plot3D->InvertPoints(Rebuild);
for (APlot2D* Plot2D : BasePawn->Plots2D)
{
Plot2D->Redraw();
}
}
\ No newline at end of file
......@@ -20,6 +20,9 @@ public:
UPROPERTY(EditAnywhere, BlueprintReadOnly)
APlot3D* Plot3D;
UPROPERTY(EditAnywhere, BlueprintReadOnly)
TArray<class APlot2D*> Plots2D;
UPROPERTY(Category = DataComponent, VisibleAnywhere, BlueprintReadOnly)
class UDataComponent* Data;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment