VMTK
Loading...
Searching...
No Matches
vtkvmtkXdaReader Class Reference

Reads libmesh Xda files. More...

#include <vtkvmtkXdaReader.h>

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

Public Types

typedef vtkUnstructuredGridReader Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkvmtkXdaReader * NewInstance () const
void PrintSelf (std::ostream &os, vtkIndent indent) override
int ReadMeshSimple (const std::string &fname, vtkDataObject *output) override
virtual void SetBoundaryDataArrayName (const char *)
virtual char * GetBoundaryDataArrayName ()

Static Public Member Functions

static vtkvmtkXdaReader * New ()
static int IsTypeOf (const char *type)
static vtkvmtkXdaReader * SafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 vtkvmtkXdaReader ()
 ~vtkvmtkXdaReader ()

Static Protected Member Functions

static void GetLibmeshConnectivity (int cellType, vtkIdList *libmeshConnectivity)

Protected Attributes

char * BoundaryDataArrayName

Detailed Description

Reads libmesh Xda files.

vtkvmtkXdaReader is intended to read unstructured grid data from the libmesh Xda ASCII mesh format (the counterpart of vtkvmtkXdaWriter). Currently ReadMeshSimple() is a stub that does not parse the file; the "xda" format option of the vmtkmeshreader pype script explicitly reports it as not yet implemented and refuses to use this class.

See also
vtkvmtkXdaWriter

Definition at line 46 of file vtkvmtkXdaReader.h.

Member Typedef Documentation

◆ Superclass

typedef vtkUnstructuredGridReader vtkvmtkXdaReader::Superclass

Definition at line 50 of file vtkvmtkXdaReader.h.

Constructor & Destructor Documentation

◆ vtkvmtkXdaReader()

vtkvmtkXdaReader::vtkvmtkXdaReader ( )
protected

Definition at line 38 of file vtkvmtkXdaReader.cxx.

39{
40 this->BoundaryDataArrayName = NULL;
41}

◆ ~vtkvmtkXdaReader()

vtkvmtkXdaReader::~vtkvmtkXdaReader ( )
protected

Definition at line 43 of file vtkvmtkXdaReader.cxx.

44{
45 if (this->BoundaryDataArrayName)
46 {
47 delete[] this->BoundaryDataArrayName;
48 this->BoundaryDataArrayName = NULL;
49 }
50}

Member Function Documentation

◆ New()

vtkvmtkXdaReader * vtkvmtkXdaReader::New ( )
static

◆ IsTypeOf()

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

◆ IsA()

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

◆ SafeDownCast()

vtkvmtkXdaReader * vtkvmtkXdaReader::SafeDownCast ( vtkObjectBase * o)
static

◆ NewInstanceInternal()

virtual vtkObjectBase * vtkvmtkXdaReader::NewInstanceInternal ( ) const
protectedvirtual

◆ NewInstance()

vtkvmtkXdaReader * vtkvmtkXdaReader::NewInstance ( ) const

◆ PrintSelf()

void vtkvmtkXdaReader::PrintSelf ( std::ostream & os,
vtkIndent indent )
override

Definition at line 69 of file vtkvmtkXdaReader.cxx.

70{
71 vtkUnstructuredGridReader::PrintSelf(os,indent);
72}

◆ SetBoundaryDataArrayName()

virtual void vtkvmtkXdaReader::SetBoundaryDataArrayName ( const char * )
virtual

Set/get the name of the cell data array intended to hold boundary marker values (mirroring vtkvmtkXdaWriter::BoundaryDataArrayName). Unused while ReadMeshSimple() remains a stub. Commonly named "CellEntityIds".

◆ GetBoundaryDataArrayName()

virtual char * vtkvmtkXdaReader::GetBoundaryDataArrayName ( )
virtual

Set/get the name of the cell data array intended to hold boundary marker values (mirroring vtkvmtkXdaWriter::BoundaryDataArrayName). Unused while ReadMeshSimple() remains a stub. Commonly named "CellEntityIds".

◆ ReadMeshSimple()

int vtkvmtkXdaReader::ReadMeshSimple ( const std::string & fname,
vtkDataObject * output )
override

Definition at line 52 of file vtkvmtkXdaReader.cxx.

54{
55
56 vtkDebugMacro(<<"Reading Xda file...");
57
58 vtkUnstructuredGrid* output = vtkUnstructuredGrid::SafeDownCast(doOutput);
59
60 if(fname.empty())
61 {
62 vtkErrorMacro(<<"Input filename not set");
63 return 1;
64 }
65
66 return 1;
67}

◆ GetLibmeshConnectivity()

void vtkvmtkXdaReader::GetLibmeshConnectivity ( int cellType,
vtkIdList * libmeshConnectivity )
staticprotected

Member Data Documentation

◆ BoundaryDataArrayName

char* vtkvmtkXdaReader::BoundaryDataArrayName
protected

Definition at line 71 of file vtkvmtkXdaReader.h.


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