Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

VolMapCreateMask Class Reference

#include <VolMapCreate.h>

Inheritance diagram for VolMapCreateMask:

VolMapCreate List of all members.

Public Methods

 VolMapCreateMask (VMDApp *app, AtomSel *sel, float res, float the_atomradius)

Protected Methods

int compute_init ()
 This creates a "mask", i.e. a map that is either 1 or 0 and can be multiplied to another map in order to isolate a particular region in space. Currently, the mask is created by painting a sphere of radius 5 around each selected atom. More...

int compute_frame (int frame, float *voldata)

Constructor & Destructor Documentation

VolMapCreateMask::VolMapCreateMask VMDApp   app,
AtomSel   sel,
float    res,
float    the_atomradius
[inline]
 

Definition at line 100 of file VolMapCreate.h.

References VolMapCreate::app, and VolMapCreate::sel.


Member Function Documentation

int VolMapCreateMask::compute_frame int    frame,
float *    voldata
[protected, virtual]
 

Implements VolMapCreate.

Definition at line 463 of file VolMapCreate.C.

References VolMapCreate::app, VolumetricData::cell_axes, AtomSel::change, AtomSel::coordinates, VolMapCreate::delta, AtomSel::firstsel, GRIDSIZEX, AtomSel::lastsel, MAX, MIN, MoleculeList::mol_from_id, VMDApp::moleculeList, AtomSel::molid, n, NULL, AtomSel::on, VolumetricData::origin, VolMapCreate::sel, VolMapCreate::volmap, AtomSel::which_frame, VolumetricData::xsize, VolumetricData::ysize, and VolumetricData::zsize.

int VolMapCreateMask::compute_init   [protected, virtual]
 

This creates a "mask", i.e. a map that is either 1 or 0 and can be multiplied to another map in order to isolate a particular region in space. Currently, the mask is created by painting a sphere of radius 5 around each selected atom.

Reimplemented from VolMapCreate.

Definition at line 454 of file VolMapCreate.C.

References AtomSel::cmdStr, VolMapCreate::compute_init, VolMapCreate::sel, VolumetricData::set_name, and VolMapCreate::volmap.


The documentation for this class was generated from the following files:
Generated on Fri Nov 8 02:47:29 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002