VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkPSLACReader Class Reference

#include <vtkPSLACReader.h>

Inheritance diagram for vtkPSLACReader:
Inheritance graph
[legend]
Collaboration diagram for vtkPSLACReader:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkSLACReader Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkPSLACReaderNewInstance () const
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual vtkMultiProcessControllerGetController ()
virtual void SetController (vtkMultiProcessController *)

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkPSLACReaderSafeDownCast (vtkObjectBase *o)
static vtkPSLACReaderNew ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkPSLACReader ()
 ~vtkPSLACReader ()
virtual int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int CheckTetrahedraWinding (int meshFD)
virtual int ReadConnectivity (int meshFD, vtkMultiBlockDataSet *surfaceOutput, vtkMultiBlockDataSet *volumeOutput)
virtual int ReadCoordinates (int meshFD, vtkMultiBlockDataSet *output)
virtual int ReadMidpointCoordinates (int meshFD, vtkMultiBlockDataSet *output, MidpointCoordinateMap &map)
virtual int ReadMidpointData (int meshFD, vtkMultiBlockDataSet *output, MidpointIdMap &map)
virtual int RestoreMeshCache (vtkMultiBlockDataSet *surfaceOutput, vtkMultiBlockDataSet *volumeOutput, vtkMultiBlockDataSet *compositeOutput)
virtual int ReadFieldData (const int *modeFDArray, int numModeFDs, vtkMultiBlockDataSet *output)
virtual int ReadTetrahedronInteriorArray (int meshFD, vtkIdTypeArray *connectivity)
virtual int ReadTetrahedronExteriorArray (int meshFD, vtkIdTypeArray *connectivity)
virtual int MeshUpToDate ()
virtual vtkSmartPointer
< vtkDataArray
ReadPointDataArray (int ncFD, int varId)
vtkIdType StartPointRead (int process)
vtkIdType EndPointRead (int process)

Protected Attributes

vtkMultiProcessControllerController
vtkInternalInternal
vtkIdType NumberOfGlobalPoints
vtkIdType NumberOfGlobalMidpoints
int NumberOfPieces
int RequestedPiece
int NumberOfPiecesCache
int RequestedPieceCache

Detailed Description

Extends the vtkSLACReader to read in partitioned pieces. Due to the nature of the data layout, this reader only works in a data parallel mode where each process in a parallel job simultaneously attempts to read the piece corresponding to the local process id.

Tests:
vtkPSLACReader (Tests)

Definition at line 45 of file vtkPSLACReader.h.


Member Typedef Documentation

Reimplemented from vtkSLACReader.

Definition at line 48 of file vtkPSLACReader.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkPSLACReader::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkSLACReader.

virtual int vtkPSLACReader::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkSLACReader.

Reimplemented from vtkSLACReader.

virtual vtkObjectBase* vtkPSLACReader::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkSLACReader.

Reimplemented from vtkSLACReader.

static vtkPSLACReader* vtkPSLACReader::New ( ) [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkSLACReader.

virtual void vtkPSLACReader::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkSLACReader.

The controller used to communicate partition data. The number of pieces requested must agree with the number of processes, the piece requested must agree with the local process id, and all process must invoke ProcessRequests of this filter simultaneously.

The controller used to communicate partition data. The number of pieces requested must agree with the number of processes, the piece requested must agree with the local process id, and all process must invoke ProcessRequests of this filter simultaneously.

This is called by the superclass. This is the method you should override.

Reimplemented from vtkSLACReader.

virtual int vtkPSLACReader::RequestData ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkSLACReader.

virtual int vtkPSLACReader::CheckTetrahedraWinding ( int  meshFD) [protected, virtual]

Checks the winding of the tetrahedra in the mesh file. Returns 1 if the winding conforms to VTK, 0 if the winding needs to be corrected.

Reimplemented from vtkSLACReader.

virtual int vtkPSLACReader::ReadConnectivity ( int  meshFD,
vtkMultiBlockDataSet surfaceOutput,
vtkMultiBlockDataSet volumeOutput 
) [protected, virtual]

Read the connectivity information from the mesh file. Returns 1 on success, 0 on failure.

Reimplemented from vtkSLACReader.

virtual int vtkPSLACReader::ReadCoordinates ( int  meshFD,
vtkMultiBlockDataSet output 
) [protected, virtual]

Read in the point coordinate data from the mesh file. Returns 1 on success, 0 on failure.

Reimplemented from vtkSLACReader.

virtual int vtkPSLACReader::ReadMidpointCoordinates ( int  meshFD,
vtkMultiBlockDataSet output,
MidpointCoordinateMap map 
) [protected, virtual]

Reads in the midpoint coordinate data from the mesh file and returns a map from edges to midpoints. This method is called by ReadMidpointData. Returns 1 on success, 0 on failure.

Reimplemented from vtkSLACReader.

virtual int vtkPSLACReader::ReadMidpointData ( int  meshFD,
vtkMultiBlockDataSet output,
MidpointIdMap map 
) [protected, virtual]

Read in the midpoint data from the mesh file. Returns 1 on success, 0 on failure. Also fills a midpoint id map that will be passed into InterpolateMidpointFieldData.

Reimplemented from vtkSLACReader.

virtual int vtkPSLACReader::RestoreMeshCache ( vtkMultiBlockDataSet surfaceOutput,
vtkMultiBlockDataSet volumeOutput,
vtkMultiBlockDataSet compositeOutput 
) [protected, virtual]

Instead of reading data from the mesh file, restore the data from the previous mesh file read.

Reimplemented from vtkSLACReader.

virtual int vtkPSLACReader::ReadFieldData ( const int modeFDArray,
int  numModeFDs,
vtkMultiBlockDataSet output 
) [protected, virtual]

Read in the field data from the mode file. Returns 1 on success, 0 on failure.

Reimplemented from vtkSLACReader.

virtual int vtkPSLACReader::ReadTetrahedronInteriorArray ( int  meshFD,
vtkIdTypeArray connectivity 
) [protected, virtual]

Reads tetrahedron connectivity arrays. Called by ReadConnectivity.

Reimplemented from vtkSLACReader.

virtual int vtkPSLACReader::ReadTetrahedronExteriorArray ( int  meshFD,
vtkIdTypeArray connectivity 
) [protected, virtual]

Reads tetrahedron connectivity arrays. Called by ReadConnectivity.

Reimplemented from vtkSLACReader.

virtual int vtkPSLACReader::MeshUpToDate ( ) [protected, virtual]

Returns 1 if the mesh is up to date, 0 if the mesh needs to be read from disk.

Reimplemented from vtkSLACReader.

virtual vtkSmartPointer<vtkDataArray> vtkPSLACReader::ReadPointDataArray ( int  ncFD,
int  varId 
) [protected, virtual]

Reads point data arrays. Called by ReadCoordinates and ReadFieldData.

Reimplemented from vtkSLACReader.

vtkIdType vtkPSLACReader::StartPointRead ( int  process) [inline, protected]

The start/end points read by the given process.

Definition at line 125 of file vtkPSLACReader.h.

vtkIdType vtkPSLACReader::EndPointRead ( int  process) [inline, protected]

The start/end points read by the given process.

Definition at line 128 of file vtkPSLACReader.h.


Member Data Documentation

Definition at line 65 of file vtkPSLACReader.h.

Reimplemented from vtkSLACReader.

Definition at line 106 of file vtkPSLACReader.h.

The number of pieces and the requested piece to load. Synonymous with the number of processes and the local process id.

Definition at line 113 of file vtkPSLACReader.h.

The number of pieces and the requested piece to load. Synonymous with the number of processes and the local process id.

Definition at line 114 of file vtkPSLACReader.h.

The number of points defined in the mesh file.

Definition at line 118 of file vtkPSLACReader.h.

The number of midpoints defined in the mesh file

Definition at line 121 of file vtkPSLACReader.h.

Piece information from the last call.

Definition at line 137 of file vtkPSLACReader.h.

Piece information from the last call.

Definition at line 138 of file vtkPSLACReader.h.


The documentation for this class was generated from the following file: