X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModelAPI%2FModelAPI_Result.h;h=c354ed3a3c2d821c4db457e006d6cbdd0d40122d;hb=031fb5e7c551e695afa72a9de299f118a40d8d88;hp=01fa9dde96fedb09e6bce02e314f8950bd65280e;hpb=141af0409801857d641e2bf61cd414b373e65b0b;p=modules%2Fshaper.git diff --git a/src/ModelAPI/ModelAPI_Result.h b/src/ModelAPI/ModelAPI_Result.h index 01fa9dde9..c354ed3a3 100644 --- a/src/ModelAPI/ModelAPI_Result.h +++ b/src/ModelAPI/ModelAPI_Result.h @@ -1,11 +1,14 @@ +// Copyright (C) 2014-20xx CEA/DEN, EDF R&D + // File: ModelAPI_Result.hxx // Created: 07 Jul 2014 // Author: Mikhail PONIKAROV -#ifndef ModelAPI_Result_HeaderFile -#define ModelAPI_Result_HeaderFile +#ifndef ModelAPI_Result_H_ +#define ModelAPI_Result_H_ #include "ModelAPI_Object.h" +#include class ModelAPI_Feature; @@ -17,15 +20,24 @@ class ModelAPI_Feature; */ class ModelAPI_Result : public ModelAPI_Object { -public: - /// Returns the source feature of this result - //virtual boost::shared_ptr owner() = 0; + bool myIsConcealed; ///< the result is concealed from the data tree (referenced by other objects) + public: + /// Returns true if the result is concealed from the data tree (referenced by other objects) + inline bool isConcealed() {return myIsConcealed;} + + /// Returns true if the result is concealed from the data tree (referenced by other objects) + inline void setIsConcealed(const bool theValue) {myIsConcealed = theValue;} + + /// To virtually destroy the fields of successors + virtual ~ModelAPI_Result() + { + } - /// Returns the group identifier of this result - virtual std::string groupName() = 0; + /// Returns the shape-result produced by this feature (or null if no shapes) + virtual std::shared_ptr shape() {return std::shared_ptr();} }; //! Pointer on feature object -typedef boost::shared_ptr ResultPtr; +typedef std::shared_ptr ResultPtr; #endif