Commit 16d97cf5 authored by David Cole's avatar David Cole
Browse files

BUG: Reverting yesterday's automatic SetInput --> SetInputConnection change...

BUG: Reverting yesterday's automatic SetInput --> SetInputConnection change where it should not have been done... (actors and widgets only have SetInput and they should still use SetInput)
parent 547aa8fb
......@@ -84,7 +84,7 @@ vtkTextProperty tprop
# Create a vtkCubeAxesActor2D. Use the outer edges of the bounding box to
# draw the axes. Add the actor to the renderer.
vtkCubeAxesActor2D axes
axes SetInputConnection [normals GetOutputPort]
axes SetInput [normals GetOutput]
axes SetCamera [ren1 GetActiveCamera]
axes SetLabelFormat "%6.4g"
axes SetFlyModeToOuterEdges
......
......@@ -69,7 +69,7 @@ renWin SetSize 300 300
# Place the interactor initially. The input to a 3D widget is used to
# initially position and scale the widget. The EndInteractionEvent is
# observed which invokes the SelectPolygons callback.
boxWidget SetInputConnection [glyph GetOutputPort]
boxWidget SetInput [glyph GetOutput]
boxWidget PlaceWidget
boxWidget AddObserver EndInteractionEvent SelectPolygons
......
......@@ -57,7 +57,7 @@ vtkCellPicker picker
#
vtkImagePlaneWidget planeWidgetX
planeWidgetX DisplayTextOn
planeWidgetX SetInputConnection [v16 GetOutputPort]
planeWidgetX SetInput [v16 GetOutput]
planeWidgetX SetPlaneOrientationToXAxes
planeWidgetX SetSliceIndex 32
planeWidgetX SetPicker picker
......@@ -67,7 +67,7 @@ vtkImagePlaneWidget planeWidgetX
vtkImagePlaneWidget planeWidgetY
planeWidgetY DisplayTextOn
planeWidgetY SetInputConnection [v16 GetOutputPort]
planeWidgetY SetInput [v16 GetOutput]
planeWidgetY SetPlaneOrientationToYAxes
planeWidgetY SetSliceIndex 32
planeWidgetY SetPicker picker
......@@ -82,7 +82,7 @@ vtkImagePlaneWidget planeWidgetY
#
vtkImagePlaneWidget planeWidgetZ
planeWidgetZ DisplayTextOn
planeWidgetZ SetInputConnection [v16 GetOutputPort]
planeWidgetZ SetInput [v16 GetOutput]
planeWidgetZ SetPlaneOrientationToZAxes
planeWidgetZ SetSliceIndex 46
planeWidgetZ SetPicker picker
......
......@@ -52,7 +52,7 @@ vtkImageShiftScale shifter
# Display a y-z plane.
#
vtkImageActor imageActor
imageActor SetInputConnection [shifter GetOutputPort]
imageActor SetInput [shifter GetOutput]
imageActor VisibilityOn
imageActor SetDisplayExtent 31 31 0 63 0 92
imageActor InterpolateOff
......@@ -94,7 +94,7 @@ vtkExtractVOI extract
extract ReleaseDataFlagOff
vtkImageActor imageActor2
imageActor2 SetInputConnection [extract GetOutputPort]
imageActor2 SetInput [extract GetOutput]
imageActor2 VisibilityOn
imageActor2 SetDisplayExtent 31 31 0 63 0 92
imageActor2 InterpolateOff
......@@ -122,7 +122,7 @@ vtkImageTracerWidget itw
itw SetProjectionNormalToXAxes
itw SetProjectionPosition $pos
itw SetViewProp imageActor
itw SetInputConnection [shifter GetOutputPort]
itw SetInput [shifter GetOutput]
itw SetInteractor iren
itw PlaceWidget
#
......@@ -142,7 +142,7 @@ vtkImageTracerWidget itw
vtkSplineWidget isw
isw SetCurrentRenderer ren2
isw SetDefaultRenderer ren2
isw SetInputConnection [extract GetOutputPort]
isw SetInput [extract GetOutput]
isw SetInteractor iren
set bnds [imageActor2 GetBounds]
isw PlaceWidget [lindex $bnds 0] [lindex $bnds 1] [lindex $bnds 2] [lindex $bnds 3] [lindex $bnds 4] [lindex $bnds 5]
......
......@@ -58,7 +58,7 @@ vtkRenderWindowInteractor iren
vtkImplicitPlaneWidget planeWidget
planeWidget SetInteractor iren
planeWidget SetPlaceFactor 1.25
planeWidget SetInputConnection [glyph GetOutputPort]
planeWidget SetInput [glyph GetOutput]
planeWidget PlaceWidget
planeWidget AddObserver InteractionEvent myCallback
......
......@@ -17,7 +17,7 @@ vtkPLOT3DReader pl3d
# The plane widget is used probe the dataset.
#
vtkPointWidget pointWidget
pointWidget SetInputConnection [pl3d GetOutputPort]
pointWidget SetInput [pl3d GetOutput]
pointWidget AllOff
pointWidget PlaceWidget
vtkPolyData point
......
......@@ -17,7 +17,7 @@ vtkPLOT3DReader pl3d
# The plane widget is used probe the dataset.
#
vtkPlaneWidget planeWidget
planeWidget SetInputConnection [pl3d GetOutputPort]
planeWidget SetInput [pl3d GetOutput]
planeWidget NormalToXAxisOn
planeWidget SetResolution 20
planeWidget SetRepresentationToOutline
......
......@@ -20,7 +20,7 @@ vtkPLOT3DReader pl3d
#
vtkLineWidget lineWidget
vtkPolyData seeds
lineWidget SetInputConnection [pl3d GetOutputPort]
lineWidget SetInput [pl3d GetOutput]
lineWidget SetAlignToYAxis
lineWidget PlaceWidget
lineWidget GetPolyData seeds
......@@ -52,7 +52,7 @@ vtkActor streamline
#
vtkLineWidget lineWidget2
vtkPolyData seeds2
lineWidget2 SetInputConnection [pl3d GetOutputPort]
lineWidget2 SetInput [pl3d GetOutput]
lineWidget2 PlaceWidget
lineWidget2 GetPolyData seeds2
lineWidget2 SetKeyPressActivationValue L
......
......@@ -80,7 +80,7 @@ renWin SetSize 300 300
# Place the interactor initially. The output of the reader is used to place
# the box widget.
boxWidget SetInputConnection [v16 GetOutputPort]
boxWidget SetInput [v16 GetOutput]
boxWidget PlaceWidget
boxWidget InsideOutOn
boxWidget AddObserver StartInteractionEvent StartInteraction
......
......@@ -19,7 +19,7 @@ vtkImageShiftScale shiftScale
shiftScale SetOutputScalarTypeToUnsignedChar
vtkImageActor ia
ia SetInputConnection [shiftScale GetOutputPort]
ia SetInput [shiftScale GetOutput]
# Create the RenderWindow, Renderer and both Actors
vtkRenderer ren1
......
......@@ -120,7 +120,7 @@ vtkImageMapToColors saggitalColors
saggitalColors SetInputConnection [v16 GetOutputPort]
saggitalColors SetLookupTable bwLut
vtkImageActor saggital
saggital SetInputConnection [saggitalColors GetOutputPort]
saggital SetInput [saggitalColors GetOutput]
saggital SetDisplayExtent 32 32 0 63 0 92
# Create the second (axial) plane of the three planes. We use the same
......@@ -129,7 +129,7 @@ vtkImageMapToColors axialColors
axialColors SetInputConnection [v16 GetOutputPort]
axialColors SetLookupTable hueLut
vtkImageActor axial
axial SetInputConnection [axialColors GetOutputPort]
axial SetInput [axialColors GetOutput]
axial SetDisplayExtent 0 63 0 63 46 46
# Create the third (coronal) plane of the three planes. We use the same
......@@ -138,7 +138,7 @@ vtkImageMapToColors coronalColors
coronalColors SetInputConnection [v16 GetOutputPort]
coronalColors SetLookupTable satLut
vtkImageActor coronal
coronal SetInputConnection [coronalColors GetOutputPort]
coronal SetInput [coronalColors GetOutput]
coronal SetDisplayExtent 0 63 32 32 0 92
# It is convenient to create an initial view of the data. The FocalPoint
......
......@@ -102,7 +102,7 @@ boxWidget SetPlaceFactor 1.25
# initially position and scale the widget. The EndInteractionEvent is
# observed which invokes the SelectPolygons callback.
#
boxWidget SetInputConnection [cone GetOutputPort]
boxWidget SetInput [cone GetOutput]
boxWidget PlaceWidget
boxWidget AddObserver InteractionEvent TransformActor
......
Markdown is supported
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