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