PeriDyno 1.0.0
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
VtkVisualModule.h
Go to the documentation of this file.
1
16
17#pragma once
18
19#include <Module/VisualModule.h>
20
21#include <vtkTimeStamp.h>
22
23class vtkActor;
24class vtkVolume;
25
26namespace dyno
27{
29 {
30 public:
32 virtual ~VtkVisualModule();
33
34 void setColor(float r, float g, float b, float a = 1.f);
35
36 vtkActor* getActor();
37 vtkVolume* getVolume();
38
39
40 virtual void display() final;
41 virtual void updateRenderingContext() final;
42
43 bool isDirty(bool update = true);
44
45 protected:
46
47 vtkActor* m_actor = NULL;
48 vtkVolume* m_volume = NULL;
49
50 // timestamp for data sync
51 vtkTimeStamp m_sceneTime;
52 vtkTimeStamp m_updateTime;
53 };
54};
void update()
Definition Module.cpp:47
virtual void display() final
virtual void updateRenderingContext() final
void setColor(float r, float g, float b, float a=1.f)
bool isDirty(bool update=true)
This is an implementation of AdditiveCCD based on peridyno.
Definition Array.h:25