/// 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
{}
};
- typedef std::map<EntityPtr, EntityName> EntityNameMap;
- typedef std::map<std::string, std::set<std::string> > ModulesMap;
- typedef std::map<DocumentPtr, std::map<std::string, int> > NbFeaturesMap;
+ typedef std::map<EntityPtr, EntityName> EntityNameMap;
+ typedef std::map<std::string, std::set<std::string> > ModulesMap;
+ typedef std::map<DocumentPtr, std::map<std::string, std::pair<int, int> > > NbFeaturesMap;
struct LastDumpedEntity {
EntityPtr myEntity; ///< last dumped entity
std::list<ResultPtr> myResults;
LastDumpedEntity(EntityPtr theEntity, bool theUserName,
- const std::list<ResultPtr>& theResults)
+ const std::list<ResultPtr>& theResults = std::list<ResultPtr>())
: myEntity(theEntity), myUserName(theUserName), myResults(theResults)
{}
};
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;