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 #529: 4.07. Import IGES, export to BREP, STEP, IGES - Tests for Import/Export
[modules/shaper.git]
/
src
/
SketchPlugin
/
SketchPlugin_Point.h
diff --git
a/src/SketchPlugin/SketchPlugin_Point.h
b/src/SketchPlugin/SketchPlugin_Point.h
index 48415b18ccf83a6b3592aa9c226b6b83c6f8dcb9..4c774715757edc8463ee320102c7699d01f70ed7 100644
(file)
--- a/
src/SketchPlugin/SketchPlugin_Point.h
+++ b/
src/SketchPlugin/SketchPlugin_Point.h
@@
-1,3
+1,5
@@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D -->
+
// File: SketchPlugin_Point.h
// Created: 07 May 2014
// Author: Artem ZHIDKOV
// File: SketchPlugin_Point.h
// Created: 07 May 2014
// Author: Artem ZHIDKOV
@@
-7,14
+9,14
@@
#include "SketchPlugin.h"
#include <SketchPlugin_Sketch.h>
#include "SketchPlugin.h"
#include <SketchPlugin_Sketch.h>
-#include "SketchPlugin_
Feature
.h"
+#include "SketchPlugin_
SketchEntity
.h"
#include <list>
/**\class SketchPlugin_Point
#include <list>
/**\class SketchPlugin_Point
- * \ingroup
DataModel
+ * \ingroup
Plugins
* \brief Feature for creation of a new point.
*/
* \brief Feature for creation of a new point.
*/
-class SketchPlugin_Point : public SketchPlugin_
Feature
+class SketchPlugin_Point : public SketchPlugin_
SketchEntity
{
public:
/// Point feature kind
{
public:
/// Point feature kind
@@
-45,12
+47,6
@@
class SketchPlugin_Point : public SketchPlugin_Feature
/// Request for initialization of data model of the feature: adding all attributes
SKETCHPLUGIN_EXPORT virtual void initAttributes();
/// Request for initialization of data model of the feature: adding all attributes
SKETCHPLUGIN_EXPORT virtual void initAttributes();
- /// Returns the AIS preview
- virtual AISObjectPtr getAISObject(AISObjectPtr thePrevious)
- {
- return simpleAISObject(firstResult(), thePrevious);
- }
-
/// Moves the feature
/// \param theDeltaX the delta for X coordinate is moved
/// \param theDeltaY the delta for Y coordinate is moved
/// Moves the feature
/// \param theDeltaX the delta for X coordinate is moved
/// \param theDeltaY the delta for Y coordinate is moved
@@
-58,7
+54,10
@@
class SketchPlugin_Point : public SketchPlugin_Feature
/// Return the distance between the feature and the point
/// \param thePoint the point
/// Return the distance between the feature and the point
/// \param thePoint the point
- virtual double distanceToPoint(const boost::shared_ptr<GeomAPI_Pnt2d>& thePoint);
+ virtual double distanceToPoint(const std::shared_ptr<GeomAPI_Pnt2d>& thePoint);
+
+ /// Called on change of any argument-attribute of this object: for external point
+ SKETCHPLUGIN_EXPORT virtual void attributeChanged(const std::string& theID);
/// Use plugin manager for features creation
SketchPlugin_Point();
/// Use plugin manager for features creation
SketchPlugin_Point();