myOutline = vtkOutlineSource::New();
myOutline->Delete();
- myOutlineMapper = vtkPolyDataMapper::New();
- myOutlineMapper->Delete();
- myOutlineMapper->SetInput(myOutline->GetOutput());
+ vtkSmartPointer<vtkPolyDataMapper> anOutlineMapper = vtkPolyDataMapper::New();
+ anOutlineMapper->Delete();
+ anOutlineMapper->SetInput(myOutline->GetOutput());
- myOutlineActor = vtkActor::New();
+ myOutlineActor = VTKViewer_Actor::New();
myOutlineActor->Delete();
myOutlineActor->PickableOff();
myOutlineActor->DragableOff();
- myOutlineActor->SetMapper( myOutlineMapper.GetPointer() );
+ myOutlineActor->SetMapper( anOutlineMapper.GetPointer() );
myOutlineActor->GetProperty()->SetColor(1.0,0.0,0.0);
myOutlineActor->GetProperty()->SetAmbient(1.0);
myOutlineActor->GetProperty()->SetDiffuse(0.0);
::SetTransform(VTKViewer_Transform* theTransform)
{
myTransformFilter->SetTransform(theTransform);
+ myOutlineActor->SetTransform(theTransform);
}
class vtkPolyData;
class vtkCamera;
class vtkProperty;
-class vtkPolyDataMapper;
class vtkOutlineSource;
class vtkRenderer;
class vtkInteractorStyle;
vtkSmartPointer<vtkProperty> myHighlightProperty;
vtkSmartPointer<SVTK_Actor> myHighlightActor;
- vtkSmartPointer<vtkActor> myOutlineActor;
+ vtkSmartPointer<VTKViewer_Actor> myOutlineActor;
vtkSmartPointer<vtkOutlineSource> myOutline;
- vtkSmartPointer<vtkPolyDataMapper> myOutlineMapper;
};
#endif // SALOME_ACTOR_H