Package gov.nih.mipav.model.structures
Class Voro.c_loop_order
java.lang.Object
gov.nih.mipav.model.structures.Voro.c_loop_base
gov.nih.mipav.model.structures.Voro.c_loop_order
- Enclosing class:
Voro
\brief Class for looping over all of the particles specified in a
pre-assembled particle_order class.
The particle_order class can be used to create a specific order of particles
within the container. This class can then loop over these particles in this
order. The class is particularly useful in cases where the ordering of the
output must match the ordering of particles as they were inserted into the
container.
-
Field Summary
FieldsModifier and TypeFieldDescriptionint[]A pointer to the current position in the ordering class.private intThe number of computational blocks in the x direction.private intThe number of computational blocks in a z-slice.A reference to the ordering class to use. -
Constructor Summary
ConstructorsConstructorDescriptionThe constructor copies several necessary constants from the base class, and sets up a reference to the ordering class to use. -
Method Summary
-
Field Details
-
vo
A reference to the ordering class to use. -
cp
public int[] cpA pointer to the current position in the ordering class. -
nx
private int nxThe number of computational blocks in the x direction. -
nxy
private int nxyThe number of computational blocks in a z-slice.
-
-
Constructor Details
-
c_loop_order
The constructor copies several necessary constants from the base class, and sets up a reference to the ordering class to use. \param[in] con the container class to use. \param[in] vo_ the ordering class to use. -
c_loop_order
-
-
Method Details
-
start
public boolean start()Sets the class to consider the first particle. \return True if there is any particle to consider, false otherwise. -
inc
public boolean inc()Finds the next particle to test. \return True if there is another particle, false if no more particles are available. -
decode
private void decode()Takes the current block index and computes indices in the x, y, and z directions.
-