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

#include <OtherVisitor.hpp>

Inheritance diagram for OpenMD::WrappingVisitor:
OpenMD::BaseVisitor

Public Member Functions

 WrappingVisitor (SimInfo *info, bool useCom=true)
 
virtual void visit (Atom *atom)
 
virtual void visit (DirectionalAtom *datom)
 
virtual void visit (RigidBody *rb)
 
virtual const std::string toString ()
 
virtual void update ()
 
- 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 ()
 

Private Member Functions

void internalVisit (StuntDouble *sd)
 

Private Attributes

SimInfoinfo
 
Vector3d origin_
 
bool useCom_
 

Additional Inherited Members

- Protected Member Functions inherited from OpenMD::BaseVisitor
 BaseVisitor ()
 
- Protected Attributes inherited from OpenMD::BaseVisitor
std::string visitorName
 

Detailed Description

Definition at line 60 of file OtherVisitor.hpp.

Constructor & Destructor Documentation

◆ WrappingVisitor()

OpenMD::WrappingVisitor::WrappingVisitor ( SimInfo info,
bool  useCom = true 
)
inline

Member Function Documentation

◆ internalVisit()

◆ toString()

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

◆ update()

void OpenMD::WrappingVisitor::update ( )
virtual

Reimplemented from OpenMD::BaseVisitor.

Definition at line 92 of file OtherVisitor.cpp.

References OpenMD::Thermo::getCom(), info, origin_, and useCom_.

Referenced by WrappingVisitor().

◆ visit() [1/3]

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

Reimplemented from OpenMD::BaseVisitor.

Definition at line 52 of file OtherVisitor.cpp.

References internalVisit().

Referenced by OpenMD::WaterTypeVisitor::visit(), and WrappingVisitor().

◆ visit() [2/3]

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

Reimplemented from OpenMD::BaseVisitor.

Definition at line 56 of file OtherVisitor.cpp.

References internalVisit().

◆ visit() [3/3]

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

Reimplemented from OpenMD::BaseVisitor.

Definition at line 60 of file OtherVisitor.cpp.

References internalVisit().

Member Data Documentation

◆ info

SimInfo* OpenMD::WrappingVisitor::info
private

Definition at line 77 of file OtherVisitor.hpp.

Referenced by internalVisit(), update(), and WrappingVisitor().

◆ origin_

Vector3d OpenMD::WrappingVisitor::origin_
private

Definition at line 78 of file OtherVisitor.hpp.

Referenced by internalVisit(), and update().

◆ useCom_

bool OpenMD::WrappingVisitor::useCom_
private

Definition at line 79 of file OtherVisitor.hpp.

Referenced by update().


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