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];
An abstract base class that implements all the common functionality for all particle readers.
void SetParticleArrayStatus(const char *name, int status)
bool CheckLocation(const double x, const double y, const double z)
Filters particles by their location.
virtual ~vtkAMRBaseParticlesReader()
vtkMultiProcessController * Controller
bool IsParallel()
Determines whether this reader instance is running in parallel or not.
void InitializeParticleDataSelections()
Initializes the ParticleDataArraySelection object.
virtual vtkPolyData * ReadParticles(const int blkIdx)=0
Reads the particles corresponding to the block associated with the given supplied block index.
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.
void SetMaxLocation(const double maxx, const double maxy, const double maxz)
Sets the max location.
vtkCallbackCommand * SelectionObserver
void SetMinLocation(const double minx, const double miny, const double minz)
Sets the min location.
int GetParticleArrayStatus(const char *name)
Get/Set whether the particle array status.
bool IsBlockMine(const int blkIdx)
Determines if the block associated with the given block index belongs to the process that executes th...
int GetBlockProcessId(const int blkIdx)
Given the block index, this method determines the process Id.
const char * GetParticleArrayName(int index)
Get the particle array name of the array associated with the given index.
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Fill the output port information objects for this algorithm.
void Initialize()
Initializes the AMR Particles reader NOTE: must be called in the constructor of concrete classes.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
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 int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Standard pipeline operations.
virtual void SetupParticleDataSelections()=0
Sets up the ParticleDataArraySelection.
virtual int GetTotalNumberOfParticles()=0
Returns the total number of particles.
virtual void SetFileName(const char *fileName)
vtkAMRBaseParticlesReader()
supports function callbacks
Store on/off settings for data arrays for a vtkSource.
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
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.