Bioplib
Protein Structure C Library
|
#include <stdio.h>
#include <math.h>
#include "SysDefs.h"
#include "MathType.h"
#include "pdb.h"
#include "fsscanf.h"
Go to the source code of this file.
Macros | |
#define | MAXBUFF 160 |
Functions | |
int | blGetCrystPDB (FILE *fp, VEC3F *UnitCell, VEC3F *CellAngles, char *spacegroup, REAL OrigMatrix[3][4], REAL ScaleMatrix[3][4]) |
int | blGetCrystWholePDB (WHOLEPDB *wpdb, VEC3F *UnitCell, VEC3F *CellAngles, char *spacegroup, REAL OrigMatrix[3][4], REAL ScaleMatrix[3][4]) |
This code is NOT IN THE PUBLIC DOMAIN, but it may be copied according to the conditions laid out in the accompanying file COPYING.DOC.
The code may be modified as required, but any modifications must be documented so that the person responsible can be identified.
The code may not be sold commercially or included as part of a commercial product except as described in the file COPYING.DOC.
Definition in file GetCrystPDB.c.
#define MAXBUFF 160 |
Definition at line 78 of file GetCrystPDB.c.
int blGetCrystPDB | ( | FILE * | fp, |
VEC3F * | UnitCell, | ||
VEC3F * | CellAngles, | ||
char * | spacegroup, | ||
REAL | OrigMatrix[3][4], | ||
REAL | ScaleMatrix[3][4] | ||
) |
[in] | *fp | Input file pointer |
[out] | *UnitCell | The unit cell dimensions |
[out] | *CellAngles | The unit cell angles |
[out] | *spacegroup | The spacegroup |
[out] | OrigMatrix | The origin matrix |
[out] | ScaleMatrix | The scale matrix |
Flags for elements read: 0: Nothing at all XTAL_DATA_CRYST: Unit cell XTAL_DATA_ORIGX: Origin matrix XTAL_DATA_SCALE: Scale matrix (These are ORed together)
Read the crystal parameters (unit cell, spacegroup, origin and scale matrices) out of a PDB file.
Stops searching as soon as an ATOM or HETATM record is hit and leaves the file in a state ready for ReadPDB() to do it's stuff (i.e. with the current file pointer at the first ATOM or HETATM record).
Definition at line 122 of file GetCrystPDB.c.
int blGetCrystWholePDB | ( | WHOLEPDB * | wpdb, |
VEC3F * | UnitCell, | ||
VEC3F * | CellAngles, | ||
char * | spacegroup, | ||
REAL | OrigMatrix[3][4], | ||
REAL | ScaleMatrix[3][4] | ||
) |
[in] | *wpdb | Whole PDB pointer |
[out] | *UnitCell | The unit cell dimensions |
[out] | *CellAngles | The unit cell angles |
[out] | *spacegroup | The spacegroup |
[out] | OrigMatrix | The origin matrix |
[out] | ScaleMatrix | The scale matrix |
Flags for elements read: 0: Nothing at all XTAL_DATA_CRYST: Unit cell XTAL_DATA_ORIGX: Origin matrix XTAL_DATA_SCALE: Scale matrix (These are ORed together)
Read the crystal parameters (unit cell, spacegroup, origin and scale matrices) out of a PDB file.
Stops searching as soon as an ATOM or HETATM record is hit and leaves the file in a state ready for ReadPDB() to do it's stuff (i.e. with the current file pointer at the first ATOM or HETATM record).
Definition at line 293 of file GetCrystPDB.c.