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

Method GetInternalSelectionOutputPort

Views/Core/vtkDataRepresentation.cxx:225–242  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

223
224//------------------------------------------------------------------------------
225vtkAlgorithmOutput* vtkDataRepresentation::GetInternalSelectionOutputPort(int port, int conn)
226{
227 // First make sure the convert domain filter is up to date.
228 if (!this->GetInternalAnnotationOutputPort(port, conn))
229 {
230 return nullptr;
231 }
232
233 // Output port 1 of the convert domain filter is the current selection
234 // that was contained in the linked annotation.
235 std::pair<int, int> p(port, conn);
236 if (this->Implementation->ConvertDomainInternal.find(p) !=
237 this->Implementation->ConvertDomainInternal.end())
238 {
239 return this->Implementation->ConvertDomainInternal[p]->GetOutputPort(1);
240 }
241 return nullptr;
242}
243
244//------------------------------------------------------------------------------
245void vtkDataRepresentation::Select(vtkView* view, vtkSelection* selection, bool extend)

Callers 6

UpdateMethod · 0.80
UpdateMethod · 0.80

Calls 4

findMethod · 0.45
endMethod · 0.45
GetOutputPortMethod · 0.45

Tested by

no test coverage detected