VAPOR3 3.9.4
|
A class for managing all visualizers. More...
#include <VizWinMgr.h>
Public Slots | |
void | LaunchVisualizer () |
void | Cascade () |
Arrange the Visualizers in a cascading sequence. | |
void | FitSpace () |
Arrange the visualizers to tile the available space. | |
void | SetWinActive (const QString &vizName) |
Respond to user request to activate a window: | |
void | Reinit () |
Signals | |
void | enableMultiViz (bool onOff) |
void | newViz (const QString &) |
void | removeViz (const QString &) |
void | activateViz (const QString &) |
Public Member Functions | |
VizWinMgr (QWidget *parent, QMdiArea *mdiArea, VAPoR::ControlExec *ce) | |
~VizWinMgr () | |
void | Shutdown () |
void | Restart () |
void | SetTrackBall (const double posvec[3], const double dirvec[3], const double upvec[3], const double centerRot[3], bool perspective) |
void | Update (bool fast) |
Invoke updateGL on all the visualizers that have dirty bit set. | |
int | EnableImageCapture (string filename, string winName) |
VizWin * | Get (const std::string &name) |
A class for managing all visualizers.
This class manages the VAPOR visualizers in the GUI. It provides various methods relating the active visualizers and the corresponding and Params classes. Methods are also provided for setting up the Qt OpenGL context of a QGLWidget and associating the corresponding Visualizer instance.
Definition at line 49 of file VizWinMgr.h.
VizWinMgr::VizWinMgr | ( | QWidget * | parent, |
QMdiArea * | mdiArea, | ||
VAPoR::ControlExec * | ce | ||
) |
VizWinMgr::~VizWinMgr | ( | ) |
|
signal |
|
slot |
Arrange the Visualizers in a cascading sequence.
int VizWinMgr::EnableImageCapture | ( | string | filename, |
string | winName | ||
) |
Capture the next rendered image to a file When this method is called, the next time Paint() is called for the specified visualizer, the rendered image will be written to the specified (.jpg, .tif, ...) file. The UI must call Paint(viz, true) after this method is called. If this is called concurrently with a call to Paint(), the image will not be captured until that rendering completes and another Paint() is initiated. Only one image will be captured.
[in] | filename | is either .jpg, .tif, or .tiff file name to capture |
[in] | viz | Valid visualizer handle |
|
signal |
|
slot |
Arrange the visualizers to tile the available space.
|
inline |
Definition at line 77 of file VizWinMgr.h.
|
slot |
Method launches a new visualizer, sets up appropriate Params etc. It returns the visualizer index as returned by ControlExec::NewVisualizer()
visualizer | index |
|
signal |
|
slot |
|
signal |
void VizWinMgr::Restart | ( | ) |
Restart all visualizers
Restart all known visualizers
void VizWinMgr::SetTrackBall | ( | const double | posvec[3], |
const double | dirvec[3], | ||
const double | upvec[3], | ||
const double | centerRot[3], | ||
bool | perspective | ||
) |
|
slot |
Respond to user request to activate a window:
void VizWinMgr::Shutdown | ( | ) |
Shutdown all visualizers
Reset to default state, killing all active visualizers
void VizWinMgr::Update | ( | bool | fast | ) |
Invoke updateGL on all the visualizers that have dirty bit set.