Salome HOME
New features processing in SketchSolver (stage 1)
[modules/shaper.git] / src / GeomDataAPI / GeomDataAPI_Dir.h
index 90ab6161459dd5a5658576ad62bee3452d99a46d..dbe8ef5e26f0a2c5d6f3d1e4d1648e1c0c4d2c96 100644 (file)
@@ -8,6 +8,8 @@
 #include "GeomDataAPI.h"
 #include <ModelAPI_Attribute.h>
 
+class GeomAPI_Dir;
+
 /**\class GeomDataAPI_Dir
  * \ingroup DataModel
  * \brief Attribute that contains 3D direction coordinates. 
@@ -25,9 +27,11 @@ public:
   virtual double y() const = 0;
   /// Returns the Z double value
   virtual double z() const = 0;
+  /// Returns the direction of this attribute
+  virtual boost::shared_ptr<GeomAPI_Dir> dir() = 0;
 
   /// Returns the type of this class of attributes
-  static inline std::string type() {return std::string("Point");}
+  static inline std::string type() {return std::string("Dir");}
 
   /// Returns the type of this class of attributes, not static method
   virtual std::string attributeType() {return type();}