refactor of VtkCallbackCommand to be its' own class

This commit is contained in:
djaidjai committed 2024-05-03 15:23:34 +02:00
1 parent b83f49b4ad
commit da17aa5cfa
10 files changed
+142 -20

No files matched your search

+22
View File
@@ -0,0 +1,22 @@
#ifndef TIMERCALLBACKCOMMAND_H
#define TIMERCALLBACKCOMMAND_H
#include <vtkCallbackCommand.h>
#include "../helperClasses/Program.h"
class TimerCallbackCommand : public vtkCallbackCommand {
public:
TimerCallbackCommand();
static TimerCallbackCommand* New(Program *program);
void Execute(vtkObject* caller, unsigned long eventId, void* vtkNotUsed(callData)) override;
void setProgram(Program *program);
private:
int time;
int dt;
int maxTime;
Program *program;
};
#endif
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.