added new option to modulate brightness for LGlyphLayer

This commit is contained in:
djaidjai committed 2024-05-23 22:45:11 +02:00
1 parent 650a245f0a
commit e53a934212
7 files changed
+80 -9

No files matched your search

@@ -4,6 +4,7 @@
#include "Layer.h"
#include "../advection/kernel/AdvectionKernel.h"
#include "../commands/SpawnPointCallback.h"
#include <queue>
#include <vtkPolyData.h>
#include <vtkInteractorStyle.h>
@@ -16,10 +17,12 @@ private:
vtkSmartPointer<vtkPolyData> data;
vtkSmartPointer<vtkIntArray> particlesBeached;
vtkSmartPointer<vtkIntArray> particlesAge;
vtkSmartPointer<vtkPolyDataMapper> mapper;
std::unique_ptr<AdvectionKernel> advector;
std::shared_ptr<UVGrid> uvGrid;
int dt = 3600;
int beachedAtNumberOfTimes = 20;
std::queue<vtkSmartPointer<vtkLookupTable>> luts;
public:
/** Constructor.
@@ -41,6 +44,9 @@ public:
void addObservers(vtkSmartPointer<vtkRenderWindowInteractor> interactor) override;
/** This function cycles which lut is used for the layer, according to the lookuptables in the luts attribute.
*/
void cycleGlyphStyle();
/**
* Sets a custom DT value, needed for advect calls to the simulation logic.
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.