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

Comparing trunk/src/primitives/DirectionalAtom.hpp (file contents):
Revision 273 by tim, Tue Jan 25 17:45:23 2005 UTC vs.
Revision 1211 by gezelter, Wed Jan 23 16:38:22 2008 UTC

# Line 1 | Line 1
1 < /*
1 > /*
2   * Copyright (c) 2005 The University of Notre Dame. All Rights Reserved.
3   *
4   * The University of Notre Dame grants you ("Licensee") a
# Line 52 | Line 52 | namespace oopse{
52   #include "primitives/Atom.hpp"
53   #include "types/DirectionalAtomType.hpp"
54   namespace oopse{
55 <    class DirectionalAtom : public Atom {
56 <        public:
57 <            DirectionalAtom(DirectionalAtomType* dAtomType);
58 <            /**
59 <             * Returns the inertia tensor of this stuntdouble
60 <             * @return the inertia tensor of this stuntdouble
61 <             */
62 <            virtual Mat3x3d getI();            
63 <
64 <           /**
65 <             * Sets  the previous rotation matrix of this stuntdouble
66 <             * @param a  new rotation matrix
67 <             */        
68 <           virtual void setPrevA(const RotMat3x3d& a);
69 <          
70 <           /**
71 <             * Sets  the current rotation matrix of this stuntdouble
72 <             * @param a  new rotation matrix
73 <             */        
74 <            virtual void setA(const RotMat3x3d& a);
75 <
76 <           /**
77 <             * Sets  the rotation matrix of this stuntdouble in specified snapshot
78 <             * @param a rotation matrix to be set
79 <             * @param snapshotNo
80 <             * @see #getA
81 <             */        
82 <            virtual void setA(const RotMat3x3d& a, int snapshotNo);
83 <
84 <            /**
85 <             * Left multiple rotation matrix by another rotation matrix
86 <             * @param m a rotation matrix
87 <             */
88 <            void rotateBy(const RotMat3x3d& m);
89 <            
90 <
91 <            /**
92 <             * Returns the gradient of this stuntdouble
93 <             * @return the gradient of this stuntdouble
94 <             */
95 <            virtual std::vector<double> getGrad();
96 <
97 <            virtual void accept(BaseVisitor* v);
98 <                
99 <        protected:
100 <            RotMat3x3d electroBodyFrame_;               /**< body fixed standard eletrostatic frame */
101 <    };
102 <
55 >  class DirectionalAtom : public Atom {
56 >  public:
57 >    DirectionalAtom(DirectionalAtomType* dAtomType);
58 >    /**
59 >     * Returns the inertia tensor of this stuntdouble
60 >     * @return the inertia tensor of this stuntdouble
61 >     */
62 >    virtual Mat3x3d getI();            
63 >    
64 >    /**
65 >     * Sets  the previous rotation matrix of this stuntdouble
66 >     * @param a  new rotation matrix
67 >     */        
68 >    virtual void setPrevA(const RotMat3x3d& a);
69 >    
70 >    /**
71 >     * Sets  the current rotation matrix of this stuntdouble
72 >     * @param a  new rotation matrix
73 >     */        
74 >    virtual void setA(const RotMat3x3d& a);
75 >    
76 >    /**
77 >     * Sets  the rotation matrix of this stuntdouble in specified snapshot
78 >     * @param a rotation matrix to be set
79 >     * @param snapshotNo
80 >     * @see #getA
81 >     */        
82 >    virtual void setA(const RotMat3x3d& a, int snapshotNo);
83 >    
84 >    /**
85 >     * Left multiple rotation matrix by another rotation matrix
86 >     * @param m a rotation matrix
87 >     */
88 >    void rotateBy(const RotMat3x3d& m);
89 >        
90 >    /**
91 >     * Returns the gradient of this stuntdouble
92 >     * @return the gradient of this stuntdouble
93 >     */
94 >    virtual std::vector<RealType> getGrad();
95 >    
96 >    virtual void accept(BaseVisitor* v);
97 >    
98 >  protected:
99 >    RotMat3x3d electroBodyFrame_; // body fixed standard eletrostatic frame
100 >  };  
101   }//namepace oopse
104
102   #endif //PRIMITIVES_DIRECTIONALATOM_HPP

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines