ParaView
|
Creates a vtkMultiBlockDataSet from a GenericIO file. More...
#include <vtkPGenericIOMultiBlockReader.h>
Inherits vtkMultiBlockDataSetAlgorithm.
Public Types | |
enum | IOType { IOTYPEMPI, IOTYPEPOSIX } |
enum | BlockAssignment { ROUND_ROBIN, RCB } |
typedef vtkMultiBlockDataSetAlgorithm | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
int | GetNumberOfPointArrays () |
Returns the number of arrays in the file, i.e., the number of columns. More... | |
const char * | GetPointArrayName (int i) |
Returns the name of the ith array. More... | |
int | GetPointArrayStatus (const char *name) |
Returns the status of the array corresponding to the given name. More... | |
void | SetPointArrayStatus (const char *name, int status) |
Sets the status of the array corresponding to the given name. More... | |
vtkIdType | GetRequestedHaloId (vtkIdType i) |
Gets the ith requested halo id. More... | |
vtkIdType | GetNumberOfRequestedHaloIds () |
Gets the number of requested halo ids. More... | |
void | SetNumberOfRequestedHaloIds (vtkIdType numIds) |
Sets the number of requested halo ids. More... | |
void | AddRequestedHaloId (vtkIdType haloId) |
Adds the given halo id to the list of halo ids to request. More... | |
void | ClearRequestedHaloIds () |
Clears the list of requested halo ids. More... | |
void | SetRequestedHaloId (vtkIdType i, vtkIdType haloId) |
Sets the ith requested halo id to the given haloId. More... | |
virtual void | SetXAxisVariableName (const char *) |
Set/Get the variable name to be used as the x-axis for plotting particles. More... | |
virtual char * | GetXAxisVariableName () |
Set/Get the variable name to be used as the x-axis for plotting particles. More... | |
virtual void | SetYAxisVariableName (const char *) |
Set/Get the variable name to be used as the y-axis for plotting particles. More... | |
virtual char * | GetYAxisVariableName () |
Set/Get the variable name to be used as the y-axis for plotting particles. More... | |
virtual void | SetZAxisVariableName (const char *) |
Set/Get the variable name to be used as the z-axis for plotting particles. More... | |
virtual char * | GetZAxisVariableName () |
Set/Get the variable name to be used as the z-axis for plotting particles. More... | |
virtual void | SetFileName (const char *) |
Specify the name of the cosmology particle binary file to read. More... | |
virtual char * | GetFileName () |
Specify the name of the cosmology particle binary file to read. More... | |
virtual void | SetGenericIOType (int) |
Set/Get the underlying IO method the reader will employ, i.e., MPI or POSIX. More... | |
virtual int | GetGenericIOType () |
Set/Get the underlying IO method the reader will employ, i.e., MPI or POSIX. More... | |
virtual void | SetBlockAssignment (int) |
Set/Get the underlying block-assignment strategy to use, i.e., ROUND_ROBIN, or RCB. More... | |
virtual int | GetBlockAssignment () |
Set/Get the underlying block-assignment strategy to use, i.e., ROUND_ROBIN, or RCB. More... | |
virtual vtkStringArray * | GetArrayList () |
Returns the list of arrays used to select the variables to be used for the x,y and z axis. More... | |
virtual vtkDataArraySelection * | GetPointDataArraySelection () |
Get the data array selection tables used to configure which data arrays are loaded by the reader. More... | |
virtual vtkMultiProcessController * | GetController () |
Set/Get a multiprocess-controller for reading in parallel. More... | |
virtual void | SetController (vtkMultiProcessController *) |
Set/Get a multiprocess-controller for reading in parallel. More... | |
virtual void | SetHaloIdVariableName (const char *) |
Gets/Sets the variable name for the halo id of the particle. More... | |
virtual char * | GetHaloIdVariableName () |
Gets/Sets the variable name for the halo id of the particle. More... | |
Static Public Member Functions | |
static vtkPGenericIOMultiBlockReader * | New () |
static int | IsTypeOf (const char *type) |
static vtkPGenericIOMultiBlockReader * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkPGenericIOMultiBlockReader () | |
~vtkPGenericIOMultiBlockReader () | |
gio::GenericIOReader * | GetInternalReader () |
bool | ReaderParametersChanged () |
void | LoadMetaData () |
void | LoadRawVariableDataForBlock (const std::string &varName, int blockId) |
void | LoadRawDataForBlock (int blockId) |
void | GetPointFromRawData (int xType, void *xBuffer, int yType, void *yBuffer, int zType, void *zBuffer, vtkIdType id, double point[3]) |
void | LoadCoordinatesForBlock (vtkUnstructuredGrid *grid, std::set< vtkIdType > &pointsInSelectedHalos, int blockId) |
void | LoadDataArraysForBlock (vtkUnstructuredGrid *grid, const std::set< vtkIdType > &pointsInSelectedHalos, int blockId) |
vtkUnstructuredGrid * | LoadBlock (int blockId) |
virtual int | RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Static Protected Member Functions | |
static void | SelectionModifiedCallback (vtkObject *caller, unsigned long eid, void *clientdata, void *calldata) |
Call-back registered with the SelectionObserver. More... | |
Protected Attributes | |
char * | XAxisVariableName |
char * | YAxisVariableName |
char * | ZAxisVariableName |
char * | HaloIdVariableName |
char * | FileName |
int | GenericIOType |
int | BlockAssignment |
bool | BuildMetaData |
vtkMultiProcessController * | Controller |
vtkStringArray * | ArrayList |
vtkDataArraySelection * | PointDataArraySelection |
vtkIdList * | HaloList |
vtkCallbackCommand * | SelectionObserver |
gio::GenericIOReader * | Reader |
Creates a vtkMultiBlockDataSet from a GenericIO file.
Definition at line 44 of file vtkPGenericIOMultiBlockReader.h.
typedef vtkMultiBlockDataSetAlgorithm vtkPGenericIOMultiBlockReader::Superclass |
Definition at line 61 of file vtkPGenericIOMultiBlockReader.h.
Enumerator | |
---|---|
IOTYPEMPI | |
IOTYPEPOSIX |
Definition at line 48 of file vtkPGenericIOMultiBlockReader.h.
Enumerator | |
---|---|
ROUND_ROBIN | |
RCB |
Definition at line 54 of file vtkPGenericIOMultiBlockReader.h.
|
protected |
|
protected |
|
static |
|
virtual |
|
static |
|
virtual |
|
static |
void vtkPGenericIOMultiBlockReader::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
virtual |
Set/Get the variable name to be used as the x-axis for plotting particles.
|
virtual |
Set/Get the variable name to be used as the x-axis for plotting particles.
|
virtual |
Set/Get the variable name to be used as the y-axis for plotting particles.
|
virtual |
Set/Get the variable name to be used as the y-axis for plotting particles.
|
virtual |
Set/Get the variable name to be used as the z-axis for plotting particles.
|
virtual |
Set/Get the variable name to be used as the z-axis for plotting particles.
|
virtual |
Specify the name of the cosmology particle binary file to read.
|
virtual |
Specify the name of the cosmology particle binary file to read.
|
virtual |
Set/Get the underlying IO method the reader will employ, i.e., MPI or POSIX.
|
virtual |
Set/Get the underlying IO method the reader will employ, i.e., MPI or POSIX.
|
virtual |
Set/Get the underlying block-assignment strategy to use, i.e., ROUND_ROBIN, or RCB.
|
virtual |
Set/Get the underlying block-assignment strategy to use, i.e., ROUND_ROBIN, or RCB.
|
virtual |
Returns the list of arrays used to select the variables to be used for the x,y and z axis.
|
virtual |
Get the data array selection tables used to configure which data arrays are loaded by the reader.
|
virtual |
Set/Get a multiprocess-controller for reading in parallel.
By default this parameter is set to NULL by the constructor.
|
virtual |
Set/Get a multiprocess-controller for reading in parallel.
By default this parameter is set to NULL by the constructor.
int vtkPGenericIOMultiBlockReader::GetNumberOfPointArrays | ( | ) |
Returns the number of arrays in the file, i.e., the number of columns.
const char* vtkPGenericIOMultiBlockReader::GetPointArrayName | ( | int | i | ) |
Returns the name of the ith array.
int vtkPGenericIOMultiBlockReader::GetPointArrayStatus | ( | const char * | name | ) |
Returns the status of the array corresponding to the given name.
void vtkPGenericIOMultiBlockReader::SetPointArrayStatus | ( | const char * | name, |
int | status | ||
) |
Sets the status of the array corresponding to the given name.
|
virtual |
Gets/Sets the variable name for the halo id of the particle.
This is used by the requested halo selector to select only the points in the desired halos.
|
virtual |
Gets/Sets the variable name for the halo id of the particle.
This is used by the requested halo selector to select only the points in the desired halos.
vtkIdType vtkPGenericIOMultiBlockReader::GetRequestedHaloId | ( | vtkIdType | i | ) |
Gets the ith requested halo id.
If the number of requested halo ids is greater than 0, only points with those halo ids will be read in. Otherwise all points will be read in.
vtkIdType vtkPGenericIOMultiBlockReader::GetNumberOfRequestedHaloIds | ( | ) |
Gets the number of requested halo ids.
If the number of requested halo ids is greater than 0, only points with those halo ids will be read in. Otherwise all points will be read in.
void vtkPGenericIOMultiBlockReader::SetNumberOfRequestedHaloIds | ( | vtkIdType | numIds | ) |
Sets the number of requested halo ids.
Use SetRequestedHaloId() to se the ids after this is called If the number of requested halo ids is greater than 0, only points with those halo ids will be read in. Otherwise all points will be read in.
void vtkPGenericIOMultiBlockReader::AddRequestedHaloId | ( | vtkIdType | haloId | ) |
Adds the given halo id to the list of halo ids to request.
If the number of requested halo ids is greater than 0, only points with those halo ids will be read in. Otherwise all points will be read in.
void vtkPGenericIOMultiBlockReader::ClearRequestedHaloIds | ( | ) |
Clears the list of requested halo ids.
If the number of requested halo ids is greater than 0, only points with those halo ids will be read in. Otherwise all points will be read in.
void vtkPGenericIOMultiBlockReader::SetRequestedHaloId | ( | vtkIdType | i, |
vtkIdType | haloId | ||
) |
Sets the ith requested halo id to the given haloId.
If the number of requested halo ids is greater than 0, only points with those halo ids will be read in. Otherwise all points will be read in.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
staticprotected |
Call-back registered with the SelectionObserver.
|
protectedvirtual |
|
protectedvirtual |
|
protected |
Definition at line 214 of file vtkPGenericIOMultiBlockReader.h.
|
protected |
Definition at line 215 of file vtkPGenericIOMultiBlockReader.h.
|
protected |
Definition at line 216 of file vtkPGenericIOMultiBlockReader.h.
|
protected |
Definition at line 217 of file vtkPGenericIOMultiBlockReader.h.
|
protected |
Definition at line 219 of file vtkPGenericIOMultiBlockReader.h.
|
protected |
Definition at line 220 of file vtkPGenericIOMultiBlockReader.h.
|
protected |
Definition at line 221 of file vtkPGenericIOMultiBlockReader.h.
|
protected |
Definition at line 223 of file vtkPGenericIOMultiBlockReader.h.
|
protected |
Definition at line 225 of file vtkPGenericIOMultiBlockReader.h.
|
protected |
Definition at line 227 of file vtkPGenericIOMultiBlockReader.h.
|
protected |
Definition at line 228 of file vtkPGenericIOMultiBlockReader.h.
|
protected |
Definition at line 229 of file vtkPGenericIOMultiBlockReader.h.
|
protected |
Definition at line 230 of file vtkPGenericIOMultiBlockReader.h.
|
protected |
Definition at line 232 of file vtkPGenericIOMultiBlockReader.h.