35 #include <vapor/common.h>
42 class AnimationParams;
46 class ViewpointParams;
50 class AnimationEventRouter;
51 class RegionEventRouter;
52 class ViewpointEventRouter;
115 assert(activeViz >= 0);
117 std::map<int, VizWin*>::iterator it;
118 it = _vizWindow.find(activeViz);
119 if (it == _vizWindow.end())
return 0;
120 return _vizWindow[activeViz];
127 assert(activeViz >= 0);
224 void disableRenderers(
const vector<string>& vars2D,
const vector<string>& vars3D);
283 #ifndef DOXYGEN_SKIP_THIS
286 void enableMultiViz(
bool onOff);
288 void newViz(QString&,
int);
290 void activateViz(
int);
291 void changeName(QString&,
int);
295 static void RegisterEventRouter(
const std::string tag,
EventRouter* router);
298 static std::map<string, EventRouter*> _eventRouterMap;
306 int lastActivation = -1;
int prevActiveVis = -1;
308 std::map<int, int>::iterator it;
309 std::map<int, VizWin*>::iterator it2;
310 for (it = _activationOrder.begin(); it != _activationOrder.end(); it++){
311 int order = it->second;
314 it2 = _vizWindow.find(vis);
315 if (it2 == _vizWindow.end())
continue;
317 if (order >lastActivation){
318 lastActivation = order;
322 return prevActiveVis;
324 static VizWinMgr* _vizWinMgr;
326 std::map<int, VizWin*> _vizWindow;
327 std::map<int,QMdiSubWindow*> _vizMdiWin;
331 std::map<int,int> _activationOrder;
334 int _activationCount;
336 static TabManager* _tabManager;
341 #endif //DOXYGEN_SKIP_THIS
345 #endif // VIZWINMGR_H
void createAllDefaultTabs()
void refreshRegion(RegionParams *rParams)
A pure virtual class for managing parameters used in visualization.
void cascade()
Arrange the Visualizers in a cascading sequence.
VizWin * getVizWin(int i)
void killViz(int viznum)
Close the VizWin associated with a Visualizer index.
void setActiveViz(int vizNum)
void disableAllRenderers()
Disable all enabled renderers.
void setRgLocalGlobal(int val)
static int GetActiveVizIndex()
A class for describing a 3D axis-aligned region in user space.
VizWin * getActiveVizWin()
void home()
Change viewpoint to the current home viewpoint.
void SetToDefaults()
Reset the GUI to its default state, either due to New Session, or in preparation for loading a sessio...
void viewRegion()
Move camera in or out to make current region visible.
A pure virtual class specifying the common properties of all the parameter tabs in the VAPOR GUI...
void resetTrackball()
Reset the trackball for a new dataset.
EventRouter *( EventRouterCreateFcn)()
ViewpointEventRouter * getViewpointRouter()
int addVisualizer(int viznum)
Visualizer * getActiveVisualizer()
void resetViews(ViewpointParams *vp)
static void InstallTab(const std::string tag, EventRouterCreateFcn fcn)
void winActivated(int)
Respond to user request to activate a window:
void fitSpace()
Arrange the visualizers to tile the available space.
void forceRender(Params *p, bool always=false)
A class for describing the viewpoint and lights in a 3D VAPOR scene.
RegionEventRouter * getRegionRouter()
void createDefaultParams(int winnum)
A class for managing all visualizers.
void setVpLocalGlobal(int val)
static EventRouter * getEventRouter(const std::string &tag)
void refreshViewpoint(ViewpointParams *vParams)
void removeVisualizer(int viznum)
static VizWinMgr * getInstance()
void sethome()
Set the current home viewpoint based on current viewpoint.
void updateActiveParams()
A class for performing OpenGL rendering in VAPOR GUI Window.
int attachVisualizer(int useViznum)
void vizAboutToDisappear(int i)
void viewAll()
Move camera in or out to make entire volume visible.
AnimationEventRouter * getAnimationRouter()
static void UndoRedo(bool isUndo, int, Params *beforeP, Params *afterP, Params *aux1=0, Params *aux2=0)
A QGLWidget that supports display based on GL methods invoked in a Visualizer.
void setAnimationLocalGlobal(int val)
void disableRenderers(const vector< string > &vars2D, const vector< string > &vars3D)
static Visualizer * GetVisualizer(int viz)