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

reads a dataset in Fluent GAMBIT neutral file format More...

#include <vtkGAMBITReader.h>

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

List of all members.

Public Types

typedef
vtkUnstructuredGridAlgorithm 
Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkGAMBITReaderNewInstance () const
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 (vtkObjectBase *o)

Protected Types

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

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 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

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 41 of file vtkGAMBITReader.h.


Member Typedef Documentation

Reimplemented from vtkUnstructuredGridAlgorithm.

Definition at line 45 of file vtkGAMBITReader.h.


Member Enumeration Documentation

Enumerator:
EDGE 
QUAD 
TRI 
BRICK 
PRISM 
TETRA 
PYRAMID 

Definition at line 91 of file vtkGAMBITReader.h.


Constructor & Destructor Documentation


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.

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 vtkTypeMacro 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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkUnstructuredGridAlgorithm.

Reimplemented from vtkUnstructuredGridAlgorithm.

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

Reimplemented from vtkUnstructuredGridAlgorithm.

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.

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

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

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 78 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.

Definition at line 87 of file vtkGAMBITReader.h.

ifstream* vtkGAMBITReader::FileStream [protected]

Definition at line 88 of file vtkGAMBITReader.h.


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