23 #ifndef vtkAMRBaseParticlesReader_h 24 #define vtkAMRBaseParticlesReader_h 26 #include "vtkIOAMRModule.h" 48 vtkGetMacro(Frequency,
int);
49 vtkSetMacro(Frequency,
int);
81 int GetNumberOfParticleArrays();
87 const char* GetParticleArrayName(
int index );
93 int GetParticleArrayStatus(
const char*
name );
94 void SetParticleArrayStatus(
const char*
name,
int status );
98 virtual void SetFileName(
const char *fileName );
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;
130 virtual int GetTotalNumberOfParticles() = 0;
142 virtual void ReadMetaData() = 0;
148 virtual vtkPolyData* ReadParticles(
const int blkIdx ) = 0;
156 bool CheckLocation(
const double x,
const double y,
const double z );
167 bool IsBlockMine(
const int blkIdx );
176 int GetBlockProcessId(
const int blkIdx );
197 void InitializeParticleDataSelections();
203 virtual void SetupParticleDataSelections() = 0;
209 static void SelectionModifiedCallback(
210 vtkObject *caller,
unsigned long eid,
void *clientdata,
void *calldata );
225 double MinLocation[3];
226 double MaxLocation[3];
abstract base class for most VTK objects
vtkCallbackCommand * SelectionObserver
Standard Array selection variables & methods.
concrete dataset represents vertices, lines, polygons, and triangle strips
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
vtkMultiProcessController * Controller
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
An abstract base class that implements all the common functionality for all particle readers...
supports function callbacks
a simple class to control print indentation
void SetMaxLocation(const double maxx, const double maxy, const double maxz)
Sets the max location.
vtkDataArraySelection * ParticleDataArraySelection
Standard Array selection variables & methods.
Store on/off settings for data arrays for a vtkSource.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool FilterLocation
void SetMinLocation(const double minx, const double miny, const double minz)
Sets the min location.
Multiprocessing communication superclass.