VTK: Filters/Extraction/vtkFrustumSelector.h Source File

| VTK 9.3.1

vtkFrustumSelector.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
12 #ifndef vtkFrustumSelector_h
13 #define vtkFrustumSelector_h
14
15 #include "vtkFiltersExtractionModule.h" // For export macro
16 #include "vtkSelector.h"
17
18 #include "vtkSmartPointer.h" // for smart pointer
19
20 VTK_ABI_NAMESPACE_BEGIN
21 class vtkDataSet;
22 class vtkHyperTreeGrid;
23 class vtkPlanes;
24 class vtkSignedCharArray;
25
26 class VTKFILTERSEXTRACTION_EXPORT vtkFrustumSelector : public vtkSelector
27 {
28 public:
29 static vtkFrustumSelector* New();
30 vtkTypeMacro(vtkFrustumSelector, vtkSelector);
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
33 void Initialize(vtkSelectionNode* node) override;
34
38 vtkMTimeType GetMTime() override;
39
41
44 void SetFrustum(vtkPlanes*);
45 vtkPlanes* GetFrustum();
47
48 protected:
49 vtkFrustumSelector(vtkPlanes* f = nullptr);
50 ~vtkFrustumSelector() override;
51
52 vtkSmartPointer<vtkPlanes> Frustum;
53
54 bool ComputeSelectedElements(vtkDataObject* input, vtkSignedCharArray* insidednessArray) override;
55
65 void CreateFrustum(double vertices[32]);
66
71 void ComputeSelectedPoints(vtkDataSet* input, vtkSignedCharArray* pointsInside);
72
74
78 void ComputeSelectedCells(vtkDataSet* input, vtkSignedCharArray* cellsInside);
79 void ComputeSelectedCells(vtkHyperTreeGrid* input, vtkSignedCharArray* cellsInside);
81
82 int OverallBoundsTest(double bounds[6]);
83
84 private:
85 vtkFrustumSelector(const vtkFrustumSelector&) = delete;
86 void operator=(const vtkFrustumSelector&) = delete;
87 };
88
89 VTK_ABI_NAMESPACE_END
90 #endif
vtkDataObject
general representation of visualization data
Definition: vtkDataObject.h:64
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
vtkFrustumSelector
vtkFrustumSelector is a vtkSelector that selects elements based on whether they are inside or interse...
Definition: vtkFrustumSelector.h:27
vtkFrustumSelector::GetMTime
vtkMTimeType GetMTime() override
Return the MTime taking into account changes to the Frustum.
vtkFrustumSelector::GetFrustum
vtkPlanes * GetFrustum()
Set the selection frustum.
vtkFrustumSelector::OverallBoundsTest
int OverallBoundsTest(double bounds[6])
vtkFrustumSelector::ComputeSelectedElements
bool ComputeSelectedElements(vtkDataObject *input, vtkSignedCharArray *insidednessArray) override
This method computes whether or not each element in the dataset is inside the selection and populates...
vtkFrustumSelector::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkFrustumSelector::~vtkFrustumSelector
~vtkFrustumSelector() override
vtkFrustumSelector::Initialize
void Initialize(vtkSelectionNode *node) override
Sets the vtkSelectionNode used by this selection operator and initializes the data structures in the ...
vtkFrustumSelector::ComputeSelectedCells
void ComputeSelectedCells(vtkDataSet *input, vtkSignedCharArray *cellsInside)
Computes which cells in the dataset are inside or intersect the frustum and populates the cellsInside...
vtkFrustumSelector::CreateFrustum
void CreateFrustum(double vertices[32])
Given eight vertices, creates a frustum.
vtkFrustumSelector::ComputeSelectedCells
void ComputeSelectedCells(vtkHyperTreeGrid *input, vtkSignedCharArray *cellsInside)
Computes which cells in the dataset are inside or intersect the frustum and populates the cellsInside...
vtkFrustumSelector::SetFrustum
void SetFrustum(vtkPlanes *)
Set the selection frustum.
vtkFrustumSelector::vtkFrustumSelector
vtkFrustumSelector(vtkPlanes *f=nullptr)
vtkFrustumSelector::Frustum
vtkSmartPointer< vtkPlanes > Frustum
Definition: vtkFrustumSelector.h:52
vtkFrustumSelector::New
static vtkFrustumSelector * New()
vtkFrustumSelector::ComputeSelectedPoints
void ComputeSelectedPoints(vtkDataSet *input, vtkSignedCharArray *pointsInside)
Computes which points in the dataset are inside the frustum and populates the pointsInside array with...
vtkHyperTreeGrid
A dataset containing a grid of vtkHyperTree instances arranged as a rectilinear grid.
Definition: vtkHyperTreeGrid.h:91
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkPlanes
implicit function for convex set of planes
Definition: vtkPlanes.h:51
vtkSelectionNode
a node in a vtkSelection the defines the selection criteria.
Definition: vtkSelectionNode.h:242
vtkSelector
Definition: vtkSelector.h:30
vtkSignedCharArray
dynamic, self-adjusting array of signed char
Definition: vtkSignedCharArray.h:28
vtkSmartPointer< vtkPlanes >
vertices
std::pair< boost::graph_traits< vtkGraph * >::vertex_iterator, boost::graph_traits< vtkGraph * >::vertex_iterator > vertices(vtkGraph *g)
Definition: vtkBoostGraphAdapter.h:978
vtkSelector.h
vtkSmartPointer.h
vtkMTimeType
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:270