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
Update the Doxygen documentation for the Model* packages
[modules/shaper.git]
/
src
/
Model
/
Model_ResultConstruction.h
diff --git
a/src/Model/Model_ResultConstruction.h
b/src/Model/Model_ResultConstruction.h
index 84f048f6d3a98c27228084747208a29fd61cee01..0a497b271b2d86ac3f50c31b324b9de90ec904f8 100644
(file)
--- a/
src/Model/Model_ResultConstruction.h
+++ b/
src/Model/Model_ResultConstruction.h
@@
-25,18
+25,12
@@
class Model_ResultConstruction : public ModelAPI_ResultConstruction
bool myFacesUpToDate; ///< is true if faces in myuFaces are computed and up to date
std::vector<std::shared_ptr<GeomAPI_Face> > myFaces; ///< stores the up to date faces if they exist
bool myIsInHistory;
bool myFacesUpToDate; ///< is true if faces in myuFaces are computed and up to date
std::vector<std::shared_ptr<GeomAPI_Face> > myFaces; ///< stores the up to date faces if they exist
bool myIsInHistory;
+ bool myIsInfinite;
public:
public:
- /// default color for a result construction
- inline static const std::string& DEFAULT_COLOR()
- {
- static const std::string RESULT_CONSTRUCTION_COLOR("#000000");
- return RESULT_CONSTRUCTION_COLOR;
- }
-
/// Request for initialization of data model of the result: adding all attributes
virtual void initAttributes();
/// Request for initialization of data model of the result: adding all attributes
virtual void initAttributes();
- // Retuns the parameters of color definition in the resources config manager
+ //
/
Retuns the parameters of color definition in the resources config manager
MODEL_EXPORT virtual void colorConfigInfo(std::string& theSection, std::string& theName,
std::string& theDefault);
MODEL_EXPORT virtual void colorConfigInfo(std::string& theSection, std::string& theName,
std::string& theDefault);
@@
-59,11
+53,16
@@
class Model_ResultConstruction : public ModelAPI_ResultConstruction
/// if the construction result may be used as faces, this method returns face by zero based index
MODEL_EXPORT virtual std::shared_ptr<GeomAPI_Face> face(const int theIndex);
/// if the construction result may be used as faces, this method returns face by zero based index
MODEL_EXPORT virtual std::shared_ptr<GeomAPI_Face> face(const int theIndex);
+ /// By default object is not infinite.
+ MODEL_EXPORT virtual bool isInfinite();
+ /// Sets the flag that it is infinite
+ MODEL_EXPORT virtual void setInfinite(const bool theInfinite);
+
protected:
/// Makes a body on the given feature
Model_ResultConstruction();
protected:
/// Makes a body on the given feature
Model_ResultConstruction();
- friend class Model_
Document
;
+ friend class Model_
Objects
;
};
#endif
};
#endif