128 |
|
localIndex_ = index; |
129 |
|
} |
130 |
|
|
131 |
+ |
int getGlobalIntegrableObjectIndex(){ |
132 |
+ |
return globalIntegrableObjectIndex_; |
133 |
+ |
} |
134 |
+ |
void setGlobalIntegrableObjectIndex(int index) { |
135 |
+ |
globalIntegrableObjectIndex_ = index; |
136 |
+ |
} |
137 |
+ |
|
138 |
|
/** |
139 |
|
* Sets the Snapshot Manager of this stuntdouble |
140 |
|
*/ |
409 |
|
void setJ(const Vector3d& angMom, int snapshotNo) { |
410 |
|
((snapshotMan_->getSnapshot(snapshotNo))->*storage_).angularMomentum[localIndex_] = angMom; |
411 |
|
} |
412 |
< |
|
412 |
> |
|
413 |
> |
/** |
414 |
> |
* Returns system Center of Mass for stuntdouble frame from snapshot |
415 |
> |
* |
416 |
> |
*/ |
417 |
> |
Vector3d getCOM(){ |
418 |
> |
return (snapshotMan_->getCurrentSnapshot())->getCOM(); |
419 |
> |
} |
420 |
> |
|
421 |
> |
/** |
422 |
> |
* Returns system Center of Mass velocity for stuntdouble frame from snapshot |
423 |
> |
* |
424 |
> |
*/ |
425 |
> |
|
426 |
> |
Vector3d getCOMvel(){ |
427 |
> |
return (snapshotMan_->getCurrentSnapshot())->getCOMvel(); |
428 |
> |
} |
429 |
> |
|
430 |
> |
/** |
431 |
> |
* Returns system Center of Mass angular momentum for stuntdouble frame from snapshot |
432 |
> |
* |
433 |
> |
*/ |
434 |
> |
Vector3d getCOMw(){ |
435 |
> |
return (snapshotMan_->getCurrentSnapshot())->getCOMw(); |
436 |
> |
} |
437 |
> |
|
438 |
> |
/** |
439 |
> |
* Returns system Center of Mass for stuntdouble frame from snapshot |
440 |
> |
* |
441 |
> |
*/ |
442 |
> |
Vector3d getCOM(int snapshotNo){ |
443 |
> |
return (snapshotMan_->getSnapshot(snapshotNo))->getCOM(); |
444 |
> |
} |
445 |
> |
|
446 |
|
/** |
447 |
+ |
* Returns system Center of Mass velocity for stuntdouble frame from snapshot |
448 |
+ |
* |
449 |
+ |
*/ |
450 |
+ |
|
451 |
+ |
Vector3d getCOMvel(int snapshotNo){ |
452 |
+ |
return (snapshotMan_->getSnapshot(snapshotNo))->getCOMvel(); |
453 |
+ |
} |
454 |
+ |
|
455 |
+ |
/** |
456 |
+ |
* Returns system Center of Mass angular momentum for stuntdouble frame from snapshot |
457 |
+ |
* |
458 |
+ |
*/ |
459 |
+ |
Vector3d getCOMw(int snapshotNo){ |
460 |
+ |
return (snapshotMan_->getSnapshot(snapshotNo))->getCOMw(); |
461 |
+ |
} |
462 |
+ |
|
463 |
+ |
/** |
464 |
|
* Returns the previous quaternion of this stuntdouble |
465 |
|
* @return the quaternion of this stuntdouble |
466 |
|
*/ |
989 |
|
|
990 |
|
|
991 |
|
int globalIndex_; |
992 |
+ |
int globalIntegrableObjectIndex_; |
993 |
|
int localIndex_; |
994 |
|
|
995 |
|
|