VTK
|
class to read any type of EnSight files More...
#include <vtkGenericEnSightReader.h>
Public Types | |
enum | FileTypes { ENSIGHT_6 = 0, ENSIGHT_6_BINARY = 1, ENSIGHT_GOLD = 2, ENSIGHT_GOLD_BINARY = 3, ENSIGHT_MASTER_SERVER = 4 } |
enum | { FILE_BIG_ENDIAN =0, FILE_LITTLE_ENDIAN =1, FILE_UNKNOWN_ENDIAN =2 } |
typedef vtkMultiBlockDataSetAlgorithm | Superclass |
![]() | |
typedef vtkAlgorithm | Superclass |
![]() | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
const char * | GetDescription (int n) |
const char * | GetComplexDescription (int n) |
const char * | GetDescription (int n, int type) |
int | DetermineEnSightVersion (int quiet=0) |
vtkGenericEnSightReader * | GetReader () |
void | SetCaseFileName (const char *fileName) |
virtual char * | GetCaseFileName () |
virtual void | SetFilePath (const char *) |
virtual char * | GetFilePath () |
virtual int | GetEnSightVersion () |
virtual int | GetNumberOfVariables () |
virtual int | GetNumberOfComplexVariables () |
int | GetNumberOfVariables (int type) |
virtual int | GetNumberOfScalarsPerNode () |
virtual int | GetNumberOfVectorsPerNode () |
virtual int | GetNumberOfTensorsSymmPerNode () |
virtual int | GetNumberOfScalarsPerElement () |
virtual int | GetNumberOfVectorsPerElement () |
virtual int | GetNumberOfTensorsSymmPerElement () |
virtual int | GetNumberOfScalarsPerMeasuredNode () |
virtual int | GetNumberOfVectorsPerMeasuredNode () |
virtual int | GetNumberOfComplexScalarsPerNode () |
virtual int | GetNumberOfComplexVectorsPerNode () |
virtual int | GetNumberOfComplexScalarsPerElement () |
virtual int | GetNumberOfComplexVectorsPerElement () |
int | GetVariableType (int n) |
int | GetComplexVariableType (int n) |
virtual void | SetTimeValue (float value) |
virtual float | GetTimeValue () |
virtual float | GetMinimumTimeValue () |
virtual float | GetMaximumTimeValue () |
virtual vtkDataArrayCollection * | GetTimeSets () |
virtual void | ReadAllVariablesOn () |
virtual void | ReadAllVariablesOff () |
virtual void | SetReadAllVariables (int) |
virtual int | GetReadAllVariables () |
virtual vtkDataArraySelection * | GetPointDataArraySelection () |
virtual vtkDataArraySelection * | GetCellDataArraySelection () |
int | GetNumberOfPointArrays () |
int | GetNumberOfCellArrays () |
const char * | GetPointArrayName (int index) |
const char * | GetCellArrayName (int index) |
int | GetPointArrayStatus (const char *name) |
int | GetCellArrayStatus (const char *name) |
void | SetPointArrayStatus (const char *name, int status) |
void | SetCellArrayStatus (const char *name, int status) |
void | SetByteOrderToBigEndian () |
void | SetByteOrderToLittleEndian () |
virtual void | SetByteOrder (int) |
virtual int | GetByteOrder () |
const char * | GetByteOrderAsString () |
virtual char * | GetGeometryFileName () |
virtual void | SetParticleCoordinatesByIndex (int) |
virtual int | GetParticleCoordinatesByIndex () |
virtual void | ParticleCoordinatesByIndexOn () |
virtual void | ParticleCoordinatesByIndexOff () |
![]() | |
vtkMultiBlockDataSet * | GetOutput () |
vtkMultiBlockDataSet * | GetOutput (int) |
void | SetInput (vtkDataObject *) |
void | SetInput (int, vtkDataObject *) |
virtual int | ProcessRequest (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
![]() | |
int | HasExecutive () |
vtkExecutive * | GetExecutive () |
virtual void | SetExecutive (vtkExecutive *executive) |
virtual int | ModifyRequest (vtkInformation *request, int when) |
vtkInformation * | GetInputPortInformation (int port) |
vtkInformation * | GetOutputPortInformation (int port) |
int | GetNumberOfInputPorts () |
int | GetNumberOfOutputPorts () |
void | UpdateProgress (double amount) |
vtkInformation * | GetInputArrayInformation (int idx) |
void | RemoveAllInputs () |
vtkDataObject * | GetOutputDataObject (int port) |
virtual void | RemoveInputConnection (int port, vtkAlgorithmOutput *input) |
int | GetNumberOfInputConnections (int port) |
int | GetTotalNumberOfInputConnections () |
vtkAlgorithmOutput * | GetInputConnection (int port, int index) |
virtual void | Update () |
virtual void | UpdateInformation () |
virtual void | UpdateWholeExtent () |
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 vtkInformation * | GetInformation () |
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) |
vtkDataObject * | GetInputDataObject (int port, int connection) |
virtual void | SetInputConnection (int port, vtkAlgorithmOutput *input) |
virtual void | SetInputConnection (vtkAlgorithmOutput *input) |
virtual void | AddInputConnection (int port, vtkAlgorithmOutput *input) |
virtual void | AddInputConnection (vtkAlgorithmOutput *input) |
vtkAlgorithmOutput * | GetOutputPort (int index) |
vtkAlgorithmOutput * | GetOutputPort () |
virtual void | SetReleaseDataFlag (int) |
virtual int | GetReleaseDataFlag () |
void | ReleaseDataFlagOn () |
void | ReleaseDataFlagOff () |
int | UpdateExtentIsEmpty (vtkDataObject *output) |
int | UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType) |
![]() | |
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) |
vtkCommand * | GetCommand (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) |
![]() | |
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 Protected Member Functions | |
static void | SelectionModifiedCallback (vtkObject *caller, unsigned long eid, void *clientdata, void *calldata) |
Additional Inherited Members | |
![]() | |
int | AbortExecute |
![]() | |
static vtkExecutive * | DefaultExecutivePrototype |
![]() |
class to read any type of EnSight files
The class vtkGenericEnSightReader allows the user to read an EnSight data set without a priori knowledge of what type of EnSight data set it is.
Definition at line 53 of file vtkGenericEnSightReader.h.
Definition at line 57 of file vtkGenericEnSightReader.h.
Enumerator | |
---|---|
ENSIGHT_6 | |
ENSIGHT_6_BINARY | |
ENSIGHT_GOLD | |
ENSIGHT_GOLD_BINARY | |
ENSIGHT_MASTER_SERVER |
Definition at line 182 of file vtkGenericEnSightReader.h.
anonymous enum |
Enumerator | |
---|---|
FILE_BIG_ENDIAN | |
FILE_LITTLE_ENDIAN | |
FILE_UNKNOWN_ENDIAN |
Definition at line 204 of file vtkGenericEnSightReader.h.
|
protected |
|
protected |
|
static |
|
virtual |
Reimplemented from vtkMultiBlockDataSetAlgorithm.
Reimplemented in vtkEnSightGoldBinaryReader, vtkEnSightGoldReader, vtkEnSight6BinaryReader, vtkEnSight6Reader, vtkEnSightReader, and vtkEnSightMasterServerReader.
|
static |
|
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 vtkMultiBlockDataSetAlgorithm.
Reimplemented in vtkEnSightGoldBinaryReader, vtkEnSightGoldReader, vtkEnSight6BinaryReader, vtkEnSight6Reader, vtkEnSightReader, and vtkEnSightMasterServerReader.
|
static |
|
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 vtkMultiBlockDataSetAlgorithm.
void vtkGenericEnSightReader::SetCaseFileName | ( | const char * | fileName) |
Set/Get the Case file name.
|
virtual |
Set/Get the Case file name.
|
virtual |
Set/Get the file path.
|
virtual |
Set/Get the file path.
|
virtual |
Get the EnSight file version being read.
|
virtual |
Get the number of variables listed in the case file.
|
virtual |
Get the number of variables listed in the case file.
int vtkGenericEnSightReader::GetNumberOfVariables | ( | int | type) |
Get the number of variables of a particular type.
|
virtual |
Get the number of variables of a particular type.
|
virtual |
Get the number of variables of a particular type.
|
virtual |
Get the number of variables of a particular type.
|
virtual |
Get the number of variables of a particular type.
|
virtual |
Get the number of variables of a particular type.
|
virtual |
Get the number of variables of a particular type.
|
virtual |
Get the number of variables of a particular type.
|
virtual |
Get the number of variables of a particular type.
|
virtual |
Get the number of variables of a particular type.
|
virtual |
Get the number of variables of a particular type.
|
virtual |
Get the number of variables of a particular type.
|
virtual |
Get the number of variables of a particular type.
const char* vtkGenericEnSightReader::GetDescription | ( | int | n) |
Get the nth description for a non-complex variable.
const char* vtkGenericEnSightReader::GetComplexDescription | ( | int | n) |
Get the nth description for a complex variable.
const char* vtkGenericEnSightReader::GetDescription | ( | int | n, |
int | type | ||
) |
Get the nth description of a particular variable type. Returns NULL if no variable of this type exists in this data set. SCALAR_PER_NODE = 0; VECTOR_PER_NODE = 1; TENSOR_SYMM_PER_NODE = 2; SCALAR_PER_ELEMENT = 3; VECTOR_PER_ELEMENT = 4; TENSOR_SYMM_PER_ELEMENT = 5; SCALAR_PER_MEASURED_NODE = 6; VECTOR_PER_MEASURED_NODE = 7; COMPLEX_SCALAR_PER_NODE = 8; COMPLEX_VECTOR_PER_NODE 9; COMPLEX_SCALAR_PER_ELEMENT = 10; COMPLEX_VECTOR_PER_ELEMENT = 11
int vtkGenericEnSightReader::GetVariableType | ( | int | n) |
Get the variable type of variable n.
int vtkGenericEnSightReader::GetComplexVariableType | ( | int | n) |
Get the variable type of variable n.
|
virtual |
Set/Get the time value at which to get the value.
|
virtual |
Set/Get the time value at which to get the value.
|
virtual |
Get the minimum or maximum time value for this data set.
|
virtual |
Get the minimum or maximum time value for this data set.
|
virtual |
Get the time values per time set
int vtkGenericEnSightReader::DetermineEnSightVersion | ( | int | quiet = 0 ) |
Reads the FORMAT part of the case file to determine whether this is an EnSight6 or EnSightGold data set. Returns an identifier listed in the FileTypes enum or -1 if an error occurred or the file could not be indentified as any EnSight type.
|
virtual |
Set/get the flag for whether to read all the variables
|
virtual |
Set/get the flag for whether to read all the variables
|
virtual |
Set/get the flag for whether to read all the variables
|
virtual |
Set/get the flag for whether to read all the variables
|
virtual |
Get the data array selection tables used to configure which data arrays are loaded by the reader.
|
virtual |
Get the data array selection tables used to configure which data arrays are loaded by the reader.
int vtkGenericEnSightReader::GetNumberOfPointArrays | ( | ) |
Get the number of point or cell arrays available in the input.
int vtkGenericEnSightReader::GetNumberOfCellArrays | ( | ) |
Get the number of point or cell arrays available in the input.
const char* vtkGenericEnSightReader::GetPointArrayName | ( | int | index) |
Get the name of the point or cell array with the given index in the input.
const char* vtkGenericEnSightReader::GetCellArrayName | ( | int | index) |
Get the name of the point or cell array with the given index in the input.
int vtkGenericEnSightReader::GetPointArrayStatus | ( | const char * | name) |
Get/Set whether the point or cell array with the given name is to be read.
int vtkGenericEnSightReader::GetCellArrayStatus | ( | const char * | name) |
Get/Set whether the point or cell array with the given name is to be read.
void vtkGenericEnSightReader::SetPointArrayStatus | ( | const char * | name, |
int | status | ||
) |
Get/Set whether the point or cell array with the given name is to be read.
void vtkGenericEnSightReader::SetCellArrayStatus | ( | const char * | name, |
int | status | ||
) |
Get/Set whether the point or cell array with the given name is to be read.
void vtkGenericEnSightReader::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 vtkGenericEnSightReader::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 |
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 |
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* vtkGenericEnSightReader::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 |
Get the Geometry file name. Made public to allow access from apps requiring detailed info about the Data contents
Reimplemented in vtkEnSightGoldReader.
|
virtual |
The MeasuredGeometryFile should list particle coordinates from 0->N-1. If a file is loaded where point Ids are listed from 1-N the Id to points reference will be wrong and the data will be generated incorrectly. Setting ParticleCoordinatesByIndex to true will force all Id's to increment from 0->N-1 (relative to their order in the file) and regardless of the actual Id of of the point. Warning, if the Points are listed in non sequential order then setting this flag will reorder them.
Reimplemented in vtkEnSightReader.
|
virtual |
The MeasuredGeometryFile should list particle coordinates from 0->N-1. If a file is loaded where point Ids are listed from 1-N the Id to points reference will be wrong and the data will be generated incorrectly. Setting ParticleCoordinatesByIndex to true will force all Id's to increment from 0->N-1 (relative to their order in the file) and regardless of the actual Id of of the point. Warning, if the Points are listed in non sequential order then setting this flag will reorder them.
Reimplemented in vtkEnSightReader.
|
virtual |
The MeasuredGeometryFile should list particle coordinates from 0->N-1. If a file is loaded where point Ids are listed from 1-N the Id to points reference will be wrong and the data will be generated incorrectly. Setting ParticleCoordinatesByIndex to true will force all Id's to increment from 0->N-1 (relative to their order in the file) and regardless of the actual Id of of the point. Warning, if the Points are listed in non sequential order then setting this flag will reorder them.
Reimplemented in vtkEnSightReader.
|
virtual |
The MeasuredGeometryFile should list particle coordinates from 0->N-1. If a file is loaded where point Ids are listed from 1-N the Id to points reference will be wrong and the data will be generated incorrectly. Setting ParticleCoordinatesByIndex to true will force all Id's to increment from 0->N-1 (relative to their order in the file) and regardless of the actual Id of of the point. Warning, if the Points are listed in non sequential order then setting this flag will reorder them.
Reimplemented in vtkEnSightReader.
|
static |
Returns true if the file pointed to by casefilename appears to be a valid EnSight case file.
|
inline |
Definition at line 237 of file vtkGenericEnSightReader.h.
|
protectedvirtual |
Fill the output port information objects for this algorithm. This is invoked by the first call to GetOutputPortInformation for each port so subclasses can specify what they can handle.
Reimplemented from vtkMultiBlockDataSetAlgorithm.
|
protectedvirtual |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkMultiBlockDataSetAlgorithm.
Reimplemented in vtkEnSightReader, and vtkEnSightMasterServerReader.
|
protectedvirtual |
This is called by the superclass. This is the method you should override.
Reimplemented from vtkMultiBlockDataSetAlgorithm.
Reimplemented in vtkEnSightReader, and vtkEnSightMasterServerReader.
|
protected |
Internal function to read in a line up to 256 characters. Returns zero if there was an error.
|
protected |
Internal function to read up to 80 characters from a binary file. Returns zero if there was an error.
|
protected |
|
protectedvirtual |
Set the geometry file name.
Reimplemented in vtkEnSightGoldReader.
|
protected |
Add a variable description to the appropriate array.
|
protected |
Add a variable description to the appropriate array.
|
protected |
Add a variable type to the appropriate array.
|
protected |
Add a variable type to the appropriate array.
|
protected |
Replace the wildcards in the geometry file name with appropriate filename numbers as specified in the time set or file set.
|
protected |
Replace the wildcards in the geometry file name with appropriate filename numbers as specified in the time set or file set.
|
staticprotected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protectedvirtual |
|
protected |
|
protected |
Definition at line 310 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 311 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 312 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 314 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 315 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 316 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 319 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 320 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 323 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 324 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 326 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 327 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 330 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 331 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 332 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 333 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 334 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 335 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 336 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 337 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 338 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 339 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 340 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 341 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 343 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 344 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 345 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 348 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 350 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 353 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 355 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 356 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 360 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 364 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 365 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 369 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 373 of file vtkGenericEnSightReader.h.
|
protected |
Definition at line 379 of file vtkGenericEnSightReader.h.