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

Method AddCameraAt

Interaction/Widgets/vtkCameraPathRepresentation.cxx:84–95  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

82
83//------------------------------------------------------------------------------
84void vtkCameraPathRepresentation::AddCameraAt(vtkCamera* camera, int index)
85{
86 if (index < 0 || index > this->NumberOfHandles || camera == nullptr)
87 {
88 vtkErrorMacro(<< "ERROR: Invalid index or nullptr camera\n");
89 return;
90 }
91
92 this->InsertCamera(camera, index);
93
94 this->UpdateConfiguration(this->NumberOfHandles + 1);
95}
96
97//------------------------------------------------------------------------------
98void vtkCameraPathRepresentation::InsertCamera(vtkCamera* camera, int index)

Callers 2

InsertHandleOnLineMethod · 0.95

Calls 2

InsertCameraMethod · 0.95
UpdateConfigurationMethod · 0.95

Tested by 1