#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <math.h>
#include <string.h>
#include "molfile_plugin.h"
#include "endianswap.h"
Go to the source code of this file.
Compounds | |
struct | ccp4_t |
struct | uchar3 |
Defines | |
#define | M_PI 3.14159265358979323846 |
#define | CCP4HDSIZE 1024 |
#define | MRC_TYPE_BYTE 0 |
#define | MRC_TYPE_SHORT 1 |
#define | MRC_TYPE_FLOAT 2 |
#define | MRC_TYPE_SHORT2 3 |
#define | MRC_TYPE_FLOAT2 4 |
#define | MRC_TYPE_USHORT 6 |
#define | MRC_TYPE_UCHAR3 16 |
#define | DATA_FLAG_SIGNED 0x1 |
#define | DATA_FLAG_IMOD_FORMAT 0x2 |
#define | IMOD_FILE_ID 0x494d4f44 |
#define | IMOD_MAGIC_STAMP 1146047817 |
#define | IMOD_FLAG_SIGNED 0x1 |
#define | IMOD_FLAG_HEADER_SPACING 0x2 |
#define | IMOD_FLAG_ORIGIN_INVERTED_SIGN 0x4 |
Functions | |
void * | open_ccp4_read (const char *filepath, const char *filetype, int *natoms) |
int | read_ccp4_metadata (void *v, int *nsets, molfile_volumetric_t **metadata) |
int | read_ccp4_data (void *v, int set, float *datablock, float *colorblock) |
void | close_ccp4_read (void *v) |
VMDPLUGIN_API int | VMDPLUGIN_init (void) |
VMDPLUGIN_API int | VMDPLUGIN_register (void *v, vmdplugin_register_cb cb) |
VMDPLUGIN_API int | VMDPLUGIN_fini (void) |
Variables | |
molfile_plugin_t | plugin |
|
Definition at line 48 of file ccp4plugin.C. Referenced by open_ccp4_read. |
|
Definition at line 63 of file ccp4plugin.C. Referenced by open_ccp4_read. |
|
Definition at line 62 of file ccp4plugin.C. Referenced by open_ccp4_read, and read_ccp4_data. |
|
Definition at line 66 of file ccp4plugin.C. |
|
Definition at line 69 of file ccp4plugin.C. Referenced by open_ccp4_read. |
|
Definition at line 70 of file ccp4plugin.C. Referenced by open_ccp4_read. |
|
Definition at line 68 of file ccp4plugin.C. Referenced by open_ccp4_read. |
|
Definition at line 67 of file ccp4plugin.C. Referenced by open_ccp4_read. |
|
Definition at line 42 of file ccp4plugin.C. Referenced by open_ccp4_read. |
|
Definition at line 53 of file ccp4plugin.C. Referenced by open_ccp4_read, and read_ccp4_data. |
|
Definition at line 55 of file ccp4plugin.C. Referenced by open_ccp4_read, and read_ccp4_data. |
|
Definition at line 57 of file ccp4plugin.C. Referenced by open_ccp4_read. |
|
Definition at line 54 of file ccp4plugin.C. Referenced by open_ccp4_read, and read_ccp4_data. |
|
Definition at line 56 of file ccp4plugin.C. Referenced by open_ccp4_read, and read_ccp4_data. |
|
Definition at line 59 of file ccp4plugin.C. Referenced by open_ccp4_read, and read_ccp4_data. |
|
Definition at line 58 of file ccp4plugin.C. Referenced by open_ccp4_read, and read_ccp4_data. |
|
Definition at line 791 of file ccp4plugin.C. References ccp4_t::fd, and ccp4_t::vol. Referenced by VMDPLUGIN_init. |
|
|
Definition at line 575 of file ccp4plugin.C. References uchar3::blue, DATA_FLAG_SIGNED, ccp4_t::dataflags, ccp4_t::dataOffset, ccp4_t::fd, uchar3::green, MOLFILE_ERROR, MRC_TYPE_BYTE, MRC_TYPE_FLOAT, MRC_TYPE_SHORT, MRC_TYPE_SHORT2, MRC_TYPE_UCHAR3, MRC_TYPE_USHORT, uchar3::red, ccp4_t::swap, swap2_aligned, swap4_aligned, ccp4_t::vol, ccp4_t::voxtype, molfile_volumetric_t::xsize, ccp4_t::xyz2crs, molfile_volumetric_t::ysize, and molfile_volumetric_t::zsize. Referenced by VMDPLUGIN_init. |
|
Definition at line 566 of file ccp4plugin.C. References ccp4_t::nsets, and ccp4_t::vol. Referenced by VMDPLUGIN_init. |
|
Definition at line 828 of file ccp4plugin.C. References VMDPLUGIN_API, and VMDPLUGIN_SUCCESS. |
|
|
Definition at line 823 of file ccp4plugin.C. References VMDPLUGIN_API, vmdplugin_register_cb, and VMDPLUGIN_SUCCESS. |
|
Definition at line 802 of file ccp4plugin.C. |