EMAN2
|
PointArray defines a double array of points with values in a 3D space. More...
#include <pdbreader.h>
Public Types | |
enum | Density2PointsArrayAlgorithm { PEAKS_SUB , PEAKS_DIV , KMEANS } |
Public Member Functions | |
PDBReader () | |
PDBReader (int nn) | |
~PDBReader () | |
void | zero () |
PDBReader * | copy () |
PDBReader & | operator= (PDBReader &pa) |
size_t | get_number_points () const |
void | set_number_points (size_t nn) |
bool | read_from_pdb (const char *file) |
Reads and parses all information from file. More... | |
void | save_to_pdb (const char *file) const |
Saves all atom information into a pdb in the official format. More... | |
double * | get_points_array () |
Returns the double array of points. More... | |
void | set_points_array (double *p) |
Allows the user to set the double array of points. More... | |
vector< float > | get_points () |
Returns all x,y,z triplets packed into a vector<float> More... | |
void | right_transform (const Transform &transform) |
Does Transform*v as opposed to v*Transform (as in the transform function) More... | |
PointArray * | makePointArray (const PDBReader &p) |
vector< float > | get_x () |
vector< float > | get_y () |
vector< float > | get_z () |
vector< string > | get_atomName () |
vector< string > | get_resName () |
vector< int > | get_resNum () |
Private Attributes | |
double * | points |
vector< int > | pointInfo |
vector< string > | pWords |
vector< string > | atomName |
vector< string > | residueName |
vector< string > | chainId |
vector< string > | elementSym |
vector< string > | tail |
vector< string > | head |
vector< string > | lines |
size_t | n |
int | ter_stop |
int | count_stop |
vector< float > | x |
vector< float > | y |
vector< float > | z |
vector< int > | resNum |
PointArray defines a double array of points with values in a 3D space.
Definition at line 54 of file pdbreader.h.
PDBReader::PDBReader | ( | ) |
|
explicit |
Definition at line 48 of file pdbreader.cpp.
PDBReader::~PDBReader | ( | ) |
PDBReader * PDBReader::copy | ( | ) |
Definition at line 71 of file pdbreader.cpp.
References atomName, chainId, elementSym, get_number_points(), get_points_array(), head, lines, PDBReader(), pointInfo, pWords, residueName, set_number_points(), and tail.
vector< string > PDBReader::get_atomName | ( | ) |
size_t PDBReader::get_number_points | ( | ) | const |
Definition at line 99 of file pdbreader.cpp.
References n.
Referenced by copy(), operator=(), and read_from_pdb().
vector< float > PDBReader::get_points | ( | ) |
Returns all x,y,z triplets packed into a vector<float>
Definition at line 308 of file pdbreader.cpp.
double * PDBReader::get_points_array | ( | ) |
Returns the double array of points.
Definition at line 113 of file pdbreader.cpp.
References points.
Referenced by copy(), and operator=().
vector< string > PDBReader::get_resName | ( | ) |
Definition at line 153 of file pdbreader.cpp.
References residueName.
vector< int > PDBReader::get_resNum | ( | ) |
vector< float > PDBReader::get_x | ( | ) |
Definition at line 126 of file pdbreader.cpp.
References atomName, count_stop, pointInfo, points, resNum, x, y, and z.
vector< float > PDBReader::get_y | ( | ) |
Definition at line 139 of file pdbreader.cpp.
References y.
vector< float > PDBReader::get_z | ( | ) |
PointArray * PDBReader::makePointArray | ( | const PDBReader & | p | ) |
Definition at line 331 of file pdbreader.cpp.
References EMAN::PointArray::read_from_pdb(), and save_to_pdb().
Definition at line 90 of file pdbreader.cpp.
References get_number_points(), get_points_array(), and set_number_points().
bool PDBReader::read_from_pdb | ( | const char * | file | ) |
Reads and parses all information from file.
The | .pdb file that you want to read from |
Definition at line 163 of file pdbreader.cpp.
References atomName, chainId, count_stop, elementSym, get_number_points(), head, lines, pointInfo, points, pWords, residueName, set_number_points(), tail, ter_stop, x, y, and z.
void PDBReader::right_transform | ( | const Transform & | transform | ) |
Does Transform*v as opposed to v*Transform (as in the transform function)
transform | an EMAN2 Transform object |
Definition at line 320 of file pdbreader.cpp.
References n, points, and EMAN::Transform::transpose().
void PDBReader::save_to_pdb | ( | const char * | file | ) | const |
Saves all atom information into a pdb in the official format.
The | file that you want the pdb info written to |
Definition at line 280 of file pdbreader.cpp.
References lines, pointInfo, points, and pWords.
Referenced by makePointArray().
void PDBReader::set_number_points | ( | size_t | nn | ) |
Definition at line 105 of file pdbreader.cpp.
Referenced by copy(), operator=(), and read_from_pdb().
void PDBReader::set_points_array | ( | double * | p | ) |
Allows the user to set the double array of points.
A | double array of points |
Definition at line 118 of file pdbreader.cpp.
References points.
void PDBReader::zero | ( | ) |
|
private |
Definition at line 120 of file pdbreader.h.
Referenced by copy(), get_atomName(), get_x(), and read_from_pdb().
|
private |
Definition at line 122 of file pdbreader.h.
Referenced by copy(), and read_from_pdb().
|
private |
Definition at line 129 of file pdbreader.h.
Referenced by get_x(), and read_from_pdb().
|
private |
Definition at line 123 of file pdbreader.h.
Referenced by copy(), and read_from_pdb().
|
private |
Definition at line 125 of file pdbreader.h.
Referenced by copy(), and read_from_pdb().
|
private |
Definition at line 126 of file pdbreader.h.
Referenced by copy(), read_from_pdb(), and save_to_pdb().
|
private |
Definition at line 127 of file pdbreader.h.
Referenced by get_number_points(), get_points(), PDBReader(), right_transform(), set_number_points(), and zero().
|
private |
Definition at line 118 of file pdbreader.h.
Referenced by copy(), get_x(), read_from_pdb(), and save_to_pdb().
|
private |
Definition at line 117 of file pdbreader.h.
Referenced by get_points(), get_points_array(), get_x(), PDBReader(), read_from_pdb(), right_transform(), save_to_pdb(), set_number_points(), set_points_array(), zero(), and ~PDBReader().
|
private |
Definition at line 119 of file pdbreader.h.
Referenced by copy(), read_from_pdb(), and save_to_pdb().
|
private |
Definition at line 121 of file pdbreader.h.
Referenced by copy(), get_resName(), and read_from_pdb().
|
private |
Definition at line 134 of file pdbreader.h.
Referenced by get_resNum(), and get_x().
|
private |
Definition at line 124 of file pdbreader.h.
Referenced by copy(), and read_from_pdb().
|
private |
Definition at line 128 of file pdbreader.h.
Referenced by PDBReader(), and read_from_pdb().
|
private |
Definition at line 131 of file pdbreader.h.
Referenced by get_x(), and read_from_pdb().
|
private |
Definition at line 132 of file pdbreader.h.
Referenced by get_x(), get_y(), and read_from_pdb().
|
private |
Definition at line 133 of file pdbreader.h.
Referenced by get_x(), get_z(), and read_from_pdb().