29 #include "panelcommand.h"
39 #pragma warning( disable : 4100)
83 virtual void makeCurrent(
Params* prevParams,
Params* newParams,
bool newWin,
int instance = -1,
bool reEnable =
false) = 0;
125 virtual void reinitTab(
bool doOverride) = 0;
131 virtual void guiSetEnabled(
bool On,
int instance,
bool undoredo=
false ) {assert(0);}
141 #ifndef DOXYGEN_SKIP_THIS
143 textChangedFlag = 0; savedCommand = 0;
144 fidelityDefaultChanged =
true;
147 isoShown = colorMapShown = opacityMapShown = texShown =
false;
149 virtual ~EventRouter() {
150 for (
int i = 0; i<numHistograms; i++)
151 if (histogramList[i])
delete histogramList[i];
152 if (histogramList)
delete [] histogramList;
160 void removeRendererInstance(
int winnum,
int instance);
161 void newRendererInstance(
int winnum);
162 void copyRendererInstance(
int toWinnum, RenderParams* rParams);
163 void changeRendererInstance(
int winnum,
int newInstance);
169 virtual void refreshTab() {}
173 virtual void updateRenderer(RenderParams* ,
bool ,
bool ){assert(0);}
177 virtual void cleanParams(Params*) {}
179 virtual void sessionLoadTF(QString* ) {assert(0);}
182 virtual Params* deepCopy(Params* p) {
return (p->deepCopy());}
184 virtual void guiSetLocal(Params* p,
bool lg){
188 Params* localParams = VizWinMgr::getInstance()->getCorrespondingLocalParams(p);
190 cmd = PanelCommand::captureStart(localParams,
"set Global to Local");
192 else cmd = PanelCommand::captureStart(localParams,
"set Local to Global");
193 localParams->setLocal(lg);
194 int winnum = localParams->getVizNum();
195 GLWindow* glwin = VizWinMgr::getInstance()->getVizWin(winnum)->getGLWindow();
197 PanelCommand::captureEnd(cmd, localParams);
201 virtual void setFidelityDefaultChangedFlag(
bool val){fidelityDefaultChanged = val;}
205 virtual Histo* getHistogram(RenderParams*,
bool mustGet,
bool isIsoWin =
false);
206 virtual void refreshHistogram(RenderParams* ,
int sesVarNum,
const float drange[2]);
207 virtual void refresh2DHistogram(RenderParams* ,
int sesVarNum,
const float drange[2]);
211 virtual void setEditorDirty(RenderParams*){}
212 virtual void updateMapBounds(RenderParams*) {assert (0);}
213 virtual void updateClut(RenderParams*){assert(0);}
216 void saveTF(RenderParams* rParams);
217 void fileSaveTF(RenderParams* rParams);
218 void loadInstalledTF(RenderParams* rParams,
int varnum);
219 void loadTF(RenderParams* rParams,
int varnum);
221 void fileLoadTF(RenderParams* rParams,
int varnum,
const char* startPath,
bool savePath);
223 bool isoShown, colorMapShown, opacityMapShown, texShown;
227 virtual void guiStartChangeMapFcn(QString) { assert(0); }
228 virtual void guiEndChangeMapFcn() { assert(0); }
232 bool textChangedFlag;
233 QButtonGroup* fidelityButtons;
235 void setIgnoreBoxSliderEvents(
bool val) {ignoreBoxSliderEvents = val;}
250 virtual int orderLODRefs(
int dim);
252 virtual void calcLODRefDefault(
int dim,
float regMBs,
int* lod,
int* reflevel);
253 virtual void updateFidelity(QGroupBox*, RenderParams* rp, QComboBox* lodCombo, QComboBox* refinementCombo);
255 void setupFidelity(
int dim, QHBoxLayout* fidelityLayout,
256 QGroupBox* fidelityBox, RenderParams* dParams,
bool useDefault=
false);
257 void setFidelityDefault(
int dim, RenderParams* dParams);
258 bool ignoreBoxSliderEvents;
260 virtual void setDatarangeDirty(RenderParams* ) {assert(0);}
263 Histo** histogramList;
269 PanelCommand* savedCommand;
271 vector<QAction*>* makeWebHelpActions(
const char* text[],
const char* urls[]);
272 virtual QAction* getWebHelpAction(
int n) {
return (*myWebHelpActions)[n];}
273 vector<QAction*>* myWebHelpActions;
275 vector<int> fidelityRefinements;
276 vector<int> fidelityLODs;
277 bool fidelityDefaultChanged;
279 #endif //DOXYGEN_SKIP_THIS
282 #endif // EVENTROUTER_H
A pure virtual class for managing parameters used in visualization.
static Params * GetCurrentParamsInstance(int pType, int winnum)
virtual void hookUpTab()=0
virtual void performGuiNewInstance()
ParamsBaseType GetParamsBaseTypeId()
virtual void confirmText(bool)=0
A pure virtual class specifying the common properties of all the parameter tabs in the VAPOR GUI...
void guiSetTextChanged(bool on)
virtual void makeCurrent(Params *prevParams, Params *newParams, bool newWin, int instance=-1, bool reEnable=false)=0
virtual void guiSetEnabled(bool On, int instance, bool undoredo=false)
virtual void updateUrgentTabState()
virtual void captureMouseUp()
virtual void performGuiCopyInstanceToViz(int vizwin)
virtual void performGuiCopyInstance()
virtual void reinitTab(bool doOverride)=0
virtual void performGuiDeleteInstance()
virtual void performGuiChangeInstance(int newCurrent, bool undoredo=true)
virtual void updateTab()=0
virtual void captureMouseDown(int mouseNum)