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

Reads geometry in proSTAR (STARCD) file format. More...

#include <vtkProStarReader.h>

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

List of all members.

Public Types

typedef
vtkUnstructuredGridAlgorithm 
Superclass
enum  cellType {
  starcdFluidType = 1, starcdSolidType = 2, starcdBaffleType = 3, starcdShellType = 4,
  starcdLineType = 5, starcdPointType = 6
}
enum  shapeType {
  starcdPoint = 1, starcdLine = 2, starcdShell = 3, starcdHex = 11,
  starcdPrism = 12, starcdTet = 13, starcdPyr = 14, starcdPoly = 255
}

Public Member Functions

virtual int IsA (const char *type)
vtkProStarReaderNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetFileName (const char *)
virtual char * GetFileName ()
virtual void SetScaleFactor (double)
virtual double GetScaleFactor ()

Static Public Member Functions

static vtkProStarReaderNew ()
static int IsTypeOf (const char *type)
static vtkProStarReaderSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkProStarReader ()
 ~vtkProStarReader ()
int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Protected Attributes

char * FileName
double ScaleFactor

Detailed Description

Reads geometry in proSTAR (STARCD) file format.

vtkProStarReader creates an unstructured grid dataset. It reads .cel/.vrt files stored in proSTAR (STARCD) ASCII format.

Thanks:
Reader written by Mark Olesen
Tests:
vtkProStarReader (Tests)

Definition at line 35 of file vtkProStarReader.h.


Member Typedef Documentation

Reimplemented from vtkUnstructuredGridAlgorithm.

Definition at line 39 of file vtkProStarReader.h.


Member Enumeration Documentation

The type of material represented by the cell

Enumerator:
starcdFluidType 
starcdSolidType 
starcdBaffleType 
starcdShellType 
starcdLineType 
starcdPointType 

Definition at line 58 of file vtkProStarReader.h.

The primitive cell shape

Enumerator:
starcdPoint 
starcdLine 
starcdShell 
starcdHex 
starcdPrism 
starcdTet 
starcdPyr 
starcdPoly 

Definition at line 71 of file vtkProStarReader.h.


Constructor & Destructor Documentation


Member Function Documentation

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

Reimplemented from vtkUnstructuredGridAlgorithm.

static int vtkProStarReader::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 vtkProStarReader::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* vtkProStarReader::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkUnstructuredGridAlgorithm.

Reimplemented from vtkUnstructuredGridAlgorithm.

void vtkProStarReader::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 vtkProStarReader::SetFileName ( const char *  ) [virtual]

Specify the file name prefix of the cel/vrt files to read. The reader will try to open FileName.cel and FileName.vrt files.

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

Specify the file name prefix of the cel/vrt files to read. The reader will try to open FileName.cel and FileName.vrt files.

virtual void vtkProStarReader::SetScaleFactor ( double  ) [virtual]

The proSTAR files are often in millimeters. Specify an alternative scaling factor.

The proSTAR files are often in millimeters. Specify an alternative scaling factor.

Reimplemented from vtkUnstructuredGridAlgorithm.

int vtkProStarReader::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* vtkProStarReader::FileName [protected]

The name of the file to be read. If it has a .cel, .vrt, or .inp extension it will be truncated and later appended when reading the appropriate files. Otherwise those extensions will be appended to FileName when opening the files.

Definition at line 97 of file vtkProStarReader.h.

The coordinates are multiplied by ScaleFactor when setting them. The default value is 1.

Definition at line 101 of file vtkProStarReader.h.


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