22 #ifndef VTKAMRBASEPARTICLESREADER_H_
23 #define VTKAMRBASEPARTICLESREADER_H_
45 vtkGetMacro(Frequency,
int);
46 vtkSetMacro(Frequency,
int);
57 vtkSetMacro(FilterLocation,
int);
58 vtkGetMacro(FilterLocation,
int);
59 vtkBooleanMacro(FilterLocation,
int);
70 int GetNumberOfParticleArrays();
74 const char* GetParticleArrayName(
int index );
78 int GetParticleArrayStatus(
const char*
name );
79 void SetParticleArrayStatus(
const char*
name,
int status );
83 virtual void SetFileName(
const char *fileName );
84 vtkGetStringMacro(FileName);
89 const double minx,
const double miny,
const double minz )
91 this->MinLocation[ 0 ] = minx;
92 this->MinLocation[ 1 ] = miny;
93 this->MinLocation[ 2 ] = minz;
100 const double maxx,
const double maxy,
const double maxz )
102 this->MaxLocation[ 0 ] = maxx;
103 this->MaxLocation[ 1 ] = maxy;
104 this->MaxLocation[ 2 ] = maxz;
109 virtual int GetTotalNumberOfParticles() = 0;
119 virtual void ReadMetaData() = 0;
123 virtual vtkPolyData* ReadParticles(
const int blkIdx ) = 0;
129 bool CheckLocation(
const double x,
const double y,
const double z );
137 bool IsBlockMine(
const int blkIdx );
144 int GetBlockProcessId(
const int blkIdx );
159 void InitializeParticleDataSelections();
163 virtual void SetupParticleDataSelections() = 0;
168 static void SelectionModifiedCallback(
169 vtkObject *caller,
unsigned long eid,
void *clientdata,
void *calldata );
183 double MinLocation[3];
184 double MaxLocation[3];
abstract base class for most VTK objects
vtkCallbackCommand * SelectionObserver
concrete dataset represents vertices, lines, polygons, and triangle strips
Superclass for algorithms that produce only vtkMultiBlockDataSet as output.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkMultiProcessController * Controller
virtual int FillOutputPortInformation(int port, vtkInformation *info)
supports function callbacks
a simple class to control print indentation
void SetMaxLocation(const double maxx, const double maxy, const double maxz)
vtkDataArraySelection * ParticleDataArraySelection
Store on/off settings for data arrays for a vtkSource.
void PrintSelf(ostream &os, vtkIndent indent)
void SetMinLocation(const double minx, const double miny, const double minz)
Multiprocessing communication superclass.