C++ main module for gpm Package  1.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Attributes | List of all members
GPMG_MovieGraphDrawPanel Class Reference

this class describes a Graph Draw Panel. More...

#include <GPMG_MovieGraphDrawPanel.h>

Inheritance diagram for GPMG_MovieGraphDrawPanel:
Inheritance graph
[legend]
Collaboration diagram for GPMG_MovieGraphDrawPanel:
Collaboration graph
[legend]

Public Member Functions

virtual void toDoAfterThisSetting ()
 method called after thi ssetting More...
 
void setGraphFiles (const vector< tString > &files, const tReal minPoint[3], const tReal maxPoint[3], const map< tString, tReal * > &bounds)
 set the graph files More...
 
void clearGraphs ()
 clear the graph More...
 
void addGraph (const GPM_ModelGraph &graph, const tString &file, const tReal minPoint[3], const tReal maxPoint[3], const map< tString, tReal * > &bounds)
 add graph. More...
 
void clearScales ()
 clear scales More...
 
void setScales (const tReal minPoint[3], const tReal maxPoint[3], const map< tString, tReal * > &bounds)
 set scales More...
 
void setDelay (const int &i)
 set the delay in secunds More...
 
virtual tFlag getGraphType (const GPM_Graph *graph) const
 return the graph type of the graph More...
 
virtual void loadFromUIClass (const UI_Class &mclass)
 how to load the object from a Meta Model class More...
 
virtual void saveToUIClass (UI_Class &mclass) const
 how to save the object from a mate model class More...
 
void next ()
 show next graph More...
 
tBoolean hasNext () const
 return true if has next file More...
 
tBoolean hasPrevious () const
 return true if has previous file More...
 
tBoolean isOnFirst () const
 return true if the graph print is the first graph More...
 
tBoolean isOnLast () const
 return true if the graph print is the last graph More...
 
void next (const int &d)
 show the next graph inth incement d More...
 
void previous ()
 show previous graph More...
 
void goToFirst ()
 go to first graph More...
 
void goToLast ()
 go to last graph More...
 
void play (const tBoolean &isLoopOn)
 play the graphs More...
 
void stop ()
 play the graphs More...
 
void save (const tString &prefix)
 save the graphs More...
 
void threadHasFinished (const tFlag &action)
 method called from movie thread More...
 
void threadHasBeenSuspended (const int &steap, const tFlag &action)
 method called from movie thread More...
 
void setIsReadOnly (const tBoolean &isReadOnly)
 set is read only More...
 
void setAreNodesShown (const tBoolean &v)
 set if the nodes are shown More...
 
void setArePortsShown (const tBoolean &v)
 set if the ports are shown More...
 
void setAreEdgesShown (const tBoolean &v)
 set if the edges are shown More...
 
virtual void setIsMovingEnabled (const tBoolean &v)
 set zoom selection enabled More...
 
void setSelectedVertex (SP::GPM_Vertex obj)
 set the selected vertex More...
 
void setSelectedEdge (SP::GPM_Edge obj)
 set the selected edge More...
 
void resetSelectedVertex ()
 reset the selected vertex object More...
 
void resetSelectedEdge ()
 reset the selected edge object More...
 
void setVertexSize (const int &v)
 set the vertex size More...
 
void setEdgeWidth (const int &v)
 set the vertex width More...
 
void setNodeVariableNameToShow (const tString &name)
 set node variable name to show More...
 
void setPortVariableNameToShow (const tString &name)
 set port variable name to show More...
 
void setEdgeVariableNameToShow (const tString &name)
 set edge variable name to show More...
 
void setAreObjectsClickabled (const tBoolean &v)
 set if the object are clickabled More...
 
tString getNodeStateNameToShow () const
 get the node state to show More...
 
tString getPortStateNameToShow () const
 get the port state to show More...
 
tString getEdgeStateNameToShow () const
 get the port state to show More...
 
SP::CORE_Object getPopupObject ()
 get the popup object More...
 
int getToNodeEdgeMenuIndex () const
 get the index of the menu item More...
 
int getToPortEdgeMenuIndex () const
 get the index of the menu item More...
 
int getEdgeMenuIndex () const
 get the index of the menu item More...
 
int getTau () const
 get Tau More...
 
int getEdgeWidth () const
 get edge width More...
 
void getProjection (tFlag &projX, tFlag &projY) const
 get project More...
 
CORE_ColorgetSelectedObjectColor () const
 get the selected object color More...
 
GPM_VertexgetSelectedVertex () const
 get the selected vertex object More...
 
GPM_EdgegetSelectedEdge () const
 get the selected edge object More...
 
tBoolean isReadOnly () const
 return true if the read only mode is on More...
 
tBoolean areNodesShown () const
 get if the nodes are shown More...
 
tBoolean arePortsShown () const
 get if the ports are shown More...
 
tBoolean areEdgesShown () const
 get if the edges are shown More...
 
virtual void createPopupMenus ()
 create popup menus More...
 
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 More...
 
virtual GUI_AlonePopupMenu * getPopupMenu (const int &x, const int &y, GUI2D_Item *item)
 get the popup menu More...
 

Static Public Member Functions

static SP::GPMG_MovieGraphDrawPanel New ()
 create a 2D plotter panel More...
 

Protected Member Functions

 GPMG_MovieGraphDrawPanel ()
 build a GPMG_MovieGraphDrawPanel More...
 
virtual ~GPMG_MovieGraphDrawPanel (void)
 destroy a GPMG_MovieGraphDrawPanel More...
 
void initAttributes ()
 method called by toDOAfterThisSetting method More...
 
virtual tBoolean paintElements ()
 paint the element in the drawing area More...
 
virtual void computeVertexBounds (double &xMin, double &yMin, double &xMax, double &yMax) const
 recompute the vertex bounds More...
 
virtual void computeNodesScale ()
 recompute the node scale More...
 
virtual void computePortsScale ()
 compute the port scale More...
 
virtual void computeEdgesScale ()
 compute the edge scale More...
 
virtual void computeBoundingBox (GUI2D_Box &box) const
 compute the bounding box of the object to see More...
 
virtual void mouseHasChanged (SP::GUI_Mouse mouse)
 method called when the mouse changed More...
 
void computeNodesScale (GPM_PortGraph &graph, double &minValue, double &maxValue)
 compute the node scale More...
 
void computePortsScale (GPM_PortGraph &graph, double &minValue, double &maxValue)
 compute the port scale More...
 
void computeEdgesScale (GPM_PortGraph &graph, double &minValue, double &maxValue)
 compute the edges scale More...
 
virtual void objectIsClickedOn (SP::CORE_Object item)
 method called when the object is double clicked on More...
 
virtual void objectIsMovedTo (SP::CORE_Object item, const tReal &x, const tReal &y)
 method called when the object is moved to More...
 
void getCoordinates (const GPM_PortGraph &graph, GPM_Vertex &vertex, tReal &x, tReal &y)
 get the coordinates of the vertex from graph in (x,y) More...
 
void drawVertex (GPM_Node &node, const CORE_Color &color, const tString &label, const tReal &Cx, const tReal &Cy, const tReal &w, const tReal &h)
 draw a node with color & label at (Cx,Cy) with size (w,h) More...
 
void drawVertex (GPM_Port &port, const CORE_Color &color, const tString &label, const tReal &Cx, const tReal &Cy, const tReal &w, const tReal &h)
 draw a port with color & label at (Cx,Cy) with size (w,h) More...
 
void drawEdge (GPM_Edge *edge, const CORE_Color &color, const tString &label, const tReal &Sx, const tReal &Sy, const tReal &Tx, const tReal &Ty, const tReal &width)
 draw an edge with color & label from (Sx,Sy)->(Tx,Ty) More...
 
virtual SP::GPM_Edge addEdge (SP::GPM_Vertex source, SP::GPM_Vertex target)
 add an edge between source & target vertices into graph More...
 
virtual void deleteEdge (GPM_Edge &edge)
 delete an edge More...
 
SP::GPM_Vertex addPort (const tReal &x, const tReal &y, GPM_PortGraph &graph)
 add port in graph More...
 
SP::GPM_Vertex addNode (const tReal &x, const tReal &y, GPM_PortGraph &graph)
 add port in graph More...
 
virtual void deleteVertex (GPM_Vertex &vertex)
 delete a vertex More...
 
void addEdgeToPort (SP::GPM_Vertex source, SP::GPM_Port target)
 draw an edge between source & target vertices from graph More...
 
void addEdgeToNode (SP::GPM_Vertex source, SP::GPM_Node target)
 draw an edge between source & target vertices from graph More...
 

Static Protected Attributes

static const tFlag X =0
 
static const tFlag Y =1
 
static const tFlag Z =2
 
static const tFlag NODE_COLOR_SCALE =0
 
static const tFlag PORT_COLOR_SCALE =1
 
static const tFlag EDGE_COLOR_SCALE =2
 

Detailed Description

this class describes a Graph Draw Panel.

It draws data

Constructor & Destructor Documentation

GPMG_MovieGraphDrawPanel::GPMG_MovieGraphDrawPanel ( )
protected

build a GPMG_MovieGraphDrawPanel

References GPMG_MovieThread::New(), and CORE_Time::New().

Referenced by New().

Here is the call graph for this function:

Here is the caller graph for this function:

GPMG_MovieGraphDrawPanel::~GPMG_MovieGraphDrawPanel ( void  )
protectedvirtual

destroy a GPMG_MovieGraphDrawPanel

References clearScales().

Here is the call graph for this function:

Member Function Documentation

SP::GPM_Edge GPMG_DrawPanel::addEdge ( SP::GPM_Vertex  source,
SP::GPM_Vertex  target 
)
protectedvirtualinherited

add an edge between source & target vertices into graph

Reimplemented in GPMG_RuleGraphDrawPanel.

References GPM_Graph::addEdgeFromIds(), GPMG_Project::EDGE_ENVIRONMENT, GPM_Graph::getEdge(), GPMG_Project::getEnvironment(), GPM_PortGraph::isEdgeValid(), null, tBoolean, and tString.

Referenced by GPMG_RuleGraphDrawPanel::addEdge(), GPMG_DrawPanel::addEdgeToNode(), GPMG_DrawPanel::addEdgeToPort(), and GPMG_DrawPanel::mouseHasChanged().

Here is the call graph for this function:

Here is the caller graph for this function:

void GPMG_DrawPanel::addEdgeToNode ( SP::GPM_Vertex  source,
SP::GPM_Node  target 
)
protectedinherited

draw an edge between source & target vertices from graph

References GPM_Graph::addEdge(), GPMG_DrawPanel::addEdge(), GPM_PortGraph::addPort(), GPMG_Project::EDGE_ENVIRONMENT, GPM_Graph::getEdge(), GPMG_Project::getEnvironment(), GPM_Graph::getVertex(), GPM_Graph::getVertexIID(), null, GPM_Graph::NULL_VERTEX, and GPMG_Project::PORT_ENVIRONMENT.

Referenced by GPMG_DrawPanel::mouseHasChanged().

Here is the call graph for this function:

Here is the caller graph for this function:

void GPMG_DrawPanel::addEdgeToPort ( SP::GPM_Vertex  source,
SP::GPM_Port  target 
)
protectedinherited

draw an edge between source & target vertices from graph

References GPMG_DrawPanel::addEdge().

Referenced by GPMG_DrawPanel::mouseHasChanged().

Here is the call graph for this function:

Here is the caller graph for this function:

void GPMG_MovieGraphDrawPanel::addGraph ( const GPM_ModelGraph graph,
const tString file,
const tReal  minPoint[3],
const tReal  maxPoint[3],
const map< tString, tReal * > &  bounds 
)

add graph.

Parameters
graphgraph to add
filesaved filename of the graph
minPoint: min bounds point of all shown graphs, included the added graph graph
maxPoint: max bounds point of all shown graphs, included the added graph graph
boundsbound values of varaibles of all shown graphs, included the added graph graph

References computeEdgesScale(), computeNodesScale(), computePortsScale(), GPMG_ActionMovie::STOP, tReal, and tString.

Referenced by GPMG_MovieGraphWindow::addGraph().

Here is the call graph for this function:

Here is the caller graph for this function:

SP::GPM_Vertex GPMG_DrawPanel::addNode ( const tReal x,
const tReal y,
GPM_PortGraph graph 
)
protectedinherited

add port in graph

Parameters
graph: the graph to add the vertex
Returns
the created vertex

References GPM_Graph::addNode(), GPMG_Project::getEnvironment(), GPM_Graph::getVertex(), GPMG_Project::NODE_ENVIRONMENT, GPM_Graph::NULL_VERTEX, tReal, and GPMG_DrawPanel::X.

Referenced by GPMG_DrawPanel::mouseHasChanged(), GPMG_ShowGraphDrawPanel::popupMenuClicked(), and GPMG_RuleGraphDrawPanel::popupMenuClicked().

Here is the call graph for this function:

Here is the caller graph for this function:

SP::GPM_Vertex GPMG_DrawPanel::addPort ( const tReal x,
const tReal y,
GPM_PortGraph graph 
)
protectedinherited

add port in graph

Parameters
graph: the graph to add the vertex
Returns
the created vertex

References GPM_PortGraph::addPort(), GPMG_Project::getEnvironment(), GPM_Graph::getVertex(), GPM_Graph::NULL_VERTEX, GPMG_Project::PORT_ENVIRONMENT, tReal, and GPMG_DrawPanel::X.

Referenced by GPMG_DrawPanel::mouseHasChanged(), GPMG_ShowGraphDrawPanel::popupMenuClicked(), and GPMG_RuleGraphDrawPanel::popupMenuClicked().

Here is the call graph for this function:

Here is the caller graph for this function:

tBoolean GPMG_DrawPanel::areEdgesShown ( ) const
inlineinherited

get if the edges are shown

tBoolean GPMG_DrawPanel::areNodesShown ( ) const
inlineinherited

get if the nodes are shown

tBoolean GPMG_DrawPanel::arePortsShown ( ) const
inlineinherited

get if the ports are shown

void GPMG_MovieGraphDrawPanel::clearGraphs ( )

clear the graph

References clearScales().

Referenced by GPMG_MovieGraphWindow::clearGraphs(), and next().

Here is the call graph for this function:

Here is the caller graph for this function:

void GPMG_MovieGraphDrawPanel::clearScales ( )

clear scales

References null, and REAL_INFINITY.

Referenced by clearGraphs(), setScales(), and ~GPMG_MovieGraphDrawPanel().

Here is the caller graph for this function:

void GPMG_DrawPanel::computeBoundingBox ( GUI2D_Box &  box) const
protectedvirtualinherited

compute the bounding box of the object to see

Parameters
boxthe bounding box of the object to see

References GPMG_DrawPanel::computeVertexBounds().

Here is the call graph for this function:

void GPMG_MovieGraphDrawPanel::computeEdgesScale ( )
protectedvirtual

compute the edge scale

Implements GPMG_DrawPanel.

References GPMG_DrawPanel::EDGE_COLOR_SCALE, GPMG_DrawPanel::getEdgeStateNameToShow(), tReal, and tString.

Referenced by addGraph().

Here is the call graph for this function:

Here is the caller graph for this function:

void GPMG_DrawPanel::computeEdgesScale ( GPM_PortGraph graph,
double &  minValue,
double &  maxValue 
)
protectedinherited

compute the edges scale

References GPMG_DrawPanel::EDGE_COLOR_SCALE, GPM_Graph::getEdges(), GPM_GraphElement::getVariableValue(), null, and tString.

Here is the call graph for this function:

void GPMG_MovieGraphDrawPanel::computeNodesScale ( )
protectedvirtual

recompute the node scale

Implements GPMG_DrawPanel.

References GPMG_DrawPanel::getNodeStateNameToShow(), GPMG_DrawPanel::NODE_COLOR_SCALE, tReal, and tString.

Referenced by addGraph().

Here is the call graph for this function:

Here is the caller graph for this function:

void GPMG_DrawPanel::computeNodesScale ( GPM_PortGraph graph,
double &  minValue,
double &  maxValue 
)
protectedinherited

compute the node scale

References GPM_GraphElement::getVariableValue(), GPM_Graph::getVertices(), GPMG_DrawPanel::NODE_COLOR_SCALE, and null.

Here is the call graph for this function:

void GPMG_MovieGraphDrawPanel::computePortsScale ( )
protectedvirtual

compute the port scale

Implements GPMG_DrawPanel.

References GPMG_DrawPanel::getPortStateNameToShow(), GPMG_DrawPanel::PORT_COLOR_SCALE, tReal, and tString.

Referenced by addGraph().

Here is the call graph for this function:

Here is the caller graph for this function:

void GPMG_DrawPanel::computePortsScale ( GPM_PortGraph graph,
double &  minValue,
double &  maxValue 
)
protectedinherited

compute the port scale

References GPM_GraphElement::getVariableValue(), GPM_Graph::getVertices(), null, and GPMG_DrawPanel::PORT_COLOR_SCALE.

Here is the call graph for this function:

void GPMG_MovieGraphDrawPanel::computeVertexBounds ( double &  xMin,
double &  yMin,
double &  xMax,
double &  yMax 
) const
protectedvirtual

recompute the vertex bounds

Implements GPMG_DrawPanel.

References GPMG_DrawPanel::getProjection(), and tFlag.

Here is the call graph for this function:

void GPMG_DrawPanel::createPopupMenus ( )
virtualinherited
void GPMG_DrawPanel::deleteEdge ( GPM_Edge edge)
protectedvirtualinherited

delete an edge

Reimplemented in GPMG_RuleGraphDrawPanel.

References GPM_Graph::getEdgeIID(), GPM_GraphElement::getGraph(), GPM_GraphElement::getId(), null, and GPM_Graph::removeEdge().

Referenced by GPMG_RuleGraphDrawPanel::addEdge(), GPMG_RuleGraphDrawPanel::deleteEdge(), and GPMG_DrawPanel::popupMenuClicked().

Here is the call graph for this function:

Here is the caller graph for this function:

void GPMG_DrawPanel::deleteVertex ( GPM_Vertex vertex)
protectedvirtualinherited

delete a vertex

Reimplemented in GPMG_RuleGraphDrawPanel.

References GPM_GraphElement::getGraph(), GPM_GraphElement::getId(), GPM_Graph::getVertexIID(), null, GPM_Graph::NULL_VERTEX, and GPM_Graph::removeVertex().

Referenced by GPMG_RuleGraphDrawPanel::deleteVertex(), and GPMG_DrawPanel::popupMenuClicked().

Here is the call graph for this function:

Here is the caller graph for this function:

void GPMG_DrawPanel::drawEdge ( GPM_Edge edge,
const CORE_Color color,
const tString label,
const tReal Sx,
const tReal Sy,
const tReal Tx,
const tReal Ty,
const tReal width 
)
protectedinherited

draw an edge with color & label from (Sx,Sy)->(Tx,Ty)

References tReal.

void GPMG_DrawPanel::drawVertex ( GPM_Node node,
const CORE_Color color,
const tString label,
const tReal Cx,
const tReal Cy,
const tReal w,
const tReal h 
)
protectedinherited

draw a node with color & label at (Cx,Cy) with size (w,h)

void GPMG_DrawPanel::drawVertex ( GPM_Port port,
const CORE_Color color,
const tString label,
const tReal Cx,
const tReal Cy,
const tReal w,
const tReal h 
)
protectedinherited

draw a port with color & label at (Cx,Cy) with size (w,h)

void GPMG_DrawPanel::getCoordinates ( const GPM_PortGraph graph,
GPM_Vertex vertex,
tReal x,
tReal y 
)
protectedinherited
int GPMG_DrawPanel::getEdgeMenuIndex ( ) const
inlineinherited

get the index of the menu item

tString GPMG_DrawPanel::getEdgeStateNameToShow ( ) const
inlineinherited

get the port state to show

Referenced by computeEdgesScale().

Here is the caller graph for this function:

int GPMG_DrawPanel::getEdgeWidth ( ) const
inlineinherited

get edge width

virtual tFlag GPMG_MovieGraphDrawPanel::getGraphType ( const GPM_Graph graph) const
inlinevirtual

return the graph type of the graph

Implements GPMG_DrawPanel.

References GPMG_Project::RESULT_GRAPH.

tString GPMG_DrawPanel::getNodeStateNameToShow ( ) const
inlineinherited

get the node state to show

Referenced by computeNodesScale().

Here is the caller graph for this function:

GUI_AlonePopupMenu * GPMG_DrawPanel::getPopupMenu ( const int &  x,
const int &  y,
GUI2D_Item *  item 
)
virtualinherited

get the popup menu

Reimplemented in GPMG_RuleGraphDrawPanel, and GPMG_ShowGraphDrawPanel.

References GPM_Graph::getConnectedVertices(), GPM_GraphElement::getGraph(), GPM_GraphElement::getId(), GPM_Graph::getVertex(), GPM_Graph::getVertexIID(), and null.

Referenced by GPMG_ShowGraphDrawPanel::getPopupMenu(), and GPMG_RuleGraphDrawPanel::getPopupMenu().

Here is the call graph for this function:

Here is the caller graph for this function:

SP::CORE_Object GPMG_DrawPanel::getPopupObject ( )
inlineinherited

get the popup object

Referenced by GPMG_RuleGraphDrawPanel::popupMenuClicked().

Here is the caller graph for this function:

tString GPMG_DrawPanel::getPortStateNameToShow ( ) const
inlineinherited

get the port state to show

Referenced by computePortsScale().

Here is the caller graph for this function:

void GPMG_DrawPanel::getProjection ( tFlag projX,
tFlag projY 
) const
inlineinherited
GPM_Edge* GPMG_DrawPanel::getSelectedEdge ( ) const
inlineinherited

get the selected edge object

CORE_Color& GPMG_DrawPanel::getSelectedObjectColor ( ) const
inlineinherited

get the selected object color

GPM_Vertex* GPMG_DrawPanel::getSelectedVertex ( ) const
inlineinherited

get the selected vertex object

int GPMG_DrawPanel::getTau ( ) const
inlineinherited

get Tau

int GPMG_DrawPanel::getToNodeEdgeMenuIndex ( ) const
inlineinherited

get the index of the menu item

Referenced by GPMG_ShowGraphDrawPanel::getPopupMenu().

Here is the caller graph for this function:

int GPMG_DrawPanel::getToPortEdgeMenuIndex ( ) const
inlineinherited

get the index of the menu item

Referenced by GPMG_ShowGraphDrawPanel::getPopupMenu().

Here is the caller graph for this function:

void GPMG_MovieGraphDrawPanel::goToFirst ( )
inline

go to first graph

References next().

Referenced by GPMG_MovieGraphWindow::goToFirst(), and setGraphFiles().

Here is the call graph for this function:

Here is the caller graph for this function:

void GPMG_MovieGraphDrawPanel::goToLast ( )
inline

go to last graph

References next().

Referenced by GPMG_MovieGraphWindow::goToLast().

Here is the call graph for this function:

Here is the caller graph for this function:

tBoolean GPMG_MovieGraphDrawPanel::hasNext ( ) const
inline

return true if has next file

Referenced by GPMG_MovieGraphMenuPanel::enableMovieMenus().

Here is the caller graph for this function:

tBoolean GPMG_MovieGraphDrawPanel::hasPrevious ( ) const
inline

return true if has previous file

Referenced by GPMG_MovieGraphMenuPanel::enableMovieMenus().

Here is the caller graph for this function:

void GPMG_MovieGraphDrawPanel::initAttributes ( )
protectedvirtual

method called by toDOAfterThisSetting method

Reimplemented from GPMG_DrawPanel.

References GPMG_DrawPanel::initAttributes(), GPM_ModelGraph::New(), and GPMG_DrawPanel::setAreObjectsClickabled().

Here is the call graph for this function:

tBoolean GPMG_MovieGraphDrawPanel::isOnFirst ( ) const
inline

return true if the graph print is the first graph

Referenced by GPMG_MovieGraphMenuPanel::enableMovieMenus().

Here is the caller graph for this function:

tBoolean GPMG_MovieGraphDrawPanel::isOnLast ( ) const
inline

return true if the graph print is the last graph

Referenced by GPMG_MovieGraphMenuPanel::enableMovieMenus().

Here is the caller graph for this function:

tBoolean GPMG_DrawPanel::isReadOnly ( ) const
inlineinherited
void GPMG_MovieGraphDrawPanel::loadFromUIClass ( const UI_Class &  mclass)
virtual

how to load the object from a Meta Model class

Reimplemented from GPMG_DrawPanel.

References GPMG_DrawPanel::loadFromUIClass().

Here is the call graph for this function:

void GPMG_DrawPanel::mouseHasChanged ( SP::GUI_Mouse  mouse)
protectedvirtualinherited

method called when the mouse changed

References GPMG_DrawPanel::addEdge(), GPMG_DrawPanel::addEdgeToNode(), GPMG_DrawPanel::addEdgeToPort(), GPMG_DrawPanel::addNode(), GPMG_DrawPanel::addPort(), and null.

Here is the call graph for this function:

static SP::GPMG_MovieGraphDrawPanel GPMG_MovieGraphDrawPanel::New ( )
inlinestatic

create a 2D plotter panel

References GPMG_MovieGraphDrawPanel().

Referenced by GPMG_MovieGraphPanel::NewGraphDrawPanel().

Here is the call graph for this function:

Here is the caller graph for this function:

void GPMG_MovieGraphDrawPanel::next ( )
inline

show next graph

Referenced by goToFirst(), goToLast(), GPMG_MovieGraphWindow::next(), and previous().

Here is the caller graph for this function:

void GPMG_MovieGraphDrawPanel::next ( const int &  d)

show the next graph inth incement d

References clearGraphs().

Here is the call graph for this function:

void GPMG_DrawPanel::objectIsClickedOn ( SP::CORE_Object  item)
protectedvirtualinherited

method called when the object is double clicked on

Reimplemented in GPMG_RuleGraphDrawPanel.

References GPMG_DrawPanel::getGraphType(), GPMG_DrawPanel::isReadOnly(), null, GPMG_MainWindow::showEdge(), and GPMG_MainWindow::showVertex().

Here is the call graph for this function:

void GPMG_DrawPanel::objectIsMovedTo ( SP::CORE_Object  item,
const tReal x,
const tReal y 
)
protectedvirtualinherited

method called when the object is moved to

References null, GPM_Vertex::setCoordinates(), and tReal.

Here is the call graph for this function:

tBoolean GPMG_MovieGraphDrawPanel::paintElements ( )
protectedvirtual

paint the element in the drawing area

Reimplemented from GPMG_DrawPanel.

References GPMG_DrawPanel::paintElements().

Here is the call graph for this function:

void GPMG_MovieGraphDrawPanel::play ( const tBoolean isLoopOn)

play the graphs

Referenced by GPMG_MovieGraphWindow::play().

Here is the caller graph for this function:

void GPMG_DrawPanel::popupMenuClicked ( const tString name,
const int &  x,
const int &  y 
)
virtualinherited

method called when ab item of a popup menu is clicked on component

Reimplemented in GPMG_RuleGraphDrawPanel, and GPMG_ShowGraphDrawPanel.

References GPMG_DrawPanel::deleteEdge(), GPMG_DrawPanel::deleteVertex(), GPMG_DrawPanel::getGraphType(), GPMG_DrawPanel::isReadOnly(), null, GPMG_MainWindow::showEdge(), and GPMG_MainWindow::showVertex().

Referenced by GPMG_ShowGraphDrawPanel::popupMenuClicked(), and GPMG_RuleGraphDrawPanel::popupMenuClicked().

Here is the call graph for this function:

Here is the caller graph for this function:

void GPMG_MovieGraphDrawPanel::previous ( )
inline

show previous graph

References next().

Referenced by GPMG_MovieGraphWindow::previous().

Here is the call graph for this function:

Here is the caller graph for this function:

void GPMG_DrawPanel::resetSelectedEdge ( )
inlineinherited

reset the selected edge object

References GPMG_DrawPanel::computeEdgesScale().

Here is the call graph for this function:

void GPMG_DrawPanel::resetSelectedVertex ( )
inlineinherited

reset the selected vertex object

References GPMG_DrawPanel::computeNodesScale(), and GPMG_DrawPanel::computePortsScale().

Here is the call graph for this function:

void GPMG_MovieGraphDrawPanel::save ( const tString prefix)

save the graphs

References GPM_ModelGraph::New(), CORE_Integer::toString(), and tString.

Referenced by GPMG_MovieGraphWindow::record().

Here is the call graph for this function:

Here is the caller graph for this function:

void GPMG_MovieGraphDrawPanel::saveToUIClass ( UI_Class &  mclass) const
virtual

how to save the object from a mate model class

Reimplemented from GPMG_DrawPanel.

References GPMG_DrawPanel::saveToUIClass().

Here is the call graph for this function:

void GPMG_DrawPanel::setAreEdgesShown ( const tBoolean v)
inlineinherited

set if the edges are shown

void GPMG_DrawPanel::setAreNodesShown ( const tBoolean v)
inlineinherited

set if the nodes are shown

void GPMG_DrawPanel::setAreObjectsClickabled ( const tBoolean v)
inlineinherited

set if the object are clickabled

Referenced by initAttributes().

Here is the caller graph for this function:

void GPMG_DrawPanel::setArePortsShown ( const tBoolean v)
inlineinherited

set if the ports are shown

void GPMG_MovieGraphDrawPanel::setDelay ( const int &  i)
inline

set the delay in secunds

Referenced by GPMG_MovieGraphPanel::componentClicked().

Here is the caller graph for this function:

void GPMG_DrawPanel::setEdgeVariableNameToShow ( const tString name)
inlineinherited

set edge variable name to show

References GPMG_DrawPanel::computeEdgesScale().

Here is the call graph for this function:

void GPMG_DrawPanel::setEdgeWidth ( const int &  v)
inlineinherited

set the vertex width

void GPMG_MovieGraphDrawPanel::setGraphFiles ( const vector< tString > &  files,
const tReal  minPoint[3],
const tReal  maxPoint[3],
const map< tString, tReal * > &  bounds 
)
inline

set the graph files

References goToFirst(), and setScales().

Referenced by GPMG_MovieGraphWindow::showGraphFiles().

Here is the call graph for this function:

Here is the caller graph for this function:

void GPMG_DrawPanel::setIsMovingEnabled ( const tBoolean v)
virtualinherited

set zoom selection enabled

References GPMG_DrawPanel::isReadOnly(), null, GPMG_GraphPanel::setIsReadOnly(), and GPMG_DrawPanel::setIsReadOnly().

Here is the call graph for this function:

void GPMG_DrawPanel::setIsReadOnly ( const tBoolean isReadOnly)
inherited

set is read only

References GPMG_DrawPanel::isReadOnly(), null, GPMG_GraphWindowInterface::setIsMovingEnabled(), and tBoolean.

Referenced by GPMG_DrawPanel::setIsMovingEnabled().

Here is the call graph for this function:

Here is the caller graph for this function:

void GPMG_DrawPanel::setNodeVariableNameToShow ( const tString name)
inlineinherited

set node variable name to show

References GPMG_DrawPanel::computeNodesScale().

Here is the call graph for this function:

void GPMG_DrawPanel::setPortVariableNameToShow ( const tString name)
inlineinherited

set port variable name to show

References GPMG_DrawPanel::computePortsScale().

Here is the call graph for this function:

void GPMG_MovieGraphDrawPanel::setScales ( const tReal  minPoint[3],
const tReal  maxPoint[3],
const map< tString, tReal * > &  bounds 
)

set scales

References clearScales(), and tReal.

Referenced by setGraphFiles().

Here is the call graph for this function:

Here is the caller graph for this function:

void GPMG_DrawPanel::setSelectedEdge ( SP::GPM_Edge  obj)
inlineinherited

set the selected edge

void GPMG_DrawPanel::setSelectedVertex ( SP::GPM_Vertex  obj)
inlineinherited

set the selected vertex

void GPMG_DrawPanel::setVertexSize ( const int &  v)
inlineinherited

set the vertex size

void GPMG_MovieGraphDrawPanel::stop ( )

play the graphs

Referenced by GPMG_MovieGraphWindow::stop().

Here is the caller graph for this function:

void GPMG_MovieGraphDrawPanel::threadHasBeenSuspended ( const int &  steap,
const tFlag action 
)

method called from movie thread

References CORE_Out::New(), and CORE_Out::NO_OUTPUT.

Referenced by GPMG_MovieThread::threadHasBeenSuspended().

Here is the call graph for this function:

Here is the caller graph for this function:

void GPMG_MovieGraphDrawPanel::threadHasFinished ( const tFlag action)

method called from movie thread

References GPMG_MovieGraphMenuPanel::enableMovieMenus(), and GPMG_ActionMovie::STOP.

Referenced by GPMG_MovieThread::threadHasFinished().

Here is the call graph for this function:

Here is the caller graph for this function:

virtual void GPMG_MovieGraphDrawPanel::toDoAfterThisSetting ( )
inlinevirtual

method called after thi ssetting

Reimplemented from GPMG_DrawPanel.

References GPMG_DrawPanel::toDoAfterThisSetting().

Here is the call graph for this function:

Member Data Documentation

const tFlag GPMG_DrawPanel::EDGE_COLOR_SCALE =2
staticprotectedinherited
const tFlag GPMG_DrawPanel::NODE_COLOR_SCALE =0
staticprotectedinherited
const tFlag GPMG_DrawPanel::PORT_COLOR_SCALE =1
staticprotectedinherited
const tFlag GPMG_DrawPanel::X =0
staticprotectedinherited
const tFlag GPMG_DrawPanel::Y =1
staticprotectedinherited
const tFlag GPMG_DrawPanel::Z =2
staticprotectedinherited

The documentation for this class was generated from the following files: