------------------------------------------------------------------------------
| 478 | |
| 479 | //------------------------------------------------------------------------------ |
| 480 | vtkSmartPointer<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 | //------------------------------------------------------------------------------ |
| 510 | vtkExtractSelection::EvaluationResult vtkExtractSelection::EvaluateSelection( |