9 #ifndef GlobeEngine_ClimateViewerEngine_h
10 #define GlobeEngine_ClimateViewerEngine_h
17 #include "OpenGL_Includes.h"
93 void resize(
int _w,
int _h);
116 void direct(std::string _path);
119 std::shared_ptr<ge::Shader> programForUtilities;
120 std::shared_ptr<ge::Shader> programForArrows;
121 std::shared_ptr<ge::Shader> programForStreamlines;
122 std::shared_ptr<ge::Shader> programForStreamlinesRandom;
123 std::shared_ptr<ge::Shader> programForSpheres;
124 std::shared_ptr<ge::Shader> programForDebug;
125 std::shared_ptr<ge::Shader> programForCube;
126 std::shared_ptr<ge::Shader> programForPlanes;
127 std::shared_ptr<ge::Shader> programForMultiline;
133 std::shared_ptr<ge::Plane> plane;
134 std::shared_ptr<ge::Sphere> sphere;
135 std::shared_ptr<ge::Texture2Drgba> spheretex;
136 std::shared_ptr<ge::Cube> testCube;
137 std::vector<std::shared_ptr<geFlow::ArrowField>> arrowFields;
138 std::shared_ptr<geFlow::ArrowField> arrowFieldDeriv;
139 std::vector<std::shared_ptr<Streamlines>> streamlinesRandom;
157 std::string sceneFilePath;
159 std::vector<std::shared_ptr<VectorField> > climateData;
160 std::vector<std::shared_ptr< ge::Sphere> > criticalPointsSpheres;
161 std::vector<vmml::Vector3f> seedPoints;
164 std::shared_ptr<geFlow::WeatherData> data;
166 std::string shaderpath;
void loadData()
Definition: ClimateViewerEngine.cpp:437
int seedsNumber
Definition: ClimateViewerEngine.h:50
bool drawTopo
Definition: ClimateViewerEngine.h:56
float arrowsLength
Definition: ClimateViewerEngine.h:67
void play()
Definition: ClimateViewerEngine.cpp:502
int sizeX
Definition: ClimateViewerEngine.h:64
float sphereSize
Definition: ClimateViewerEngine.h:72
Definition: MemoryState.h:16
void createArrowsFromClimateData(std::shared_ptr< VectorField > _data)
Definition: ClimateViewerEngine.cpp:473
float topologyDt
Definition: ClimateViewerEngine.h:68
int y
Definition: ClimateViewerEngine.h:63
UISettings uiSettings
Definition: ClimateViewerEngine.h:105
int activePoint
Definition: ClimateViewerEngine.h:58
void updateFramebufferStandardID()
Definition: ClimateViewerEngine.cpp:190
int colormap
Definition: ClimateViewerEngine.h:71
Definition: DebugMap.h:18
Definition: DebugLogger.h:22
Definition: PolyLineExt.h:18
void clear()
Definition: ClimateViewerEngine.cpp:17
Definition: FrameBufferObject.h:20
void create()
Definition: ClimateViewerEngine.cpp:36
float minDistance
Definition: ClimateViewerEngine.h:52
int lineLength
Definition: ClimateViewerEngine.h:42
float bgr
Definition: ClimateViewerEngine.h:73
void createStreamlinesRandom()
Definition: ClimateViewerEngine.cpp:316
int timeStepFrom
Definition: ClimateViewerEngine.h:75
void saveCurrentStateToSHP(std::string _path)
Definition: ClimateViewerEngine.cpp:367
float dt
Definition: ClimateViewerEngine.h:51
Definition: ClimateViewerUI.h:22
void drawScene()
Definition: ClimateViewerEngine.cpp:145
bool checkMinDistance
Definition: ClimateViewerEngine.h:54
float bgb
Definition: ClimateViewerEngine.h:73
void setUi(ClimateViewerUI *_ui)
Definition: ClimateViewerEngine.cpp:498
void updateUiSettings(UISettings _newSettings)
Definition: ClimateViewerEngine.cpp:232
bool drawRandom
Definition: ClimateViewerEngine.h:55
bool showvector
Definition: ClimateViewerEngine.h:53
int currTimestep
Definition: ClimateViewerEngine.h:74
Definition: ClimateViewerEngine.h:48
int sizeY
Definition: ClimateViewerEngine.h:65
Definition: ClimateViewerComposition.h:15
void resize(int _w, int _h)
Definition: ClimateViewerEngine.cpp:177
Definition: ClimateViewerEngine.h:40
void direct(std::string _path)
Definition: ClimateViewerEngine.cpp:531
int sizeZ
Definition: ClimateViewerEngine.h:66
void saveStreamlinesToSHP(std::string _path)
Definition: ClimateViewerEngine.cpp:512
void initializeScene(std::string _projectsrcPath=0)
Definition: ClimateViewerEngine.cpp:41
void calculateTopology()
Definition: ClimateViewerEngine.cpp:373
bool checkMinDistance
Definition: ClimateViewerEngine.h:45
Definition: ClimateViewerEngine.h:80
void update()
Definition: ClimateViewerEngine.cpp:134
int timeStepTo
Definition: ClimateViewerEngine.h:75
int x
Definition: ClimateViewerEngine.h:62
void createStreamlines()
Definition: ClimateViewerEngine.cpp:200
bool showperp
Definition: ClimateViewerEngine.h:61
int lineLength
Definition: ClimateViewerEngine.h:49
void progress(int _p)
Definition: ClimateViewerEngine.cpp:524
Definition: SceneStateSet.h:41
Definition: ClimateViewerComposition.h:13
float simpEpsilon
Definition: ClimateViewerEngine.h:70
~ClimateViewerEngine()
Definition: ClimateViewerEngine.cpp:13
float dt
Definition: ClimateViewerEngine.h:43
int activeRegion
Definition: ClimateViewerEngine.h:59
int seeds
Definition: ClimateViewerEngine.h:41
void highlightStreamline()
Definition: ClimateViewerEngine.cpp:278
int lineSteps
Definition: ClimateViewerEngine.h:57
void calculatePerpLines()
Definition: ClimateViewerEngine.cpp:407
void saveTopologyToSHP(std::string _path)
Definition: ClimateViewerEngine.cpp:518
float bgg
Definition: ClimateViewerEngine.h:73
ClimateViewerEngine(std::string _sceneFilePath)
Definition: ClimateViewerEngine.cpp:7
void destroy()
Definition: ClimateViewerEngine.cpp:31
Definition: CoordinateSystem.h:17
float topologyPerpDt
Definition: ClimateViewerEngine.h:69
int activeStreamline
Definition: ClimateViewerEngine.h:60
float minDistance
Definition: ClimateViewerEngine.h:44