walberla::gui::GUI Class Reference

#include <Gui.h>

Public Member Functions

 GUI (timeloop::ITimeloop &timeloop, const shared_ptr< StructuredBlockForest > &blockForest, int &argc, char **argv)
 
 ~GUI ()
 

Interface to User


using DisplayAdaptorCreatorFunc = std::function< DisplayAdaptor *(const IBlock &, ConstBlockDataID)>
 
void run ()
 
void registerPropertyTree (const shared_ptr< PropertyTree > &propertyTree)
 
void registerDisplayAdaptorCreator (const DisplayAdaptorCreatorFunc &creatorFunc)
 
static void breakpoint (const std::string &comment, const std::string &file, int line)
 

Interface to GUI


std::vector< DisplayAdaptorCreatorFuncdisplayAdaptorCreatorFuncs_
 
timeloop::ITimelooptimeloop_
 
StructuredBlockForestblockForest_
 
GuiImpl * pImpl
 
static GUIlastInstance_ = nullptr
 
void createAdaptors (std::vector< DisplayAdaptor * > &out) const
 
const std::vector< shared_ptr< PropertyTree > > & getPropertyTrees () const
 
DisplayAdaptorfindDisplayAdaptorForBlockID (ConstBlockDataID bdId) const
 

Member Typedef Documentation

◆ DisplayAdaptorCreatorFunc

Constructor & Destructor Documentation

◆ GUI()

walberla::gui::GUI::GUI ( timeloop::ITimeloop timeloop,
const shared_ptr< StructuredBlockForest > &  blockForest,
int &  argc,
char **  argv 
)

◆ ~GUI()

walberla::gui::GUI::~GUI ( )
default

Member Function Documentation

◆ breakpoint()

static void walberla::gui::GUI::breakpoint ( const std::string &  comment,
const std::string &  file,
int  line 
)
static

◆ createAdaptors()

void walberla::gui::GUI::createAdaptors ( std::vector< DisplayAdaptor * > &  out) const

◆ findDisplayAdaptorForBlockID()

DisplayAdaptor* walberla::gui::GUI::findDisplayAdaptorForBlockID ( ConstBlockDataID  bdId) const
private

◆ getPropertyTrees()

const std::vector< shared_ptr< PropertyTree > > & walberla::gui::GUI::getPropertyTrees ( ) const

◆ registerDisplayAdaptorCreator()

void walberla::gui::GUI::registerDisplayAdaptorCreator ( const DisplayAdaptorCreatorFunc creatorFunc)

◆ registerPropertyTree()

void walberla::gui::GUI::registerPropertyTree ( const shared_ptr< PropertyTree > &  propertyTree)

◆ run()

void walberla::gui::GUI::run ( )

Member Data Documentation

◆ blockForest_

StructuredBlockForest& walberla::gui::GUI::blockForest_
private

◆ displayAdaptorCreatorFuncs_

std::vector<DisplayAdaptorCreatorFunc> walberla::gui::GUI::displayAdaptorCreatorFuncs_
private

◆ lastInstance_

GUI * walberla::gui::GUI::lastInstance_ = nullptr
staticprivate

◆ pImpl

GuiImpl* walberla::gui::GUI::pImpl
private

◆ timeloop_

timeloop::ITimeloop& walberla::gui::GUI::timeloop_
private

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