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

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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment