 |
VTK
9.0.1
|
Go to the documentation of this file.
33 #ifndef vtkAMRResampleFilter_h
34 #define vtkAMRResampleFilter_h
36 #include "vtkFiltersAMRModule.h"
64 vtkSetVector3Macro(NumberOfSamples,
int);
65 vtkGetVector3Macro(NumberOfSamples,
int);
72 vtkSetMacro(TransferToNodes,
int);
73 vtkGetMacro(TransferToNodes,
int);
81 vtkSetMacro(DemandDrivenMode,
int);
82 vtkGetMacro(DemandDrivenMode,
int);
89 vtkSetMacro(NumberOfPartitions,
int);
90 vtkGetMacro(NumberOfPartitions,
int);
97 vtkSetVector3Macro(Min,
double);
98 vtkGetVector3Macro(Min,
double);
105 vtkSetVector3Macro(Max,
double);
106 vtkGetVector3Macro(Max,
double);
113 vtkSetMacro(UseBiasVector,
bool);
114 vtkGetMacro(UseBiasVector,
bool);
123 vtkSetVector3Macro(BiasVector,
double);
124 vtkGetVector3Macro(BiasVector,
double);
159 int NumberOfSamples[3];
160 int GridNumberOfSamples[3];
171 double BiasVector[3];
232 unsigned int& gridId,
int& donorCellIdx);
298 double h[3],
int dims[3],
double& rf);
304 double domainMin[3],
double domainMax[3],
double regionMin[3],
double regionMax[3]);
318 const int N[3],
const double h0[3],
const double L[3],
const double rf);
326 void SnapBounds(
const double h0[3],
const double domainMin[3],
const double domainMax[3],
327 const int dims[3],
bool outside[6]);
365 unsigned int&
level,
unsigned int& gridId,
int&
id);
Encloses a rectangular region of voxel like cells.
bool GridsIntersect(double *g1, double *g2)
Checks if two uniform grids intersect.
vtkOverlappingAMR * AMRMetaData
void GetDomainParameters(vtkOverlappingAMR *amr, double domainMin[3], double domainMax[3], double h[3], int dims[3], double &rf)
This method accesses the domain boundaries.
~vtkAMRResampleFilter() override
void TransferToGridNodes(vtkUniformGrid *g, vtkOverlappingAMR *amrds)
Transfer the solution from the AMR dataset to the nodes of the given uniform grid.
vtkMultiBlockDataSet * ROI
void TransferSolution(vtkUniformGrid *g, vtkOverlappingAMR *amrds)
Transfers the solution.
represent and manipulate point attribute data
bool IsRegionMine(const int regionIdx)
Given the Region ID this function returns whether or not the region belongs to this process or not.
int NumberOfTimesFoundOnDonorLevel
void AdjustNumberOfSamplesInRegion(const double Rh[3], const bool outside[6], int N[3])
This method adjust the numbers of samples in the region, N, if the requested region falls outside,...
void PrintSelf(ostream &oss, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Performs upstream requests to the reader.
int GetRegionProcessId(const int regionIdx)
Given the Region ID, this method computes the corresponding process ID that owns the region based on ...
Composite dataset that organizes datasets into blocks.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
represent and manipulate fields of data
void InitializeFields(vtkFieldData *f, vtkIdType size, vtkCellData *src)
Given the source cell data of an AMR grid, this method initializes the field values,...
void ComputeAMRBlocksToLoad(vtkOverlappingAMR *metadata)
Given a user-supplied region of interest and the metadata by a module upstream, this method generates...
int NumberOfBlocksVisSkipped
void ComputeCellCentroid(vtkUniformGrid *g, const vtkIdType cellIdx, double c[3])
Given a cell index and a grid, this method computes the cell centroid.
boost::graph_traits< vtkGraph * >::vertex_descriptor target(boost::graph_traits< vtkGraph * >::edge_descriptor e, vtkGraph *)
void ComputeAndAdjustRegionParameters(vtkOverlappingAMR *amrds, double h[3])
This method computes and adjusts the region parameters s.t.
bool SearchGridAncestors(double q[3], vtkOverlappingAMR *amrds, unsigned int &level, unsigned int &gridId, int &id)
Find an ancestor of the specified grid that contains the point.
bool RegionIntersectsWithAMR(double domainMin[3], double domainMax[3], double regionMin[3], double regionMax[3])
Checks if the domain and requested region intersect.
vtkUniformGrid * GetReferenceGrid(vtkOverlappingAMR *amrds)
Returns a reference grid from the amrdataset.
void ExtractRegion(vtkOverlappingAMR *amrds, vtkMultiBlockDataSet *mbds, vtkOverlappingAMR *metadata)
Extract the region (as a multiblock) from the given AMR dataset.
Multiprocessing communication superclass.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
void SearchGridDecendants(double q[3], vtkOverlappingAMR *amrds, unsigned int maxLevel, unsigned int &level, unsigned int &gridId, int &id)
Writes a uniform grid to a file.
void ComputeRegionParameters(vtkOverlappingAMR *amrds, int N[3], double min[3], double max[3], double h[3])
Computes the region parameters.
represent and manipulate cell attribute data
a simple class to control print indentation
bool IsBlockWithinBounds(double *grd)
Checks if the AMR block, described by a uniform grid, is within the bounds of the ROI perscribed by t...
void SnapBounds(const double h0[3], const double domainMin[3], const double domainMax[3], const int dims[3], bool outside[6])
This method snaps the bounds s.t.
void CopyData(vtkFieldData *target, vtkIdType targetIdx, vtkCellData *src, vtkIdType srcIdx)
Copies the data to the target from the given source.
bool SearchForDonorGridAtLevel(double q[3], vtkOverlappingAMR *amrds, unsigned int level, unsigned int &gridId, int &donorCellIdx)
Given a query point q and a target level, this method finds a suitable grid at the given level that c...
hierarchical dataset of vtkUniformGrids
int NumberOfBlocksTestedForLevel
void GetRegion(double h[3])
This method gets the region of interest as perscribed by the user.
bool IsParallel()
Checks if this filter instance is running on more than one processes.
vtkMultiProcessController * Controller
void TransferToCellCenters(vtkUniformGrid *g, vtkOverlappingAMR *amrds)
Transfers the solution from the AMR dataset to the cell-centers of the given uniform grid.
void ComputeLevelOfResolution(const int N[3], const double h0[3], const double L[3], const double rf)
This method computes the level of resolution based on the number of samples requested,...
bool FoundDonor(double q[3], vtkUniformGrid *&donorGrid, int &cellIdx)
Given a query point q and a candidate donor grid, this method checks for the corresponding donor cell...
std::vector< int > BlocksToLoad
int ProbeGridPointInAMR(double q[3], unsigned int &donorLevel, unsigned int &donorGridId, vtkOverlappingAMR *amrds, unsigned int maxLevel, bool useCached)
Finds the AMR grid that contains the point q.
This filter is a concrete instance of vtkMultiBlockDataSetAlgorithm and provides functionality for ex...
int NumberOfTimesLevelDown
int ProbeGridPointInAMRGraph(double q[3], unsigned int &donorLevel, unsigned int &donorGridId, vtkOverlappingAMR *amrds, unsigned int maxLevel, bool useCached)
Finds the AMR grid that contains the point q.
vtkFrustumSelector is a vtkSelector that selects elements based on whether they are inside or interse...
int RequestInformation(vtkInformation *rqst, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Gets the metadata from upstream module and determines which blocks should be loaded by this instance.
static vtkAMRResampleFilter * New()
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.