30 |
|
* @version 1.0 |
31 |
|
*/ |
32 |
|
|
33 |
< |
#ifndef _STUNTDOUBLE_HPP_ |
34 |
< |
#define _STUNTDOUBLE_HPP_ |
33 |
> |
#ifndef PRIMITIVES_STUNTDOUBLE_HPP |
34 |
> |
#define PRIMITIVES_STUNTDOUBLE_HPP |
35 |
|
|
36 |
|
#include <vector> |
37 |
|
|
55 |
|
* provides an interface for the Integrators and Minimizers to use, |
56 |
|
* and does some preliminary sanity checking so that the program |
57 |
|
* doesn't try to do something stupid like torque an Atom |
58 |
< |
* @note the dynamoc data of stuntdouble will be stored outside of the class |
58 |
> |
* @note the dynamic data of stuntdouble will be stored outside of the class |
59 |
|
*/ |
60 |
|
class StuntDouble{ |
61 |
|
public: |
453 |
|
* Returns the previous unit vectors of this stuntdouble |
454 |
|
* @return the unit vectors of this stuntdouble |
455 |
|
*/ |
456 |
< |
Vector3d getPrevUnitVector() { |
457 |
< |
return ((snapshotMan_->getPrevSnapshot())->*storage_).unitVector[localIndex_]; |
456 |
> |
RotMat3x3d getPrevUnitFrame() { |
457 |
> |
return ((snapshotMan_->getPrevSnapshot())->*storage_).unitFrame[localIndex_]; |
458 |
|
} |
459 |
|
|
460 |
|
/** |
461 |
|
* Returns the current unit vectors of this stuntdouble |
462 |
|
* @return the unit vectors of this stuntdouble |
463 |
|
*/ |
464 |
< |
Vector3d getUnitVector() { |
465 |
< |
return ((snapshotMan_->getCurrentSnapshot())->*storage_).unitVector[localIndex_]; |
464 |
> |
RotMat3x3d getUnitFrame() { |
465 |
> |
return ((snapshotMan_->getCurrentSnapshot())->*storage_).unitFrame[localIndex_]; |
466 |
|
} |
467 |
|
|
468 |
|
/** |
471 |
|
* @return the unit vectors of this stuntdouble |
472 |
|
* @param snapshotNo |
473 |
|
*/ |
474 |
< |
Vector3d getUnitVector(int snapshotNo) { |
475 |
< |
return ((snapshotMan_->getSnapshot(snapshotNo))->*storage_).unitVector[localIndex_]; |
474 |
> |
RotMat3x3d getUnitFrame(int snapshotNo) { |
475 |
> |
return ((snapshotMan_->getSnapshot(snapshotNo))->*storage_).unitFrame[localIndex_]; |
476 |
|
} |
477 |
|
|
478 |
|
/** |
815 |
|
* Removes property from PropertyMap by name |
816 |
|
* @param propName the name of property to be removed |
817 |
|
*/ |
818 |
< |
void removeProperty(std::string& propName); |
818 |
> |
void removeProperty(const std::string& propName); |
819 |
|
|
820 |
|
/** |
821 |
|
* clear all of the properties |
840 |
|
* @return a pointer point to property with propName. If no property named propName |
841 |
|
* exists, return NULL |
842 |
|
*/ |
843 |
< |
GenericData* getPropertyByName(std::string& propName); |
843 |
> |
GenericData* getPropertyByName(const std::string& propName); |
844 |
|
|
845 |
|
protected: |
846 |
|
|
870 |
|
}; |
871 |
|
|
872 |
|
}//end namespace oopse |
873 |
< |
#endif //ifndef _STUNTDOUBLE_HPP_ |
873 |
> |
#endif //PRIMITIVES_STUNTDOUBLE_HPP |