vtkGAMBITReader Class Reference

#include <vtkGAMBITReader.h>

Inheritance diagram for vtkGAMBITReader:

Inheritance graph
[legend]
Collaboration diagram for vtkGAMBITReader:

Collaboration graph
[legend]

List of all members.


Detailed Description

reads a dataset in Fluent GAMBIT neutral file format

vtkGAMBITReader creates an unstructured grid dataset. It reads ASCII files stored in GAMBIT neutral format, with optional data stored at the nodes or at the cells of the model. A cell-based fielddata stores the material id.

Thanks:
Thanks to Jean M. Favre (CSCS, Swiss Center for Scientific Computing) who developed this class. Please address all comments to Jean Favre (jfavre at cscs.ch)
See also:
vtkAVSucdReader
Tests:
vtkGAMBITReader (Tests)

Definition at line 40 of file vtkGAMBITReader.h.


Public Types

typedef
vtkUnstructuredGridAlgorithm 
Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetFileName (const char *)
virtual char * GetFileName ()
virtual int GetNumberOfCells ()
virtual int GetNumberOfNodes ()
virtual int GetNumberOfNodeFields ()
virtual int GetNumberOfCellFields ()

Static Public Member Functions

static vtkGAMBITReaderNew ()
static int IsTypeOf (const char *type)
static vtkGAMBITReaderSafeDownCast (vtkObject *o)

Protected Types

enum  GAMBITCellType {
  EDGE = 1, QUAD = 2, TRI = 3, BRICK = 4,
  PRISM = 5, TETRA = 6, PYRAMID = 7
}

Protected Member Functions

 vtkGAMBITReader ()
 ~vtkGAMBITReader ()
int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Protected Attributes

char * FileName
int NumberOfNodes
int NumberOfCells
int NumberOfNodeFields
int NumberOfCellFields
int NumberOfElementGroups
int NumberOfBoundaryConditionSets
int NumberOfCoordinateDirections
int NumberOfVelocityComponents
ifstream * FileStream

Member Typedef Documentation

Reimplemented from vtkUnstructuredGridAlgorithm.

Definition at line 44 of file vtkGAMBITReader.h.


Member Enumeration Documentation

Enumerator:
EDGE 
QUAD 
TRI 
BRICK 
PRISM 
TETRA 
PYRAMID 

Definition at line 90 of file vtkGAMBITReader.h.


Constructor & Destructor Documentation

vtkGAMBITReader::vtkGAMBITReader (  )  [protected]

vtkGAMBITReader::~vtkGAMBITReader (  )  [protected]


Member Function Documentation

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

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

Reimplemented from vtkUnstructuredGridAlgorithm.

virtual const char* vtkGAMBITReader::GetClassName (  )  [virtual]

Reimplemented from vtkUnstructuredGridAlgorithm.

static int vtkGAMBITReader::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkUnstructuredGridAlgorithm.

virtual int vtkGAMBITReader::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkUnstructuredGridAlgorithm.

static vtkGAMBITReader* vtkGAMBITReader::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkUnstructuredGridAlgorithm.

void vtkGAMBITReader::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 vtkUnstructuredGridAlgorithm.

virtual void vtkGAMBITReader::SetFileName ( const char *   )  [virtual]

Specify the file name of the GAMBIT data file to read.

virtual char* vtkGAMBITReader::GetFileName (  )  [virtual]

Specify the file name of the GAMBIT data file to read.

virtual int vtkGAMBITReader::GetNumberOfCells (  )  [virtual]

Get the total number of cells. The number of cells is only valid after a successful read of the data file is performed.

virtual int vtkGAMBITReader::GetNumberOfNodes (  )  [virtual]

Get the total number of nodes. The number of nodes is only valid after a successful read of the data file is performed.

virtual int vtkGAMBITReader::GetNumberOfNodeFields (  )  [virtual]

Get the number of data components at the nodes and cells.

virtual int vtkGAMBITReader::GetNumberOfCellFields (  )  [virtual]

Get the number of data components at the nodes and cells.

int vtkGAMBITReader::RequestInformation ( vtkInformation ,
vtkInformationVector **  ,
vtkInformationVector  
) [protected, virtual]

Reimplemented from vtkUnstructuredGridAlgorithm.

int vtkGAMBITReader::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

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

Reimplemented from vtkUnstructuredGridAlgorithm.


Member Data Documentation

char* vtkGAMBITReader::FileName [protected]

Definition at line 77 of file vtkGAMBITReader.h.

Definition at line 79 of file vtkGAMBITReader.h.

Definition at line 80 of file vtkGAMBITReader.h.

Definition at line 81 of file vtkGAMBITReader.h.

Definition at line 82 of file vtkGAMBITReader.h.

Definition at line 83 of file vtkGAMBITReader.h.

Definition at line 84 of file vtkGAMBITReader.h.

Definition at line 85 of file vtkGAMBITReader.h.

Definition at line 86 of file vtkGAMBITReader.h.

ifstream* vtkGAMBITReader::FileStream [protected]

Definition at line 87 of file vtkGAMBITReader.h.


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

Generated on Sat Dec 27 13:25:46 2008 for VTK by  doxygen 1.5.6