| 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 |
| 53 |
|
|
| 54 |
|
namespace oopse { |
| 55 |
|
|
| 56 |
< |
class SimInfo; |
| 56 |
> |
class SimInfo; |
| 57 |
|
|
| 58 |
|
|
| 59 |
< |
class WrappingVisitor : public BaseVisitor{ |
| 59 |
> |
class WrappingVisitor : public BaseVisitor{ |
| 60 |
|
public: |
| 61 |
< |
WrappingVisitor(SimInfo* info) : BaseVisitor() { |
| 61 |
> |
WrappingVisitor(SimInfo* info, bool useCom = true) : BaseVisitor(), useCom_(useCom) { |
| 62 |
|
this->info = info; |
| 63 |
|
visitorName = "WrappingVisitor"; |
| 64 |
|
} |
| 68 |
|
|
| 69 |
|
virtual const std::string toString(); |
| 70 |
|
|
| 71 |
< |
protected: |
| 71 |
> |
virtual void update(); |
| 72 |
> |
|
| 73 |
> |
private: |
| 74 |
|
void internalVisit(StuntDouble* sd); |
| 75 |
< |
SimInfo* info; |
| 76 |
< |
}; |
| 75 |
> |
SimInfo* info; |
| 76 |
> |
Vector3d origin_; |
| 77 |
> |
bool useCom_; |
| 78 |
> |
}; |
| 79 |
|
|
| 80 |
|
|
| 81 |
< |
class ReplicateVisitor : public BaseVisitor{ |
| 81 |
> |
class ReplicateVisitor : public BaseVisitor{ |
| 82 |
|
public: |
| 83 |
|
ReplicateVisitor(SimInfo* info, Vector3i opt); |
| 84 |
|
virtual void visit(Atom* atom); |
| 94 |
|
std::vector<Vector3i> dir; |
| 95 |
|
SimInfo* info; |
| 96 |
|
Vector3i replicateOpt; |
| 97 |
< |
}; |
| 97 |
> |
}; |
| 98 |
|
|
| 99 |
< |
class XYZVisitor : public BaseVisitor{ |
| 99 |
> |
class XYZVisitor : public BaseVisitor{ |
| 100 |
|
public: |
| 101 |
|
|
| 102 |
|
XYZVisitor(SimInfo* info); |
| 113 |
|
|
| 114 |
|
void writeFrame(std::ostream& outStream); |
| 115 |
|
void clear() {frame.clear();} |
| 116 |
< |
|
| 116 |
> |
void setPosOnly(bool posOnly){posOnly_ = posOnly;} |
| 117 |
|
protected: |
| 118 |
|
void internalVisit(StuntDouble* sd); |
| 119 |
|
bool isSelected(StuntDouble* sd); |
| 123 |
|
SelectionManager seleMan; |
| 124 |
|
SelectionEvaluator evaluator; |
| 125 |
|
std::vector<std::string> frame; |
| 126 |
+ |
bool posOnly_; |
| 127 |
+ |
}; |
| 128 |
|
|
| 123 |
– |
}; |
| 129 |
|
|
| 130 |
< |
|
| 126 |
< |
class PrepareVisitor : public BaseVisitor{ |
| 130 |
> |
class PrepareVisitor : public BaseVisitor{ |
| 131 |
|
public: |
| 132 |
|
PrepareVisitor() : BaseVisitor() {visitorName = "prepareVisitor";} |
| 133 |
|
|
| 140 |
|
protected: |
| 141 |
|
void internalVisit(Atom* atom); |
| 142 |
|
void internalVisit(RigidBody* rb); |
| 143 |
< |
}; |
| 143 |
> |
}; |
| 144 |
|
|
| 145 |
|
class WaterTypeVisitor : public BaseVisitor{ |
| 146 |
|
public: |
| 155 |
|
std::string trimmedName(const std::string& atomType); |
| 156 |
|
|
| 157 |
|
std::set<std::string> waterTypeList; |
| 158 |
< |
}; |
| 158 |
> |
}; |
| 159 |
|
|
| 160 |
|
|
| 161 |
|
}//namespace oopse |