Version: 8.3.0
PVGUI_DataModel Class Reference

#include <PVGUI_DataModel.h>

Inheritance diagram for PVGUI_DataModel:
Inheritance graph

Public Member Functions

 PVGUI_DataModel (PVGUI_Module *theModule)
 
virtual ~PVGUI_DataModel ()
 
virtual bool dumpPython (const QString &, CAM_Study *, bool, QStringList &)
 
virtual bool open (const QString &, CAM_Study *, QStringList)
 Open data model (read ParaView pipeline state from the files). More...
 
virtual bool save (QStringList &)
 Save data model (write ParaView pipeline to the files). More...
 
virtual bool saveAs (const QString &, CAM_Study *, QStringList &)
 Save data model (write ParaView pipeline state to the files). More...
 
virtual bool create (CAM_Study *)
 

Private Member Functions

void publishComponent (CAM_Study *)
 
bool createAndCheckRestoreFlag (const QString &tmpdir, QStringList &listOfFiles, bool &alreadyThere)
 

Private Attributes

QString myStudyURL
 

Static Private Attributes

static const QString RESTORE_FLAG_FILE = "do_restore_paravis_references.par"
 

Constructor & Destructor Documentation

PVGUI_DataModel::PVGUI_DataModel ( PVGUI_Module theModule)
PVGUI_DataModel::~PVGUI_DataModel ( )
virtual

Member Function Documentation

bool PVGUI_DataModel::dumpPython ( const QString &  path,
CAM_Study *  std,
bool  isMultiFile,
QStringList &  listOfFiles 
)
virtual
bool PVGUI_DataModel::open ( const QString &  theName,
CAM_Study *  theStudy,
QStringList  theList 
)
virtual
Parameters
theNamestudy file path
theStudystudy pointer
theListlist of the (temporary) files with data
Returns
operation status (true on success and false on error)

References createAndCheckRestoreFlag(), PVGUI_Module::loadParaviewState(), myStudyURL, and publishComponent().

bool PVGUI_DataModel::save ( QStringList &  theListOfFiles)
virtual
Parameters
listOfFilesreturning list of the (temporary) files with saved data
Returns
operation status (true on success and false on error)

References createAndCheckRestoreFlag(), myStudyURL, and PVGUI_Module::saveParaviewState().

bool PVGUI_DataModel::saveAs ( const QString &  url,
CAM_Study *  study,
QStringList &  theListOfFiles 
)
virtual
Parameters
urlstudy file path
studystudy pointer
listOfFilesreturning list of the (temporary) files with saved data
Returns
operation status (true on success and false on error)

References myStudyURL, and save().

bool PVGUI_DataModel::create ( CAM_Study *  theStudy)
virtual

References publishComponent().

void PVGUI_DataModel::publishComponent ( CAM_Study *  theStudy)
private
bool PVGUI_DataModel::createAndCheckRestoreFlag ( const QString &  tmpdir,
QStringList &  listOfFiles,
bool &  alreadyThere 
)
private

Create an empty file indicating whether source files in the pipeline should be restored.

References RESTORE_FLAG_FILE.

Field Documentation

QString PVGUI_DataModel::myStudyURL
private
const QString PVGUI_DataModel::RESTORE_FLAG_FILE = "do_restore_paravis_references.par"
staticprivate