1 // Copyright (C) 2014-2017 CEA/DEN, EDF R&D
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 // Lesser General Public License for more details.
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 // See http://www.salome-platform.org/ or
18 // email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
21 #ifndef SRC_SKETCHAPI_SKETCHAPI_SKETCHENTITY_H_
22 #define SRC_SKETCHAPI_SKETCHAPI_SKETCHENTITY_H_
24 //--------------------------------------------------------------------------------------
25 #include "SketchAPI.h"
27 #include <SketchPlugin_SketchEntity.h>
29 #include <ModelHighAPI_Interface.h>
30 #include <ModelHighAPI_Macro.h>
32 class ModelAPI_Feature;
33 //--------------------------------------------------------------------------------------
34 /**\class SketchAPI_SketchEntity
36 * \brief Base class for Sketch feature interfaces
38 class SketchAPI_SketchEntity : public ModelHighAPI_Interface
41 /// Constructor without values
43 explicit SketchAPI_SketchEntity(const std::shared_ptr<ModelAPI_Feature> & theFeature);
46 virtual ~SketchAPI_SketchEntity();
50 std::shared_ptr<ModelAPI_AttributeBoolean> auxiliary() const;
54 void setAuxiliary(bool theAuxiliary);
56 /// Dump wrapped feature
57 virtual void dump(ModelHighAPI_Dumper& theDumper) const;
59 /// Convert list of features to list of appropriate wrappers
61 static std::list<std::shared_ptr<SketchAPI_SketchEntity> >
62 wrap(const std::list<std::shared_ptr<ModelAPI_Feature> >& theFeatures);
65 std::shared_ptr<ModelAPI_AttributeBoolean> myAuxiliary;
69 /// Check the entity is a copy of another feature
73 //! Pointer on SketchEntity object
74 typedef std::shared_ptr<SketchAPI_SketchEntity> SketchEntityPtr;
76 //--------------------------------------------------------------------------------------
77 //--------------------------------------------------------------------------------------
78 #endif /* SRC_SKETCHAPI_SKETCHAPI_SKETCHENTITY_H_ */