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 #251. Append Export/Import NewGeom commands in the SALOME desktop.
[modules/shaper.git]
/
src
/
GeomData
/
GeomData_Dir.h
diff --git
a/src/GeomData/GeomData_Dir.h
b/src/GeomData/GeomData_Dir.h
index 56a8b9d2ac80db8fac7a821493c9332bc7ddd1e1..b4dea091ac3574f3c34f8fbd7f9d1ca2143730ea 100644
(file)
--- a/
src/GeomData/GeomData_Dir.h
+++ b/
src/GeomData/GeomData_Dir.h
@@
-2,8
+2,8
@@
// Created: 24 Apr 2014
// Author: Mikhail PONIKAROV
// 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 "GeomData.h"
#include "GeomDataAPI_Dir.h"
@@
-19,10
+19,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 boost::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
+33,9
@@
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
boost::shared_ptr<GeomAPI_Dir> dir();
-protected:
+
protected:
/// Initializes attributes
GEOMDATA_EXPORT GeomData_Dir(TDF_Label& theLabel);
/// Initializes attributes
GEOMDATA_EXPORT GeomData_Dir(TDF_Label& theLabel);