myScalarBar = VISU_ScalarBarActor::New();
vtkProperty* aProperty = GetProperty();
- //aProperty->SetAmbient(0.5);
- //aProperty->SetDiffuse(0.2);
- //aProperty->SetSpecular(0.2);
aProperty->SetAmbient(1.0);
aProperty->SetDiffuse(0.0);
aProperty->SetSpecular(0.0);
myProperty->DeepCopy(aProperty);
- vtkMatrix4x4 *m;
- m = vtkMatrix4x4::New();
+ vtkMatrix4x4 *aMatrix = vtkMatrix4x4::New();
mySurfaceActor= SVTK_DeviceActor::New();
mySurfaceActor->SetRepresentation(SVTK::Representation::Surface);
mySurfaceActor->SetProperty(aProperty);
- mySurfaceActor->SetUserMatrix(m);
+ mySurfaceActor->SetUserMatrix(aMatrix);
myEdgeActor = SVTK_DeviceActor::New();
myEdgeActor->SetRepresentation(SVTK::Representation::Wireframe);
- myEdgeActor->SetUserMatrix(m);
+ myEdgeActor->SetUserMatrix(aMatrix);
myEdgeActor->GetProperty()->SetColor(255.,255.,255.);
myPointsActor = VISU_PointsDeviceActor::New();
- myPointsActor->SetUserMatrix(m);
+ myPointsActor->SetProperty(aProperty);
+ myPointsActor->SetUserMatrix(aMatrix);
- m->Delete();
+ aMatrix->Delete();
}
//----------------------------------------------------------------------------
bool anIsShanding = IsShading();
Superclass::SetRepresentation(theMode);
+
if(theMode == SVTK::Representation::Surfaceframe)
mySurfaceActor->SetRepresentation(SVTK::Representation::Surface);
else
mySurfaceActor->SetRepresentation(theMode);
+ myPointsActor->SetProperty( mySurfaceActor->GetProperty() );
+
SetShading(anIsShanding);
}