VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkPLOT3DReader Class Reference

read PLOT3D data files More...

#include <vtkPLOT3DReader.h>

Inheritance diagram for vtkPLOT3DReader:
[legend]
Collaboration diagram for vtkPLOT3DReader:
[legend]

Public Types

enum  { FILE_BIG_ENDIAN =0, FILE_LITTLE_ENDIAN =1 }
 
typedef vtkStructuredGridSource Superclass
 
- Public Types inherited from vtkStructuredGridSource
typedef vtkSource Superclass
 
- Public Types inherited from vtkSource
typedef vtkProcessObject Superclass
 
- Public Types inherited from vtkProcessObject
typedef vtkAlgorithm Superclass
 
- Public Types inherited from vtkAlgorithm
typedef vtkObject Superclass
 
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void SetOutput (int idx, vtkStructuredGrid *output)
 
virtual int CanReadBinaryFile (const char *fname)
 
void SetFileName (const char *name)
 
const char * GetFileName ()
 
virtual void SetXYZFileName (const char *)
 
virtual char * GetXYZFileName ()
 
virtual void SetQFileName (const char *)
 
virtual char * GetQFileName ()
 
virtual void SetFunctionFileName (const char *)
 
virtual char * GetFunctionFileName ()
 
int GetNumberOfOutputs ()
 
int GetNumberOfGrids ()
 
virtual void SetBinaryFile (int)
 
virtual int GetBinaryFile ()
 
virtual void BinaryFileOn ()
 
virtual void BinaryFileOff ()
 
virtual void SetMultiGrid (int)
 
virtual int GetMultiGrid ()
 
virtual void MultiGridOn ()
 
virtual void MultiGridOff ()
 
virtual void SetHasByteCount (int)
 
virtual int GetHasByteCount ()
 
virtual void HasByteCountOn ()
 
virtual void HasByteCountOff ()
 
virtual void SetIBlanking (int)
 
virtual int GetIBlanking ()
 
virtual void IBlankingOn ()
 
virtual void IBlankingOff ()
 
virtual void SetTwoDimensionalGeometry (int)
 
virtual int GetTwoDimensionalGeometry ()
 
virtual void TwoDimensionalGeometryOn ()
 
virtual void TwoDimensionalGeometryOff ()
 
virtual void SetForceRead (int)
 
virtual int GetForceRead ()
 
virtual void ForceReadOn ()
 
virtual void ForceReadOff ()
 
virtual void SetDoNotReduceNumberOfOutputs (int)
 
virtual int GetDoNotReduceNumberOfOutputs ()
 
virtual void DoNotReduceNumberOfOutputsOn ()
 
virtual void DoNotReduceNumberOfOutputsOff ()
 
void SetByteOrderToBigEndian ()
 
void SetByteOrderToLittleEndian ()
 
virtual void SetByteOrder (int)
 
virtual int GetByteOrder ()
 
const char * GetByteOrderAsString ()
 
virtual void SetR (double)
 
virtual double GetR ()
 
virtual void SetGamma (double)
 
virtual double GetGamma ()
 
virtual void SetUvinf (double)
 
virtual double GetUvinf ()
 
virtual void SetVvinf (double)
 
virtual double GetVvinf ()
 
virtual void SetWvinf (double)
 
virtual double GetWvinf ()
 
void SetScalarFunctionNumber (int num)
 
virtual int GetScalarFunctionNumber ()
 
void SetVectorFunctionNumber (int num)
 
virtual int GetVectorFunctionNumber ()
 
void AddFunction (int functionNumber)
 
void RemoveFunction (int)
 
void RemoveAllFunctions ()
 
- Public Member Functions inherited from vtkStructuredGridSource
vtkStructuredGridGetOutput ()
 
vtkStructuredGridGetOutput (int idx)
 
void SetOutput (vtkStructuredGrid *output)
 
- Public Member Functions inherited from vtkSource
virtual void Update ()
 
virtual void UpdateWholeExtent ()
 
virtual void UpdateInformation ()
 
virtual void PropagateUpdateExtent (vtkDataObject *output)
 
virtual void TriggerAsynchronousUpdate ()
 
virtual void UpdateData (vtkDataObject *output)
 
virtual void ComputeInputUpdateExtents (vtkDataObject *output)
 
void UnRegisterAllOutputs (void)
 
int GetOutputIndex (vtkDataObject *out)
 
virtual void SetExecutive (vtkExecutive *executive)
 
virtual void SetReleaseDataFlag (int)
 
virtual int GetReleaseDataFlag ()
 
virtual void ReleaseDataFlagOn ()
 
virtual void ReleaseDataFlagOff ()
 
vtkDataObject ** GetOutputs ()
 
virtual int ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
- Public Member Functions inherited from vtkProcessObject
void SqueezeInputArray ()
 
void RemoveAllInputs ()
 
vtkDataObject ** GetInputs ()
 
int GetNumberOfInputs ()
 
virtual void SetInputConnection (vtkAlgorithmOutput *input)
 
virtual void SetInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (vtkAlgorithmOutput *input)
 
virtual void RemoveInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void SetNthInputConnection (int port, int index, vtkAlgorithmOutput *input)
 
virtual void SetNumberOfInputConnections (int port, int n)
 
- Public Member Functions inherited from vtkAlgorithm
int HasExecutive ()
 
vtkExecutiveGetExecutive ()
 
virtual int ModifyRequest (vtkInformation *request, int when)
 
vtkInformationGetInputPortInformation (int port)
 
vtkInformationGetOutputPortInformation (int port)
 
int GetNumberOfInputPorts ()
 
int GetNumberOfOutputPorts ()
 
void UpdateProgress (double amount)
 
vtkInformationGetInputArrayInformation (int idx)
 
void RemoveAllInputs ()
 
vtkDataObjectGetOutputDataObject (int port)
 
int GetNumberOfInputConnections (int port)
 
int GetTotalNumberOfInputConnections ()
 
vtkAlgorithmOutputGetInputConnection (int port, int index)
 
void ConvertTotalInputToPortConnection (int ind, int &port, int &conn)
 
virtual double ComputePriority ()
 
int ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo)
 
virtual int ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime)
 
virtual vtkInformationGetInformation ()
 
virtual void SetInformation (vtkInformation *)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
virtual void SetAbortExecute (int)
 
virtual int GetAbortExecute ()
 
virtual void AbortExecuteOn ()
 
virtual void AbortExecuteOff ()
 
virtual void SetProgress (double)
 
virtual double GetProgress ()
 
void SetProgressText (const char *ptext)
 
virtual char * GetProgressText ()
 
virtual unsigned long GetErrorCode ()
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType)
 
virtual void SetInputArrayToProcess (int idx, vtkInformation *info)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName)
 
vtkDataObjectGetInputDataObject (int port, int connection)
 
vtkAlgorithmOutputGetOutputPort (int index)
 
vtkAlgorithmOutputGetOutputPort ()
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
int UpdateExtentIsEmpty (vtkDataObject *output)
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType)
 
- Public Member Functions inherited from vtkObject
virtual void DebugOn ()
 
virtual void DebugOff ()
 
unsigned char GetDebug ()
 
void SetDebug (unsigned char debugFlag)
 
virtual void Modified ()
 
virtual unsigned long GetMTime ()
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 
int InvokeEvent (unsigned long event, void *callData)
 
int InvokeEvent (const char *event, void *callData)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 
virtual void Delete ()
 
virtual void FastDelete ()
 
void Print (ostream &os)
 
void SetReferenceCount (int)
 
void PrintRevisions (ostream &os)
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 

Static Public Member Functions

static vtkPLOT3DReaderNew ()
 
static int IsTypeOf (const char *type)
 
static vtkPLOT3DReaderSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkStructuredGridSource
static int IsTypeOf (const char *type)
 
static vtkStructuredGridSourceSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkSource
static int IsTypeOf (const char *type)
 
static vtkSourceSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkProcessObject
static int IsTypeOf (const char *type)
 
static vtkProcessObjectSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkAlgorithm
static vtkAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkAlgorithmSafeDownCast (vtkObject *o)
 
static void SetDefaultExecutivePrototype (vtkExecutive *proto)
 
static vtkInformationIntegerKeyINPUT_IS_OPTIONAL ()
 
static vtkInformationIntegerKeyINPUT_IS_REPEATABLE ()
 
static
vtkInformationInformationVectorKey
INPUT_REQUIRED_FIELDS ()
 
static
vtkInformationStringVectorKey
INPUT_REQUIRED_DATA_TYPE ()
 
static
vtkInformationInformationVectorKey
INPUT_ARRAYS_TO_PROCESS ()
 
static vtkInformationIntegerKeyINPUT_PORT ()
 
static vtkInformationIntegerKeyINPUT_CONNECTION ()
 
static vtkInformationIntegerKeyPRESERVES_DATASET ()
 
static vtkInformationIntegerKeyPRESERVES_GEOMETRY ()
 
static vtkInformationIntegerKeyPRESERVES_BOUNDS ()
 
static vtkInformationIntegerKeyPRESERVES_TOPOLOGY ()
 
static vtkInformationIntegerKeyPRESERVES_ATTRIBUTES ()
 
static vtkInformationIntegerKeyPRESERVES_RANGES ()
 
- Static Public Member Functions inherited from vtkObject
static int IsTypeOf (const char *type)
 
static vtkObjectSafeDownCast (vtkObject *o)
 
static vtkObjectNew ()
 
static void BreakOnError ()
 
static void SetGlobalWarningDisplay (int val)
 
static void GlobalWarningDisplayOn ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- Static Public Member Functions inherited from vtkObjectBase
static int IsTypeOf (const char *name)
 
static vtkObjectBaseNew ()
 

Protected Member Functions

 vtkPLOT3DReader ()
 
 ~vtkPLOT3DReader ()
 
void ExecuteInformation ()
 
void Execute ()
 
int CheckFile (FILE *&fp, const char *fname)
 
int CheckGeometryFile (FILE *&xyzFp)
 
int CheckSolutionFile (FILE *&qFp)
 
int CheckFunctionFile (FILE *&fFp)
 
void SkipByteCount (FILE *fp)
 
int ReadIntBlock (FILE *fp, int n, int *block)
 
int ReadFloatBlock (FILE *fp, int n, float *block)
 
int GetNumberOfOutputsInternal (FILE *xyzFp, int verify=1)
 
int ReadGeometryHeader (FILE *fp)
 
int ReadQHeader (FILE *fp)
 
int ReadFunctionHeader (FILE *fp, vtkIdList *&counts)
 
void CalculateFileSize (FILE *fp)
 
long EstimateSize (int ni, int nj, int nk)
 
void AssignAttribute (int fNumber, vtkStructuredGrid *output, int attributeType)
 
void MapFunction (int fNumber, vtkStructuredGrid *output)
 
void ComputeTemperature (vtkStructuredGrid *output)
 
void ComputePressure (vtkStructuredGrid *output)
 
void ComputeEnthalpy (vtkStructuredGrid *output)
 
void ComputeKineticEnergy (vtkStructuredGrid *output)
 
void ComputeVelocityMagnitude (vtkStructuredGrid *output)
 
void ComputeEntropy (vtkStructuredGrid *output)
 
void ComputeSwirl (vtkStructuredGrid *output)
 
void ComputeVelocity (vtkStructuredGrid *output)
 
void ComputeVorticity (vtkStructuredGrid *output)
 
void ComputePressureGradient (vtkStructuredGrid *output)
 
void ClearGeometryCache ()
 
void ReadIntBlockV (char **buf, int n, int *block)
 
void SkipByteCountV (char **buf)
 
- Protected Member Functions inherited from vtkStructuredGridSource
 vtkStructuredGridSource ()
 
 ~vtkStructuredGridSource ()
 
virtual int FillOutputPortInformation (int, vtkInformation *)
 
- Protected Member Functions inherited from vtkSource
 vtkSource ()
 
 ~vtkSource ()
 
virtual void ExecuteData (vtkDataObject *output)
 
virtual void MarkGeneratedOutputs (vtkDataObject *)
 
void SetNumberOfOutputs (int num)
 
vtkDataObjectGetOutput (int idx)
 
virtual void SetNthOutput (int num, vtkDataObject *output)
 
virtual void AddOutput (vtkDataObject *output)
 
virtual void RemoveOutput (vtkDataObject *output)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
virtual void SetNumberOfOutputPorts (int n)
 
- Protected Member Functions inherited from vtkProcessObject
void SetNumberOfInputs (int num)
 
virtual void SetNthInput (int num, vtkDataObject *input)
 
virtual void AddInput (vtkDataObject *input)
 
virtual void RemoveInput (vtkDataObject *input)
 
virtual int FillInputPortInformation (int, vtkInformation *)
 
void AddInputInternal (vtkDataObject *input)
 
void RemoveInputInternal (vtkDataObject *input)
 
void SetupInputs ()
 
 vtkProcessObject ()
 
 ~vtkProcessObject ()
 
- Protected Member Functions inherited from vtkAlgorithm
 vtkAlgorithm ()
 
 ~vtkAlgorithm ()
 
virtual void SetNumberOfInputPorts (int n)
 
int InputPortIndexInRange (int index, const char *action)
 
int OutputPortIndexInRange (int index, const char *action)
 
int GetInputArrayAssociation (int idx, vtkInformationVector **inputVector)
 
virtual vtkExecutiveCreateDefaultExecutive ()
 
int GetInputArrayAssociation (int idx, int connection, vtkInformationVector **inputVector)
 
int GetInputArrayAssociation (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkDataArrayGetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input)
 
vtkDataArrayGetInputArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input)
 
vtkAbstractArrayGetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkInformationGetInputArrayFieldInformation (int idx, vtkInformationVector **inputVector)
 
virtual void SetErrorCode (unsigned long)
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
virtual ~vtkObject ()
 
virtual void RegisterInternal (vtkObjectBase *, int check)
 
virtual void UnRegisterInternal (vtkObjectBase *, int check)
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &os)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Protected Attributes

char * XYZFileName
 
char * QFileName
 
char * FunctionFileName
 
int BinaryFile
 
int HasByteCount
 
int TwoDimensionalGeometry
 
int MultiGrid
 
int ForceRead
 
int ByteOrder
 
int IBlanking
 
int DoNotReduceNumberOfOutputs
 
long FileSize
 
double R
 
double Gamma
 
double Uvinf
 
double Vvinf
 
double Wvinf
 
vtkIntArrayFunctionList
 
int ScalarFunctionNumber
 
int VectorFunctionNumber
 
vtkFloatArray ** PointCache
 
vtkUnsignedCharArray ** IBlankCache
 
- Protected Attributes inherited from vtkSource
vtkDataObject ** Outputs
 
int NumberOfOutputs
 
int Updating
 
vtkTimeStamp InformationTime
 
- Protected Attributes inherited from vtkProcessObject
int NumberOfInputs
 
int NumberOfRequiredInputs
 
vtkDataObject ** Inputs
 
- Protected Attributes inherited from vtkAlgorithm
vtkInformationInformation
 
double Progress
 
char * ProgressText
 
unsigned long ErrorCode
 
- Protected Attributes inherited from vtkObject
unsigned char Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
int ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Additional Inherited Members

- Public Attributes inherited from vtkAlgorithm
int AbortExecute
 
- Static Protected Member Functions inherited from vtkAlgorithm
static vtkInformationIntegerKeyPORT_REQUIREMENTS_FILLED ()
 
- Static Protected Attributes inherited from vtkAlgorithm
static vtkExecutiveDefaultExecutivePrototype
 

Detailed Description

read PLOT3D data files

vtkPLOT3DReader is a reader object that reads PLOT3D formatted files and generates structured grid(s) on output. PLOT3D is a computer graphics program designed to visualize the grids and solutions of computational fluid dynamics. Please see the "PLOT3D User's Manual" available from NASA Ames Research Center, Moffett Field CA.

PLOT3D files consist of a grid file (also known as XYZ file), an optional solution file (also known as a Q file), and an optional function file that contains user created data (currently unsupported). The Q file contains solution information as follows: the four parameters free stream mach number (Fsmach), angle of attack (Alpha), Reynolds number (Re), and total integration time (Time). This information is stored in an array called Properties in the FieldData of each output (tuple 0: fsmach, tuple 1: alpha, tuple 2: re, tuple 3: time). In addition, the solution file contains the flow density (scalar), flow momentum (vector), and flow energy (scalar).

The reader can generate additional scalars and vectors (or "functions") from this information. To use vtkPLOT3DReader, you must specify the particular function number for the scalar and vector you want to visualize. This implementation of the reader provides the following functions. The scalar functions are: -1 - don't read or compute any scalars 100 - density 110 - pressure 120 - temperature 130 - enthalpy 140 - internal energy 144 - kinetic energy 153 - velocity magnitude 163 - stagnation energy 170 - entropy 184 - swirl.

The vector functions are: -1 - don't read or compute any vectors 200 - velocity 201 - vorticity 202 - momentum 210 - pressure gradient.

(Other functions are described in the PLOT3D spec, but only those listed are implemented here.) Note that by default, this reader creates the density scalar (100) and momentum vector (202) as output. (These are just read in from the solution file.) Please note that the validity of computation is a function of this class's gas constants (R, Gamma) and the equations used. They may not be suitable for your computational domain.

Additionally, you can read other data and associate it as a vtkDataArray into the output's point attribute data. Use the method AddFunction() to list all the functions that you'd like to read. AddFunction() accepts an integer parameter that defines the function number.

See also
vtkStructuredGridSource vtkStructuredGrid
Examples:
vtkPLOT3DReader (Examples)
Tests:
vtkPLOT3DReader (Tests)

Definition at line 91 of file vtkPLOT3DReader.h.

Member Typedef Documentation

Definition at line 95 of file vtkPLOT3DReader.h.

Member Enumeration Documentation

anonymous enum
Enumerator
FILE_BIG_ENDIAN 
FILE_LITTLE_ENDIAN 

Definition at line 264 of file vtkPLOT3DReader.h.

Constructor & Destructor Documentation

vtkPLOT3DReader::vtkPLOT3DReader ( )
protected
vtkPLOT3DReader::~vtkPLOT3DReader ( )
protected

Member Function Documentation

static vtkPLOT3DReader* vtkPLOT3DReader::New ( )
static
virtual const char* vtkPLOT3DReader::GetClassName ( )
virtual

Reimplemented from vtkStructuredGridSource.

static int vtkPLOT3DReader::IsTypeOf ( const char *  type)
static
virtual int vtkPLOT3DReader::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 vtkStructuredGridSource.

static vtkPLOT3DReader* vtkPLOT3DReader::SafeDownCast ( vtkObject o)
static
void vtkPLOT3DReader::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 vtkStructuredGridSource.

void vtkPLOT3DReader::SetFileName ( const char *  name)
inline

Set/Get the PLOT3D geometry filename.

Definition at line 100 of file vtkPLOT3DReader.h.

const char* vtkPLOT3DReader::GetFileName ( )
inline

Set/Get the PLOT3D geometry filename.

Definition at line 101 of file vtkPLOT3DReader.h.

virtual void vtkPLOT3DReader::SetXYZFileName ( const char *  )
virtual

Set/Get the PLOT3D geometry filename.

virtual char* vtkPLOT3DReader::GetXYZFileName ( )
virtual

Set/Get the PLOT3D geometry filename.

virtual void vtkPLOT3DReader::SetQFileName ( const char *  )
virtual

Set/Get the PLOT3D solution filename.

virtual char* vtkPLOT3DReader::GetQFileName ( )
virtual

Set/Get the PLOT3D solution filename.

virtual void vtkPLOT3DReader::SetFunctionFileName ( const char *  )
virtual

Set/Get the PLOT3D Function Filename (optional)

virtual char* vtkPLOT3DReader::GetFunctionFileName ( )
virtual

Set/Get the PLOT3D Function Filename (optional)

int vtkPLOT3DReader::GetNumberOfOutputs ( )
virtual

This returns the number of outputs this reader will produce. This number is equal to the number of grids in the current file. This method has to be called before getting any output if the number of outputs will be greater than 1 (the first output is always the same). Note that every time this method is invoked, the header file is opened and part of the header is read.

Reimplemented from vtkSource.

int vtkPLOT3DReader::GetNumberOfGrids ( )
inline

This returns the number of outputs this reader will produce. This number is equal to the number of grids in the current file. This method has to be called before getting any output if the number of outputs will be greater than 1 (the first output is always the same). Note that every time this method is invoked, the header file is opened and part of the header is read.

Definition at line 126 of file vtkPLOT3DReader.h.

void vtkPLOT3DReader::SetOutput ( int  idx,
vtkStructuredGrid output 
)

Replace an output.

virtual void vtkPLOT3DReader::SetBinaryFile ( int  )
virtual

Is the file to be read written in binary format (as opposed to ascii).

virtual int vtkPLOT3DReader::GetBinaryFile ( )
virtual

Is the file to be read written in binary format (as opposed to ascii).

virtual void vtkPLOT3DReader::BinaryFileOn ( )
virtual

Is the file to be read written in binary format (as opposed to ascii).

virtual void vtkPLOT3DReader::BinaryFileOff ( )
virtual

Is the file to be read written in binary format (as opposed to ascii).

virtual void vtkPLOT3DReader::SetMultiGrid ( int  )
virtual

Does the file to be read contain information about number of grids. In some PLOT3D files, the first value contains the number of grids (even if there is only 1). If reading such a file, set this to true.

virtual int vtkPLOT3DReader::GetMultiGrid ( )
virtual

Does the file to be read contain information about number of grids. In some PLOT3D files, the first value contains the number of grids (even if there is only 1). If reading such a file, set this to true.

virtual void vtkPLOT3DReader::MultiGridOn ( )
virtual

Does the file to be read contain information about number of grids. In some PLOT3D files, the first value contains the number of grids (even if there is only 1). If reading such a file, set this to true.

virtual void vtkPLOT3DReader::MultiGridOff ( )
virtual

Does the file to be read contain information about number of grids. In some PLOT3D files, the first value contains the number of grids (even if there is only 1). If reading such a file, set this to true.

virtual void vtkPLOT3DReader::SetHasByteCount ( int  )
virtual

Were the arrays written with leading and trailing byte counts ? Usually, files written by a fortran program will contain these byte counts whereas the ones written by C/C++ won't.

virtual int vtkPLOT3DReader::GetHasByteCount ( )
virtual

Were the arrays written with leading and trailing byte counts ? Usually, files written by a fortran program will contain these byte counts whereas the ones written by C/C++ won't.

virtual void vtkPLOT3DReader::HasByteCountOn ( )
virtual

Were the arrays written with leading and trailing byte counts ? Usually, files written by a fortran program will contain these byte counts whereas the ones written by C/C++ won't.

virtual void vtkPLOT3DReader::HasByteCountOff ( )
virtual

Were the arrays written with leading and trailing byte counts ? Usually, files written by a fortran program will contain these byte counts whereas the ones written by C/C++ won't.

virtual void vtkPLOT3DReader::SetIBlanking ( int  )
virtual

Is there iblanking (point visibility) information in the file. If there is iblanking arrays, these will be read and assigned to the PointVisibility array of the output.

virtual int vtkPLOT3DReader::GetIBlanking ( )
virtual

Is there iblanking (point visibility) information in the file. If there is iblanking arrays, these will be read and assigned to the PointVisibility array of the output.

virtual void vtkPLOT3DReader::IBlankingOn ( )
virtual

Is there iblanking (point visibility) information in the file. If there is iblanking arrays, these will be read and assigned to the PointVisibility array of the output.

virtual void vtkPLOT3DReader::IBlankingOff ( )
virtual

Is there iblanking (point visibility) information in the file. If there is iblanking arrays, these will be read and assigned to the PointVisibility array of the output.

virtual void vtkPLOT3DReader::SetTwoDimensionalGeometry ( int  )
virtual

If only two-dimensional data was written to the file, turn this on.

virtual int vtkPLOT3DReader::GetTwoDimensionalGeometry ( )
virtual

If only two-dimensional data was written to the file, turn this on.

virtual void vtkPLOT3DReader::TwoDimensionalGeometryOn ( )
virtual

If only two-dimensional data was written to the file, turn this on.

virtual void vtkPLOT3DReader::TwoDimensionalGeometryOff ( )
virtual

If only two-dimensional data was written to the file, turn this on.

virtual void vtkPLOT3DReader::SetForceRead ( int  )
virtual

Try to read a binary file even if the file length seems to be inconsistent with the header information. Use this with caution, if the file length is not the same as calculated from the header. either the file is corrupt or the settings are wrong.

virtual int vtkPLOT3DReader::GetForceRead ( )
virtual

Try to read a binary file even if the file length seems to be inconsistent with the header information. Use this with caution, if the file length is not the same as calculated from the header. either the file is corrupt or the settings are wrong.

virtual void vtkPLOT3DReader::ForceReadOn ( )
virtual

Try to read a binary file even if the file length seems to be inconsistent with the header information. Use this with caution, if the file length is not the same as calculated from the header. either the file is corrupt or the settings are wrong.

virtual void vtkPLOT3DReader::ForceReadOff ( )
virtual

Try to read a binary file even if the file length seems to be inconsistent with the header information. Use this with caution, if the file length is not the same as calculated from the header. either the file is corrupt or the settings are wrong.

virtual void vtkPLOT3DReader::SetDoNotReduceNumberOfOutputs ( int  )
virtual

If this is on, the reader will never reduce the number of outputs after reading a file with n grids and producing n outputs. If the file read afterwards contains fewer grids, the extra outputs will be empty. This option can be used by application which rely on the initial number of outputs not shrinking.

virtual int vtkPLOT3DReader::GetDoNotReduceNumberOfOutputs ( )
virtual

If this is on, the reader will never reduce the number of outputs after reading a file with n grids and producing n outputs. If the file read afterwards contains fewer grids, the extra outputs will be empty. This option can be used by application which rely on the initial number of outputs not shrinking.

virtual void vtkPLOT3DReader::DoNotReduceNumberOfOutputsOn ( )
virtual

If this is on, the reader will never reduce the number of outputs after reading a file with n grids and producing n outputs. If the file read afterwards contains fewer grids, the extra outputs will be empty. This option can be used by application which rely on the initial number of outputs not shrinking.

virtual void vtkPLOT3DReader::DoNotReduceNumberOfOutputsOff ( )
virtual

If this is on, the reader will never reduce the number of outputs after reading a file with n grids and producing n outputs. If the file read afterwards contains fewer grids, the extra outputs will be empty. This option can be used by application which rely on the initial number of outputs not shrinking.

void vtkPLOT3DReader::SetByteOrderToBigEndian ( )

Set the byte order of the file (remember, more Unix workstations write big endian whereas PCs write little endian). Default is big endian (since most older PLOT3D files were written by workstations).

void vtkPLOT3DReader::SetByteOrderToLittleEndian ( )

Set the byte order of the file (remember, more Unix workstations write big endian whereas PCs write little endian). Default is big endian (since most older PLOT3D files were written by workstations).

virtual void vtkPLOT3DReader::SetByteOrder ( int  )
virtual

Set the byte order of the file (remember, more Unix workstations write big endian whereas PCs write little endian). Default is big endian (since most older PLOT3D files were written by workstations).

virtual int vtkPLOT3DReader::GetByteOrder ( )
virtual

Set the byte order of the file (remember, more Unix workstations write big endian whereas PCs write little endian). Default is big endian (since most older PLOT3D files were written by workstations).

const char* vtkPLOT3DReader::GetByteOrderAsString ( )

Set the byte order of the file (remember, more Unix workstations write big endian whereas PCs write little endian). Default is big endian (since most older PLOT3D files were written by workstations).

virtual void vtkPLOT3DReader::SetR ( double  )
virtual

Set/Get the gas constant. Default is 1.0.

virtual double vtkPLOT3DReader::GetR ( )
virtual

Set/Get the gas constant. Default is 1.0.

virtual void vtkPLOT3DReader::SetGamma ( double  )
virtual

Set/Get the ratio of specific heats. Default is 1.4.

virtual double vtkPLOT3DReader::GetGamma ( )
virtual

Set/Get the ratio of specific heats. Default is 1.4.

virtual void vtkPLOT3DReader::SetUvinf ( double  )
virtual

Set/Get the x-component of the free-stream velocity. Default is 1.0.

virtual double vtkPLOT3DReader::GetUvinf ( )
virtual

Set/Get the x-component of the free-stream velocity. Default is 1.0.

virtual void vtkPLOT3DReader::SetVvinf ( double  )
virtual

Set/Get the y-component of the free-stream velocity. Default is 1.0.

virtual double vtkPLOT3DReader::GetVvinf ( )
virtual

Set/Get the y-component of the free-stream velocity. Default is 1.0.

virtual void vtkPLOT3DReader::SetWvinf ( double  )
virtual

Set/Get the z-component of the free-stream velocity. Default is 1.0.

virtual double vtkPLOT3DReader::GetWvinf ( )
virtual

Set/Get the z-component of the free-stream velocity. Default is 1.0.

void vtkPLOT3DReader::SetScalarFunctionNumber ( int  num)

Specify the scalar function to extract. If ==(-1), then no scalar function is extracted.

virtual int vtkPLOT3DReader::GetScalarFunctionNumber ( )
virtual

Specify the scalar function to extract. If ==(-1), then no scalar function is extracted.

void vtkPLOT3DReader::SetVectorFunctionNumber ( int  num)

Specify the vector function to extract. If ==(-1), then no vector function is extracted.

virtual int vtkPLOT3DReader::GetVectorFunctionNumber ( )
virtual

Specify the vector function to extract. If ==(-1), then no vector function is extracted.

void vtkPLOT3DReader::AddFunction ( int  functionNumber)

Specify additional functions to read. These are placed into the point data as data arrays. Later on they can be used by labeling them as scalars, etc.

void vtkPLOT3DReader::RemoveFunction ( int  )

Specify additional functions to read. These are placed into the point data as data arrays. Later on they can be used by labeling them as scalars, etc.

void vtkPLOT3DReader::RemoveAllFunctions ( )

Specify additional functions to read. These are placed into the point data as data arrays. Later on they can be used by labeling them as scalars, etc.

virtual int vtkPLOT3DReader::CanReadBinaryFile ( const char *  fname)
virtual

Return 1 if the reader can read the given file name. Only meaningful for binary files.

void vtkPLOT3DReader::ExecuteInformation ( )
protectedvirtual

Reimplemented from vtkSource.

void vtkPLOT3DReader::Execute ( )
protectedvirtual

This method is the old style execute method

Reimplemented from vtkSource.

int vtkPLOT3DReader::CheckFile ( FILE *&  fp,
const char *  fname 
)
protected
int vtkPLOT3DReader::CheckGeometryFile ( FILE *&  xyzFp)
protected
int vtkPLOT3DReader::CheckSolutionFile ( FILE *&  qFp)
protected
int vtkPLOT3DReader::CheckFunctionFile ( FILE *&  fFp)
protected
void vtkPLOT3DReader::SkipByteCount ( FILE *  fp)
protected
int vtkPLOT3DReader::ReadIntBlock ( FILE *  fp,
int  n,
int *  block 
)
protected
int vtkPLOT3DReader::ReadFloatBlock ( FILE *  fp,
int  n,
float *  block 
)
protected
int vtkPLOT3DReader::GetNumberOfOutputsInternal ( FILE *  xyzFp,
int  verify = 1 
)
protected
int vtkPLOT3DReader::ReadGeometryHeader ( FILE *  fp)
protected
int vtkPLOT3DReader::ReadQHeader ( FILE *  fp)
protected
int vtkPLOT3DReader::ReadFunctionHeader ( FILE *  fp,
vtkIdList *&  counts 
)
protected
void vtkPLOT3DReader::CalculateFileSize ( FILE *  fp)
protected
long vtkPLOT3DReader::EstimateSize ( int  ni,
int  nj,
int  nk 
)
protected
void vtkPLOT3DReader::AssignAttribute ( int  fNumber,
vtkStructuredGrid output,
int  attributeType 
)
protected
void vtkPLOT3DReader::MapFunction ( int  fNumber,
vtkStructuredGrid output 
)
protected
void vtkPLOT3DReader::ComputeTemperature ( vtkStructuredGrid output)
protected
void vtkPLOT3DReader::ComputePressure ( vtkStructuredGrid output)
protected
void vtkPLOT3DReader::ComputeEnthalpy ( vtkStructuredGrid output)
protected
void vtkPLOT3DReader::ComputeKineticEnergy ( vtkStructuredGrid output)
protected
void vtkPLOT3DReader::ComputeVelocityMagnitude ( vtkStructuredGrid output)
protected
void vtkPLOT3DReader::ComputeEntropy ( vtkStructuredGrid output)
protected
void vtkPLOT3DReader::ComputeSwirl ( vtkStructuredGrid output)
protected
void vtkPLOT3DReader::ComputeVelocity ( vtkStructuredGrid output)
protected
void vtkPLOT3DReader::ComputeVorticity ( vtkStructuredGrid output)
protected
void vtkPLOT3DReader::ComputePressureGradient ( vtkStructuredGrid output)
protected
void vtkPLOT3DReader::ClearGeometryCache ( )
protected
void vtkPLOT3DReader::ReadIntBlockV ( char **  buf,
int  n,
int *  block 
)
protected
void vtkPLOT3DReader::SkipByteCountV ( char **  buf)
protected

Member Data Documentation

char* vtkPLOT3DReader::XYZFileName
protected

Definition at line 316 of file vtkPLOT3DReader.h.

char* vtkPLOT3DReader::QFileName
protected

Definition at line 317 of file vtkPLOT3DReader.h.

char* vtkPLOT3DReader::FunctionFileName
protected

Definition at line 318 of file vtkPLOT3DReader.h.

int vtkPLOT3DReader::BinaryFile
protected

Definition at line 320 of file vtkPLOT3DReader.h.

int vtkPLOT3DReader::HasByteCount
protected

Definition at line 321 of file vtkPLOT3DReader.h.

int vtkPLOT3DReader::TwoDimensionalGeometry
protected

Definition at line 322 of file vtkPLOT3DReader.h.

int vtkPLOT3DReader::MultiGrid
protected

Definition at line 323 of file vtkPLOT3DReader.h.

int vtkPLOT3DReader::ForceRead
protected

Definition at line 324 of file vtkPLOT3DReader.h.

int vtkPLOT3DReader::ByteOrder
protected

Definition at line 325 of file vtkPLOT3DReader.h.

int vtkPLOT3DReader::IBlanking
protected

Definition at line 326 of file vtkPLOT3DReader.h.

int vtkPLOT3DReader::DoNotReduceNumberOfOutputs
protected

Definition at line 327 of file vtkPLOT3DReader.h.

long vtkPLOT3DReader::FileSize
protected

Definition at line 329 of file vtkPLOT3DReader.h.

double vtkPLOT3DReader::R
protected

Definition at line 332 of file vtkPLOT3DReader.h.

double vtkPLOT3DReader::Gamma
protected

Definition at line 333 of file vtkPLOT3DReader.h.

double vtkPLOT3DReader::Uvinf
protected

Definition at line 334 of file vtkPLOT3DReader.h.

double vtkPLOT3DReader::Vvinf
protected

Definition at line 335 of file vtkPLOT3DReader.h.

double vtkPLOT3DReader::Wvinf
protected

Definition at line 336 of file vtkPLOT3DReader.h.

vtkIntArray* vtkPLOT3DReader::FunctionList
protected

Definition at line 339 of file vtkPLOT3DReader.h.

int vtkPLOT3DReader::ScalarFunctionNumber
protected

Definition at line 341 of file vtkPLOT3DReader.h.

int vtkPLOT3DReader::VectorFunctionNumber
protected

Definition at line 342 of file vtkPLOT3DReader.h.

vtkFloatArray** vtkPLOT3DReader::PointCache
protected

Definition at line 345 of file vtkPLOT3DReader.h.

vtkUnsignedCharArray** vtkPLOT3DReader::IBlankCache
protected

Definition at line 346 of file vtkPLOT3DReader.h.


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