myShrinkFilter->SetShrinkFactor(theValue);
}
-
/*!
Set representation (VTK_SURFACE, VTK_POINTS, VTK_WIREFRAME and so on)
param theMode - new mode
switch(myRepresentation){
case Points :
case Surface :
- myProperty->DeepCopy(GetProperty());
+ myProperty->SetAmbient(GetProperty()->GetAmbient());
+ myProperty->SetDiffuse(GetProperty()->GetDiffuse());
+ myProperty->SetSpecular(GetProperty()->GetSpecular());
}
switch(theMode){
case Points :
case Surface :
- GetProperty()->DeepCopy(myProperty);
+ GetProperty()->SetAmbient(myProperty->GetAmbient());
+ GetProperty()->SetDiffuse(myProperty->GetDiffuse());
+ GetProperty()->SetSpecular(myProperty->GetSpecular());
break;
default:
GetProperty()->SetAmbient(1.0);
factor = myPolygonOffsetFactor;
units = myPolygonOffsetUnits;
}
+
+vtkDataSetMapper* SVTK_DeviceActor::GetDataSetMapper()
+{
+ return myMapper;
+}
void
Render(vtkRenderer *, vtkMapper *);
+ vtkDataSetMapper* GetDataSetMapper();
+
protected:
SVTK::Representation::Type myRepresentation;
vtkProperty *myProperty;