Flow Visualisation
FieldReader.h
Go to the documentation of this file.
1 //
2 // FieldReader.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__FieldReader__
10 #define __flowviz__FieldReader__
11 
12 #include <stdio.h>
13 #include "FlowField.h"
14 #include "TimeField.h"
15 
16 namespace flowiz
17 {
19  {
20  private:
21  static char *substring(char *buffer, int startindex, int length);
22  static void parseTimeField(FILE *file, TimeField *timeField);
23  static void parseVectorField(FILE *file, FlowField *flowField);
24  //static void parseRow(FILE *file, int row, FlowField *flowField);
25  static void parseVector(FILE *file, int row, int col, FlowField *flowField);
26 
27  public:
28  static bool readFlowField(char *filename, TimeField *timeField);
29 
30 
31  };
32 }
33 
34 #endif /* defined(__flowviz__FieldReader__) */
Represents a 2D vector field The vectors are stored inside two.
Definition: FlowField.h:30
Definition: FieldReader.h:18
static bool readFlowField(char *filename, TimeField *timeField)
Definition: FieldReader.cpp:22
Represents a timebased vector filed The vector fields are stored as.
Definition: TimeField.h:25
genType::row_type row(genType const &m, int index)
Definition: matrix_access.inl:47
Definition: DistanceMap.h:16
GLM_FUNC_DECL genType::value_type length(genType const &x)
Definition: func_geometric.inl:34