Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Dump with geometrical selection
[modules/shaper.git]
/
src
/
ModelHighAPI
/
ModelHighAPI_Dumper.h
diff --git
a/src/ModelHighAPI/ModelHighAPI_Dumper.h
b/src/ModelHighAPI/ModelHighAPI_Dumper.h
index c1539528664403583f12984fc77eaf7a71a22be6..8cb9c5457eb0998048ed12f93aa17d42eb70dbc5 100644
(file)
--- a/
src/ModelHighAPI/ModelHighAPI_Dumper.h
+++ b/
src/ModelHighAPI/ModelHighAPI_Dumper.h
@@
-86,6
+86,11
@@
public:
/// Destructor
virtual ~ModelHighAPI_Dumper() {}
/// 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
/// Dump given document into the file
/// \return \c true, if succeed
MODELHIGHAPI_EXPORT
@@
-355,6
+360,8
@@
private:
std::list<EntityPtr> myPostponed; ///< list of postponed entities (sketch constraints or folders)
bool myDumpPostponedInProgress; ///< processing postponed is in progress
std::list<EntityPtr> 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<EntityPtr> myNotDumpedEntities;
protected:
/// list of entities, used by other features but not dumped yet
std::set<EntityPtr> myNotDumpedEntities;