OpenMD  2.5
Molecular Dynamics in the Open
OpenMD::XYZVisitor Class Reference

#include <OtherVisitor.hpp>

Inheritance diagram for OpenMD::XYZVisitor:
OpenMD::BaseVisitor

Public Member Functions

 XYZVisitor (SimInfo *info)
 
 XYZVisitor (SimInfo *info, const std::string &script)
 
virtual void visit (Atom *atom)
 
virtual void visit (DirectionalAtom *datom)
 
virtual void visit (RigidBody *rb)
 
virtual void update ()
 
virtual const std::string toString ()
 
void writeFrame (std::ostream &outStream)
 
void clear ()
 
void doPositions (bool pos)
 
void doVelocities (bool vel)
 
void doForces (bool frc)
 
void doVectors (bool vec)
 
void doCharges (bool chg)
 
void doElectricFields (bool efl)
 
- Public Member Functions inherited from OpenMD::BaseVisitor
virtual ~BaseVisitor ()
 
virtual void visit (Bond *bond)
 
virtual void visit (Bend *bend)
 
virtual void visit (Torsion *torsion)
 
virtual void visit (Inversion *inversion)
 
const std::string & getVisitorName ()
 

Protected Member Functions

void internalVisit (StuntDouble *sd)
 
bool isSelected (StuntDouble *sd)
 
- Protected Member Functions inherited from OpenMD::BaseVisitor
 BaseVisitor ()
 

Private Member Functions

std::string trimmedName (const std::string &atomType)
 

Private Attributes

SimInfoinfo
 
SelectionManager seleMan
 
SelectionEvaluator evaluator
 
std::vector< std::string > frame
 
bool doPositions_
 
bool doVelocities_
 
bool doForces_
 
bool doVectors_
 
bool doCharges_
 
bool doElectricFields_
 

Additional Inherited Members

- Protected Attributes inherited from OpenMD::BaseVisitor
std::string visitorName
 

Detailed Description

Definition at line 102 of file OtherVisitor.hpp.

Constructor & Destructor Documentation

◆ XYZVisitor() [1/2]

◆ XYZVisitor() [2/2]

Member Function Documentation

◆ clear()

void OpenMD::XYZVisitor::clear ( void  )
inline

Definition at line 119 of file OtherVisitor.hpp.

Referenced by main().

◆ doCharges()

void OpenMD::XYZVisitor::doCharges ( bool  chg)
inline

Definition at line 124 of file OtherVisitor.hpp.

Referenced by main().

◆ doElectricFields()

void OpenMD::XYZVisitor::doElectricFields ( bool  efl)
inline

Definition at line 125 of file OtherVisitor.hpp.

References OpenMD::WrappingVisitor::internalVisit().

Referenced by main().

◆ doForces()

void OpenMD::XYZVisitor::doForces ( bool  frc)
inline

Definition at line 122 of file OtherVisitor.hpp.

Referenced by main().

◆ doPositions()

void OpenMD::XYZVisitor::doPositions ( bool  pos)
inline

Definition at line 120 of file OtherVisitor.hpp.

◆ doVectors()

void OpenMD::XYZVisitor::doVectors ( bool  vec)
inline

Definition at line 123 of file OtherVisitor.hpp.

Referenced by main().

◆ doVelocities()

void OpenMD::XYZVisitor::doVelocities ( bool  vel)
inline

Definition at line 121 of file OtherVisitor.hpp.

Referenced by main().

◆ internalVisit()

◆ isSelected()

bool OpenMD::XYZVisitor::isSelected ( StuntDouble sd)
protected

Definition at line 345 of file OtherVisitor.cpp.

References OpenMD::SelectionManager::isSelected(), and seleMan.

Referenced by visit().

◆ toString()

const std::string OpenMD::XYZVisitor::toString ( )
virtual

Reimplemented from OpenMD::BaseVisitor.

Definition at line 380 of file OtherVisitor.cpp.

References OpenMD::BaseVisitor::visitorName.

◆ trimmedName()

std::string OpenMD::XYZVisitor::trimmedName ( const std::string &  atomType)
private

Definition at line 376 of file OtherVisitor.cpp.

Referenced by OpenMD::WaterTypeVisitor::visit().

◆ update()

void OpenMD::XYZVisitor::update ( )
virtual

◆ visit() [1/3]

void OpenMD::XYZVisitor::visit ( Atom atom)
virtual

Reimplemented from OpenMD::BaseVisitor.

Definition at line 265 of file OtherVisitor.cpp.

References internalVisit(), and isSelected().

◆ visit() [2/3]

void OpenMD::XYZVisitor::visit ( DirectionalAtom datom)
virtual

Reimplemented from OpenMD::BaseVisitor.

Definition at line 270 of file OtherVisitor.cpp.

References internalVisit(), and isSelected().

◆ visit() [3/3]

void OpenMD::XYZVisitor::visit ( RigidBody rb)
virtual

Reimplemented from OpenMD::BaseVisitor.

Definition at line 275 of file OtherVisitor.cpp.

References internalVisit(), and isSelected().

◆ writeFrame()

void OpenMD::XYZVisitor::writeFrame ( std::ostream &  outStream)

Member Data Documentation

◆ doCharges_

bool OpenMD::XYZVisitor::doCharges_
private

Definition at line 142 of file OtherVisitor.hpp.

Referenced by internalVisit().

◆ doElectricFields_

bool OpenMD::XYZVisitor::doElectricFields_
private

Definition at line 143 of file OtherVisitor.hpp.

Referenced by internalVisit().

◆ doForces_

bool OpenMD::XYZVisitor::doForces_
private

Definition at line 140 of file OtherVisitor.hpp.

Referenced by internalVisit().

◆ doPositions_

bool OpenMD::XYZVisitor::doPositions_
private

Definition at line 138 of file OtherVisitor.hpp.

Referenced by internalVisit().

◆ doVectors_

bool OpenMD::XYZVisitor::doVectors_
private

Definition at line 141 of file OtherVisitor.hpp.

Referenced by internalVisit().

◆ doVelocities_

bool OpenMD::XYZVisitor::doVelocities_
private

Definition at line 139 of file OtherVisitor.hpp.

Referenced by internalVisit().

◆ evaluator

SelectionEvaluator OpenMD::XYZVisitor::evaluator
private

Definition at line 136 of file OtherVisitor.hpp.

Referenced by update(), and XYZVisitor().

◆ frame

std::vector<std::string> OpenMD::XYZVisitor::frame
private

Definition at line 137 of file OtherVisitor.hpp.

Referenced by internalVisit(), and writeFrame().

◆ info

SimInfo* OpenMD::XYZVisitor::info
private

Definition at line 134 of file OtherVisitor.hpp.

Referenced by writeFrame(), and XYZVisitor().

◆ seleMan

SelectionManager OpenMD::XYZVisitor::seleMan
private

Definition at line 135 of file OtherVisitor.hpp.

Referenced by isSelected(), update(), and XYZVisitor().


The documentation for this class was generated from the following files: