00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00036
00037 #ifndef TclFeViewer_h
00038 #define TclFeViewer_h
00039
00040 #include <Recorder.h>
00041 class Renderer;
00042 class ColorMap;
00043
00044 extern "C" {
00045 #include <tcl.h>
00046 #include <tk.h>
00047 }
00048
00049 class TclFeViewer : public Recorder
00050 {
00051 public:
00052 TclFeViewer(const char *title, int xLoc, int yLoc, int width, int height,
00053 Domain &theDomain, int wipeFlag,
00054 Tcl_Interp *interp);
00055
00056 TclFeViewer(const char *title, int xLoc, int yLoc, int width, int height, const char *fileName,
00057 Domain &theDomain,
00058 Tcl_Interp *interp);
00059
00060 ~TclFeViewer();
00061
00062 int buildFE_Model(void);
00063
00064 int record(int commitTag, double timeStamp);
00065 int playback(int commitTag);
00066 int restart(void);
00067
00068
00069 int setVRP(float, float, float);
00070 int setVPN(float, float, float);
00071 int setVUP(float, float, float);
00072 int setViewWindow(float, float, float, float);
00073
00074
00075 int setPlaneDist(float, float);
00076
00077
00078 int setProjectionMode(const char *);
00079 int setFillMode(const char *);
00080
00081 int setPRP(float, float, float);
00082
00083 int setPortWindow(float, float, float, float);
00084
00085
00086
00087
00088 int displayModel(int eleFlag, int nodeFlag, float displayFact);
00089 int clearImage(void);
00090 int saveImage(const char *fileName);
00091 int saveImage(const char *imageName, const char *fileName);
00092
00093 protected:
00094
00095 private:
00096 ColorMap *theMap;
00097 Renderer *theRenderer;
00098 Domain *theDomain;
00099 int theEleMode;
00100 int theNodeMode;
00101 double theDisplayFact;
00102 int wipeFlag;
00103 int vrpSet;
00104 int vpwindowSet;
00105 int clippingPlaneDistancesSet;
00106 };
00107
00108 #endif
00109
00110
00111
00112
00113
00114
00115