org.proteinshader.structure.visitor
Class BoundsVisitor
java.lang.Object
org.proteinshader.structure.visitor.Visitor
org.proteinshader.structure.visitor.BoundsVisitor
public class BoundsVisitor
- extends Visitor
Knows how to find the min and max xyz-coordinate values for all Atoms
in each Model.
Method Summary |
void |
visit(Atom atom)
Checks xyz-coordinates to look for any new min or new max. |
void |
visit(Model model)
Finds the min and max values for x, y, and z of the Model and then
calls setter methods on the Model so that these values are
remembered. |
Methods inherited from class org.proteinshader.structure.visitor.Visitor |
clear, includeAAHetAndWater, setDebug, setMode, setMode, setMode, setMode, setMode, setMode, setVisitSegments, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BoundsVisitor
public BoundsVisitor()
- Constructs a BoundsVisitor.
visit
public void visit(Model model)
throws VisitorException
- Finds the min and max values for x, y, and z of the Model and then
calls setter methods on the Model so that these values are
remembered.
- Overrides:
visit
in class Visitor
- Parameters:
model
- the Model to test.
- Throws:
VisitorException
- if an error occurs during the traversal.
visit
public void visit(Atom atom)
throws VisitorException
- Checks xyz-coordinates to look for any new min or new max.
- Overrides:
visit
in class Visitor
- Parameters:
atom
- the Atom to test.
- Throws:
VisitorException
- if an error occurs during the traversal.
Copyright © 2007-2008