| 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 | 
< | 
} | 
| 56 | 
> | 
    } | 
| 57 | 
  | 
 | 
| 58 | 
< | 
StuntDouble::~StuntDouble() { | 
| 58 | 
> | 
  StuntDouble::~StuntDouble() { | 
| 59 | 
  | 
 | 
| 60 | 
< | 
} | 
| 60 | 
> | 
  } | 
| 61 | 
  | 
 | 
| 62 | 
< | 
void StuntDouble::zeroForcesAndTorques() { | 
| 62 | 
> | 
  void StuntDouble::zeroForcesAndTorques() { | 
| 63 | 
  | 
    setFrc(V3Zero); | 
| 64 | 
  | 
    setTrq(V3Zero); | 
| 65 | 
< | 
} | 
| 66 | 
< | 
void StuntDouble::addProperty(GenericData* genData) { | 
| 65 | 
> | 
  } | 
| 66 | 
> | 
  void StuntDouble::addProperty(GenericData* genData) { | 
| 67 | 
  | 
    properties_.addProperty(genData);   | 
| 68 | 
< | 
} | 
| 68 | 
> | 
  } | 
| 69 | 
  | 
 | 
| 70 | 
< | 
void StuntDouble::removeProperty(const std::string& propName) { | 
| 70 | 
> | 
  void StuntDouble::removeProperty(const std::string& propName) { | 
| 71 | 
  | 
    properties_.removeProperty(propName);   | 
| 72 | 
< | 
} | 
| 72 | 
> | 
  } | 
| 73 | 
  | 
 | 
| 74 | 
< | 
void StuntDouble::clearProperties() { | 
| 74 | 
> | 
  void StuntDouble::clearProperties() { | 
| 75 | 
  | 
    properties_.clearProperties();  | 
| 76 | 
< | 
} | 
| 76 | 
> | 
  } | 
| 77 | 
  | 
 | 
| 78 | 
< | 
std::vector<std::string> StuntDouble::getPropertyNames() { | 
| 78 | 
> | 
  std::vector<std::string> StuntDouble::getPropertyNames() { | 
| 79 | 
  | 
    return properties_.getPropertyNames();   | 
| 80 | 
< | 
} | 
| 80 | 
> | 
  } | 
| 81 | 
  | 
       | 
| 82 | 
< | 
std::vector<GenericData*> StuntDouble::getProperties() {  | 
| 82 | 
> | 
  std::vector<GenericData*> StuntDouble::getProperties() {  | 
| 83 | 
  | 
    return properties_.getProperties();  | 
| 84 | 
< | 
} | 
| 84 | 
> | 
  } | 
| 85 | 
  | 
 | 
| 86 | 
< | 
GenericData* StuntDouble::getPropertyByName(const std::string& propName) { | 
| 86 | 
> | 
  GenericData* StuntDouble::getPropertyByName(const std::string& propName) { | 
| 87 | 
  | 
    return properties_.getPropertyByName(propName);  | 
| 88 | 
< | 
} | 
| 88 | 
> | 
  } | 
| 89 | 
  | 
 | 
| 90 | 
  | 
 | 
| 91 | 
  | 
} |