#include <HYDROData_Entity.h>
#include <HYDROData_Zone.h>
#include <HYDROData_Region.h>
+#include <HYDROData_CalculationCase.h>
#include <QMap>
+#include <QList>
#include <LightApp_DataModel.h>
#include <SUIT_TreeModel.h>
class CAM_DataObject;
class SUIT_DataObject;
class HYDROGUI_DataObject;
+class HYDROGUI_Zone;
/**
* \class HYDROGUI_DataModel
*/
CAM_DataObject* createRootModuleObject( SUIT_DataObject* theParent );
+ /**
+ * Create a new region in the given calculation case containing given zones.
+ */
+ bool createNewRegion( Handle(HYDROData_CalculationCase) theCase, const QList<HYDROGUI_Zone*>& theZonesList );
+
/**
* Correct an internal model object according to the current document mode
*/
*/
bool paste();
+ /**
+ * Creates the GUI data object according to the model object.
+ * \param theParent a created object will be appended as a child of this object
+ * \param theModelObject model object
+ * \param theParentEntry entry of parent object
+ */
+ void buildCaseTree( SUIT_DataObject* theParent,
+ Handle(HYDROData_CalculationCase) theCase );
+
/**
* Update the sequence of the objects to be copied
*/
*/
static QString partitionName( const ObjectKind theObjectKind );
+protected:
/**
* Returns the document for the current study
*/
const QString& theParentEntry = QString(),
const bool theIsBuildTree = true );
-protected:
/**
* Creates the GUI data object without corresponding model object: just by name
* \param theParent a created object will be appended as a child of this object