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 |
50 |
|
|
51 |
|
namespace oopse { |
52 |
|
|
53 |
< |
StuntDouble::StuntDouble(ObjectType objType, DataStoragePointer storage) : |
53 |
> |
StuntDouble::StuntDouble(ObjectType objType, DataStoragePointer storage) : |
54 |
|
objType_(objType), storage_(storage), snapshotMan_(NULL), |
55 |
< |
linear_(false), linearAxis_(-1), globalIndex_(-1), localIndex_(-1){ |
56 |
< |
} |
55 |
> |
linear_(false), linearAxis_(-1), globalIndex_(-1), localIndex_(-1), |
56 |
> |
globalIntegrableObjectIndex_(-1){ |
57 |
> |
} |
58 |
|
|
59 |
< |
StuntDouble::~StuntDouble() { |
59 |
> |
StuntDouble::~StuntDouble() { |
60 |
|
|
61 |
< |
} |
61 |
> |
} |
62 |
|
|
63 |
< |
void StuntDouble::zeroForcesAndTorques() { |
63 |
> |
void StuntDouble::zeroForcesAndTorques() { |
64 |
|
setFrc(V3Zero); |
65 |
|
setTrq(V3Zero); |
66 |
< |
} |
67 |
< |
void StuntDouble::addProperty(GenericData* genData) { |
66 |
> |
} |
67 |
> |
void StuntDouble::addProperty(GenericData* genData) { |
68 |
|
properties_.addProperty(genData); |
69 |
< |
} |
69 |
> |
} |
70 |
|
|
71 |
< |
void StuntDouble::removeProperty(const std::string& propName) { |
71 |
> |
void StuntDouble::removeProperty(const std::string& propName) { |
72 |
|
properties_.removeProperty(propName); |
73 |
< |
} |
73 |
> |
} |
74 |
|
|
75 |
< |
void StuntDouble::clearProperties() { |
75 |
> |
void StuntDouble::clearProperties() { |
76 |
|
properties_.clearProperties(); |
77 |
< |
} |
77 |
> |
} |
78 |
|
|
79 |
< |
std::vector<std::string> StuntDouble::getPropertyNames() { |
79 |
> |
std::vector<std::string> StuntDouble::getPropertyNames() { |
80 |
|
return properties_.getPropertyNames(); |
81 |
< |
} |
81 |
> |
} |
82 |
|
|
83 |
< |
std::vector<GenericData*> StuntDouble::getProperties() { |
83 |
> |
std::vector<GenericData*> StuntDouble::getProperties() { |
84 |
|
return properties_.getProperties(); |
85 |
< |
} |
85 |
> |
} |
86 |
|
|
87 |
< |
GenericData* StuntDouble::getPropertyByName(const std::string& propName) { |
87 |
> |
GenericData* StuntDouble::getPropertyByName(const std::string& propName) { |
88 |
|
return properties_.getPropertyByName(propName); |
89 |
< |
} |
89 |
> |
} |
90 |
|
|
91 |
|
|
92 |
|
} |