Flow Visualisation
TimeField.h
Go to the documentation of this file.
1 //
2 // TimeField.h
3 // flowviz
4 //
5 // Created by Johann Götz on 07.06.15.
6 // Copyright (c) 2015 Johann Götz. All rights reserved.
7 //
8 
9 #ifndef __flowviz__TimeField__
10 #define __flowviz__TimeField__
11 
12 #include <stdio.h>
13 #include <vector>
14 
15 #include "FlowField.h"
16 
17 namespace flowiz
18 {
19 
25  class TimeField
26  {
27  private:
28  int m_timesteps;
29  int m_sizeX;
30  int m_sizeY;
31  std::vector<FlowField> m_field;
32 
33  public:
34  TimeField() : m_timesteps(0), m_field() {}
35 
36  int get_timesteps() { return m_timesteps; }
37  void set_timesteps(int timesteps) { m_timesteps = timesteps; }
38 
39  int get_sizeX() { return m_sizeX; }
40  void set_sizeX(int sizeX) { m_sizeX = sizeX; }
41 
42  int get_sizeY() { return m_sizeY; }
43  void set_sizeY(int sizeY) { m_sizeY = sizeY; }
44 
45  std::vector<FlowField>& get_field() { return m_field; }
46  };
47 }
48 
49 #endif /* defined(__flowviz__TimeField__) */
TimeField()
Definition: TimeField.h:34
int get_timesteps()
Definition: TimeField.h:36
void set_timesteps(int timesteps)
Definition: TimeField.h:37
std::vector< FlowField > & get_field()
Definition: TimeField.h:45
void set_sizeY(int sizeY)
Definition: TimeField.h:43
Represents a timebased vector filed The vector fields are stored as.
Definition: TimeField.h:25
int get_sizeY()
Definition: TimeField.h:42
int get_sizeX()
Definition: TimeField.h:39
Definition: DistanceMap.h:16
void set_sizeX(int sizeX)
Definition: TimeField.h:40