VTK
|
#include <vtkAMRResampleFilter.h>
Inherits vtkMultiBlockDataSetAlgorithm.
Public Types | |
typedef vtkMultiBlockDataSetAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkAMRResampleFilter * | NewInstance () const |
void | PrintSelf (ostream &oss, vtkIndent indent) |
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
virtual int | FillOutputPortInformation (int port, vtkInformation *info) |
virtual void | SetNumberOfSamples (int, int, int) |
virtual void | SetNumberOfSamples (int[3]) |
virtual int * | GetNumberOfSamples () |
virtual void | GetNumberOfSamples (int &, int &, int &) |
virtual void | GetNumberOfSamples (int[3]) |
virtual void | SetTransferToNodes (int) |
virtual int | GetTransferToNodes () |
virtual void | SetDemandDrivenMode (int) |
virtual int | GetDemandDrivenMode () |
virtual void | SetNumberOfPartitions (int) |
virtual int | GetNumberOfPartitions () |
virtual void | SetMin (double, double, double) |
virtual void | SetMin (double[3]) |
virtual double * | GetMin () |
virtual void | GetMin (double &, double &, double &) |
virtual void | GetMin (double[3]) |
virtual void | SetMax (double, double, double) |
virtual void | SetMax (double[3]) |
virtual double * | GetMax () |
virtual void | GetMax (double &, double &, double &) |
virtual void | GetMax (double[3]) |
virtual void | SetUseBiasVector (bool) |
virtual bool | GetUseBiasVector () |
virtual void | SetBiasVector (double, double, double) |
virtual void | SetBiasVector (double[3]) |
virtual double * | GetBiasVector () |
virtual void | GetBiasVector (double &, double &, double &) |
virtual void | GetBiasVector (double[3]) |
virtual void | SetController (vtkMultiProcessController *) |
virtual vtkMultiProcessController * | GetController () |
virtual int | RequestInformation (vtkInformation *rqst, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
virtual int | RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Static Public Member Functions | |
static vtkAMRResampleFilter * | New () |
static int | IsTypeOf (const char *type) |
static vtkAMRResampleFilter * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkAMRResampleFilter () | |
virtual | ~vtkAMRResampleFilter () |
bool | IsParallel () |
bool | IsRegionMine (const int regionIdx) |
int | GetRegionProcessId (const int regionIdx) |
void | InitializeFields (vtkFieldData *f, vtkIdType size, vtkCellData *src) |
bool | FoundDonor (double q[3], vtkUniformGrid *&donorGrid, int &cellIdx) |
bool | IsBlockWithinBounds (double *grd) |
void | ComputeAMRBlocksToLoad (vtkOverlappingAMR *metadata) |
void | GetRegion (double h[3]) |
bool | GridsIntersect (double *g1, double *g2) |
vtkUniformGrid * | GetReferenceGrid (vtkOverlappingAMR *amrds) |
void | ComputeCellCentroid (vtkUniformGrid *g, const vtkIdType cellIdx, double c[3]) |
void | CopyData (vtkFieldData *target, vtkIdType targetIdx, vtkCellData *src, vtkIdType srcIdx) |
bool | SearchForDonorGridAtLevel (double q[3], vtkOverlappingAMR *amrds, unsigned int level, unsigned int &gridId, int &donorCellIdx) |
int | ProbeGridPointInAMR (double q[3], unsigned int &donorLevel, unsigned int &donorGridId, vtkOverlappingAMR *amrds, unsigned int maxLevel, bool useCached) |
int | ProbeGridPointInAMRGraph (double q[3], unsigned int &donorLevel, unsigned int &donorGridId, vtkOverlappingAMR *amrds, unsigned int maxLevel, bool useCached) |
void | TransferToCellCenters (vtkUniformGrid *g, vtkOverlappingAMR *amrds) |
void | TransferToGridNodes (vtkUniformGrid *g, vtkOverlappingAMR *amrds) |
void | TransferSolution (vtkUniformGrid *g, vtkOverlappingAMR *amrds) |
void | ExtractRegion (vtkOverlappingAMR *amrds, vtkMultiBlockDataSet *mbds, vtkOverlappingAMR *metadata) |
void | ComputeRegionParameters (vtkOverlappingAMR *amrds, int N[3], double min[3], double max[3], double h[3]) |
void | GetDomainParameters (vtkOverlappingAMR *amr, double domainMin[3], double domainMax[3], double h[3], int dims[3], double &rf) |
bool | RegionIntersectsWithAMR (double domainMin[3], double domainMax[3], double regionMin[3], double regionMax[3]) |
void | AdjustNumberOfSamplesInRegion (const double Rh[3], const bool outside[6], int N[3]) |
void | ComputeLevelOfResolution (const int N[3], const double h0[3], const double L[3], const double rf) |
void | SnapBounds (const double h0[3], const double domainMin[3], const double domainMax[3], const int dims[3], bool outside[6]) |
void | ComputeAndAdjustRegionParameters (vtkOverlappingAMR *amrds, double h[3]) |
void | SearchGridDecendants (double q[3], vtkOverlappingAMR *amrds, unsigned int maxLevel, unsigned int &level, unsigned int &gridId, int &id) |
bool | SearchGridAncestors (double q[3], vtkOverlappingAMR *amrds, unsigned int &level, unsigned int &gridId, int &id) |
Protected Attributes | |
vtkOverlappingAMR * | AMRMetaData |
vtkMultiBlockDataSet * | ROI |
int | NumberOfSamples [3] |
int | GridNumberOfSamples [3] |
double | Min [3] |
double | Max [3] |
double | GridMin [3] |
double | GridMax [3] |
int | LevelOfResolution |
int | NumberOfPartitions |
int | TransferToNodes |
int | DemandDrivenMode |
vtkMultiProcessController * | Controller |
bool | UseBiasVector |
double | BiasVector [3] |
int | NumberOfBlocksTestedForLevel |
int | NumberOfBlocksTested |
int | NumberOfBlocksVisSkipped |
int | NumberOfTimesFoundOnDonorLevel |
int | NumberOfTimesLevelUp |
int | NumberOfTimesLevelDown |
int | NumberOfFailedPoints |
double | AverageLevel |
std::vector< int > | BlocksToLoad |
This filter is a concrete instance of vtkMultiBlockDataSetAlgorithm and provides functionality for extracting portion of the AMR dataset, specified by a bounding box, in a uniform grid of the desired level of resolution. The resulting uniform grid is stored in a vtkMultiBlockDataSet where the number of blocks correspond to the number of processors utilized for the operation.
Definition at line 54 of file vtkAMRResampleFilter.h.
typedef vtkMultiBlockDataSetAlgorithm vtkAMRResampleFilter::Superclass |
Definition at line 58 of file vtkAMRResampleFilter.h.
|
protected |
|
protectedvirtual |
|
static |
|
static |
|
virtual |
|
static |
|
protectedvirtual |
vtkAMRResampleFilter* vtkAMRResampleFilter::NewInstance | ( | ) | const |
void vtkAMRResampleFilter::PrintSelf | ( | ostream & | oss, |
vtkIndent | indent | ||
) |
|
virtual |
Set & Get macro for the number of samples (cells) in each dimension. Nominal value for the number of samples is 10x10x10.
|
virtual |
Set & Get macro for the number of samples (cells) in each dimension. Nominal value for the number of samples is 10x10x10.
|
virtual |
Set & Get macro for the number of samples (cells) in each dimension. Nominal value for the number of samples is 10x10x10.
|
virtual |
Set & Get macro for the number of samples (cells) in each dimension. Nominal value for the number of samples is 10x10x10.
|
virtual |
Set & Get macro for the number of samples (cells) in each dimension. Nominal value for the number of samples is 10x10x10.
|
virtual |
Set & Get macro for the TransferToNodes flag
|
virtual |
Set & Get macro for the TransferToNodes flag
|
virtual |
Set & Get macro to allow the filter to operate in both demand-driven and standard modes
|
virtual |
Set & Get macro to allow the filter to operate in both demand-driven and standard modes
|
virtual |
Set & Get macro for the number of subdivisions
|
virtual |
Set & Get macro for the number of subdivisions
|
virtual |
Set and Get the min corner
|
virtual |
Set and Get the min corner
|
virtual |
Set and Get the min corner
|
virtual |
Set and Get the min corner
|
virtual |
Set and Get the min corner
|
virtual |
Set and Get the max corner
|
virtual |
Set and Get the max corner
|
virtual |
Set and Get the max corner
|
virtual |
Set and Get the max corner
|
virtual |
Set and Get the max corner
|
virtual |
Set & Get macro for the number of subdivisions
|
virtual |
Set & Get macro for the number of subdivisions
|
virtual |
Set and Get the bias vector. If UseBiasVector is true then the largest component of this vector can not have the max number of samples
|
virtual |
Set and Get the bias vector. If UseBiasVector is true then the largest component of this vector can not have the max number of samples
|
virtual |
Set and Get the bias vector. If UseBiasVector is true then the largest component of this vector can not have the max number of samples
|
virtual |
Set and Get the bias vector. If UseBiasVector is true then the largest component of this vector can not have the max number of samples
|
virtual |
Set and Get the bias vector. If UseBiasVector is true then the largest component of this vector can not have the max number of samples
|
virtual |
Set & Get macro for the multi-process controller
|
virtual |
Set & Get macro for the multi-process controller
|
virtual |
Gets the metadata from upstream module and determines which blocks should be loaded by this instance.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Performs upstream requests to the reader
|
protected |
Checks if this filter instance is running on more than one processes
|
protected |
Given the Region ID this function returns whether or not the region belongs to this process or not.
|
protected |
Given the Region ID, this method computes the corresponding process ID that owns the region based on static block-cyclic distribution.
|
protected |
Given a cell index and a grid, this method computes the cell centroid.
|
protected |
Given the source cell data of an AMR grid, this method initializes the field values, i.e., the number of arrays with the prescribed size. Note, the size must correspond to the number of points if node-centered or the the number of cells if cell-centered.
|
protected |
Copies the data to the target from the given source.
|
protected |
Given a query point q and a candidate donor grid, this method checks for the corresponding donor cell containing the point in the given grid.
|
protected |
Given a query point q and a target level, this method finds a suitable grid at the given level that contains the point if one exists. If a grid is not found, donorGrid is set to NULL.
|
protected |
Finds the AMR grid that contains the point q. If donorGrid points to a valid AMR grid in the hierarchy, the algorithm will search this grid first. The method returns the ID of the cell w.r.t. the donorGrid that contains the probe point q.
|
protected |
Finds the AMR grid that contains the point q. If donorGrid points to a valid AMR grid in the hierarchy, the algorithm will search this grid first. The method returns the ID of the cell w.r.t. the donorGrid that contains the probe point q. - Makes use of Parent/Child Info
|
protected |
Transfers the solution from the AMR dataset to the cell-centers of the given uniform grid.
|
protected |
Transfer the solution from the AMR dataset to the nodes of the given uniform grid.
|
protected |
Transfers the solution
|
protected |
Extract the region (as a multiblock) from the given AMR dataset.
|
protected |
Checks if the AMR block, described by a uniform grid, is within the bounds of the ROI perscribed by the user.
|
protected |
Given a user-supplied region of interest and the metadata by a module upstream, this method generates the list of linear AMR block indices that need to be loaded.
|
protected |
Computes the region parameters
|
protected |
This method accesses the domain boundaries
|
protected |
Checks if the domain and requested region intersect.
|
protected |
This method adjust the numbers of samples in the region, N, if the requested region falls outside, but, intersects the domain.
|
protected |
This method computes the level of resolution based on the number of samples requested, N, the root level spacing h0, the length of the box, L (actual length after snapping) and the refinement ratio.
|
protected |
This method snaps the bounds s.t. they are within the interior of the domain described the root level uniform grid with h0, domainMin and domain Max. The method computes and returns the new min/max bounds and the corresponding ijkmin/ijkmax coordinates w.r.t. the root level.
|
protected |
This method computes and adjusts the region parameters s.t. the requested region always fall within the AMR region and the number of samples is adjusted if the region of interest moves outsided the domain.
|
protected |
This method gets the region of interest as perscribed by the user.
|
protected |
Checks if two uniform grids intersect.
|
protected |
Returns a reference grid from the amrdataset.
|
protected |
Writes a uniform grid to a file. Used for debugging purposes. void WriteUniformGrid( vtkUniformGrid *g, std::string prefix ); void WriteUniformGrid( double origin[3], int dims[3], double h[3], std::string prefix );
Find a decendant of the specified grid that contains the point. If none is found then the original grid information is returned. The search is limited to levels < maxLevel
|
protected |
Find an ancestor of the specified grid that contains the point. If none is found then the original grid information is returned
|
protected |
Definition at line 146 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 147 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 148 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 149 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 150 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 151 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 152 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 153 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 154 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 155 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 156 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 157 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 158 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 159 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 160 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 163 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 164 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 165 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 166 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 167 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 168 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 169 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 170 of file vtkAMRResampleFilter.h.
|
protected |
Definition at line 172 of file vtkAMRResampleFilter.h.