ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/visitors/OtherVisitor.hpp
(Generate patch)

Comparing:
trunk/src/visitors/OtherVisitor.hpp (file contents), Revision 1455 by gezelter, Thu Jun 24 20:44:18 2010 UTC vs.
branches/development/src/visitors/OtherVisitor.hpp (file contents), Revision 1874 by gezelter, Wed May 15 15:09:35 2013 UTC

# Line 35 | Line 35
35   *                                                                      
36   * [1]  Meineke, et al., J. Comp. Chem. 26, 252-271 (2005).            
37   * [2]  Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006).          
38 < * [3]  Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008).          
39 < * [4]  Vardeman & Gezelter, in progress (2009).                        
38 > * [3]  Sun, Lin & Gezelter, J. Chem. Phys. 128, 234107 (2008).          
39 > * [4]  Kuang & Gezelter,  J. Chem. Phys. 133, 164101 (2010).
40 > * [5]  Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011).
41   */
42  
43   #ifndef VISITORS_OTHERVISITOR_HPP
# Line 113 | Line 114 | namespace OpenMD {
114      
115      void writeFrame(std::ostream& outStream);    
116      void clear() {frame.clear();}
117 <    void setPosOnly(bool posOnly){posOnly_ = posOnly;}
117 >    void doPositions(bool pos) {doPositions_ = pos;}
118 >    void doVelocities(bool vel) {doVelocities_ = vel;}
119 >    void doForces(bool frc) {doForces_ = frc;}
120 >    void doVectors(bool vec) {doVectors_ = vec;}
121 >    void doCharges(bool chg) {doCharges_ = chg;}
122 >    void doElectricFields(bool efl) {doElectricFields_ = efl;}
123 >
124    protected:
125      void internalVisit(StuntDouble* sd);
126      bool isSelected(StuntDouble* sd);
# Line 125 | Line 132 | namespace OpenMD {
132      SelectionManager seleMan;
133      SelectionEvaluator evaluator;
134      std::vector<std::string> frame;
135 <    bool posOnly_;
135 >    bool doPositions_;
136 >    bool doVelocities_;
137 >    bool doForces_;
138 >    bool doVectors_;
139 >    bool doCharges_;
140 >    bool doElectricFields_;
141    };
142  
143  
# Line 134 | Line 146 | namespace OpenMD {
146      PrepareVisitor() : BaseVisitor() {visitorName = "prepareVisitor";}
147  
148      virtual void visit(Atom* atom) {internalVisit(atom);}
149 <    virtual void visit(DirectionalAtom* datom) {internalVisit((Atom*)datom);}
149 >    virtual void visit(DirectionalAtom* datom) {internalVisit(reinterpret_cast<Atom*>(datom));}
150      virtual void visit(RigidBody* rb) {internalVisit(rb);}
151  
152      virtual const std::string toString();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines