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

Method NewSelectionOperator

Filters/Extraction/vtkExtractSelection.cxx:480–507  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

478
479//------------------------------------------------------------------------------
480vtkSmartPointer<vtkSelector> vtkExtractSelection::NewSelectionOperator(
481 vtkSelectionNode::SelectionContent contentType)
482{
483 switch (contentType)
484 {
485 case vtkSelectionNode::GLOBALIDS:
486 case vtkSelectionNode::PEDIGREEIDS:
487 case vtkSelectionNode::VALUES:
488 case vtkSelectionNode::INDICES:
489 case vtkSelectionNode::THRESHOLDS:
490 return vtkSmartPointer<vtkValueSelector>::New();
491
492 case vtkSelectionNode::FRUSTUM:
493 return vtkSmartPointer<vtkFrustumSelector>::New();
494
495 case vtkSelectionNode::LOCATIONS:
496 return vtkSmartPointer<vtkLocationSelector>::New();
497
498 case vtkSelectionNode::BLOCKS:
499 case vtkSelectionNode::BLOCK_SELECTORS:
500 return vtkSmartPointer<vtkBlockSelector>::New();
501
502 case vtkSelectionNode::USER:
503 case vtkSelectionNode::QUERY:
504 default:
505 return nullptr;
506 }
507}
508
509//------------------------------------------------------------------------------
510vtkExtractSelection::EvaluationResult vtkExtractSelection::EvaluateSelection(

Callers 1

RequestDataMethod · 0.95

Calls 1

NewFunction · 0.50

Tested by

no test coverage detected