Skip to content

Commit 9ecc055

Browse files
committed
Fix variable names in vtkImplicitCylinderWidget test
Variables referring to vtkImplicitCylinderWidgets were erroneously called 'planeWidget'.
1 parent e8170ff commit 9ecc055

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

Interaction/Widgets/Testing/Cxx/TestImplicitCylinderWidget2.cxx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -286,10 +286,10 @@ class vtkTICWCallback : public vtkCommand
286286

287287
virtual void Execute(vtkObject *caller, unsigned long, void*)
288288
{
289-
vtkImplicitCylinderWidget *planeWidget =
289+
vtkImplicitCylinderWidget *cylWidget =
290290
reinterpret_cast<vtkImplicitCylinderWidget*>(caller);
291291
vtkImplicitCylinderRepresentation *rep =
292-
reinterpret_cast<vtkImplicitCylinderRepresentation*>(planeWidget->GetRepresentation());
292+
reinterpret_cast<vtkImplicitCylinderRepresentation*>(cylWidget->GetRepresentation());
293293
rep->GetCylinder(this->Cylinder);
294294
this->Actor->VisibilityOn();
295295
}
@@ -379,11 +379,11 @@ int TestImplicitCylinderWidget2(int vtkNotUsed(argc), char *vtkNotUsed(argv)[])
379379
rep->SetPlaceFactor(1.25);
380380
rep->PlaceWidget(glyph->GetOutput()->GetBounds());
381381

382-
vtkSmartPointer<vtkImplicitCylinderWidget> planeWidget =
382+
vtkSmartPointer<vtkImplicitCylinderWidget> cylWidget =
383383
vtkSmartPointer<vtkImplicitCylinderWidget>::New();
384-
planeWidget->SetInteractor(iren);
385-
planeWidget->SetRepresentation(rep);
386-
planeWidget->AddObserver(vtkCommand::InteractionEvent,myCallback);
384+
cylWidget->SetInteractor(iren);
385+
cylWidget->SetRepresentation(rep);
386+
cylWidget->AddObserver(vtkCommand::InteractionEvent,myCallback);
387387

388388
ren1->AddActor(maceActor);
389389
ren1->AddActor(selectActor);
@@ -396,7 +396,7 @@ int TestImplicitCylinderWidget2(int vtkNotUsed(argc), char *vtkNotUsed(argv)[])
396396
// Tests
397397
double wbounds[6];
398398
double center[3], center1[3], center2[3];
399-
planeWidget->SetEnabled(1);
399+
cylWidget->SetEnabled(1);
400400
rep->GetCenter(center);
401401

402402
// #1: With ConstrainCenter on, center SHOULD NOT be settable outside widget bounds
@@ -433,7 +433,7 @@ int TestImplicitCylinderWidget2(int vtkNotUsed(argc), char *vtkNotUsed(argv)[])
433433
}
434434

435435
rep->SetCenter(center);
436-
planeWidget->SetEnabled(0);
436+
cylWidget->SetEnabled(0);
437437

438438
// #3: With ConstrainCenter on and OutsideBounds off, the translation of the
439439
// widget should be limited

0 commit comments

Comments
 (0)