vtkbone
Public Types | Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | List of all members
AbaqusInputReaderHelper Class Reference

A class to read Abaqus Data files. More...

#include <AbaqusInputReaderHelper.h>

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

Public Types

typedef void(* messageHandler_t) (vtkObject *, const std::string &)
 
- Public Types inherited from CommandStyleFileReader
typedef int(CommandStyleFileReader::* CommandHandler_t) ()
 
typedef std::map< std::string, CommandHandler_tCommandContext_t
 

Public Member Functions

 AbaqusInputReaderHelper (std::istream &stream, long streamSize, vtkAlgorithm *boss, vtkboneFiniteElementModel *model)
 
int GetAbortStatus ()
 
void RegisterMessageObject (vtkObject *obj, messageHandler_t debugCall, messageHandler_t warningCall)
 
- Public Member Functions inherited from CommandStyleFileReader
 CommandStyleFileReader (std::istream &stream)
 
virtual int Read ()
 
virtual void DebugOn ()
 
virtual void DebugOff ()
 
virtual void SetDebug (int d)
 
int GetErrorStatus ()
 
const char * GetErrorMsg ()
 

Static Public Attributes

static const int progessInterval = 1000
 

Protected Types

typedef std::map< std::string, std::string > parameters_t
 

Protected Member Functions

virtual int Finish ()
 
virtual void DebugMessage (const std::string &msg)
 
virtual void WarningMessage (const std::string &msg)
 
int GetLine ()
 
int IsCommand ()
 
int IsCommentLine ()
 
int Read_HEADING ()
 
int Read_NODE ()
 
int Read_ELEMENT ()
 
int Read_NSET ()
 
int Read_ELSET ()
 
int Read_MATERIAL ()
 
int Read_ELASTIC ()
 
int Read_SOLID_SECTION ()
 
int Read_STEP ()
 
int Read_STATIC ()
 
int Read_BOUNDARY ()
 
int Read_CLOAD ()
 
int Read_END_STEP ()
 
- Protected Member Functions inherited from CommandStyleFileReader
int RegisterCommandHandler (const char *commandName, CommandHandler_t handler)
 
virtual int CallCommandHandler (CommandHandler_t handler)
 
virtual int FindCommand ()
 
virtual int ProcessCommand ()
 
virtual void SetError (const std::string &msg)
 

Protected Attributes

vtkObjectmessageObject
 
messageHandler_t debugHandler
 
messageHandler_t warningHandler
 
long streamSize
 
vtkAlgorithmboss
 
vtkboneFiniteElementModelmodel
 
int abortExecute
 
parameters_t parameters
 
std::string currentMaterial
 
std::string allElementsSet
 
- Protected Attributes inherited from CommandStyleFileReader
std::istream & stream
 
std::string commandName
 
long lineCount
 
int repeatLastCommand
 
std::string line
 
std::stack< CommandContext_tcommandContextStack
 
int debug
 
int errorStatus
 
std::string errorMsg
 

Detailed Description

A class to read Abaqus Data files.

The data will be written in a VTK object of type vtkboneFiniteElementModel.

This object is not itself a VTK object and is intended to be encapsulated inside a VTK obect (vtkboneAbaqusInputReader). The purpose of this keep to public interface of vtkboneAbaqusInputReader as simple as possible. As well, this hides from the VTK interface C++ STL objects that are used for the implementation. Having them publically visible in the interface would break wrapping (python and TK).

This object supports only a limited subset of Abaqus element types, namely what we have needed.

Definition at line 38 of file AbaqusInputReaderHelper.h.

Member Typedef Documentation

◆ messageHandler_t

typedef void(* AbaqusInputReaderHelper::messageHandler_t) (vtkObject *, const std::string &)

Definition at line 61 of file AbaqusInputReaderHelper.h.

◆ parameters_t

typedef std::map<std::string, std::string> AbaqusInputReaderHelper::parameters_t
protected

Definition at line 110 of file AbaqusInputReaderHelper.h.

Constructor & Destructor Documentation

◆ AbaqusInputReaderHelper()

AbaqusInputReaderHelper::AbaqusInputReaderHelper ( std::istream &  stream,
long  streamSize,
vtkAlgorithm boss,
vtkboneFiniteElementModel model 
)

Member Function Documentation

◆ GetAbortStatus()

int AbaqusInputReaderHelper::GetAbortStatus ( )
inline

Definition at line 58 of file AbaqusInputReaderHelper.h.

◆ RegisterMessageObject()

void AbaqusInputReaderHelper::RegisterMessageObject ( vtkObject obj,
messageHandler_t  debugCall,
messageHandler_t  warningCall 
)

◆ Finish()

virtual int AbaqusInputReaderHelper::Finish ( )
protectedvirtual

Reimplemented from CommandStyleFileReader.

◆ DebugMessage()

virtual void AbaqusInputReaderHelper::DebugMessage ( const std::string &  msg)
protectedvirtual

Reimplemented from CommandStyleFileReader.

◆ WarningMessage()

virtual void AbaqusInputReaderHelper::WarningMessage ( const std::string &  msg)
protectedvirtual

Reimplemented from CommandStyleFileReader.

◆ GetLine()

int AbaqusInputReaderHelper::GetLine ( )
protectedvirtual

Reimplemented from CommandStyleFileReader.

◆ IsCommand()

int AbaqusInputReaderHelper::IsCommand ( )
protectedvirtual

◆ IsCommentLine()

int AbaqusInputReaderHelper::IsCommentLine ( )
protectedvirtual

◆ Read_HEADING()

int AbaqusInputReaderHelper::Read_HEADING ( )
protected

◆ Read_NODE()

int AbaqusInputReaderHelper::Read_NODE ( )
protected

◆ Read_ELEMENT()

int AbaqusInputReaderHelper::Read_ELEMENT ( )
protected

◆ Read_NSET()

int AbaqusInputReaderHelper::Read_NSET ( )
protected

◆ Read_ELSET()

int AbaqusInputReaderHelper::Read_ELSET ( )
protected

◆ Read_MATERIAL()

int AbaqusInputReaderHelper::Read_MATERIAL ( )
protected

◆ Read_ELASTIC()

int AbaqusInputReaderHelper::Read_ELASTIC ( )
protected

◆ Read_SOLID_SECTION()

int AbaqusInputReaderHelper::Read_SOLID_SECTION ( )
protected

◆ Read_STEP()

int AbaqusInputReaderHelper::Read_STEP ( )
protected

◆ Read_STATIC()

int AbaqusInputReaderHelper::Read_STATIC ( )
protected

◆ Read_BOUNDARY()

int AbaqusInputReaderHelper::Read_BOUNDARY ( )
protected

◆ Read_CLOAD()

int AbaqusInputReaderHelper::Read_CLOAD ( )
protected

◆ Read_END_STEP()

int AbaqusInputReaderHelper::Read_END_STEP ( )
protected

Member Data Documentation

◆ progessInterval

const int AbaqusInputReaderHelper::progessInterval = 1000
static

Definition at line 43 of file AbaqusInputReaderHelper.h.

◆ messageObject

vtkObject* AbaqusInputReaderHelper::messageObject
protected

Definition at line 101 of file AbaqusInputReaderHelper.h.

◆ debugHandler

messageHandler_t AbaqusInputReaderHelper::debugHandler
protected

Definition at line 102 of file AbaqusInputReaderHelper.h.

◆ warningHandler

messageHandler_t AbaqusInputReaderHelper::warningHandler
protected

Definition at line 103 of file AbaqusInputReaderHelper.h.

◆ streamSize

long AbaqusInputReaderHelper::streamSize
protected

Definition at line 105 of file AbaqusInputReaderHelper.h.

◆ boss

vtkAlgorithm* AbaqusInputReaderHelper::boss
protected

Definition at line 106 of file AbaqusInputReaderHelper.h.

◆ model

vtkboneFiniteElementModel* AbaqusInputReaderHelper::model
protected

Definition at line 107 of file AbaqusInputReaderHelper.h.

◆ abortExecute

int AbaqusInputReaderHelper::abortExecute
protected

Definition at line 108 of file AbaqusInputReaderHelper.h.

◆ parameters

parameters_t AbaqusInputReaderHelper::parameters
protected

Definition at line 111 of file AbaqusInputReaderHelper.h.

◆ currentMaterial

std::string AbaqusInputReaderHelper::currentMaterial
protected

Definition at line 113 of file AbaqusInputReaderHelper.h.

◆ allElementsSet

std::string AbaqusInputReaderHelper::allElementsSet
protected

Definition at line 114 of file AbaqusInputReaderHelper.h.


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