ParaView
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkPEnSightGoldReader Class Reference

Parallel version of vtkEnSightGoldReader. More...

#include <vtkPEnSightGoldReader.h>

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

Public Types

typedef vtkPEnSightReader Superclass
 
- Public Types inherited from vtkPEnSightReader
enum  ElementTypesList {
  POINT = 0, BAR2 = 1, BAR3 = 2, NSIDED = 3,
  TRIA3 = 4, TRIA6 = 5, QUAD4 = 6, QUAD8 = 7,
  NFACED = 8, TETRA4 = 9, TETRA10 = 10, PYRAMID5 = 11,
  PYRAMID13 = 12, HEXA8 = 13, HEXA20 = 14, PENTA6 = 15,
  PENTA15 = 16, NUMBER_OF_ELEMENT_TYPES = 17
}
 
enum  VariableTypesList {
  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
}
 
enum  SectionTypeList { COORDINATES = 0, BLOCK = 1, ELEMENT = 2 }
 
typedef vtkPGenericEnSightReader Superclass
 
- Public Types inherited from vtkPGenericEnSightReader
typedef vtkGenericEnSightReader Superclass
 

Public Member Functions

virtual const char * GetClassName ()
 
virtual int IsA (const char *type)
 
virtual void PrintSelf (ostream &os, vtkIndent indent)
 
- Public Member Functions inherited from vtkPEnSightReader
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetParticleCoordinatesByIndex (int)
 The MeasuredGeometryFile should list particle coordinates from 0->N-1. More...
 
virtual int GetParticleCoordinatesByIndex ()
 The MeasuredGeometryFile should list particle coordinates from 0->N-1. More...
 
virtual void ParticleCoordinatesByIndexOn ()
 The MeasuredGeometryFile should list particle coordinates from 0->N-1. More...
 
virtual void ParticleCoordinatesByIndexOff ()
 The MeasuredGeometryFile should list particle coordinates from 0->N-1. More...
 
- Public Member Functions inherited from vtkPGenericEnSightReader
void PrintSelf (ostream &os, vtkIndent indent)
 

Static Public Member Functions

static vtkPEnSightGoldReaderNew ()
 
static int IsTypeOf (const char *type)
 
static vtkPEnSightGoldReaderSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkPEnSightReader
static int IsTypeOf (const char *type)
 
static vtkPEnSightReaderSafeDownCast (vtkObject *o)
 
- Static Public Member Functions inherited from vtkPGenericEnSightReader
static vtkPGenericEnSightReaderNew ()
 
static int IsTypeOf (const char *type)
 
static vtkPGenericEnSightReaderSafeDownCast (vtkObject *o)
 

Protected Member Functions

 vtkPEnSightGoldReader ()
 
 ~vtkPEnSightGoldReader ()
 
virtual int ReadGeometryFile (const char *fileName, int timeStep, vtkMultiBlockDataSet *output)
 Read the geometry file. More...
 
virtual int ReadMeasuredGeometryFile (const char *fileName, int timeStep, vtkMultiBlockDataSet *output)
 Read the measured geometry file. More...
 
virtual int ReadScalarsPerNode (const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int measured=0, int numberOfComponents=1, int component=0)
 Read scalars per node for this dataset. More...
 
virtual int ReadVectorsPerNode (const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int measured=0)
 Read vectors per node for this dataset. More...
 
virtual int ReadTensorsPerNode (const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output)
 Read tensors per node for this dataset. More...
 
virtual int ReadScalarsPerElement (const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output, int numberOfComponents=1, int component=0)
 Read scalars per element for this dataset. More...
 
virtual int ReadVectorsPerElement (const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output)
 Read vectors per element for this dataset. More...
 
virtual int ReadTensorsPerElement (const char *fileName, const char *description, int timeStep, vtkMultiBlockDataSet *output)
 Read tensors per element for this dataset. More...
 
virtual int CreateUnstructuredGridOutput (int partId, char line[256], const char *name, vtkMultiBlockDataSet *output)
 Read an unstructured part (partId) from the geometry file and create a vtkUnstructuredGrid output. More...
 
virtual int CreateStructuredGridOutput (int partId, char line[256], const char *name, vtkMultiBlockDataSet *output)
 Read a structured part from the geometry file and create a vtkStructuredGrid output. More...
 
int CreateRectilinearGridOutput (int partId, char line[256], const char *name, vtkMultiBlockDataSet *output)
 Read a structured part from the geometry file and create a vtkRectilinearGrid output. More...
 
int CreateImageDataOutput (int partId, char line[256], const char *name, vtkMultiBlockDataSet *output)
 Read a structured part from the geometry file and create a vtkImageData output. More...
 
int ReadOrSkipCoordinates (vtkPoints *points, long offset, int partId, int *lineRead, char *line, bool skip)
 Read Coordinates, or just skip the part in the file. More...
 
int InjectCoordinatesAtEnd (vtkUnstructuredGrid *output, long coordinatesOffset, int partId)
 Internal method to inject Coordinates and Global Ids at the end of a part read for Unstructured data. More...
 
int CheckForUndefOrPartial (const char *line)
 Skip next line in file if the 'undef' or 'partial' keyword was specified after a sectional keyword. More...
 
virtual void SetGeometryFileName (const char *)
 Set/Get the Model file name. More...
 
virtual char * GetGeometryFileName ()
 Set/Get the Model file name. More...
 
virtual void SetMeasuredFileName (const char *)
 Set/Get the Measured file name. More...
 
virtual char * GetMeasuredFileName ()
 Set/Get the Measured file name. More...
 
virtual void SetMatchFileName (const char *)
 Set/Get the Match file name. More...
 
virtual char * GetMatchFileName ()
 Set/Get the Match file name. More...
 
- Protected Member Functions inherited from vtkPEnSightReader
 vtkPEnSightReader ()
 
 ~vtkPEnSightReader ()
 
virtual int RequestInformation (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
int ReadVariableFiles (vtkMultiBlockDataSet *output)
 Read the variable files. More...
 
virtual int CreateUnstructuredGridOutput (int partId, char line[80], const char *name, vtkMultiBlockDataSet *output)=0
 Read an unstructured part (partId) from the geometry file and create a vtkUnstructuredGrid output. More...
 
virtual int CreateStructuredGridOutput (int partId, char line[80], const char *name, vtkMultiBlockDataSet *output)=0
 Read a structured part from the geometry file and create a vtkStructuredGridOutput. More...
 
void AddVariableFileName (const char *fileName1, const char *fileName2=NULL)
 Add another file name to the list for a particular variable type. More...
 
void AddVariableDescription (const char *description)
 Add another description to the list for a particular variable type. More...
 
void AddVariableType ()
 Record the variable type for the variable line just read. More...
 
int GetElementType (const char *line)
 Determine the element type from a line read a file. More...
 
int GetSectionType (const char *line)
 Determine the section type from a line read a file. More...
 
void ReplaceWildcards (char *filename, int num)
 Replace the *'s in the filename with the given filename number. More...
 
void RemoveLeadingBlanks (char *line)
 Remove leading blank spaces from a string. More...
 
vtkPEnSightReaderCellIdsGetCellIds (int index, int cellType)
 Get the list for the given output index and cell type. More...
 
vtkPEnSightReaderCellIdsGetPointIds (int index)
 Distributed Read Only. More...
 
void AddToBlock (vtkMultiBlockDataSet *output, unsigned int blockNo, vtkDataSet *dataset)
 Convenience method use to convert the readers from VTK 5 multiblock API to the current composite data infrastructure. More...
 
vtkDataSet * GetDataSetFromBlock (vtkMultiBlockDataSet *output, unsigned int blockNo)
 Convenience method use to convert the readers from VTK 5 multiblock API to the current composite data infrastructure. More...
 
void SetBlockName (vtkMultiBlockDataSet *output, unsigned int blockNo, const char *name)
 Set the name of a block. More...
 
void PrepareStructuredDimensionsForDistribution (int partId, int *oldDimensions, int *newDimensions, int *splitDimension, int *splitDimensionBeginIndex, int ghostLevel, vtkUnsignedCharArray *pointGhostArray, vtkUnsignedCharArray *cellGhostArray)
 
virtual void SetUseTimeSets (int)
 
virtual int GetUseTimeSets ()
 
virtual void UseTimeSetsOn ()
 
virtual void UseTimeSetsOff ()
 
virtual void SetUseFileSets (int)
 
virtual int GetUseFileSets ()
 
virtual void UseFileSetsOn ()
 
virtual void UseFileSetsOff ()
 
int CheckOutputConsistency ()
 
int ReadCaseFile ()
 Read the case file. More...
 
int ReadCaseFileGeometry (char *line)
 Read the case file. More...
 
int ReadCaseFileVariable (char *line)
 Read the case file. More...
 
int ReadCaseFileTime (char *line)
 Read the case file. More...
 
int ReadCaseFileFile (char *line)
 Read the case file. More...
 
vtkIdType GetTotalNumberOfCellIds (int index)
 Distributed Read Only. More...
 
vtkIdType GetLocalTotalNumberOfCellIds (int index)
 Distributed Read Only. More...
 
void InsertNextCellAndId (vtkUnstructuredGrid *, int vtkCellType, vtkIdType numPoints, vtkIdType *points, int partId, int ensightCellType, vtkIdType globalId, vtkIdType numElements)
 Merge InsertNextCell & GetId->InsertNextId Take Distributed Read into account. More...
 
void InsertVariableComponent (vtkFloatArray *array, int i, int component, float *content, int partId, int ensightCellType, int insertionType)
 Merge InsertNextCell & GetId->InsertNextId Take Distributed Read into account. More...
 
- Protected Member Functions inherited from vtkPGenericEnSightReader
 vtkPGenericEnSightReader ()
 
 ~vtkPGenericEnSightReader ()
 
int GetMultiProcessLocalProcessId ()
 Multi Process cache. More...
 
int GetMultiProcessNumberOfProcesses ()
 Multi Process cache. More...
 

Protected Attributes

UndefPartialInternal * UndefPartial
 Handle the undef / partial support for EnSight gold. More...
 
int NodeIdsListed
 
int ElementIdsListed
 
- Protected Attributes inherited from vtkPEnSightReader
int CaseFileRead
 
char * MeasuredFileName
 
char * MatchFileName
 
vtkPEnSightReaderCellIdsType * CellIds
 
vtkPEnSightReaderCellIdsType * PointIds
 
vtkIdList * UnstructuredPartIds
 
vtkIdList * StructuredPartIds
 
bool CoordinatesAtEnd
 
bool InjectGlobalElementIds
 
bool InjectGlobalNodeIds
 
int LastPointId
 
int VariableMode
 
char ** VariableFileNames
 
char ** ComplexVariableFileNames
 
vtkIdList * VariableTimeSetIds
 
vtkIdList * ComplexVariableTimeSetIds
 
vtkIdList * VariableFileSetIds
 
vtkIdList * ComplexVariableFileSetIds
 
vtkIdListCollection * TimeSetFileNameNumbers
 
vtkIdList * TimeSetsWithFilenameNumbers
 
vtkIdListCollection * FileSetFileNameNumbers
 
vtkIdList * FileSetsWithFilenameNumbers
 
vtkIdListCollection * FileSetNumberOfSteps
 
vtkIdList * TimeSetIds
 
vtkIdList * FileSets
 
int GeometryTimeSet
 
int GeometryFileSet
 
int MeasuredTimeSet
 
int MeasuredFileSet
 
float GeometryTimeValue
 
float MeasuredTimeValue
 
int UseTimeSets
 
int UseFileSets
 
int NumberOfGeometryParts
 
int NumberOfMeasuredPoints
 
int NumberOfNewOutputs
 
int InitialRead
 
int ParticleCoordinatesByIndex
 
double ActualTimeValue
 
int GhostLevels
 
std::map< std::string, std::map< int, long > > FileOffsets
 
- Protected Attributes inherited from vtkPGenericEnSightReader
int MultiProcessLocalProcessId
 
int MultiProcessNumberOfProcesses
 

Detailed Description

Parallel version of vtkEnSightGoldReader.

Thanks:
<verbatim>
Thanks:
This file has been developed as part of the CARRIOCAS (Distributed computation over ultra high optical internet network ) project ( http://www.carriocas.org/index.php?lng=ang ) of the SYSTEM French ICT Cluster (http://www.systematic-paris-region.org/en/index.html) under the supervision of CEA (http://www.cea.fr) and EDF (http://www.edf.fr) by Oxalya (http://www.oxalya.com)
Thanks:
Copyright (c) CEA
Thanks:
</verbatim>

Definition at line 48 of file vtkPEnSightGoldReader.h.

Member Typedef Documentation

§ Superclass

Definition at line 52 of file vtkPEnSightGoldReader.h.

Constructor & Destructor Documentation

§ vtkPEnSightGoldReader()

vtkPEnSightGoldReader::vtkPEnSightGoldReader ( )
protected

§ ~vtkPEnSightGoldReader()

vtkPEnSightGoldReader::~vtkPEnSightGoldReader ( )
protected

Member Function Documentation

§ New()

static vtkPEnSightGoldReader* vtkPEnSightGoldReader::New ( )
static

§ GetClassName()

virtual const char* vtkPEnSightGoldReader::GetClassName ( )
virtual

Reimplemented from vtkPEnSightReader.

§ IsTypeOf()

static int vtkPEnSightGoldReader::IsTypeOf ( const char *  type)
static

§ IsA()

virtual int vtkPEnSightGoldReader::IsA ( const char *  type)
virtual

Reimplemented from vtkPEnSightReader.

§ SafeDownCast()

static vtkPEnSightGoldReader* vtkPEnSightGoldReader::SafeDownCast ( vtkObject *  o)
static

§ PrintSelf()

virtual void vtkPEnSightGoldReader::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual

§ ReadGeometryFile()

virtual int vtkPEnSightGoldReader::ReadGeometryFile ( const char *  fileName,
int  timeStep,
vtkMultiBlockDataSet *  output 
)
protectedvirtual

Read the geometry file.

If an error occurred, 0 is returned; otherwise 1.

Implements vtkPEnSightReader.

§ ReadMeasuredGeometryFile()

virtual int vtkPEnSightGoldReader::ReadMeasuredGeometryFile ( const char *  fileName,
int  timeStep,
vtkMultiBlockDataSet *  output 
)
protectedvirtual

Read the measured geometry file.

If an error occurred, 0 is returned; otherwise 1.

Implements vtkPEnSightReader.

§ ReadScalarsPerNode()

virtual int vtkPEnSightGoldReader::ReadScalarsPerNode ( const char *  fileName,
const char *  description,
int  timeStep,
vtkMultiBlockDataSet *  output,
int  measured = 0,
int  numberOfComponents = 1,
int  component = 0 
)
protectedvirtual

Read scalars per node for this dataset.

If an error occurred, 0 is returned; otherwise 1. If there will be more than one component in the data array, it is assumed that 0 is the first component added.

Implements vtkPEnSightReader.

§ ReadVectorsPerNode()

virtual int vtkPEnSightGoldReader::ReadVectorsPerNode ( const char *  fileName,
const char *  description,
int  timeStep,
vtkMultiBlockDataSet *  output,
int  measured = 0 
)
protectedvirtual

Read vectors per node for this dataset.

If an error occurred, 0 is returned; otherwise 1.

Implements vtkPEnSightReader.

§ ReadTensorsPerNode()

virtual int vtkPEnSightGoldReader::ReadTensorsPerNode ( const char *  fileName,
const char *  description,
int  timeStep,
vtkMultiBlockDataSet *  output 
)
protectedvirtual

Read tensors per node for this dataset.

If an error occurred, 0 is returned; otherwise 1.

Implements vtkPEnSightReader.

§ ReadScalarsPerElement()

virtual int vtkPEnSightGoldReader::ReadScalarsPerElement ( const char *  fileName,
const char *  description,
int  timeStep,
vtkMultiBlockDataSet *  output,
int  numberOfComponents = 1,
int  component = 0 
)
protectedvirtual

Read scalars per element for this dataset.

If an error occurred, 0 is returned; otherwise 1. If there will be more than one componenet in the data array, it is assumed that 0 is the first component added.

Implements vtkPEnSightReader.

§ ReadVectorsPerElement()

virtual int vtkPEnSightGoldReader::ReadVectorsPerElement ( const char *  fileName,
const char *  description,
int  timeStep,
vtkMultiBlockDataSet *  output 
)
protectedvirtual

Read vectors per element for this dataset.

If an error occurred, 0 is returned; otherwise 1.

Implements vtkPEnSightReader.

§ ReadTensorsPerElement()

virtual int vtkPEnSightGoldReader::ReadTensorsPerElement ( const char *  fileName,
const char *  description,
int  timeStep,
vtkMultiBlockDataSet *  output 
)
protectedvirtual

Read tensors per element for this dataset.

If an error occurred, 0 is returned; otherwise 1.

Implements vtkPEnSightReader.

§ CreateUnstructuredGridOutput()

virtual int vtkPEnSightGoldReader::CreateUnstructuredGridOutput ( int  partId,
char  line[256],
const char *  name,
vtkMultiBlockDataSet *  output 
)
protectedvirtual

Read an unstructured part (partId) from the geometry file and create a vtkUnstructuredGrid output.

Return 0 if EOF reached. Return -1 if an error occurred.

§ CreateStructuredGridOutput()

virtual int vtkPEnSightGoldReader::CreateStructuredGridOutput ( int  partId,
char  line[256],
const char *  name,
vtkMultiBlockDataSet *  output 
)
protectedvirtual

Read a structured part from the geometry file and create a vtkStructuredGrid output.

Return 0 if EOF reached.

§ CreateRectilinearGridOutput()

int vtkPEnSightGoldReader::CreateRectilinearGridOutput ( int  partId,
char  line[256],
const char *  name,
vtkMultiBlockDataSet *  output 
)
protected

Read a structured part from the geometry file and create a vtkRectilinearGrid output.

Return 0 if EOF reached.

§ CreateImageDataOutput()

int vtkPEnSightGoldReader::CreateImageDataOutput ( int  partId,
char  line[256],
const char *  name,
vtkMultiBlockDataSet *  output 
)
protected

Read a structured part from the geometry file and create a vtkImageData output.

Return 0 if EOF reached.

§ ReadOrSkipCoordinates()

int vtkPEnSightGoldReader::ReadOrSkipCoordinates ( vtkPoints *  points,
long  offset,
int  partId,
int *  lineRead,
char *  line,
bool  skip 
)
protected

Read Coordinates, or just skip the part in the file.

§ InjectCoordinatesAtEnd()

int vtkPEnSightGoldReader::InjectCoordinatesAtEnd ( vtkUnstructuredGrid *  output,
long  coordinatesOffset,
int  partId 
)
protected

Internal method to inject Coordinates and Global Ids at the end of a part read for Unstructured data.

§ SetGeometryFileName()

virtual void vtkPEnSightGoldReader::SetGeometryFileName ( const char *  )
protectedvirtual

Set/Get the Model file name.

§ GetGeometryFileName()

virtual char* vtkPEnSightGoldReader::GetGeometryFileName ( )
protectedvirtual

Set/Get the Model file name.

§ SetMeasuredFileName()

virtual void vtkPEnSightGoldReader::SetMeasuredFileName ( const char *  )
protectedvirtual

Set/Get the Measured file name.

Reimplemented from vtkPEnSightReader.

§ GetMeasuredFileName()

virtual char* vtkPEnSightGoldReader::GetMeasuredFileName ( )
protectedvirtual

Set/Get the Measured file name.

Reimplemented from vtkPEnSightReader.

§ SetMatchFileName()

virtual void vtkPEnSightGoldReader::SetMatchFileName ( const char *  )
protectedvirtual

Set/Get the Match file name.

Reimplemented from vtkPEnSightReader.

§ GetMatchFileName()

virtual char* vtkPEnSightGoldReader::GetMatchFileName ( )
protectedvirtual

Set/Get the Match file name.

Reimplemented from vtkPEnSightReader.

§ CheckForUndefOrPartial()

int vtkPEnSightGoldReader::CheckForUndefOrPartial ( const char *  line)
protected

Skip next line in file if the 'undef' or 'partial' keyword was specified after a sectional keyword.

Member Data Documentation

§ UndefPartial

UndefPartialInternal* vtkPEnSightGoldReader::UndefPartial
protected

Handle the undef / partial support for EnSight gold.

Definition at line 189 of file vtkPEnSightGoldReader.h.

§ NodeIdsListed

int vtkPEnSightGoldReader::NodeIdsListed
protected

Definition at line 191 of file vtkPEnSightGoldReader.h.

§ ElementIdsListed

int vtkPEnSightGoldReader::ElementIdsListed
protected

Definition at line 192 of file vtkPEnSightGoldReader.h.


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