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
Roll back the modification, not yet approved
[modules/shaper.git]
/
src
/
Model
/
Model_Objects.h
diff --git
a/src/Model/Model_Objects.h
b/src/Model/Model_Objects.h
index bf6904715014fe90783cbfb906b55e2b6dddfeb9..0b11f4436c05ddf72e05ab68487086bc7e5177e6 100644
(file)
--- a/
src/Model/Model_Objects.h
+++ b/
src/Model/Model_Objects.h
@@
-16,6
+16,7
@@
#include <TDocStd_Document.hxx>
#include <NCollection_DataMap.hxx>
#include <TDF_Label.hxx>
#include <TDocStd_Document.hxx>
#include <NCollection_DataMap.hxx>
#include <TDF_Label.hxx>
+#include <TDF_LabelList.hxx>
#include <map>
#include <set>
#include <vector>
#include <map>
#include <set>
#include <vector>
@@
-100,16
+101,13
@@
class Model_Objects
/// Creates a body results
std::shared_ptr<ModelAPI_ResultBody> createBody(
const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);
/// Creates a body results
std::shared_ptr<ModelAPI_ResultBody> createBody(
const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);
- /// Creates a body results
- std::shared_ptr<ModelAPI_ResultCompSolid> createCompSolid(
- const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);
/// Creates a part results
std::shared_ptr<ModelAPI_ResultPart> createPart(
const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);
/// Creates a part results
std::shared_ptr<ModelAPI_ResultPart> createPart(
const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);
- /// Copies a part results, keeping the
same data
+ /// Copies a part results, keeping the
reference to origin
std::shared_ptr<ModelAPI_ResultPart> copyPart(
std::shared_ptr<ModelAPI_ResultPart> copyPart(
- const std::shared_ptr<ModelAPI_Result
>& theOldPart,
- const std::shared_ptr<ModelAPI_
ResultPart>& theOrigin
, const int theIndex = 0);
+ const std::shared_ptr<ModelAPI_Result
Part>& theOrigin,
+ const std::shared_ptr<ModelAPI_
Data>& theFeatureData
, const int theIndex = 0);
/// Creates a group results
std::shared_ptr<ModelAPI_ResultGroup> createGroup(
const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);
/// Creates a group results
std::shared_ptr<ModelAPI_ResultGroup> createGroup(
const std::shared_ptr<ModelAPI_Data>& theFeatureData, const int theIndex = 0);
@@
-140,10
+138,10
@@
class Model_Objects
void setUniqueName(FeaturePtr theFeature);
//! Synchronizes myFeatures list with the updated document
void setUniqueName(FeaturePtr theFeature);
//! Synchronizes myFeatures list with the updated document
- //! \param the
MarkUpdated causes the "update" event for all features
+ //! \param the
Updated list of labels that are marked as modified, so featrues must be also
//! \param theUpdateReferences causes the update of back-references
//! \param theFlush makes flush all events in the end of all modifications of this method
//! \param theUpdateReferences causes the update of back-references
//! \param theFlush makes flush all events in the end of all modifications of this method
- void synchronizeFeatures(const
bool theMark
Updated, const bool theUpdateReferences,
+ void synchronizeFeatures(const
TDF_LabelList& the
Updated, const bool theUpdateReferences,
const bool theFlush);
//! Synchronizes the BackReferences list in Data of Features and Results
void synchronizeBackRefs();
const bool theFlush);
//! Synchronizes the BackReferences list in Data of Features and Results
void synchronizeBackRefs();
@@
-184,6
+182,8
@@
class Model_Objects
FeaturePtr firstFeature();
/// Returns to the last (from the history point of view) feature, any: invisible or disabled
FeaturePtr lastFeature();
FeaturePtr firstFeature();
/// Returns to the last (from the history point of view) feature, any: invisible or disabled
FeaturePtr lastFeature();
+ /// Returns true if theLater is in history of features creation later than theCurrent
+ bool isLater(FeaturePtr theLater, FeaturePtr theCurrent) const;
/// Returns the result group identifier of the given feature (for this at least one result must
/// be created before)
/// Returns the result group identifier of the given feature (for this at least one result must
/// be created before)