Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Image positioning by two points.
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_AISCurve.cxx
diff --git
a/src/HYDROGUI/HYDROGUI_AISCurve.cxx
b/src/HYDROGUI/HYDROGUI_AISCurve.cxx
index 67265afd33932f8de89d669ed08c7b4799c01375..16364e6f8c2da028bc89eba840d4271d59555924 100755
(executable)
--- a/
src/HYDROGUI/HYDROGUI_AISCurve.cxx
+++ b/
src/HYDROGUI/HYDROGUI_AISCurve.cxx
@@
-1,6
+1,6
@@
#include "HYDROGUI_AISCurve.h"
#include "HYDROGUI_AISCurve.h"
-#include <HYDRO
Operations_BSpline
.h>
+#include <HYDRO
Data_BSplineOperation
.h>
#include <CurveCreator_Curve.hxx>
#include <CurveCreator_Curve.hxx>
@@
-106,7
+106,7
@@
void HYDROGUI_AISCurveSection::buildSection()
if( aSectSize > 1 )
{
if( aSectSize > 1 )
{
- HYDRO
Operations_BSpline aBSpline( aPoints
, aSectIsClosed );
+ HYDRO
Data_BSplineOperation aBSpline( aPoints, 0
, aSectIsClosed );
TopoDS_Edge anEdge = BRepBuilderAPI_MakeEdge( aBSpline.Curve() ).Edge();
TopoDS_Wire aWire = BRepBuilderAPI_MakeWire( anEdge ).Wire();
TopoDS_Edge anEdge = BRepBuilderAPI_MakeEdge( aBSpline.Curve() ).Edge();
TopoDS_Wire aWire = BRepBuilderAPI_MakeWire( anEdge ).Wire();
@@
-174,6
+174,7
@@
HYDROGUI_AISCurve::HYDROGUI_AISCurve( CurveCreator_Curve* theCurve, Handle_AIS_I
HYDROGUI_AISCurve::~HYDROGUI_AISCurve(void)
{
HYDROGUI_AISCurve::~HYDROGUI_AISCurve(void)
{
+ myCurve->removeListener();
}
void HYDROGUI_AISCurve::setCurve( CurveCreator_Curve* theCurve )
}
void HYDROGUI_AISCurve::setCurve( CurveCreator_Curve* theCurve )
@@
-189,6
+190,13
@@
void HYDROGUI_AISCurve::Display()
}
}
}
}
+void HYDROGUI_AISCurve::Erase()
+{
+ for( int i = 0 ; i < myCurveRepresentation.size() ; i++ ){
+ myCurveRepresentation[i]->Erase();
+ }
+}
+
void HYDROGUI_AISCurve::buildCurve()
{
for( int i = 0 ; i < myCurveRepresentation.size() ; i++ ){
void HYDROGUI_AISCurve::buildCurve()
{
for( int i = 0 ; i < myCurveRepresentation.size() ; i++ ){