ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/group/trunk/OOPSE-3.0/src/types/ShapeType.cpp
Revision: 1589
Committed: Mon Oct 18 15:21:00 2004 UTC (19 years, 8 months ago) by gezelter
File size: 1216 byte(s)
Log Message:
Added ShapeType

File Contents

# Content
1 #include "types/ShapeType.hpp"
2
3 ShapeType::ShapeType(void) {
4 mass = 0.0;
5 I = new Matrix3x3d();
6
7 }
8
9 ShapeType::~ShapeType(void) {
10 }
11
12 double ShapeType::getContactValueAt(double costheta, double phi) {
13
14 vector<RealSphericalHarmonic*>::iterator contactIter;
15 double contactVal;
16
17 contactVal = 0.0;
18
19 for(contactIter = contactFuncs.begin(); contactIter != contactFuncs.end();
20 ++contactIter)
21 contactVal += (*contactIter)->getValueAt(costheta, phi);
22
23 return contactVal;
24 }
25
26 double ShapeType::getRangeValueAt(double costheta, double phi) {
27
28 vector<RealSphericalHarmonic*>::iterator rangeIter;
29 double rangeVal;
30
31 rangeVal = 0.0;
32
33 for(rangeIter = rangeFuncs.begin(); rangeIter != rangeFuncs.end();
34 ++rangeIter)
35 rangeVal += (*rangeIter)->getValueAt(costheta, phi);
36
37 return rangeVal;
38 }
39
40 double ShapeType::getStrengthValueAt(double costheta, double phi) {
41
42 vector<RealSphericalHarmonic*>::iterator strengthIter;
43 double strengthVal;
44
45 strengthVal = 0.0;
46
47 for(strengthIter = strengthFuncs.begin();
48 strengthIter != strengthFuncs.end();
49 ++strengthIter)
50 strengthVal += (*strengthIter)->getValueAt(costheta, phi);
51
52 return strengthVal;
53 }