ParaView
|
Creates a vtkUnstructuredGrid instance from a GenericIO file. More...
#include <vtkPGenericIOReader.h>
Inherits vtkUnstructuredGridAlgorithm.
Public Types | |
enum | IOType { IOTYPEMPI, IOTYPEPOSIX } |
enum | BlockAssignment { ROUND_ROBIN, RCB } |
typedef vtkUnstructuredGridAlgorithm | 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 named. 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 | 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 | 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 x-axis for plotting particles. More... | |
virtual char * | GetYAxisVariableName () |
Set/Get the variable name to be used as the x-axis for plotting particles. More... | |
virtual void | SetZAxisVariableName (const char *) |
Set/Get the variable name to be used as the x-axis for plotting particles. More... | |
virtual char * | GetZAxisVariableName () |
Set/Get the variable name to be used as the x-axis for plotting particles. 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 void | SetRankInQuery (int) |
Set/Get the RankInQuery. More... | |
virtual int | GetRankInQuery () |
Set/Get the RankInQuery. More... | |
virtual void | SetQueryRankNeighbors (int) |
Set/Get whether the reader should read/render only the data of the user-supplied rank, via SetRankInQuery(),. More... | |
virtual int | GetQueryRankNeighbors () |
Set/Get whether the reader should read/render only the data of the user-supplied rank, via SetRankInQuery(),. More... | |
virtual void | SetAppendBlockCoordinates (bool) |
Set/Get whether the reader should append the coordinates of the block each point was read from as a point data array. More... | |
virtual void | AppendBlockCoordinatesOn () |
Set/Get whether the reader should append the coordinates of the block each point was read from as a point data array. More... | |
virtual void | AppendBlockCoordinatesOff () |
Set/Get whether the reader should append the coordinates of the block each point was read from as a point data array. More... | |
virtual bool | GetAppendBlockCoordinates () |
Set/Get whether the reader should append the coordinates of the block each point was read from as a point data array. 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 void | SetController (vtkMultiProcessController *) |
Set/Get a multiprocess-controller for reading in parallel. More... | |
virtual vtkMultiProcessController * | GetController () |
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 vtkPGenericIOReader * | New () |
static int | IsTypeOf (const char *type) |
static vtkPGenericIOReader * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkPGenericIOReader () | |
virtual | ~vtkPGenericIOReader () |
virtual int | RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
void | LoadMetaData () |
Loads the GenericIO metadata from the file. More... | |
bool | ReaderParametersChanged () |
This method checks if the internal reader parameters have changed. More... | |
gio::GenericIOReader * | GetInternalReader () |
Returns the internal reader instance according to IOType. More... | |
void | GetPointFromRawData (int xType, void *xBuffer, int yType, void *yBuffer, int zType, void *zBuffer, vtkIdType idx, double pnt[3]) |
Return the point from the raw data. More... | |
void | LoadRawVariableData (std::string varName) |
Loads the variable with the given name. More... | |
void | LoadRawData () |
Loads the Raw data. More... | |
void | LoadCoordinates (vtkUnstructuredGrid *grid, std::set< vtkIdType > &pointsInSelectedHalos) |
Loads the particle coordinates. More... | |
void | LoadData (vtkUnstructuredGrid *grid, const std::set< vtkIdType > &pointsInSelectedHalos) |
Loads the particle data arrays. More... | |
void | FindRankNeighbors () |
Finds the neighbors of the user-supplied rank. More... | |
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 |
int | QueryRankNeighbors |
int | RankInQuery |
bool | BuildMetaData |
bool | AppendBlockCoordinates |
vtkMultiProcessController * | Controller |
vtkStringArray * | ArrayList |
vtkIdList * | HaloList |
vtkDataArraySelection * | PointDataArraySelection |
vtkCallbackCommand * | SelectionObserver |
gio::GenericIOReader * | Reader |
vtkGenericIOMetaData * | MetaData |
int | RequestInfoCounter |
int | RequestDataCounter |
Creates a vtkUnstructuredGrid instance from a GenericIO file.
Definition at line 50 of file vtkPGenericIOReader.h.
typedef vtkUnstructuredGridAlgorithm vtkPGenericIOReader::Superclass |
Definition at line 66 of file vtkPGenericIOReader.h.
Enumerator | |
---|---|
IOTYPEMPI | |
IOTYPEPOSIX |
Definition at line 53 of file vtkPGenericIOReader.h.
Enumerator | |
---|---|
ROUND_ROBIN | |
RCB |
Definition at line 59 of file vtkPGenericIOReader.h.
|
protected |
|
protectedvirtual |
|
static |
|
virtual |
|
static |
|
virtual |
|
static |
void vtkPGenericIOReader::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
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 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 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 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 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 |
Set/Get the RankInQuery.
Used in combination with SetQueryRankNeighbors(1) tells the reader to render only the data of the RankInQuery and its neighbors.
|
virtual |
Set/Get the RankInQuery.
Used in combination with SetQueryRankNeighbors(1) tells the reader to render only the data of the RankInQuery and its neighbors.
|
virtual |
Set/Get whether the reader should read/render only the data of the user-supplied rank, via SetRankInQuery(),.
|
virtual |
Set/Get whether the reader should read/render only the data of the user-supplied rank, via SetRankInQuery(),.
|
virtual |
Set/Get whether the reader should append the coordinates of the block each point was read from as a point data array.
Defaults to false (Off).
|
virtual |
Set/Get whether the reader should append the coordinates of the block each point was read from as a point data array.
Defaults to false (Off).
|
virtual |
Set/Get whether the reader should append the coordinates of the block each point was read from as a point data array.
Defaults to false (Off).
|
virtual |
Set/Get whether the reader should append the coordinates of the block each point was read from as a point data array.
Defaults to false (Off).
|
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 vtkPGenericIOReader::GetNumberOfPointArrays | ( | ) |
Returns the number of arrays in the file, i.e., the number of columns.
const char* vtkPGenericIOReader::GetPointArrayName | ( | int | i | ) |
Returns the name of the ith array.
int vtkPGenericIOReader::GetPointArrayStatus | ( | const char * | name | ) |
Returns the status of the array corresponding to the given name.
void vtkPGenericIOReader::SetPointArrayStatus | ( | const char * | name, |
int | status | ||
) |
Sets the status of the array named.
If the status is 1, the array will be read in on the resulting dataset.
|
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 vtkPGenericIOReader::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 vtkPGenericIOReader::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 vtkPGenericIOReader::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 vtkPGenericIOReader::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 vtkPGenericIOReader::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 vtkPGenericIOReader::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.
|
protectedvirtual |
|
protectedvirtual |
|
protected |
Loads the GenericIO metadata from the file.
|
protected |
This method checks if the internal reader parameters have changed.
Namely, if the I/O method or filename have changed, the method returns true.
|
protected |
Returns the internal reader instance according to IOType.
|
protected |
Return the point from the raw data.
|
protected |
Loads the variable with the given name.
|
protected |
Loads the Raw data.
|
protected |
Loads the particle coordinates.
|
protected |
Loads the particle data arrays.
|
protected |
Finds the neighbors of the user-supplied rank.
|
staticprotected |
Call-back registered with the SelectionObserver.
|
protected |
Definition at line 314 of file vtkPGenericIOReader.h.
|
protected |
Definition at line 315 of file vtkPGenericIOReader.h.
|
protected |
Definition at line 316 of file vtkPGenericIOReader.h.
|
protected |
Definition at line 317 of file vtkPGenericIOReader.h.
|
protected |
Definition at line 319 of file vtkPGenericIOReader.h.
|
protected |
Definition at line 320 of file vtkPGenericIOReader.h.
|
protected |
Definition at line 321 of file vtkPGenericIOReader.h.
|
protected |
Definition at line 323 of file vtkPGenericIOReader.h.
|
protected |
Definition at line 324 of file vtkPGenericIOReader.h.
|
protected |
Definition at line 326 of file vtkPGenericIOReader.h.
|
protected |
Definition at line 327 of file vtkPGenericIOReader.h.
|
protected |
Definition at line 329 of file vtkPGenericIOReader.h.
|
protected |
Definition at line 331 of file vtkPGenericIOReader.h.
|
protected |
Definition at line 332 of file vtkPGenericIOReader.h.
|
protected |
Definition at line 333 of file vtkPGenericIOReader.h.
|
protected |
Definition at line 334 of file vtkPGenericIOReader.h.
|
protected |
Definition at line 336 of file vtkPGenericIOReader.h.
|
protected |
Definition at line 337 of file vtkPGenericIOReader.h.
|
protected |
Definition at line 339 of file vtkPGenericIOReader.h.
|
protected |
Definition at line 340 of file vtkPGenericIOReader.h.