Go to the documentation of this file.
23 #ifndef vtkAMRBaseParticlesReader_h
24 #define vtkAMRBaseParticlesReader_h
26 #include "vtkIOAMRModule.h"
48 vtkGetMacro(Frequency,
int);
65 vtkGetMacro(FilterLocation,
int);
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...
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.
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
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.
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.
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.
An abstract base class that implements all the common functionality for all particle readers.
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.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
virtual int GetTotalNumberOfParticles()=0
Returns the total number of particles.
virtual ~vtkAMRBaseParticlesReader()
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
void InitializeParticleDataSelections()
Initializes the ParticleDataArraySelection object.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkAMRBaseParticlesReader()
virtual void SetupParticleDataSelections()=0
Sets up the ParticleDataArraySelection.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void SetFileName(const char *fileName)
concrete dataset represents vertices, lines, polygons, and triangle strips
supports function callbacks
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Standard pipeline operations.
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.