Commit 67e054c9 authored by Ken Martin's avatar Ken Martin

mark ImmediateModeRendering as deprecated

Does not make sense for OpenGL2 and is not implemented
Also deprecate PainterDelegate
parent 8eaff476
......@@ -35,7 +35,6 @@ int TestVTKMExtractVOI(int argc, char* argv[])
vtkNew<vtkPolyDataMapper> sphereMapper;
sphereMapper->SetInputConnection(sphere->GetOutputPort());
sphereMapper->ImmediateModeRenderingOn();
vtkNew<vtkActor> sphereActor;
sphereActor->SetMapper(sphereMapper);
......@@ -57,7 +56,6 @@ int TestVTKMExtractVOI(int argc, char* argv[])
vtkNew<vtkPolyDataMapper> mapper;
mapper->SetInputConnection(tris->GetOutputPort());
mapper->ImmediateModeRenderingOn();
mapper->SetScalarRange(130, 280);
vtkNew<vtkActor> actor;
......
......@@ -50,7 +50,6 @@ isoMapper = vtk.vtkDataSetMapper()
isoMapper.SetInputConnection(gradient.GetOutputPort())
isoMapper.ScalarVisibilityOn()
isoMapper.SetScalarRange(0, 1200)
isoMapper.ImmediateModeRenderingOn()
isoActor = vtk.vtkActor()
isoActor.SetMapper(isoMapper)
......
......@@ -40,7 +40,6 @@ vtkDataSetMapper isoMapper
isoMapper SetInputConnection [gradient GetOutputPort]
isoMapper ScalarVisibilityOn
isoMapper SetScalarRange 0 1200
isoMapper ImmediateModeRenderingOn
vtkActor isoActor
isoActor SetMapper isoMapper
......
......@@ -126,7 +126,6 @@ int main( int , char *[] )
vtkSmartPointer<vtkPolyDataMapper> sphereMapper =
vtkSmartPointer<vtkPolyDataMapper>::New();
sphereMapper->SetInputConnection(sphere->GetOutputPort());
sphereMapper->GlobalImmediateModeRenderingOn();
vtkSmartPointer<vtkActor> sphereActor =
vtkSmartPointer<vtkActor>::New();
......
......@@ -9,7 +9,6 @@ sphere = vtk.vtkSphereSource()
sphereMapper = vtk.vtkPolyDataMapper()
sphereMapper.SetInputConnection(sphere.GetOutputPort())
sphereMapper.GlobalImmediateModeRenderingOn()
sphereActor = vtk.vtkLODActor()
sphereActor.SetMapper(sphereMapper)
......
......@@ -10,7 +10,6 @@ sphere = vtk.vtkSphereSource()
sphereMapper = vtk.vtkPolyDataMapper()
sphereMapper.SetInputConnection(sphere.GetOutputPort())
sphereMapper.GlobalImmediateModeRenderingOn()
sphereActor = vtk.vtkLODActor()
sphereActor.SetMapper(sphereMapper)
......
......@@ -10,7 +10,6 @@ import vtk
sphere = vtk.vtkSphereSource()
sphereMapper = vtk.vtkPolyDataMapper()
sphereMapper.SetInputConnection(sphere.GetOutputPort())
sphereMapper.GlobalImmediateModeRenderingOn()
sphereActor = vtk.vtkLODActor()
sphereActor.SetMapper(sphereMapper)
......
......@@ -40,7 +40,6 @@ rectActor.SetMapper(rectMapper)
sphere = vtk.vtkSphereSource()
sphereMapper = vtk.vtkPolyDataMapper()
sphereMapper.SetInputConnection(sphere.GetOutputPort())
sphereMapper.GlobalImmediateModeRenderingOn()
sphereActor = vtk.vtkActor()
sphereActor.SetMapper(sphereMapper)
......
......@@ -12,7 +12,6 @@ vtkSphereSource sphere
vtkPolyDataMapper sphereMapper
sphereMapper SetInputConnection [sphere GetOutputPort]
sphereMapper GlobalImmediateModeRenderingOn
vtkLODActor sphereActor
sphereActor SetMapper sphereMapper
......
......@@ -12,7 +12,6 @@ vtkSphereSource sphere
vtkPolyDataMapper sphereMapper
sphereMapper SetInputConnection [sphere GetOutputPort]
sphereMapper GlobalImmediateModeRenderingOn
vtkLODActor sphereActor
sphereActor SetMapper sphereMapper
......
......@@ -14,7 +14,6 @@ vtkSphereSource sphere
vtkPolyDataMapper sphereMapper
sphereMapper SetInputConnection [sphere GetOutputPort]
sphereMapper GlobalImmediateModeRenderingOn
vtkLODActor sphereActor
sphereActor SetMapper sphereMapper
......
......@@ -43,7 +43,6 @@ vtkActor2D rectActor
vtkSphereSource sphere
vtkPolyDataMapper sphereMapper
sphereMapper SetInputConnection [sphere GetOutputPort]
sphereMapper GlobalImmediateModeRenderingOn
vtkActor sphereActor
sphereActor SetMapper sphereMapper
......
......@@ -55,7 +55,6 @@ demMapper = vtk.vtkPolyDataMapper()
demMapper.SetInputConnection(normals.GetOutputPort())
demMapper.SetScalarRange(lo, hi)
demMapper.SetLookupTable(lut)
demMapper.ImmediateModeRenderingOn()
demActor = vtk.vtkLODActor()
demActor.SetMapper(demMapper)
......
......@@ -45,7 +45,6 @@ SimpleView::SimpleView()
// Mapper
VTK_CREATE(vtkPolyDataMapper, mapper);
mapper->ImmediateModeRenderingOn();
mapper->SetInputConnection(elevation->GetOutputPort());
// Actor in scene
......
......@@ -53,7 +53,6 @@ vtkPolyDataMapper demMapper
demMapper SetInputConnection [normals GetOutputPort]
eval demMapper SetScalarRange $lo $hi
demMapper SetLookupTable lut
demMapper ImmediateModeRenderingOn
vtkLODActor demActor
demActor SetMapper demMapper
......
......@@ -26,7 +26,6 @@ $renWin AddRenderer ren1
vtkConeSource cone
vtkPolyDataMapper coneMapper
coneMapper SetInputConnection [cone GetOutputPort]
coneMapper GlobalImmediateModeRenderingOn
vtkLODActor coneActor
coneActor SetMapper coneMapper
......
......@@ -63,7 +63,6 @@ vtkPolyDataMapper* task1(vtkRenderWindow* renWin, double data,
vtkPolyDataMapper* mapper = vtkPolyDataMapper::New();
mapper->SetInputData(probe->GetPolyDataOutput());
mapper->SetScalarRange(50, 180);
mapper->ImmediateModeRenderingOn();
vtkActor* actor = vtkActor::New();
actor->SetMapper(mapper);
......
......@@ -75,7 +75,6 @@ vtkPolyDataMapper* task2(vtkRenderWindow* renWin, double data,
vtkPolyDataMapper* mapper = vtkPolyDataMapper::New();
mapper->SetInputConnection(glyph->GetOutputPort());
mapper->SetScalarRange(50, 180);
mapper->ImmediateModeRenderingOn();
vtkActor* actor = vtkActor::New();
actor->SetMapper(mapper);
......
......@@ -77,7 +77,6 @@ void task3(double data)
vtkPolyDataMapper* mapper = vtkPolyDataMapper::New();
mapper->SetInputConnection(append->GetOutputPort());
mapper->SetScalarRange(50, 180);
mapper->ImmediateModeRenderingOn();
vtkActor* actor = vtkActor::New();
actor->SetMapper(mapper);
......
......@@ -14,7 +14,6 @@ vtkSphereSource sphere
sphere SetPhiResolution 40
vtkPolyDataMapper sphereMapper
sphereMapper SetInputConnection [sphere GetOutputPort]
sphereMapper GlobalImmediateModeRenderingOn
vtkLODActor sphereActor
sphereActor SetMapper sphereMapper
......
......@@ -29,7 +29,6 @@ merge.SetScalarsConnection(reader.GetOutputPort())
mapper = vtk.vtkDataSetMapper()
mapper.SetInputConnection(merge.GetOutputPort())
mapper.SetScalarRange(0, 255)
mapper.ImmediateModeRenderingOff()
actor = vtk.vtkActor()
actor.SetMapper(mapper)
......
......@@ -27,7 +27,6 @@ vtkMergeFilter merge
vtkDataSetMapper mapper
mapper SetInputConnection [merge GetOutputPort]
mapper SetScalarRange 0 255
mapper ImmediateModeRenderingOff
vtkActor actor
actor SetMapper mapper
......
......@@ -49,14 +49,12 @@ class MassProperties(vtk.test.Testing.vtkTest):
sphereMapper = vtk.vtkPolyDataMapper()
sphereMapper.SetInputConnection(sphere.GetOutputPort())
sphereMapper.GlobalImmediateModeRenderingOn()
sphereActor = vtk.vtkActor()
sphereActor.SetMapper(sphereMapper)
sphereActor.GetProperty().SetDiffuseColor(1, .2, .4)
coneMapper = vtk.vtkPolyDataMapper()
coneMapper.SetInputConnection(cone.GetOutputPort())
coneMapper.GlobalImmediateModeRenderingOn()
coneActor = vtk.vtkActor()
coneActor.SetMapper(coneMapper)
......@@ -64,7 +62,6 @@ class MassProperties(vtk.test.Testing.vtkTest):
cubeMapper = vtk.vtkPolyDataMapper()
cubeMapper.SetInputConnection(cube.GetOutputPort())
cubeMapper.GlobalImmediateModeRenderingOn()
cubeActor = vtk.vtkActor()
cubeActor.SetMapper(cubeMapper)
......
......@@ -73,7 +73,6 @@ mapper.SetInputConnection(streamer.GetOutputPort())
mapper.ScalarVisibilityOff()
mapper.SetPiece(0)
mapper.SetNumberOfPieces(2)
mapper.ImmediateModeRenderingOn()
actor = vtk.vtkActor()
actor.SetMapper(mapper)
......
......@@ -40,7 +40,6 @@ class TestGridSynchronizedTemplates3D(Testing.vtkTest):
# cf ComputeNormalsOff
cfMapper = vtk.vtkPolyDataMapper()
cfMapper.ImmediateModeRenderingOn()
cfMapper.SetInputConnection(cf.GetOutputPort())
cfMapper.SetScalarRange(
pl3d_output.GetPointData().GetScalars().GetRange())
......
......@@ -180,7 +180,6 @@ class financialField3(vtk.test.Testing.vtkTest):
popMapper = vtk.vtkPolyDataMapper()
popMapper.SetInputConnection(popSurface.GetOutputPort())
popMapper.ScalarVisibilityOff()
popMapper.ImmediateModeRenderingOn()
popActor = vtk.vtkActor()
popActor.SetMapper(popMapper)
popActor.GetProperty().SetOpacity(0.3)
......
......@@ -35,13 +35,11 @@ cf2.SetValue(0,500)
cf2.SetArrayComponent(1)
mapper1 = vtk.vtkPolyDataMapper()
mapper1.SetInputConnection(cf1.GetOutputPort())
mapper1.SetImmediateModeRendering(1)
mapper1.SetScalarRange(0,1)
mapper1.SetScalarVisibility(0)
mapper1.Update()
mapper2 = vtk.vtkPolyDataMapper()
mapper2.SetInputConnection(cf2.GetOutputPort())
mapper2.SetImmediateModeRendering(1)
mapper2.SetScalarRange(0,1)
mapper2.SetScalarVisibility(0)
actor1 = vtk.vtkActor()
......
......@@ -110,7 +110,6 @@ class skinOrder(vtk.test.Testing.vtkTest):
mapper.append(vtk.vtkPolyDataMapper())
mapper[idx].SetInputConnection(iso[idx].GetOutputPort())
mapper[idx].ImmediateModeRenderingOn()
actor.append(vtk.vtkActor())
actor[idx].SetMapper(mapper[idx])
......
......@@ -23,14 +23,12 @@ vtkCubeSource cube
vtkPolyDataMapper sphereMapper
sphereMapper SetInputConnection [sphere GetOutputPort]
sphereMapper GlobalImmediateModeRenderingOn
vtkActor sphereActor
sphereActor SetMapper sphereMapper
[sphereActor GetProperty] SetDiffuseColor 1 .2 .4
vtkPolyDataMapper coneMapper
coneMapper SetInputConnection [cone GetOutputPort]
coneMapper GlobalImmediateModeRenderingOn
vtkActor coneActor
coneActor SetMapper coneMapper
......@@ -38,7 +36,6 @@ vtkActor coneActor
vtkPolyDataMapper cubeMapper
cubeMapper SetInputConnection [cube GetOutputPort]
cubeMapper GlobalImmediateModeRenderingOn
vtkActor cubeActor
cubeActor SetMapper cubeMapper
......
......@@ -65,7 +65,6 @@ vtkPolyDataMapper mapper
mapper ScalarVisibilityOff
mapper SetPiece 0
mapper SetNumberOfPieces 2
mapper ImmediateModeRenderingOn
vtkActor actor
actor SetMapper mapper
......
......@@ -22,7 +22,6 @@ vtkContourFilter cf
#cf ComputeNormalsOff
vtkPolyDataMapper cfMapper
cfMapper ImmediateModeRenderingOn
cfMapper SetInputConnection [cf GetOutputPort]
eval cfMapper SetScalarRange \
[[[$pl3d_output GetPointData] GetScalars] GetRange]
......
......@@ -120,7 +120,6 @@ vtkContourFilter popSurface
vtkPolyDataMapper popMapper
popMapper SetInputConnection [popSurface GetOutputPort]
popMapper ScalarVisibilityOff
popMapper ImmediateModeRenderingOn
vtkActor popActor
popActor SetMapper popMapper
[popActor GetProperty] SetOpacity 0.3
......
......@@ -141,7 +141,6 @@ vtkContourFilter popSurface
vtkPolyDataMapper popMapper
popMapper SetInputConnection [popSurface GetOutputPort]
popMapper ScalarVisibilityOff
popMapper ImmediateModeRenderingOn
vtkActor popActor
popActor SetMapper popMapper
[popActor GetProperty] SetOpacity 0.3
......
......@@ -40,14 +40,12 @@ vtkContourFilter cf2
vtkPolyDataMapper mapper1
mapper1 SetInputConnection [cf1 GetOutputPort]
mapper1 SetImmediateModeRendering 1
mapper1 SetScalarRange 0 1
mapper1 SetScalarVisibility 0
mapper1 Update
vtkPolyDataMapper mapper2
mapper2 SetInputConnection [cf2 GetOutputPort]
mapper2 SetImmediateModeRendering 1
mapper2 SetScalarRange 0 1
mapper2 SetScalarVisibility 0
......
......@@ -56,7 +56,6 @@ foreach order $orders {
vtkPolyDataMapper mapper$order
mapper$order SetInputConnection [iso$order GetOutputPort]
mapper$order ImmediateModeRenderingOn
vtkActor actor$order
actor$order SetMapper mapper$order
......
......@@ -25,7 +25,6 @@ extract.ExtractBoundaryCellsOn()
extract.PassPointsOn()
sphereMapper = vtk.vtkPolyDataMapper()
sphereMapper.SetInputConnection(extract.GetOutputPort())
sphereMapper.GlobalImmediateModeRenderingOn()
sphereActor = vtk.vtkActor()
sphereActor.SetMapper(sphereMapper)
......
......@@ -31,7 +31,6 @@ normalsVx.SetFeatureAngle(45)
isoVxMapper = vtk.vtkPolyDataMapper()
isoVxMapper.SetInputConnection(normalsVx.GetOutputPort())
isoVxMapper.ScalarVisibilityOff()
isoVxMapper.ImmediateModeRenderingOn()
isoVxActor = vtk.vtkActor()
isoVxActor.SetMapper(isoVxMapper)
isoVxActor.GetProperty().SetColor(1,0.7,0.6)
......@@ -47,7 +46,6 @@ normalsVy.SetFeatureAngle(45)
isoVyMapper = vtk.vtkPolyDataMapper()
isoVyMapper.SetInputConnection(normalsVy.GetOutputPort())
isoVyMapper.ScalarVisibilityOff()
isoVyMapper.ImmediateModeRenderingOn()
isoVyActor = vtk.vtkActor()
isoVyActor.SetMapper(isoVyMapper)
isoVyActor.GetProperty().SetColor(0.7,1,0.6)
......@@ -63,7 +61,6 @@ normalsVz.SetFeatureAngle(45)
isoVzMapper = vtk.vtkPolyDataMapper()
isoVzMapper.SetInputConnection(normalsVz.GetOutputPort())
isoVzMapper.ScalarVisibilityOff()
isoVzMapper.ImmediateModeRenderingOn()
isoVzActor = vtk.vtkActor()
isoVzActor.SetMapper(isoVzMapper)
isoVzActor.GetProperty().SetColor(0.4,0.5,1)
......
......@@ -24,7 +24,6 @@ vtkExtractPolyDataGeometry extract
extract PassPointsOn
vtkPolyDataMapper sphereMapper
sphereMapper SetInputConnection [extract GetOutputPort]
sphereMapper GlobalImmediateModeRenderingOn
vtkActor sphereActor
sphereActor SetMapper sphereMapper
......
......@@ -32,7 +32,6 @@ vtkPolyDataNormals normalsVx
vtkPolyDataMapper isoVxMapper
isoVxMapper SetInputConnection [normalsVx GetOutputPort]
isoVxMapper ScalarVisibilityOff
isoVxMapper ImmediateModeRenderingOn
vtkActor isoVxActor
isoVxActor SetMapper isoVxMapper
eval [isoVxActor GetProperty] SetColor 1 0.7 0.6
......@@ -50,7 +49,6 @@ vtkPolyDataNormals normalsVy
vtkPolyDataMapper isoVyMapper
isoVyMapper SetInputConnection [normalsVy GetOutputPort]
isoVyMapper ScalarVisibilityOff
isoVyMapper ImmediateModeRenderingOn
vtkActor isoVyActor
isoVyActor SetMapper isoVyMapper
eval [isoVyActor GetProperty] SetColor 0.7 1 0.6
......@@ -68,7 +66,6 @@ vtkPolyDataNormals normalsVz
vtkPolyDataMapper isoVzMapper
isoVzMapper SetInputConnection [normalsVz GetOutputPort]
isoVzMapper ScalarVisibilityOff
isoVzMapper ImmediateModeRenderingOn
vtkActor isoVzActor
isoVzActor SetMapper isoVzMapper
eval [isoVzActor GetProperty] SetColor 0.4 0.5 1
......
......@@ -50,7 +50,6 @@ clip.GenerateFacesOn()
isoMapper = vtk.vtkPolyDataMapper()
isoMapper.SetInputConnection(clip.GetOutputPort())
isoMapper.ScalarVisibilityOn()
isoMapper.ImmediateModeRenderingOn()
isoActor = vtk.vtkActor()
isoActor.SetMapper(isoMapper)
outline = vtk.vtkOutlineFilter()
......
......@@ -35,7 +35,6 @@ Geometry5.SetInputData(output)
Mapper5 = vtk.vtkPolyDataMapper()
Mapper5.SetInputConnection(Geometry5.GetOutputPort())
Mapper5.SetImmediateModeRendering(1)
Mapper5.UseLookupTableScalarRangeOn()
Mapper5.SetScalarVisibility(0)
Mapper5.SetScalarModeToDefault()
......@@ -122,7 +121,6 @@ LookupTable1.Build()
Mapper10 = vtk.vtkPolyDataMapper()
Mapper10.SetInputConnection(Ribbon0.GetOutputPort())
Mapper10.SetImmediateModeRendering(1)
Mapper10.UseLookupTableScalarRangeOn()
Mapper10.SetScalarVisibility(1)
Mapper10.SetScalarModeToUsePointFieldData()
......
......@@ -140,7 +140,6 @@ f.SetMemoryLimitInBytes(100000)
m = vtk.vtkPolyDataMapper()
m.SetInputConnection(f.GetOutputPort())
m.ScalarVisibilityOff()
m.ImmediateModeRenderingOn()
a = vtk.vtkActor()
a.SetMapper(m)
......
......@@ -30,7 +30,6 @@ edgePoints.SetValue(1150)
#
mapper = vtk.vtkDataSetMapper()
mapper.SetInputConnection(edgePoints.GetOutputPort())
mapper.ImmediateModeRenderingOn()
mapper.ScalarVisibilityOff()
head = vtk.vtkActor()
......
......@@ -33,7 +33,6 @@ iso.SetIncrement(2)
isoMapper = vtk.vtkPolyDataMapper()
isoMapper.SetInputConnection(iso.GetOutputPort())
isoMapper.ScalarVisibilityOff()
isoMapper.ImmediateModeRenderingOn()
isoActor = vtk.vtkActor()
isoActor.SetMapper(isoMapper)
isoActor.GetProperty().SetColor(GetRGBColor('bisque'))
......
......@@ -39,7 +39,6 @@ normalsVx.SetFeatureAngle(45)
isoVxMapper = vtk.vtkPolyDataMapper()
isoVxMapper.SetInputConnection(normalsVx.GetOutputPort())
isoVxMapper.ScalarVisibilityOff()
isoVxMapper.ImmediateModeRenderingOn()
isoVxActor = vtk.vtkActor()
isoVxActor.SetMapper(isoVxMapper)
isoVxActor.GetProperty().SetColor(1,0.7,0.6)
......@@ -56,7 +55,6 @@ normalsVy.SetFeatureAngle(45)
isoVyMapper = vtk.vtkPolyDataMapper()
isoVyMapper.SetInputConnection(normalsVy.GetOutputPort())
isoVyMapper.ScalarVisibilityOff()
isoVyMapper.ImmediateModeRenderingOn()
isoVyActor = vtk.vtkActor()
isoVyActor.SetMapper(isoVyMapper)
isoVyActor.GetProperty().SetColor(0.7,1,0.6)
......@@ -73,7 +71,6 @@ normalsVz.SetFeatureAngle(45)
isoVzMapper = vtk.vtkPolyDataMapper()
isoVzMapper.SetInputConnection(normalsVz.GetOutputPort())
isoVzMapper.ScalarVisibilityOff()
isoVzMapper.ImmediateModeRenderingOn()
isoVzActor = vtk.vtkActor()
isoVzActor.SetMapper(isoVzMapper)
isoVzActor.GetProperty().SetColor(0.4,0.5,1)
......@@ -104,7 +101,6 @@ rf.SetWidth(1.0)
rf.SetWidthFactor(5)
slMapper = vtk.vtkPolyDataMapper()
slMapper.SetInputConnection(rf.GetOutputPort())
slMapper.ImmediateModeRenderingOn()
slActor = vtk.vtkActor()
slActor.SetMapper(slMapper)
......
......@@ -57,7 +57,6 @@ vtkClipClosedSurface clip
vtkPolyDataMapper isoMapper
isoMapper SetInputConnection [clip GetOutputPort]
isoMapper ScalarVisibilityOn
isoMapper ImmediateModeRenderingOn
vtkActor isoActor
isoActor SetMapper isoMapper
......
......@@ -34,7 +34,6 @@ Geometry5 SetInputData $output
vtkPolyDataMapper Mapper5
Mapper5 SetInputConnection [Geometry5 GetOutputPort]
Mapper5 SetImmediateModeRendering 1
Mapper5 UseLookupTableScalarRangeOn
Mapper5 SetScalarVisibility 0
Mapper5 SetScalarModeToDefault
......@@ -121,7 +120,6 @@ LookupTable1 Build
vtkPolyDataMapper Mapper10
Mapper10 SetInputConnection [Ribbon0 GetOutputPort]
Mapper10 SetImmediateModeRendering 1
Mapper10 UseLookupTableScalarRangeOn
Mapper10 SetScalarVisibility 1
Mapper10 SetScalarModeToUsePointFieldData
......
......@@ -135,7 +135,6 @@ f SetMemoryLimitInBytes 100000
vtkPolyDataMapper m
m SetInputConnection [f GetOutputPort]
m ScalarVisibilityOff
m ImmediateModeRenderingOn
vtkActor a
a SetMapper m
......
......@@ -20,7 +20,6 @@ vtkEdgePoints edgePoints
#
vtkDataSetMapper mapper
mapper SetInputConnection [edgePoints GetOutputPort]
mapper ImmediateModeRenderingOn
mapper ScalarVisibilityOff
vtkActor head
......
......@@ -23,7 +23,6 @@ vtkRecursiveDividingCubes iso
vtkPolyDataMapper isoMapper
isoMapper SetInputConnection [iso GetOutputPort]
isoMapper ScalarVisibilityOff
isoMapper ImmediateModeRenderingOn
vtkActor isoActor
isoActor SetMapper isoMapper
eval [isoActor GetProperty] SetColor $bisque
......
......@@ -40,7 +40,6 @@ vtkPolyDataNormals normalsVx
vtkPolyDataMapper isoVxMapper
isoVxMapper SetInputConnection [normalsVx GetOutputPort]
isoVxMapper ScalarVisibilityOff
isoVxMapper ImmediateModeRenderingOn
vtkActor isoVxActor
isoVxActor SetMapper isoVxMapper
eval [isoVxActor GetProperty] SetColor 1 0.7 0.6
......@@ -57,7 +56,6 @@ vtkPolyDataNormals normalsVy
vtkPolyDataMapper isoVyMapper
isoVyMapper SetInputConnection [normalsVy GetOutputPort]
isoVyMapper ScalarVisibilityOff
isoVyMapper ImmediateModeRenderingOn
vtkActor isoVyActor
isoVyActor SetMapper isoVyMapper
eval [isoVyActor GetProperty] SetColor 0.7 1 0.6
......@@ -74,7 +72,6 @@ vtkPolyDataNormals normalsVz
vtkPolyDataMapper isoVzMapper
isoVzMapper SetInputConnection [normalsVz GetOutputPort]
isoVzMapper ScalarVisibilityOff
isoVzMapper ImmediateModeRenderingOn
vtkActor isoVzActor
isoVzActor SetMapper isoVzMapper
eval [isoVzActor GetProperty] SetColor 0.4 0.5 1
......@@ -105,7 +102,6 @@ vtkRibbonFilter rf
rf SetWidthFactor 5
vtkPolyDataMapper slMapper
slMapper SetInputConnection [rf GetOutputPort]
slMapper ImmediateModeRenderingOn
vtkActor slActor
slActor SetMapper slMapper
......
......@@ -14,7 +14,6 @@ facet0 = vtk.vtkFacetReader()
facet0.SetFileName("" + str(VTK_DATA_ROOT) + "/Data/clown.facet")
Mapper5 = vtk.vtkPolyDataMapper()
Mapper5.SetInputConnection(facet0.GetOutputPort())
Mapper5.SetImmediateModeRendering(1)
Mapper5.UseLookupTableScalarRangeOff()
Mapper5.SetScalarVisibility(1)
Mapper5.SetScalarModeToDefault()
......
......@@ -13,7 +13,6 @@ vtkFacetReader facet0
vtkPolyDataMapper Mapper5
Mapper5 SetInputConnection [facet0 GetOutputPort]
Mapper5 SetImmediateModeRendering 1
Mapper5 UseLookupTableScalarRangeOff
Mapper5 SetScalarVisibility 1
Mapper5 SetScalarModeToDefault
......
......@@ -39,7 +39,6 @@ iso.SetInputMemoryLimit(1000)
isoMapper = vtk.vtkPolyDataMapper()
isoMapper.SetInputConnection(iso.GetOutputPort())
isoMapper.ScalarVisibilityOff()
isoMapper.ImmediateModeRenderingOn()
isoActor = vtk.vtkActor()
isoActor.SetMapper(isoMapper)
......
......@@ -108,7 +108,6 @@ class contour3DAll(vtk.test.Testing.vtkTest):
mapper.append(vtk.vtkPolyDataMapper())
mapper[idx].SetInputConnection(iso[idx].GetOutputPort())
mapper[idx].ImmediateModeRenderingOn()
actor.append(vtk.vtkActor())
actor[idx].SetMapper(mapper[idx])
......
......@@ -29,7 +29,6 @@ vtkImageMarchingCubes iso
vtkPolyDataMapper isoMapper
isoMapper SetInputConnection [iso GetOutputPort]
isoMapper ScalarVisibilityOff
isoMapper ImmediateModeRenderingOn
vtkActor isoActor
isoActor SetMapper isoMapper
......
......@@ -41,7 +41,6 @@ foreach vtkType $types {
vtkPolyDataMapper iso${vtkType}Mapper
iso${vtkType}Mapper SetInputConnection [iso$vtkType GetOutputPort]
iso${vtkType}Mapper ImmediateModeRenderingOn
vtkActor iso${vtkType}Actor
iso${vtkType}Actor SetMapper iso${vtkType}Mapper
......
......@@ -37,7 +37,6 @@ pvTemp104.SetVectorComponent(0)
pvTemp104.Build()
pvTemp87 = vtk.vtkCompositePolyDataMapper()
pvTemp87.SetInputConnection(pvTemp79.GetOutputPort())
pvTemp87.SetImmediateModeRendering(1)
pvTemp87.SetScalarRange(0,1)
pvTemp87.UseLookupTableScalarRangeOn()
pvTemp87.SetScalarVisibility(1)
......
......@@ -41,7 +41,6 @@ vtkLookupTable pvTemp104
pvTemp104 Build
vtkCompositePolyDataMapper pvTemp87
pvTemp87 SetInputConnection [pvTemp79 GetOutputPort]
pvTemp87 SetImmediateModeRendering 1
pvTemp87 SetScalarRange 0 1
pvTemp87 UseLookupTableScalarRangeOn
pvTemp87 SetScalarVisibility 1
......
......@@ -138,7 +138,6 @@ void MainPLagrangianParticleTracker(vtkMultiProcessController *controller, void
vtkNew<vtkPolyDataMapper> outlineMapper;
outlineMapper->SetInputConnection(outline->GetOutputPort());
outlineMapper->SetImmediateModeRendering(1);
outlineMapper->UseLookupTableScalarRangeOn();
outlineMapper->SetScalarVisibility(0);
outlineMapper->SetScalarModeToDefault();
......
......@@ -102,7 +102,6 @@ void MyMain( vtkMultiProcessController *controller, void *arg )
vtkPolyDataMapper* Mapper5 = vtkPolyDataMapper::New();
Mapper5->SetInputConnection(Geometry5->GetOutputPort());
Mapper5->SetImmediateModeRendering(1);
Mapper5->UseLookupTableScalarRangeOn();
Mapper5->SetScalarVisibility(0);
Mapper5->SetScalarModeToDefault();
......@@ -151,7 +150,6 @@ void MyMain( vtkMultiProcessController *controller, void *arg )
vtkPolyDataMapper* Mapper6 = vtkPolyDataMapper::New();
Mapper6->SetInputConnection(Geometry6->GetOutputPort());
Mapper6->SetImmediateModeRendering(1);