102 |
|
} |
103 |
|
|
104 |
|
/** |
105 |
+ |
* Sets the Snapshot Manager of this stuntdouble |
106 |
+ |
*/ |
107 |
+ |
void setSnapshotManager(SnapshotManager* sman) { |
108 |
+ |
snapshotMan_ = sman; |
109 |
+ |
} |
110 |
+ |
|
111 |
+ |
/** |
112 |
|
* Tests if this stuntdouble is an atom |
113 |
|
* @return true is this stuntdouble is an atom(or a directional atom), return false otherwise |
114 |
|
*/ |
461 |
|
* Returns the previous unit vectors of this stuntdouble |
462 |
|
* @return the unit vectors of this stuntdouble |
463 |
|
*/ |
464 |
< |
RotMat3x3d getPrevUnitFrame() { |
465 |
< |
return ((snapshotMan_->getPrevSnapshot())->*storage_).unitFrame[localIndex_]; |
464 |
> |
RotMat3x3d getPrevElectroFrame() { |
465 |
> |
return ((snapshotMan_->getPrevSnapshot())->*storage_).electroFrame[localIndex_]; |
466 |
|
} |
467 |
|
|
468 |
|
/** |
469 |
|
* Returns the current unit vectors of this stuntdouble |
470 |
|
* @return the unit vectors of this stuntdouble |
471 |
|
*/ |
472 |
< |
RotMat3x3d getUnitFrame() { |
473 |
< |
return ((snapshotMan_->getCurrentSnapshot())->*storage_).unitFrame[localIndex_]; |
472 |
> |
RotMat3x3d getElectroFrame() { |
473 |
> |
return ((snapshotMan_->getCurrentSnapshot())->*storage_).electroFrame[localIndex_]; |
474 |
|
} |
475 |
|
|
476 |
|
/** |
479 |
|
* @return the unit vectors of this stuntdouble |
480 |
|
* @param snapshotNo |
481 |
|
*/ |
482 |
< |
RotMat3x3d getUnitFrame(int snapshotNo) { |
483 |
< |
return ((snapshotMan_->getSnapshot(snapshotNo))->*storage_).unitFrame[localIndex_]; |
482 |
> |
RotMat3x3d getElectroFrame(int snapshotNo) { |
483 |
> |
return ((snapshotMan_->getSnapshot(snapshotNo))->*storage_).electroFrame[localIndex_]; |
484 |
|
} |
485 |
|
|
486 |
|
/** |