VTK
9.0.1
IO
Geometry
vtkXYZMolReader.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkXYZMolReader.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10
This software is distributed WITHOUT ANY WARRANTY; without even
11
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12
PURPOSE. See the above copyright notice for more information.
13
14
=========================================================================*/
26
#ifndef vtkXYZMolReader_h
27
#define vtkXYZMolReader_h
28
29
#include "vtkIOGeometryModule.h"
// For export macro
30
#include "
vtkMoleculeReaderBase.h
"
31
32
class
VTKIOGEOMETRY_EXPORT
vtkXYZMolReader
:
public
vtkMoleculeReaderBase
33
{
34
public
:
35
vtkTypeMacro(
vtkXYZMolReader
,
vtkMoleculeReaderBase
);
36
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
37
38
static
vtkXYZMolReader
*
New
();
39
44
virtual
int
CanReadFile(
const
char
*
name
);
45
47
51
vtkSetMacro(TimeStep,
int
);
52
vtkGetMacro(TimeStep,
int
);
54
56
59
vtkGetMacro(MaxTimeStep,
int
);
61
62
protected
:
63
vtkXYZMolReader
();
64
~
vtkXYZMolReader
()
override
;
65
66
void
ReadSpecificMolecule
(FILE* fp)
override
;
67
72
char
* GetNextLine(FILE* fp,
char
* line,
int
maxlen);
73
74
int
GetLine1(
const
char
* line,
int
* cnt);
75
int
GetLine2(
const
char
* line,
char
*
name
);
76
int
GetAtom(
const
char
* line,
char
* atom,
float
* x);
77
78
void
InsertAtom(
const
char
* atom,
float
* pos);
79
80
vtkSetMacro(MaxTimeStep,
int
);
81
82
int
TimeStep
;
83
int
MaxTimeStep
;
84
85
private
:
86
vtkXYZMolReader
(
const
vtkXYZMolReader
&) =
delete
;
87
void
operator=(
const
vtkXYZMolReader
&) =
delete
;
88
};
89
90
#endif
vtkXYZMolReader::TimeStep
int TimeStep
Definition:
vtkXYZMolReader.h:80
vtkXYZMolReader::MaxTimeStep
int MaxTimeStep
Definition:
vtkXYZMolReader.h:83
vtkMoleculeReaderBase::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkMoleculeReaderBase
read Molecular Data files
Definition:
vtkMoleculeReaderBase.h:41
vtkMoleculeReaderBase::ReadSpecificMolecule
virtual void ReadSpecificMolecule(FILE *fp)=0
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkXYZMolReader
read Molecular Data files
Definition:
vtkXYZMolReader.h:32
vtkX3D::name
@ name
Definition:
vtkX3D.h:225
vtkMoleculeReaderBase.h
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
Generated on Thu Jun 24 2021 15:17:26 for VTK by
1.8.17