1 #ifndef GPMG_ShowGraphDrawPanel_H
2 #define GPMG_ShowGraphDrawPanel_H
29 SP::GPM_ModelGraph mGraph;
54 static inline SP::GPMG_ShowGraphDrawPanel
New() {
56 GPMG_ShowGraphDrawPanel::Delete());
83 const int& x,
const int& y);
87 virtual GUI_AlonePopupMenu*
getPopupMenu(
const int& x,
const int& y,GUI2D_Item* item);
123 virtual void computeVertexBounds(
double& xMin,
double& yMin,
double& xMax,
double& yMax)
const;
129 if (mGraph.get()!=
null)
137 if (mGraph.get()!=
null)
145 if (mGraph.get()!=
null)
164 void drawVertices(
const tReal& xmin,
171 void drawEdges(
const tReal& xmin,
void showGraph(GPM_ModelGraph &graph, const tBoolean &isForce)
show the graph
Definition: GPMG_ShowGraphDrawPanel.cpp:84
virtual ~GPMG_ShowGraphDrawPanel(void)
destroy a GPMG_ShowGraphDrawPanel
Definition: GPMG_ShowGraphDrawPanel.cpp:24
static const tFlag INIT_GRAPH
Definition: GPMG_Project.h:36
virtual GUI_AlonePopupMenu * getPopupMenu(const int &x, const int &y, GUI2D_Item *item)
get the popup menu
Definition: GPMG_ShowGraphDrawPanel.cpp:424
virtual void loadFromUIClass(const UI_Class &mclass)
how to load the object from a Meta Model class
Definition: GPMG_ShowGraphDrawPanel.cpp:495
this class describes a Graph Draw Panel.
Definition: GPMG_DrawPanel.h:15
This class describes a model graph.
Definition: GPM_ModelGraph.h:21
#define tBoolean
Definition: types.h:35
virtual void computePortsScale()=0
compute the port scale
GPMG_ShowGraphDrawPanel()
build a GPMG_ShowGraphDrawPanel
Definition: GPMG_ShowGraphDrawPanel.cpp:18
#define null
Definition: types.h:13
virtual void toDoAfterThisSetting()
method called after thi ssetting
Definition: GPMG_ShowGraphDrawPanel.h:61
virtual void computeEdgesScale()
compute the edge scale
Definition: GPMG_ShowGraphDrawPanel.h:142
virtual tFlag getGraphType(const GPM_Graph *graph) const
return the graph type of the graph
Definition: GPMG_ShowGraphDrawPanel.h:93
virtual void computePortsScale()
compute the port scale
Definition: GPMG_ShowGraphDrawPanel.h:134
virtual void computeVertexBounds(double &xMin, double &yMin, double &xMax, double &yMax) const
recompute the vertex bounds
Definition: GPMG_ShowGraphDrawPanel.cpp:34
virtual void toDoAfterThisSetting()
method called after thi ssetting
Definition: GPMG_DrawPanel.h:117
virtual void computeNodesScale()
compute the node scale
Definition: GPMG_ShowGraphDrawPanel.h:126
#define REAL_INFINITY
Definition: types.h:57
void initAttributes()
init attributes of the draw panel
Definition: GPMG_ShowGraphDrawPanel.cpp:29
this class describes a Graph Draw Panel.
Definition: GPMG_ShowGraphDrawPanel.h:16
virtual void createPopupMenus()
create popup menus
Definition: GPMG_ShowGraphDrawPanel.cpp:402
virtual tBoolean paintElements()
paint the element in the drawing area
Definition: GPMG_ShowGraphDrawPanel.cpp:144
#define tString
Definition: types.h:36
virtual void computeNodesScale()=0
compute the node scale
virtual void computeEdgesScale()=0
compute the edges scale
virtual void popupMenuClicked(const tString &name, const int &x, const int &y)
method called when ab item of a popup menu is clicked on component
Definition: GPMG_ShowGraphDrawPanel.cpp:475
This class describes a graph which is a list of nodes & ports.
Definition: GPM_Graph.h:19
#define tReal
Definition: types.h:18
DEFINE_SPTR(GPMG_ShowGraphDrawPanel)
virtual void saveToUIClass(UI_Class &mclass) const
how to save the object from a mate model class
Definition: GPMG_ShowGraphDrawPanel.cpp:500
static SP::GPMG_ShowGraphDrawPanel New()
create a 2D plotter panel
Definition: GPMG_ShowGraphDrawPanel.h:54
#define tFlag
Definition: types.h:14