Salome HOME
projects
/
modules
/
smesh.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7dd674b
)
Fix: Bug PAL7970 Broken control Lengh2D after Free Borders
author
enk
<enk@opencascade.com>
Wed, 2 Feb 2005 12:31:32 +0000
(12:31 +0000)
committer
enk
<enk@opencascade.com>
Wed, 2 Feb 2005 12:31:32 +0000
(12:31 +0000)
src/OBJECT/SMESH_DeviceActor.cxx
patch
|
blob
|
history
diff --git
a/src/OBJECT/SMESH_DeviceActor.cxx
b/src/OBJECT/SMESH_DeviceActor.cxx
index a0d582e79997e1c70582ae1ea8b26f146e6b9066..52a34f63de2b65db6217214395cb0576727e404e 100644
(file)
--- a/
src/OBJECT/SMESH_DeviceActor.cxx
+++ b/
src/OBJECT/SMESH_DeviceActor.cxx
@@
-24,7
+24,7
@@
// File : SMESH_Actor.cxx
// Author : Nicolas REJNERI
// Module : SMESH
// File : SMESH_Actor.cxx
// Author : Nicolas REJNERI
// Module : SMESH
-// $Header$Header$
+// $Header$Header
: /home/server/cvs/SMESH/SMESH_SRC/src/OBJECT/SMESH_DeviceActor.cxx,v 1.7 2005/02/02 12:17:51 apo Exp
$
#include "SMESH_DeviceActor.h"
#include "SMESH_DeviceActor.h"
@@
-264,14
+264,16
@@
void SMESH_DeviceActor::SetExtControlMode(SMESH::Controls::FunctorPtr theFunctor
vtkLookupTable* theLookupTable)
{
bool anIsInitialized = theFunctor;
vtkLookupTable* theLookupTable)
{
bool anIsInitialized = theFunctor;
+ myExtractUnstructuredGrid->ClearRegisteredCells();
+ myExtractUnstructuredGrid->ClearRegisteredCellsWithType();
+ myExtractUnstructuredGrid->SetModeOfChanging(SALOME_ExtractUnstructuredGrid::ePassAll);
+ myVisualObj->UpdateFunctor(theFunctor);
using namespace SMESH::Controls;
if (anIsInitialized){
if (Length2D* aLength2D = dynamic_cast<Length2D*>(theFunctor.get())){
SMESH::Controls::Length2D::TValues aValues;
using namespace SMESH::Controls;
if (anIsInitialized){
if (Length2D* aLength2D = dynamic_cast<Length2D*>(theFunctor.get())){
SMESH::Controls::Length2D::TValues aValues;
- myVisualObj->UpdateFunctor(theFunctor);
-
aLength2D->GetValues(aValues);
vtkUnstructuredGrid* aDataSet = vtkUnstructuredGrid::New();
vtkUnstructuredGrid* aGrid = myVisualObj->GetUnstructuredGrid();
aLength2D->GetValues(aValues);
vtkUnstructuredGrid* aDataSet = vtkUnstructuredGrid::New();
vtkUnstructuredGrid* aGrid = myVisualObj->GetUnstructuredGrid();
@@
-334,8
+336,6
@@
void SMESH_DeviceActor::SetExtControlMode(SMESH::Controls::FunctorPtr theFunctor
else if (MultiConnection2D* aMultiConnection2D = dynamic_cast<MultiConnection2D*>(theFunctor.get())){
SMESH::Controls::MultiConnection2D::MValues aValues;
else if (MultiConnection2D* aMultiConnection2D = dynamic_cast<MultiConnection2D*>(theFunctor.get())){
SMESH::Controls::MultiConnection2D::MValues aValues;
- myVisualObj->UpdateFunctor(theFunctor);
-
aMultiConnection2D->GetValues(aValues);
vtkUnstructuredGrid* aDataSet = vtkUnstructuredGrid::New();
vtkUnstructuredGrid* aGrid = myVisualObj->GetUnstructuredGrid();
aMultiConnection2D->GetValues(aValues);
vtkUnstructuredGrid* aDataSet = vtkUnstructuredGrid::New();
vtkUnstructuredGrid* aGrid = myVisualObj->GetUnstructuredGrid();