X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelHighAPI%2FModelHighAPI_Dumper.h;h=8cb9c5457eb0998048ed12f93aa17d42eb70dbc5;hb=2cb8023bec0da9fc7b138da0a467bca74d4b825c;hp=b287dd6ec3eb3d71748b88208e7925cdf04b5174;hpb=2714903267d23cd0c81166c506fb3edd1e069d40;p=modules%2Fshaper.git diff --git a/src/ModelHighAPI/ModelHighAPI_Dumper.h b/src/ModelHighAPI/ModelHighAPI_Dumper.h index b287dd6ec..8cb9c5457 100644 --- a/src/ModelHighAPI/ModelHighAPI_Dumper.h +++ b/src/ModelHighAPI/ModelHighAPI_Dumper.h @@ -86,6 +86,11 @@ public: /// Destructor virtual ~ModelHighAPI_Dumper() {} + /// Set/unset flag to dump selection attributes by geometrical properties: + /// inner point in the selected shape + void setSelectionByGeometry(bool theDumpByGeom = true) + { myGeometricalSelection = theDumpByGeom; } + /// Dump given document into the file /// \return \c true, if succeed MODELHIGHAPI_EXPORT @@ -302,7 +307,7 @@ private: bool isDefaultTransparency(const ResultPtr& theResult) const; /// Dump postponed entities - void dumpPostponed(); + void dumpPostponed(bool theDumpFolders = false); private: struct EntityName { @@ -321,9 +326,9 @@ private: {} }; - typedef std::map EntityNameMap; - typedef std::map > ModulesMap; - typedef std::map > NbFeaturesMap; + typedef std::map EntityNameMap; + typedef std::map > ModulesMap; + typedef std::map > > NbFeaturesMap; struct LastDumpedEntity { EntityPtr myEntity; ///< last dumped entity @@ -332,7 +337,7 @@ private: std::list myResults; LastDumpedEntity(EntityPtr theEntity, bool theUserName, - const std::list& theResults) + const std::list& theResults = std::list()) : myEntity(theEntity), myUserName(theUserName), myResults(theResults) {} }; @@ -355,6 +360,8 @@ private: std::list myPostponed; ///< list of postponed entities (sketch constraints or folders) bool myDumpPostponedInProgress; ///< processing postponed is in progress + bool myGeometricalSelection; ///< dump selection not by naming, but by coordinates of inner point + protected: /// list of entities, used by other features but not dumped yet std::set myNotDumpedEntities;