VAPOR3 3.9.4
Public Slots | Signals | Public Member Functions | List of all members
VizWinMgr Class Reference

A class for managing all visualizers. More...

#include <VizWinMgr.h>

Inheritance diagram for VizWinMgr:

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)
 
VizWinGet (const std::string &name)
 

Detailed Description

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.

Author
Alan Norton
Version
3.0
Date
October 2013

Definition at line 49 of file VizWinMgr.h.

Constructor & Destructor Documentation

◆ VizWinMgr()

VizWinMgr::VizWinMgr ( QWidget *  parent,
QMdiArea *  mdiArea,
VAPoR::ControlExec ce 
)

◆ ~VizWinMgr()

VizWinMgr::~VizWinMgr ( )

Member Function Documentation

◆ activateViz

void VizWinMgr::activateViz ( const QString &  )
signal

◆ Cascade

void VizWinMgr::Cascade ( )
slot

Arrange the Visualizers in a cascading sequence.

◆ EnableImageCapture()

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.

Parameters
[in]filenameis either .jpg, .tif, or .tiff file name to capture
[in]vizValid visualizer handle

◆ enableMultiViz

void VizWinMgr::enableMultiViz ( bool  onOff)
signal

◆ FitSpace

void VizWinMgr::FitSpace ( )
slot

Arrange the visualizers to tile the available space.

◆ Get()

VizWin * VizWinMgr::Get ( const std::string &  name)
inline

Definition at line 77 of file VizWinMgr.h.

◆ LaunchVisualizer

void VizWinMgr::LaunchVisualizer ( )
slot

Method launches a new visualizer, sets up appropriate Params etc. It returns the visualizer index as returned by ControlExec::NewVisualizer()

Return values
visualizerindex

◆ newViz

void VizWinMgr::newViz ( const QString &  )
signal

◆ Reinit

void VizWinMgr::Reinit ( )
slot

◆ removeViz

void VizWinMgr::removeViz ( const QString &  )
signal

◆ Restart()

void VizWinMgr::Restart ( )

Restart all visualizers

Restart all known visualizers

◆ SetTrackBall()

void VizWinMgr::SetTrackBall ( const double  posvec[3],
const double  dirvec[3],
const double  upvec[3],
const double  centerRot[3],
bool  perspective 
)

◆ SetWinActive

void VizWinMgr::SetWinActive ( const QString &  vizName)
slot

Respond to user request to activate a window:

◆ Shutdown()

void VizWinMgr::Shutdown ( )

Shutdown all visualizers

Reset to default state, killing all active visualizers

◆ Update()

void VizWinMgr::Update ( bool  fast)

Invoke updateGL on all the visualizers that have dirty bit set.


The documentation for this class was generated from the following file: