/****************************************************************** * * * Nest version 2 - 3D Wasp Nest Simulator * * Copyright (C) 1997 Sylvain GUERIN * * LIASC, ENST Bretagne & Santa Fe Institute * * * ****************************************************************** E-mail: Sylvain.Guerin@enst-bretagne.fr or: Sylvain Guerin 13 rue des Monts Lorgeaux, 51460 L'EPINE, FRANCE ****************************************************************** This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. ****************************************************************** Name : EvalInt.h Component : evaluation interface Fonctionality : contains specifications refering to the evaluation interface ******************************************************************/ #ifndef __EvalInterface_H #define __EvalInterface_H #include "PatternInt.h" #include "graphical.h" #include "algo.h" #include "simu.h" class EvalInterface : public Interface { public: EvalInterface (Interface* theMainInterface, int x0, int y0, char* windowLabel, char* iconLabel, Display* aDisplay, Simulation* aSimulation); virtual ~EvalInterface (); actionType manageInterface (XEvent report); void refresh (); protected: Interface* mainInterface; Button* closeButton; Button* resizeButton; SwapButton* showIndexOrRulesButton; /* show first rules then index */ Button* hideNodesButton; Button* clusteringButton; Button* cooccurencesButton; Button* patternsButton; RoundPanel* translatePanel; LeftArrow* leftButton; RightArrow* rightButton; UpArrow* upButton; DownArrow* downButton; UpSquare* zoomUpButton; DownSquare* zoomDownButton; TextWidget* zoomText; GraphicWindow* graphWindow; TextWidget* fitness1Text; TextWidget* fitness2Text; TextWidget* fitness3Text; TextWidget* fitness4Text; TextWidget* fitness5Text; TextWidget* fitness6Text; TextWidget* rulesNbText; TextWidget* nodesNbText; TextWidget* edgesNbText; GraphicWindow* histoWindow; Simulation* simu; double fitness1; double fitness2; double fitness3; double fitness4; double fitness5; double fitness6; void displayHisto (); /* histogramme */ void displayGraph (); /* graphe */ void displayTexts (); /* les textes qui vont avec */ int posX (double x); int posY (double y); void drawNode (double x, double y, int ruleId); void drawEdge (double x1, double y1, double x2, double y2); /* start node (x1,y1) to end node (x2, y2) */ void displayTempScreen (); void clearTempScreen (); /* parametres d'affichage du graphe */ Pixmap tempScreen; int alreadyComputed; /* est ce que l'affichage du graphe est deja calcule? */ double zoom; double tx; double ty; int showRulesNumber; /* est-ce que l'interface concernant les patterns est activee ? */ PatternInterface* patternInterface; int isPatternIntDisplayed; }; #endif