MCPcopy Create free account
hub / github.com/Kitware/VTK / Initialize

Method Initialize

Interaction/Widgets/vtkSplineWidget.cxx:1221–1251  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1219}
1220
1221void vtkSplineWidget::Initialize()
1222{
1223 int i;
1224 if (this->Interactor)
1225 {
1226 if (!this->CurrentRenderer)
1227 {
1228 this->SetCurrentRenderer(this->Interactor->FindPokedRenderer(
1229 this->Interactor->GetLastEventPosition()[0], this->Interactor->GetLastEventPosition()[1]));
1230 }
1231 if (this->CurrentRenderer != nullptr)
1232 {
1233 for (i = 0; i < this->NumberOfHandles; ++i)
1234 {
1235 this->CurrentRenderer->RemoveViewProp(this->Handle[i]);
1236 }
1237 }
1238 }
1239
1240 for (i = 0; i < this->NumberOfHandles; ++i)
1241 {
1242 this->HandlePicker->DeletePickList(this->Handle[i]);
1243 this->HandleGeometry[i]->Delete();
1244 this->Handle[i]->Delete();
1245 }
1246
1247 this->NumberOfHandles = 0;
1248
1249 delete[] this->Handle;
1250 delete[] this->HandleGeometry;
1251}
1252
1253void vtkSplineWidget::SetResolution(int resolution)
1254{

Callers 15

SetNumberOfHandlesMethod · 0.95
InitializePathMethod · 0.45
PickMethod · 0.45
OrientParentCameraMethod · 0.45
ResetLineMethod · 0.45
InitializeFunction · 0.45
testTextWidgetMethod · 0.45
testSphereWidgetMethod · 0.45

Calls 5

DeletePickListMethod · 0.80
DeleteMethod · 0.65
SetCurrentRendererMethod · 0.45
FindPokedRendererMethod · 0.45
RemoveViewPropMethod · 0.45

Tested by 15

testTextWidgetMethod · 0.36
testSphereWidgetMethod · 0.36
testBugMethod · 0.36
TestAngleWidget2DFunction · 0.36
TestAffineWidgetFunction · 0.36
TestCamera3DWidgetFunction · 0.36
TestResliceCursorWidget2Function · 0.36