VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkXYZMolReader Class Reference

read Molecular Data files More...

#include <vtkXYZMolReader.h>

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

List of all members.

Public Types

typedef vtkMoleculeReaderBase Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkXYZMolReaderNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual int CanReadFile (const char *name)
virtual void SetTimeStep (int)
virtual int GetTimeStep ()
virtual int GetMaxTimeStep ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkXYZMolReaderSafeDownCast (vtkObjectBase *o)
static vtkXYZMolReaderNew ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkXYZMolReader ()
 ~vtkXYZMolReader ()
void ReadSpecificMolecule (FILE *fp)
char * GetNextLine (FILE *fp, char *line, int maxlen)
int GetLine1 (const char *line, int *cnt)
int GetLine2 (const char *line, char *name)
int GetAtom (const char *line, char *atom, float *x)
void InsertAtom (const char *atom, float *pos)
virtual void SetMaxTimeStep (int)

Protected Attributes

int TimeStep
int MaxTimeStep

Detailed Description

read Molecular Data files

vtkXYZMolReader is a source object that reads Molecule files The FileName must be specified

Thanks:
Dr. Jean M. Favre who developed and contributed this class
Tests:
vtkXYZMolReader (Tests)

Definition at line 35 of file vtkXYZMolReader.h.


Member Typedef Documentation

Reimplemented from vtkMoleculeReaderBase.

Definition at line 38 of file vtkXYZMolReader.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkXYZMolReader::IsTypeOf ( const char *  name) [static]

Return 1 if this class type 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 vtkMoleculeReaderBase.

virtual int vtkXYZMolReader::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 vtkMoleculeReaderBase.

Reimplemented from vtkMoleculeReaderBase.

virtual vtkObjectBase* vtkXYZMolReader::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkMoleculeReaderBase.

Reimplemented from vtkMoleculeReaderBase.

void vtkXYZMolReader::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 vtkMoleculeReaderBase.

static vtkXYZMolReader* vtkXYZMolReader::New ( ) [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkPolyDataAlgorithm.

virtual int vtkXYZMolReader::CanReadFile ( const char *  name) [virtual]

Test whether the file with the given name can be read by this reader.

virtual void vtkXYZMolReader::SetTimeStep ( int  ) [virtual]

Set the current time step. It should be greater than 0 and smaller than MaxTimeStep.

virtual int vtkXYZMolReader::GetTimeStep ( ) [virtual]

Set the current time step. It should be greater than 0 and smaller than MaxTimeStep.

virtual int vtkXYZMolReader::GetMaxTimeStep ( ) [virtual]

Get the maximum time step.

void vtkXYZMolReader::ReadSpecificMolecule ( FILE *  fp) [protected, virtual]

Implements vtkMoleculeReaderBase.

char* vtkXYZMolReader::GetNextLine ( FILE *  fp,
char *  line,
int  maxlen 
) [protected]

Get next line that is not a comment. It returns the beginning of data on line (skips empty spaces)

int vtkXYZMolReader::GetLine1 ( const char *  line,
int cnt 
) [protected]
int vtkXYZMolReader::GetLine2 ( const char *  line,
char *  name 
) [protected]
int vtkXYZMolReader::GetAtom ( const char *  line,
char *  atom,
float x 
) [protected]
void vtkXYZMolReader::InsertAtom ( const char *  atom,
float pos 
) [protected]
virtual void vtkXYZMolReader::SetMaxTimeStep ( int  ) [protected, virtual]

Member Data Documentation

Definition at line 74 of file vtkXYZMolReader.h.

Definition at line 77 of file vtkXYZMolReader.h.


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