55 |
|
#include "visitors/OtherVisitor.hpp" |
56 |
|
#include "visitors/ZconsVisitor.hpp" |
57 |
|
#include "selection/SelectionEvaluator.hpp" |
58 |
+ |
#include "selection/SelectionManager.hpp" |
59 |
+ |
#include "visitors/LipidTransVisitor.hpp" |
60 |
+ |
|
61 |
|
using namespace oopse; |
62 |
|
|
63 |
|
int main(int argc, char* argv[]){ |
181 |
|
WrappingVisitor* wrappingVisitor = new WrappingVisitor(info); |
182 |
|
compositeVisitor->addVisitor(wrappingVisitor, 400); |
183 |
|
} |
184 |
< |
|
184 |
> |
|
185 |
|
//creat replicate visitor |
186 |
|
if(args_info.repeatX_given > 0 || args_info.repeatY_given > 0 ||args_info.repeatY_given > 0){ |
187 |
|
Vector3i replicateOpt(args_info.repeatX_arg, args_info.repeatY_arg, args_info.repeatZ_arg); |
188 |
|
ReplicateVisitor* replicateVisitor = new ReplicateVisitor(info, replicateOpt); |
189 |
|
compositeVisitor->addVisitor(replicateVisitor, 300); |
190 |
|
} |
191 |
< |
|
191 |
> |
|
192 |
> |
|
193 |
> |
//create rotation visitor |
194 |
> |
if (args_info.refsele_given&& args_info.originsele_given) { |
195 |
> |
compositeVisitor->addVisitor(new LipidTransVisitor(info, args_info.originsele_arg, args_info.refsele_arg), 250); |
196 |
> |
} else if (args_info.refsele_given || args_info.originsele_given) { |
197 |
> |
std::cerr << "Both of --refsele and --originselc should appear by pair" << std::endl; |
198 |
> |
exit(1); |
199 |
> |
} |
200 |
> |
|
201 |
|
//creat xyzVisitor |
202 |
|
XYZVisitor* xyzVisitor = new XYZVisitor(info); |
203 |
|
compositeVisitor->addVisitor(xyzVisitor, 200); |