| 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 | 
| 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(); | 
| 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); | 
| 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); | 
| 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); | 
| 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); | 
| 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(); | 
| 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); | 
| 97 | > | virtual void accept(BaseVisitor* v); | 
| 98 |  |  | 
| 99 | < | protected: | 
| 100 | < | Mat3x3d inertiaTensor_;                             /**< inertial tensor */ | 
| 101 | < | RotMat3x3d electroBodyFrame_;               /**< body fixed standard eletrostatic frame */ | 
| 102 | < | }; | 
| 99 | > | protected: | 
| 100 | > | RotMat3x3d electroBodyFrame_;               /**< body fixed standard eletrostatic frame */ | 
| 101 | > | }; | 
| 102 |  |  | 
| 103 |  | }//namepace oopse | 
| 104 |  |  |