Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Issue #1343 Fixes for creating extrusion on vertex
[modules/shaper.git]
/
src
/
GeomData
/
GeomData_Dir.h
diff --git
a/src/GeomData/GeomData_Dir.h
b/src/GeomData/GeomData_Dir.h
index 56a8b9d2ac80db8fac7a821493c9332bc7ddd1e1..debd400552702b68455955f17d775b3f6f97d8ae 100644
(file)
--- a/
src/GeomData/GeomData_Dir.h
+++ b/
src/GeomData/GeomData_Dir.h
@@
-1,17
+1,20
@@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
// File: GeomData_Dir.h
// Created: 24 Apr 2014
// Author: Mikhail PONIKAROV
// File: GeomData_Dir.h
// Created: 24 Apr 2014
// Author: Mikhail PONIKAROV
-#ifndef GeomData_Dir_H
eaderFile
-#define GeomData_Dir_H
eaderFile
+#ifndef GeomData_Dir_H
_
+#define GeomData_Dir_H
_
#include "GeomData.h"
#include "GeomDataAPI_Dir.h"
#include <TDataStd_RealArray.hxx>
#include <TDF_Label.hxx>
#include "GeomData.h"
#include "GeomDataAPI_Dir.h"
#include <TDataStd_RealArray.hxx>
#include <TDF_Label.hxx>
-#include <
boost/shared_ptr.hpp
>
+#include <
memory
>
class GeomAPI_Dir;
class GeomAPI_Dir;
+class GeomAPI_XYZ;
/**\class GeomData_Dir
* \ingroup DataModel
/**\class GeomData_Dir
* \ingroup DataModel
@@
-19,10
+22,12
@@
class GeomAPI_Dir;
*/
class GeomData_Dir : public GeomDataAPI_Dir
{
*/
class GeomData_Dir : public GeomDataAPI_Dir
{
- Handle_TDataStd_RealArray myCoords; ///< X, Y and Z doubles as real array attribute [0; 2]
-public:
+ Handle_TDataStd_RealArray myCoords;
///< X, Y and Z doubles as real array attribute [0; 2]
+
public:
/// Defines the double value
GEOMDATA_EXPORT virtual void setValue(const double theX, const double theY, const double theZ);
/// Defines the double value
GEOMDATA_EXPORT virtual void setValue(const double theX, const double theY, const double theZ);
+ /// Defines the direction
+ GEOMDATA_EXPORT virtual void setValue(const std::shared_ptr<GeomAPI_Dir>& theDir);
/// Returns the X double value
GEOMDATA_EXPORT virtual double x() const;
/// Returns the X double value
GEOMDATA_EXPORT virtual double x() const;
@@
-31,9
+36,11
@@
public:
/// Returns the Z double value
GEOMDATA_EXPORT virtual double z() const;
/// Returns the direction of this attribute
/// Returns the Z double value
GEOMDATA_EXPORT virtual double z() const;
/// Returns the direction of this attribute
- GEOMDATA_EXPORT boost::shared_ptr<GeomAPI_Dir> dir();
+ GEOMDATA_EXPORT virtual std::shared_ptr<GeomAPI_Dir> dir();
+ /// Returns the coordinates of this attribute
+ GEOMDATA_EXPORT virtual std::shared_ptr<GeomAPI_XYZ> xyz();
-protected:
+
protected:
/// Initializes attributes
GEOMDATA_EXPORT GeomData_Dir(TDF_Label& theLabel);
/// Initializes attributes
GEOMDATA_EXPORT GeomData_Dir(TDF_Label& theLabel);