#include "SMDS_UnstructuredGrid.hxx"
#include "SMESH_ScalarBarActor.h"
#include "VTKViewer_CellCenters.h"
+#include "VTKViewer_DataSetMapper.h"
#include "VTKViewer_ExtractUnstructuredGrid.h"
#include "VTKViewer_FramedTextActor.h"
#include "SALOME_InteractiveObject.hxx"
myPickableActor = myBaseActor;
+ myMapper = VTKViewer_DataSetMapper::New();
+ myMapper->SetInput( myPickableActor->GetUnstructuredGrid() );
+
myHighlightProp = vtkProperty::New();
myHighlightProp->SetAmbient(1.0);
myHighlightProp->SetDiffuse(0.0);
myImplicitBoolean->Delete();
+ myMapper->Delete();
+
myTimeStamp->Delete();
}
vtkMapper* SMESH_ActorDef::GetMapper(){
- return myPickableActor->GetMapper();
+ return myMapper;
}
class vtkTimeStamp;
class VTKViewer_CellCenters;
+class VTKViewer_DataSetMapper;
class SMESH_DeviceActor;
class SMESH_ScalarBarActor;
vtkProperty* myEdgeProp;
vtkProperty* myNodeProp;
+ VTKViewer_DataSetMapper* myMapper;
+
SMESH_DeviceActor* myBaseActor;
SMESH_DeviceActor* myNodeActor;
SMESH_DeviceActor* myPickableActor;