1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: GeomAPI_Shape.hxx
4 // Created: 23 Apr 2014
5 // Author: Mikhail PONIKAROV
7 #ifndef GeomAPI_Shape_H_
8 #define GeomAPI_Shape_H_
10 #include <GeomAPI_Interface.h>
14 /**\class GeomAPI_Shape
16 * \brief Interface to the topological shape object
18 class GEOMAPI_EXPORT GeomAPI_Shape : public GeomAPI_Interface
21 /// Creation of empty (null) shape
26 /// Returns whether the shapes are equal
27 virtual bool isEqual(const std::shared_ptr<GeomAPI_Shape> theShape) const;
29 /// Returns whether the shape is a vertex
30 virtual bool isVertex() const;
32 /// Returns whether the shape is an edge
33 virtual bool isEdge() const;
35 /// Returns whether the shape is a face
36 virtual bool isFace() const;
38 /// Computes boundary dimensions of the shape
39 /// Returns False if it is not possible
40 bool computeSize(double& theXmin, double& theYmin, double& theZmin,
41 double& theXmax, double& theYmax, double& theZmax) const;
43 std::string getShapeStream() const;
46 //! Pointer on list of shapes
47 typedef std::list<std::shared_ptr<GeomAPI_Shape> > ListOfShape;
49 //! Pointer on attribute object
50 typedef std::shared_ptr<GeomAPI_Shape> GeomShapePtr;