9#ifndef vtkAMRBaseParticlesReader_h
10#define vtkAMRBaseParticlesReader_h
12#include "vtkIOAMRModule.h"
15VTK_ABI_NAMESPACE_BEGIN
34 vtkGetMacro(Frequency,
int);
35 vtkSetMacro(Frequency,
int);
91 this->MinLocation[0] = minx;
92 this->MinLocation[1] = miny;
93 this->MinLocation[2] = minz;
103 this->MaxLocation[0] = maxx;
104 this->MaxLocation[1] = maxy;
105 this->MaxLocation[2] = maxz;
192 vtkObject* caller,
unsigned long eid,
void* clientdata,
void* calldata);
206 double MinLocation[3];
207 double MaxLocation[3];
An abstract base class that implements all the common functionality for all particle readers.
bool CheckLocation(double x, double y, double z)
Filters particles by their location.
bool IsBlockMine(int blkIdx)
Determines if the block associated with the given block index belongs to the process that executes th...
void SetParticleArrayStatus(const char *name, int status)
Get/Set whether the particle array status.
vtkMultiProcessController * Controller
bool IsParallel()
Determines whether this reader instance is running in parallel or not.
virtual void SetFileName(VTK_FILEPATH const char *fileName)
int GetBlockProcessId(int blkIdx)
Given the block index, this method determines the process Id.
~vtkAMRBaseParticlesReader() override
void InitializeParticleDataSelections()
Initializes the ParticleDataArraySelection object.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGetFilePathMacro(FileName)
int GetNumberOfParticleArrays()
Get the number of particles arrays available in the input.
virtual void ReadMetaData()=0
Reads the metadata, e.g., the number of blocks in the file.
virtual vtkPolyData * ReadParticles(int blkIdx)=0
Reads the particles corresponding to the block associated with the given supplied block index.
vtkTypeBool FilterLocation
vtkCallbackCommand * SelectionObserver
Standard Array selection variables & methods.
int GetParticleArrayStatus(const char *name)
Get/Set whether the particle array status.
const char * GetParticleArrayName(int index)
Get the particle array name of the array associated with the given index.
void SetMinLocation(double minx, double miny, double minz)
Sets the min location.
void Initialize()
Initializes the AMR Particles reader NOTE: must be called in the constructor of concrete classes.
void SetMaxLocation(double maxx, double maxy, double maxz)
Sets the max location.
int FillOutputPortInformation(int port, vtkInformation *info) override
Standard pipeline operations.
virtual void SetController(vtkMultiProcessController *)
Set & Get the multi-process controller.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Standard pipeline operations.
static void SelectionModifiedCallback(vtkObject *caller, unsigned long eid, void *clientdata, void *calldata)
Call-back registered with the SelectionObserver for selecting/deselecting particles.
vtkDataArraySelection * ParticleDataArraySelection
Standard Array selection variables & methods.
virtual void SetupParticleDataSelections()=0
Sets up the ParticleDataArraySelection.
virtual int GetTotalNumberOfParticles()=0
Returns the total number of particles.
vtkAMRBaseParticlesReader()
supports function callbacks
Store on/off settings for data arrays, etc.
a simple class to control print indentation
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
Multiprocessing communication superclass.
abstract base class for most VTK objects
concrete dataset represents vertices, lines, polygons, and triangle strips