1 #ifndef GPMG_MovieGraphWindow_H
2 #define GPMG_MovieGraphWindow_H
4 #include "GUI2D_Window.h"
5 #include "GUI_ChildWindow.h"
9 #include "GUI2D_MenuPanel.h"
54 static inline SP::GPMG_MovieGraphWindow
New() {
62 GUI_ChildWindow::toDoAfterThisSetting();
71 GUI2D_MenuPanel *menuPanel=
dynamic_cast<GUI2D_MenuPanel*
>(getMenuPanel());
72 if (menuPanel!=
null) {
73 if (v) menuPanel->enableMoveInButton();
74 else menuPanel->disableMoveInButton();
107 const tReal minPoint[3],
108 const tReal maxPoint[3],
109 const map<tString,tReal*>& bounds) {
189 void initComponents();
void stop()
stop
Definition: GPMG_MovieGraphWindow.h:155
virtual void saveToUIClass(UI_Class &mclass) const
how to save the object from a mate model class
Definition: GPMG_MovieGraphWindow.cpp:77
virtual void resetSelectedObjects()
reset the selected objects
Definition: GPMG_MovieGraphWindow.h:82
void goToFirst()
go to first graph
Definition: GPMG_MovieGraphDrawPanel.h:241
void goToLast()
go to last graph
Definition: GPMG_MovieGraphDrawPanel.h:250
DEFINE_SPTR(GPMG_MovieGraphWindow)
virtual void setIsMovingEnabled(const tBoolean &v)
set if the moving drawing area is enabled
Definition: GPMG_MovieGraphWindow.h:70
void goToFirst()
go to first action
Definition: GPMG_MovieGraphWindow.h:129
This class describes a model graph.
Definition: GPM_ModelGraph.h:21
void addGraph(const GPM_ModelGraph &graph, const tString &file, const tReal minPoint[3], const tReal maxPoint[3], const map< tString, tReal * > &bounds)
add graph.
Definition: GPMG_MovieGraphDrawPanel.cpp:111
#define tBoolean
Definition: types.h:35
virtual void loadFromUIClass(const UI_Class &mclass)
how to load the object from a Meta Model class
Definition: GPMG_MovieGraphWindow.cpp:73
void record()
record
Definition: GPMG_MovieGraphWindow.h:160
#define null
Definition: types.h:13
virtual const GUI2D_DrawPanel * getDrawPanel() const
Definition: GPMG_MovieGraphWindow.cpp:54
void play()
play
Definition: GPMG_MovieGraphWindow.h:150
this class describes a interface for graph windows
Definition: GPMG_GraphWindowInterface.h:12
const tReal * getMinPoint() const
get the min point of the graphs
Definition: GPMG_Project.h:243
void setGraphFiles(const vector< tString > &files, const tReal minPoint[3], const tReal maxPoint[3], const map< tString, tReal * > &bounds)
set the graph files
Definition: GPMG_MovieGraphDrawPanel.h:96
GPMG_MovieGraphWindow()
build a GPMG_MovieGraphWindow
Definition: GPMG_MovieGraphWindow.cpp:14
this class describes the root panel of the graph window
Definition: GPMG_GraphPanel.h:17
void stop()
play the graphs
Definition: GPMG_MovieGraphDrawPanel.cpp:671
const vector< tString > & getResultGraphFiles() const
get the result graph files
Definition: GPMG_Project.h:361
void addGraph(const GPM_ModelGraph &graph, const tString &file, const tReal minPoint[3], const tReal maxPoint[3], const map< tString, tReal * > &bounds)
add the graph
Definition: GPMG_MovieGraphWindow.h:105
const GPMG_MovieGraphDrawPanel * getMovieDrawPanel() const
Definition: GPMG_MovieGraphWindow.h:90
void previous()
previous
Definition: GPMG_MovieGraphWindow.h:145
const map< tString, tReal * > & getBoundsValue() const
get the bounds
Definition: GPMG_Project.h:253
void play(const tBoolean &isLoopOn)
play the graphs
Definition: GPMG_MovieGraphDrawPanel.cpp:581
void save(const tString &prefix)
save the graphs
Definition: GPMG_MovieGraphDrawPanel.cpp:718
virtual ~GPMG_MovieGraphWindow(void)
destroy a GPMG_MovieGraphWindow
Definition: GPMG_MovieGraphWindow.cpp:19
static SP::GPMG_MovieGraphWindow New()
create a visualization window
Definition: GPMG_MovieGraphWindow.h:54
virtual void toDoAfterThisSetting()
method called after setThis() method this method can oly be called once.
Definition: GPMG_MovieGraphWindow.h:61
This class describes a project.
Definition: GPMG_Project.h:22
void previous()
show previous graph
Definition: GPMG_MovieGraphDrawPanel.h:235
abstract base class for most classes.
Definition: CORE_Object.h:30
#define tString
Definition: types.h:36
const tReal * getMaxPoint() const
get the max point of the graphs
Definition: GPMG_Project.h:248
GPMG_MovieGraphDrawPanel * getMovieDrawPanel()
Definition: GPMG_MovieGraphWindow.h:93
void clearGraphs()
clear the graphs
Definition: GPMG_MovieGraphWindow.h:100
void showGraphFiles(const GPMG_Project *project)
shwo the graph files
Definition: GPMG_MovieGraphWindow.h:115
this class describes a window to show movie of graphs
Definition: GPMG_MovieGraphWindow.h:17
void updateEnvironments(const GPMG_Project *project)
update the environments from a graph
Definition: GPMG_GraphPanel.cpp:136
void next()
next
Definition: GPMG_MovieGraphWindow.h:140
void clearGraphs()
clear the graph
Definition: GPMG_MovieGraphDrawPanel.cpp:171
void next()
show next graph
Definition: GPMG_MovieGraphDrawPanel.h:204
#define tReal
Definition: types.h:18
void goToLast()
go to last action
Definition: GPMG_MovieGraphWindow.h:135
this class describes a Graph Draw Panel.
Definition: GPMG_MovieGraphDrawPanel.h:17
virtual void modalWindowClosed(const tFlag &id, const CORE_Object *value)
load the components of the windows from saving file
Definition: GPMG_MovieGraphWindow.cpp:82
class Free introduced for deleting a smart pointer
Definition: CORE_Object.h:106
#define tFlag
Definition: types.h:14