[visit-developers] setting members of GlobalAttributes()
bjw at ilight.com
Wed Jul 29 13:16:16 EDT 2015
As far as a VisIt client is concerned, GlobalAttributes is mainly a
read-only state object that represents some state from VisIt.
GlobalAttributes are used in the GUI to show VisIt state such as how many
windows there, etc. Other actions typically cause changes to viewer state
and the viewer sends GlobalAttributes out so the clients can show changes
to VisIt state. For example, we execute a ViewerMethod that causes
something to happen in the viewer and it updates the GlobalAttributes and
tells the clients.
The regular CLI does not have any control over the windows of the GUI. It
sounds like you may want to write a PySide application. PySide applications
can be run in a CLI mode that does include some GUI plot and operator
windows that you can somewhat control.
Expanding plots in the GUI is handled via ViewerMethods::SetActivePlots,
which can take 2 optional vectors for the active operators, and whether a
plot is expanded or not. The Python wrapper for SetActivePlots in the CLI
does not expose this capability to the user and would need to be enhanced
if you want to expand plots from the CLI.
On Wed, Jul 29, 2015 at 9:50 AM, Miller, Mark C. <miller86 at llnl.gov> wrote:
> Hi All,
> I have a python cli script which is intended to run a set of commands
> immediately upon launching visit on an mfem database. It adds plots and
> operators and sets view.
> Ultimately, I would like for the CLI window to be hidden (either behind
> other windows or iconified) *and* for MultiresControl dialog to be on 'top'
> of GUI. I don't think I can affect any of that from the cli, right?
> In any event, at a minimum, I would like to have the plots expanded in
> the plot list. I see there is a global preferece to 'automatically expand
> new plots'. I see that there is a member for this in GlobalAttributes() in
> the CLI. However, I don't see any way to set it and then *push* that
> setting to the GUI.
> Is there a way to set members of GlobalAttributes() and then have those
> settings affect how the GUI behaves?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the visit-developers