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
Make features history working. Optimization of features and results management and...
[modules/shaper.git]
/
src
/
Model
/
Model_ResultPart.h
diff --git
a/src/Model/Model_ResultPart.h
b/src/Model/Model_ResultPart.h
index 4123d69e37f640b37255510fc55c1bd612cc3f5d..7ebafd3ea0b22237d2b7e7ed10b3757a35fe0bc6 100644
(file)
--- a/
src/Model/Model_ResultPart.h
+++ b/
src/Model/Model_ResultPart.h
@@
-1,3
+1,5
@@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
// File: ModelAPI_ResultPart.hxx
// Created: 07 Jul 2014
// Author: Mikhail PONIKAROV
// File: ModelAPI_ResultPart.hxx
// Created: 07 Jul 2014
// Author: Mikhail PONIKAROV
@@
-8,7
+10,7
@@
#include "Model.h"
#include <ModelAPI_ResultPart.h>
#include "Model.h"
#include <ModelAPI_ResultPart.h>
-/**\class Model
API
_ResultPart
+/**\class Model_ResultPart
* \ingroup DataModel
* \brief The Part document, result of a creation of new part feature.
*
* \ingroup DataModel
* \brief The Part document, result of a creation of new part feature.
*
@@
-17,20
+19,26
@@
*/
class Model_ResultPart : public ModelAPI_ResultPart
{
*/
class Model_ResultPart : public ModelAPI_ResultPart
{
-public:
+
public:
/// Returns the part-document of this result
/// Returns the part-document of this result
- MODEL_EXPORT virtual
boost
::shared_ptr<ModelAPI_Document> partDoc();
+ MODEL_EXPORT virtual
std
::shared_ptr<ModelAPI_Document> partDoc();
/// Part has no stored feature: this method returns NULL
/// Part has no stored feature: this method returns NULL
- MODEL_EXPORT virtual boost::shared_ptr<ModelAPI_Feature> owner();
+ MODEL_EXPORT virtual std::shared_ptr<ModelAPI_Feature> owner();
+
+ /// Sets this document as current and if it is not loaded yet, loads it
+ MODEL_EXPORT virtual void activate();
protected:
/// makes a result on a temporary feature (an action)
Model_ResultPart();
/// Sets the data manager of an object (document does), here also attributes are initialized
protected:
/// makes a result on a temporary feature (an action)
Model_ResultPart();
/// Sets the data manager of an object (document does), here also attributes are initialized
- virtual void setData(boost::shared_ptr<ModelAPI_Data> theData);
+ virtual void setData(std::shared_ptr<ModelAPI_Data> theData);
+
+ /// Returns true if document is activated (loaded into the memory)
+ virtual bool isActivated();
- friend class Model_
Document
;
+ friend class Model_
Objects
;
};
#endif
};
#endif