lviewerproxy -lviewerrpc -lvisitcommon -lpython2.6 I/path/to/visit/version/platform/include/visit When the below examples indicate /path/to/visit/version/platform you would substitute a path such as: /usr/local/apps/visit/2.1.0/linux-intel. Here are some variables that you can modify and add to the Makefile that you use to build your client. #include #include #include #include #include #include #include #include #include #include class VisItClient Building the client This is useful for when you want to perform an action that you know will cause a change to the state objects but you can't continue until the new state object values arrive. The Synchronize method makes the calling code block wait until a reply has been received from the viewer. The following class makes launching the viewer and setting up a visualization easy since the class provides the code for loading plugins and also provides a Synchronize() method. This will enable C++ client developers to use vanilla VisIt plugins with far fewer VisIt library dependencies. Eventually, VisIt's plugins will be changed so the state object portion of the plugin will migrate into the libI, or common plugin that all C++ plugin managers load. Of course, this means linking your application with Python, but using the GUI or Viewer plugins for VisIt introduces more VisIt library dependencies. However, for many simple programs where you just want to create a simple visualization from C++, you can probably get by with telling VisIt to load the plugins for VisIt's CLI. When you write a new client, you often need to create a new class of client plugins for plots and operators so your application can control plot and operator settings. Client plugins also can provide control capabilities such as windows that change plot and operator attributes. The chief complications are plugin loading and synchronization.Įvery VisIt client must load plugins in order to set up the communication interface between the client and the viewer. The C++ ViewerProxy class needs a little help to make it easier to set up and start talking to VisIt.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |