Salome HOME
Issue #273: Add copyright string
[modules/shaper.git] / src / GeomAPI / GeomAPI_Shape.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        GeomAPI_Shape.hxx
4 // Created:     23 Apr 2014
5 // Author:      Mikhail PONIKAROV
6
7 #ifndef GeomAPI_Shape_H_
8 #define GeomAPI_Shape_H_
9
10 #include <GeomAPI_Interface.h>
11 #include <memory>
12 #include <list>
13
14 /**\class GeomAPI_Shape
15  * \ingroup DataModel
16  * \brief Interface to the topological shape object
17  */
18 class GEOMAPI_EXPORT GeomAPI_Shape : public GeomAPI_Interface
19 {
20  public:
21   /// Creation of empty (null) shape
22   GeomAPI_Shape();
23
24   bool isNull() const;
25
26   /// Returns whether the shapes are equal
27   virtual bool isEqual(const std::shared_ptr<GeomAPI_Shape> theShape) const;
28
29   /// Returns whether the shape is a vertex
30   virtual bool isVertex() const;
31
32   /// Returns whether the shape is an edge
33   virtual bool isEdge() const;
34
35   /// Returns whether the shape is a face
36   virtual bool isFace() const;
37
38 };
39
40 //! Pointer on list of shapes
41 typedef std::list<std::shared_ptr<GeomAPI_Shape> > ListOfShape;
42
43 //! Pointer on attribute object
44 typedef std::shared_ptr<GeomAPI_Shape> GeomShapePtr;
45
46 #endif