Changes in / [a1436b:36bb2d]
- Files:
-
- 58 added
- 15 deleted
- 60 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile.am
ra1436b r36bb2d 1 1 ACLOCAL_AMFLAGS = -I m4 2 SUBDIRS = LinearAlgebra src src/unittests tests utils doc2 SUBDIRS = LinearAlgebra data/icons src src/unittests tests utils doc 3 3 4 4 AUTOMAKE_OPTIONS = subdir-objects -
configure.ac
ra1436b r36bb2d 3 3 4 4 AC_PREREQ(2.59) 5 AC_INIT(MoleCuilder, 1.3. 3, [heber@ins.uni-bonn.de], [molecuilder], [http://trac.ins.uni-bonn.de/projects/molecuilder/])5 AC_INIT(MoleCuilder, 1.3.4, [heber@ins.uni-bonn.de], [molecuilder], [http://trac.ins.uni-bonn.de/projects/molecuilder/]) 6 6 AC_CONFIG_AUX_DIR([build-aux]) 7 7 AC_CONFIG_SRCDIR([src/builder.cpp]) … … 57 57 [moc-qt4 moc], 58 58 [AC_MSG_ERROR(["Qts moc not found, please use --with-Qt-bin."])], 59 [$have_qtgui_path] 60 ) 61 AC_PATH_PROGS([QT_RCC], 62 [rcc-qt4 rcc], 63 [AC_MSG_ERROR(["Qts rcc not found, please use --with-Qt-bin."])], 59 64 [$have_qtgui_path] 60 65 ) … … 87 92 # http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html 88 93 AC_SUBST([MOLECUILDER_SO_VERSION], [10:2:0]) 89 AC_SUBST([MOLECUILDER_API_VERSION], [1.3. 3])94 AC_SUBST([MOLECUILDER_API_VERSION], [1.3.4]) 90 95 91 96 dnl this macro is used to get the arguments supplied … … 364 369 doc/Makefile 365 370 src/Makefile 371 data/icons/Makefile 366 372 utils/Makefile 367 373 ]) -
src/Actions/GlobalListOfActions.hpp
ra1436b r36bb2d 101 101 (SelectionNotAtomById) \ 102 102 (SelectionNotAtomByOrder) \ 103 (SelectionAllAtomsInsideCuboid) \104 103 (SelectionAllAtoms) \ 105 104 (SelectionClearAllAtoms) \ … … 107 106 (SelectionNotAllAtoms) \ 108 107 (SelectionNotAtomByElement) \ 109 (SelectionAllAtomsInside Sphere) \108 (SelectionAllAtomsInsideVolume) \ 110 109 (SelectionAllAtomsOfMolecule) \ 111 (SelectionNotAllAtomsInside Sphere) \110 (SelectionNotAllAtomsInsideVolume) \ 112 111 (SelectionAtomByElement) \ 113 112 (SelectionNotAllAtomsOfMolecule) \ 114 (SelectionNotAllAtomsInsideCuboid) \115 113 (SelectionAtomById) \ 116 114 (SelectionAtomByOrder) \ 115 (SelectionAllShapes) \ 116 (SelectionShapeByName) \ 117 (SelectionNotAllShapes) \ 118 (SelectionNotShapeByName) \ 117 119 (FragmentationFragmentation) \ 118 120 (FillRegularGrid) \ 119 (FillSphericalSurface) 121 (FillSurface) \ 122 (ShapeCombineShapes) \ 123 (ShapeCreateShape) \ 124 (ShapeRemoveShape) 120 125 121 126 // we need to append the automation action in case we have the JobMarket -
src/Actions/Makefile.am
ra1436b r36bb2d 60 60 ${SELECTIONATOMACTIONSOURCE} \ 61 61 ${SELECTIONMOLECULEACTIONSOURCE} \ 62 ${SELECTIONSHAPEACTIONSOURCE} \ 63 ${SHAPEACTIONSOURCE} \ 62 64 ${TESSELATIONACTIONSOURCE} \ 63 65 $(UNDOACTIONSOURCE) \ … … 76 78 ${SELECTIONATOMACTIONHEADER} \ 77 79 ${SELECTIONMOLECULEACTIONHEADER} \ 80 ${SELECTIONSHAPEACTIONHEADER} \ 81 ${SHAPEACTIONHEADER} \ 78 82 ${TESSELATIONACTIONHEADER} \ 79 83 $(UNDOACTIONHEADER) \ … … 92 96 ${SELECTIONATOMACTIONDEFS} \ 93 97 ${SELECTIONMOLECULEACTIONDEFS} \ 98 ${SELECTIONSHAPEACTIONDEFS} \ 99 ${SHAPEACTIONDEFS} \ 94 100 ${TESSELATIONACTIONDEFS} \ 95 101 $(UNDOACTIONDEFS) \ … … 182 188 FILLACTIONSOURCE = \ 183 189 Actions/FillAction/FillRegularGridAction.cpp \ 184 Actions/FillAction/FillS phericalSurfaceAction.cpp190 Actions/FillAction/FillSurfaceAction.cpp 185 191 FILLACTIONHEADER = \ 186 192 Actions/FillAction/FillRegularGridAction.hpp \ 187 Actions/FillAction/FillS phericalSurfaceAction.hpp193 Actions/FillAction/FillSurfaceAction.hpp 188 194 FILLACTIONDEFS = \ 189 195 Actions/FillAction/FillRegularGridAction.def \ 190 Actions/FillAction/FillS phericalSurfaceAction.def196 Actions/FillAction/FillSurfaceAction.def 191 197 192 198 … … 303 309 SELECTIONATOMACTIONSOURCE = \ 304 310 Actions/SelectionAction/Atoms/AllAtomsAction.cpp \ 305 Actions/SelectionAction/Atoms/AllAtomsInsideCuboidAction.cpp \ 306 Actions/SelectionAction/Atoms/AllAtomsInsideSphereAction.cpp \ 311 Actions/SelectionAction/Atoms/AllAtomsInsideVolumeAction.cpp \ 307 312 Actions/SelectionAction/Atoms/AllAtomsOfMoleculeAction.cpp \ 308 313 Actions/SelectionAction/Atoms/AtomByElementAction.cpp \ … … 312 317 Actions/SelectionAction/Atoms/InvertAtomsAction.cpp \ 313 318 Actions/SelectionAction/Atoms/NotAllAtomsAction.cpp \ 314 Actions/SelectionAction/Atoms/NotAllAtomsInsideCuboidAction.cpp \ 315 Actions/SelectionAction/Atoms/NotAllAtomsInsideSphereAction.cpp \ 319 Actions/SelectionAction/Atoms/NotAllAtomsInsideVolumeAction.cpp \ 316 320 Actions/SelectionAction/Atoms/NotAllAtomsOfMoleculeAction.cpp \ 317 321 Actions/SelectionAction/Atoms/NotAtomByElementAction.cpp \ … … 320 324 SELECTIONATOMACTIONHEADER = \ 321 325 Actions/SelectionAction/Atoms/AllAtomsAction.hpp \ 322 Actions/SelectionAction/Atoms/AllAtomsInsideCuboidAction.hpp \ 323 Actions/SelectionAction/Atoms/AllAtomsInsideSphereAction.hpp \ 326 Actions/SelectionAction/Atoms/AllAtomsInsideVolumeAction.hpp \ 324 327 Actions/SelectionAction/Atoms/AllAtomsOfMoleculeAction.hpp \ 325 328 Actions/SelectionAction/Atoms/AtomByElementAction.hpp \ … … 329 332 Actions/SelectionAction/Atoms/InvertAtomsAction.hpp \ 330 333 Actions/SelectionAction/Atoms/NotAllAtomsAction.hpp \ 331 Actions/SelectionAction/Atoms/NotAllAtomsInsideCuboidAction.hpp \ 332 Actions/SelectionAction/Atoms/NotAllAtomsInsideSphereAction.hpp \ 334 Actions/SelectionAction/Atoms/NotAllAtomsInsideVolumeAction.hpp \ 333 335 Actions/SelectionAction/Atoms/NotAllAtomsOfMoleculeAction.hpp \ 334 336 Actions/SelectionAction/Atoms/NotAtomByElementAction.hpp \ … … 337 339 SELECTIONATOMACTIONDEFS = \ 338 340 Actions/SelectionAction/Atoms/AllAtomsAction.def \ 339 Actions/SelectionAction/Atoms/AllAtomsInsideCuboidAction.def \ 340 Actions/SelectionAction/Atoms/AllAtomsInsideSphereAction.def \ 341 Actions/SelectionAction/Atoms/AllAtomsInsideVolumeAction.def \ 341 342 Actions/SelectionAction/Atoms/AllAtomsOfMoleculeAction.def \ 342 343 Actions/SelectionAction/Atoms/AtomByElementAction.def \ … … 346 347 Actions/SelectionAction/Atoms/InvertAtomsAction.def \ 347 348 Actions/SelectionAction/Atoms/NotAllAtomsAction.def \ 348 Actions/SelectionAction/Atoms/NotAllAtomsInsideCuboidAction.def \ 349 Actions/SelectionAction/Atoms/NotAllAtomsInsideSphereAction.def \ 349 Actions/SelectionAction/Atoms/NotAllAtomsInsideVolumeAction.def \ 350 350 Actions/SelectionAction/Atoms/NotAllAtomsOfMoleculeAction.def \ 351 351 Actions/SelectionAction/Atoms/NotAtomByElementAction.def \ … … 398 398 Actions/SelectionAction/Molecules/NotMoleculeByOrderAction.def \ 399 399 Actions/SelectionAction/Molecules/NotMoleculeOfAtomAction.def 400 401 SELECTIONSHAPEACTIONSOURCE = \ 402 Actions/SelectionAction/Shapes/AllShapesAction.cpp \ 403 Actions/SelectionAction/Shapes/ShapeByNameAction.cpp \ 404 Actions/SelectionAction/Shapes/NotAllShapesAction.cpp \ 405 Actions/SelectionAction/Shapes/NotShapeByNameAction.cpp 406 SELECTIONSHAPEACTIONHEADER = \ 407 Actions/SelectionAction/Shapes/AllShapesAction.hpp \ 408 Actions/SelectionAction/Shapes/ShapeByNameAction.hpp \ 409 Actions/SelectionAction/Shapes/NotAllShapesAction.hpp \ 410 Actions/SelectionAction/Shapes/NotShapeByNameAction.hpp 411 SELECTIONSHAPEACTIONDEFS = \ 412 Actions/SelectionAction/Shapes/AllShapesAction.def \ 413 Actions/SelectionAction/Shapes/ShapeByNameAction.def \ 414 Actions/SelectionAction/Shapes/NotAllShapesAction.def \ 415 Actions/SelectionAction/Shapes/NotShapeByNameAction.def 416 417 SHAPEACTIONSOURCE = \ 418 Actions/ShapeAction/CombineShapesAction.cpp \ 419 Actions/ShapeAction/CreateShapeAction.cpp \ 420 Actions/ShapeAction/RemoveShapeAction.cpp 421 SHAPEACTIONHEADER = \ 422 Actions/ShapeAction/CombineShapesAction.hpp \ 423 Actions/ShapeAction/CreateShapeAction.hpp \ 424 Actions/ShapeAction/RemoveShapeAction.hpp 425 SHAPEACTIONDEFS = \ 426 Actions/ShapeAction/CombineShapesAction.def \ 427 Actions/ShapeAction/CreateShapeAction.def \ 428 Actions/ShapeAction/RemoveShapeAction.def 400 429 401 430 TESSELATIONACTIONSOURCE = \ 402 431 Actions/TesselationAction/ConvexEnvelopeAction.cpp \ 403 Actions/TesselationAction/NonConvexEnvelopeAction.cpp 432 Actions/TesselationAction/NonConvexEnvelopeAction.cpp 404 433 TESSELATIONACTIONHEADER = \ 405 434 Actions/TesselationAction/ConvexEnvelopeAction.hpp \ -
src/Makefile.am
ra1436b r36bb2d 303 303 304 304 305 molecuilder_CPPFLAGS = $(AM_CPPFLAGS) 305 molecuilder_CPPFLAGS = $(AM_CPPFLAGS) ${QT_CFLAGS} 306 306 #molecuilder_CXXFLAGS += -DNO_CACHING 307 307 molecuilder_LDFLAGS = $(AM_LDFLAGS) $(BOOST_FILESYSTEM_LDFLAGS) $(BOOST_PROGRAM_OPTIONS_LDFLAGS) $(BOOST_RANDOM_LDFLAGS) $(BOOST_SYSTEM_LDFLAGS) $(BOOST_THREAD_LDFLAGS) -
src/Parameters/Makefile.am
ra1436b r36bb2d 19 19 Parameters/Validators/Specific/RealSpaceMatrixInvertibleValidator.cpp \ 20 20 Parameters/Validators/Specific/RealSpaceMatrixSymmetricValidator.cpp \ 21 Parameters/Validators/Specific/ShapeNameValidator.cpp \ 22 Parameters/Validators/Specific/ShapeOpValidator.cpp \ 23 Parameters/Validators/Specific/ShapeTypeValidator.cpp \ 21 24 Parameters/Validators/Specific/TimeStepPresentValidator.cpp \ 22 25 Parameters/Validators/Specific/VectorNotZeroValidator.cpp \ … … 58 61 Parameters/Validators/Specific/RealSpaceMatrixSymmetricValidator.hpp \ 59 62 Parameters/Validators/Specific/RotationAngleValidator.hpp \ 63 Parameters/Validators/Specific/ShapeNameValidator.hpp \ 64 Parameters/Validators/Specific/ShapeOpValidator.hpp \ 65 Parameters/Validators/Specific/ShapeTypeValidator.hpp \ 60 66 Parameters/Validators/Specific/TimeStepPresentValidator.hpp \ 61 67 Parameters/Validators/Specific/VectorNotZeroValidator.hpp \ -
src/Parameters/Validators/DiscreteValidator.hpp
ra1436b r36bb2d 42 42 43 43 void appendValidValue(const T &_value) throw(ParameterValidatorException); 44 const std::vector<T> &getValidValues() const;44 virtual const std::vector<T> &getValidValues() const; 45 45 46 46 private: -
src/Parameters/Validators/Ops_Validator_impl.hpp
ra1436b r36bb2d 49 49 return false; 50 50 } 51 52 Validator<T> *getA(){ return a; } 53 Validator<T> *getB(){ return b; } 51 54 52 55 private: -
src/Parameters/Validators/STLVectorValidator.hpp
ra1436b r36bb2d 122 122 } 123 123 124 Validator<value_type> *getElementwiseValidator(){ return ElementwiseValidator; } 125 Validator<size_t> *getNumberOfElementsValidator(){ return NumberOfElementsValidator; } 126 124 127 private: 125 128 /** Constructor for class STLVectorValidator, number of elements given by \ref RangeValidator. -
src/Parameters/Validators/Specific/BoundaryConditionValidator.cpp
ra1436b r36bb2d 41 41 #include "Box_BoundaryConditions.hpp" 42 42 43 BoundaryConditionValidator::BoundaryConditionValidator() : 44 DiscreteValidator<std::string>(std::vector<std::string>()) 45 {} 46 43 47 bool BoundaryConditionValidator::isValid(const std::string & _value) const 44 48 { 45 49 BoundaryConditions::BCContainer bc; 46 50 return (bc.ReConverterBiMap.find(_value) != bc.ReConverterBiMap.end()); 51 } 52 53 const std::vector<std::string> &BoundaryConditionValidator::getValidValues() const 54 { 55 BoundaryConditions::BCContainer bc; 56 currentList.clear(); 57 for (BoundaryConditions::BCContainer::StringToEnumMap::iterator iter = bc.ReConverterBiMap.begin(); 58 iter != bc.ReConverterBiMap.end(); 59 iter ++) 60 currentList.push_back(iter->first); 61 return currentList; 47 62 } 48 63 -
src/Parameters/Validators/Specific/BoundaryConditionValidator.hpp
ra1436b r36bb2d 17 17 #include <string> 18 18 19 #include "Parameters/Validators/ Validator.hpp"19 #include "Parameters/Validators/DiscreteValidator.hpp" 20 20 21 21 /** This validator checks whether the given string is one keyword of a box 22 22 * condition. 23 23 */ 24 class BoundaryConditionValidator : public Validator<std::string>24 class BoundaryConditionValidator : public DiscreteValidator<std::string> 25 25 { 26 public: 27 BoundaryConditionValidator(); 26 28 bool isValid(const std::string & _value) const; 29 const std::vector<std::string> &getValidValues() const; 27 30 bool operator==(const Validator<std::string> &_instance) const; 28 31 Validator< std::string >* clone() const; 32 private: 33 mutable std::vector<std::string> currentList; 29 34 }; 30 35 -
src/Parameters/Validators/Specific/ParserTypeValidator.cpp
ra1436b r36bb2d 39 39 40 40 #include "Parser/FormatParserStorage.hpp" 41 #include "Parser/ParserTypes.hpp" 41 42 42 bool ParserTypeValidator::isValid(const std::string & _value) const 43 ParserTypeValidator::ParserTypeValidator() : 44 DiscreteValidator<std::string>(std::vector<std::string>()) 43 45 { 44 return (FormatParserStorage::getInstance().getTypeFromName(_value) != ParserTypes_end); 45 } 46 47 bool ParserTypeValidator::operator==(const Validator<std::string> &_instance) const 48 { 49 const ParserTypeValidator *inst = 50 dynamic_cast<const ParserTypeValidator *>(&_instance); 51 if (inst) 52 return true; 53 else 54 return false; 55 } 56 57 Validator< std::string >* ParserTypeValidator::clone() const 58 { 59 Validator< std::string > *inst = 60 new ParserTypeValidator(); 61 return inst; 46 for (ParserTypes t = ParserTypes_begin; t != ParserTypes_end; ++ t) 47 appendValidValue(FormatParserStorage::getInstance().getNameFromType(t)); 62 48 } 63 49 -
src/Parameters/Validators/Specific/ParserTypeValidator.hpp
ra1436b r36bb2d 17 17 #include <string> 18 18 19 #include "Parameters/Validators/ Validator.hpp"19 #include "Parameters/Validators/DiscreteValidator.hpp" 20 20 21 21 /** This validator checks whether the given string refers to a valid 22 22 * \ref FormatParser type. 23 23 */ 24 class ParserTypeValidator : public Validator<std::string>24 class ParserTypeValidator : public DiscreteValidator<std::string> 25 25 { 26 bool isValid(const std::string & _value) const; 27 bool operator==(const Validator<std::string> &_instance) const; 28 Validator< std::string >* clone() const; 26 public: 27 ParserTypeValidator(); 29 28 }; 30 29 -
src/Parameters/Validators/Specific/RandomNumberValidators.cpp
ra1436b r36bb2d 41 41 #include "RandomNumbers/RandomNumberEngineFactory.hpp" 42 42 43 RandomNumberDistributionNameValidator::RandomNumberDistributionNameValidator() : 44 DiscreteValidator<std::string>(std::vector<std::string>()) 45 {} 46 43 47 bool RandomNumberDistributionNameValidator::isValid(const std::string & _value) const 44 48 { … … 52 56 } 53 57 return false; 58 } 59 60 const std::vector<std::string> &RandomNumberDistributionNameValidator::getValidValues() const 61 { 62 currentList.clear(); 63 RandomNumberDistributionFactory::getInstance(); 64 for (RandomNumberDistributionFactory::NameMap::const_iterator 65 iter = RandomNumberDistributionFactory::getInstance().names.begin(); 66 iter != RandomNumberDistributionFactory::getInstance().names.end(); 67 ++iter) 68 currentList.push_back(iter->second); 69 return currentList; 54 70 } 55 71 … … 79 95 80 96 97 RandomNumberEngineNameValidator::RandomNumberEngineNameValidator() : 98 DiscreteValidator<std::string>(std::vector<std::string>()) 99 {} 100 81 101 bool RandomNumberEngineNameValidator::isValid(const std::string & _value) const 82 102 { … … 90 110 } 91 111 return false; 112 } 113 114 const std::vector<std::string> &RandomNumberEngineNameValidator::getValidValues() const 115 { 116 currentList.clear(); 117 RandomNumberEngineFactory::getInstance(); 118 for (RandomNumberEngineFactory::NameMap::const_iterator 119 iter = RandomNumberEngineFactory::getInstance().names.begin(); 120 iter != RandomNumberEngineFactory::getInstance().names.end(); 121 ++iter) 122 currentList.push_back(iter->second); 123 return currentList; 92 124 } 93 125 -
src/Parameters/Validators/Specific/RandomNumberValidators.hpp
ra1436b r36bb2d 17 17 #include <string> 18 18 19 #include "Parameters/Validators/ Validator.hpp"19 #include "Parameters/Validators/DiscreteValidator.hpp" 20 20 21 21 /** This validator checks whether the given string contains the name of a 22 22 * present \ref RandomNumberDistribution. 23 23 */ 24 class RandomNumberDistributionNameValidator : public Validator<std::string>24 class RandomNumberDistributionNameValidator : public DiscreteValidator<std::string> 25 25 { 26 public: 27 RandomNumberDistributionNameValidator(); 26 28 bool isValid(const std::string & _value) const; 29 const std::vector<std::string> &getValidValues() const; 27 30 bool operator==(const Validator<std::string> &_instance) const; 28 31 Validator< std::string >* clone() const; 32 private: 33 mutable std::vector<std::string> currentList; 29 34 }; 30 35 … … 32 37 * present \ref RandomNumberEngine. 33 38 */ 34 class RandomNumberEngineNameValidator : public Validator<std::string>39 class RandomNumberEngineNameValidator : public DiscreteValidator<std::string> 35 40 { 41 public: 42 RandomNumberEngineNameValidator(); 36 43 bool isValid(const std::string & _value) const; 44 const std::vector<std::string> &getValidValues() const; 37 45 bool operator==(const Validator<std::string> &_instance) const; 38 46 Validator< std::string >* clone() const; 47 private: 48 mutable std::vector<std::string> currentList; 39 49 }; 40 50 -
src/Shapes/BaseShapes.cpp
ra1436b r36bb2d 61 61 62 62 bool Cylinder_impl::isOnSurface(const Vector &point) const { 63 return fabs(Vector(point[0], point[1], 0.0).NormSquared()-1.0)<MYEPSILON && 64 (point[2] > -1.0-MYEPSILON) && (point[2] < 1.0+MYEPSILON); 63 // on the side? 64 if (fabs(Vector(point[0], point[1], 0.0).NormSquared()-1.0)<MYEPSILON && 65 (point[2] > -1.0-MYEPSILON) && (point[2] < 1.0+MYEPSILON)) 66 return true; 67 // on top/bottom? 68 if ((Vector(point[0], point[1], 0.0).NormSquared()< 1.0 + MYEPSILON) && 69 ((fabs(point[2]-1)<MYEPSILON) || (fabs(point[2]+1)<MYEPSILON))) 70 return true; 71 return false; 65 72 66 73 } … … 71 78 } 72 79 73 if ((fabs(point[2]-1)<MYEPSILON) || (fabs(point[2])<MYEPSILON)) 74 return Vector(0.0, 0.0, point[2]); 80 Vector n = Vector(0, 0, 0); 81 if ((fabs(point[2]-1)<MYEPSILON) || (fabs(point[2]+1)<MYEPSILON)) 82 n += Vector(0.0, 0.0, point[2]); 75 83 else 76 return Vector(point[0], point[1], 0.0); 84 n += Vector(point[0], point[1], 0.0); 85 n.Normalize(); 86 return n; 77 87 } 78 88 … … 109 119 std::vector<double> solutions; 110 120 111 // Common routine to solve quadratic quations, anywhere?121 // Common routine to solve quadratic equations, anywhere? 112 122 const double neg_p_half = -B/(2.0*A); 113 123 const double q = C/A; … … 168 178 169 179 for(int useg=0; useg<nu; useg++) 170 for(int zseg=0; zseg< nz; zseg++)180 for(int zseg=0; zseg<=nz; zseg++) 171 181 result.push_back(Vector(cos(useg*dphi), sin(useg*dphi), zseg*dz-1.0)); 172 182 … … 366 376 // figure out on which sides the Vector lies (maximum 3, when it is in a corner) 367 377 for(int i=NDIM;i--;){ 368 if( fabs(fabs(point[i])-1)<MYEPSILON){378 if((fabs(point[i])<MYEPSILON) || (fabs(point[i]-1)<MYEPSILON)){ 369 379 // add the scaled (-1/+1) Vector to the set of surface vectors 370 res[i] = point[i] ;380 res[i] = point[i] * 2.0 - 1.0; 371 381 } 372 382 } … … 442 452 std::vector<Vector> Cuboid_impl::getHomogeneousPointsOnSurface(const size_t N) const { 443 453 std::vector<Vector> PointsOnSurface; 444 ASSERT(false, "Cuboid_impl::getHomogeneousPointsOnSurface() not implemented yet"); 454 // sides 455 int n = sqrt((N - 1) / 6) + 1; 456 for (int i=0; i<=n; i++){ 457 double ii = (double)i / (double)n; 458 for (int k=0; k<n; k++){ 459 double kk = (double)k / (double)n; 460 PointsOnSurface.push_back(Vector(ii, kk, 1)); 461 PointsOnSurface.push_back(Vector(ii, 1, 1-kk)); 462 PointsOnSurface.push_back(Vector(ii, 1-kk, 0)); 463 PointsOnSurface.push_back(Vector(ii, 0, kk)); 464 } 465 } 466 // top and bottom 467 for (int i=1; i<n; i++){ 468 double ii = (double)i / (double)n; 469 for (int k=1; k<n; k++){ 470 double kk = (double)k / (double)n; 471 PointsOnSurface.push_back(Vector(0, ii, kk)); 472 PointsOnSurface.push_back(Vector(1, ii, kk)); 473 } 474 } 445 475 return PointsOnSurface; 446 476 } -
src/Shapes/Makefile.am
ra1436b r36bb2d 5 5 Shapes/BaseShapes.cpp \ 6 6 Shapes/Shape.cpp \ 7 Shapes/ShapeOps.cpp 7 Shapes/ShapeFactory.cpp \ 8 Shapes/ShapeOps.cpp \ 9 Shapes/ShapeRegistry.cpp 8 10 SHAPEHEADER = \ 9 11 Shapes/BaseShapes.hpp \ … … 12 14 Shapes/Shape_impl.hpp \ 13 15 Shapes/ShapeExceptions.hpp \ 16 Shapes/ShapeFactory.hpp \ 14 17 Shapes/ShapeOps.hpp \ 15 18 Shapes/ShapeOps_impl.hpp \ 19 Shapes/ShapeRegistry.hpp \ 16 20 Shapes/ShapeType.hpp 17 21 -
src/Shapes/Shape.cpp
ra1436b r36bb2d 52 52 53 53 Shape::Shape(const Shape& src) : 54 impl(src.getImpl()) 54 impl(src.getImpl()), name(src.getName()) 55 55 {} 56 56 … … 75 75 double Shape::getRadius() const{ 76 76 return impl->getRadius(); 77 } 78 79 void Shape::setName(const std::string &_name){ 80 name = _name; 81 } 82 83 std::string Shape::getName() const{ 84 return name; 77 85 } 78 86 -
src/Shapes/Shape.hpp
ra1436b r36bb2d 58 58 enum ShapeType getType() const; 59 59 60 void setName(const std::string &_name); 61 std::string getName() const; 62 60 63 protected: 61 64 impl_ptr getImpl() const; … … 63 66 private: 64 67 impl_ptr impl; 68 std::string name; 65 69 }; 66 70 -
src/Shapes/ShapeType.hpp
ra1436b r36bb2d 22 22 PolygonType, 23 23 CombinedType, 24 MAX_ShapeType,25 CylinderType24 CylinderType, 25 MAX_ShapeType 26 26 }; 27 27 -
src/Shapes/unittests/Makefile.am
ra1436b r36bb2d 5 5 SHAPETESTSSOURCES = \ 6 6 ../Shapes/unittests/BaseShapesUnitTest.cpp \ 7 ../Shapes/unittests/ShapeFactoryUnitTest.cpp \ 7 8 ../Shapes/unittests/ShapeOpsUnitTest.cpp \ 9 ../Shapes/unittests/ShapeRegistryUnitTest.cpp \ 8 10 ../Shapes/unittests/Shape_HomogeneousPointsUnitTest.cpp 9 11 10 12 SHAPETESTSHEADERS= \ 11 13 ../Shapes/unittests/BaseShapesUnitTest.hpp \ 14 ../Shapes/unittests/ShapeFactoryUnitTest.hpp \ 12 15 ../Shapes/unittests/ShapeOpsUnitTest.hpp \ 16 ../Shapes/unittests/ShapeRegistryUnitTest.hpp \ 13 17 ../Shapes/unittests/Shape_HomogeneousPointsUnitTest.cpp 14 18 15 19 SHAPETESTS = \ 16 20 BaseShapesUnitTest \ 21 ShapeFactoryUnitTest \ 17 22 ShapeOpsUnitTest \ 23 ShapeRegistryUnitTest \ 18 24 Shape_HomogeneousPointsUnitTest 19 25 … … 38 44 BaseShapesUnitTest_LDADD = $(SHAPELIBS) 39 45 46 ShapeFactoryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 47 ../Shapes/unittests/ShapeFactoryUnitTest.cpp \ 48 ../Shapes/unittests/ShapeFactoryUnitTest.hpp \ 49 ../Shapes/unittests/stubs/ApproximateShapeAreaStub.cpp \ 50 ../Shapes/unittests/stubs/ApproximateShapeVolumeStub.cpp 51 nodist_ShapeFactoryUnitTest_SOURCES = \ 52 ../Helpers/defs.hpp \ 53 ../Helpers/defs.cpp 54 ShapeFactoryUnitTest_LDADD = $(SHAPELIBS) 55 40 56 ShapeOpsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 41 57 ../Shapes/unittests/ShapeOpsUnitTest.cpp \ … … 47 63 ../Helpers/defs.cpp 48 64 ShapeOpsUnitTest_LDADD = $(SHAPELIBS) 65 66 ShapeRegistryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 67 ../Shapes/unittests/ShapeRegistryUnitTest.cpp \ 68 ../Shapes/unittests/ShapeRegistryUnitTest.hpp \ 69 ../Shapes/unittests/stubs/ApproximateShapeAreaStub.cpp \ 70 ../Shapes/unittests/stubs/ApproximateShapeVolumeStub.cpp 71 nodist_ShapeRegistryUnitTest_SOURCES = \ 72 ../Helpers/defs.hpp \ 73 ../Helpers/defs.cpp 74 ShapeRegistryUnitTest_LDADD = $(SHAPELIBS) 49 75 50 76 Shape_HomogeneousPointsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ -
src/UIElements/CommandLineUI/CommandLineParser.cpp
ra1436b r36bb2d 67 67 command("Command options"), 68 68 fill("fill options"), 69 shape("shape options"), 69 70 fragmentation("Fragmentation options"), 70 71 graph("Graph options"), … … 82 83 CmdParserLookup["edit"] = &edit; 83 84 CmdParserLookup["fill"] = &fill; 85 CmdParserLookup["shape"] = &shape; 84 86 CmdParserLookup["fragmentation"] = &fragmentation; 85 87 CmdParserLookup["graph"] = &graph; -
src/UIElements/CommandLineUI/CommandLineParser.hpp
ra1436b r36bb2d 59 59 po::options_description edit; 60 60 po::options_description fill; 61 po::options_description shape; 61 62 po::options_description fragmentation; 62 63 po::options_description graph; -
src/UIElements/Makefile.am
ra1436b r36bb2d 167 167 UIElements/Views/Qt4/QtInfoBox.cpp \ 168 168 UIElements/Views/Qt4/QtMoleculeList.cpp \ 169 UIElements/Views/Qt4/QtShapeController.cpp \ 170 UIElements/Views/Qt4/QtShapeList.cpp \ 169 171 UIElements/Views/Qt4/QtStatusBar.cpp \ 170 172 UIElements/Views/Qt4/QtToolBar.cpp \ … … 174 176 UIElements/Views/Qt4/Qt3D/GLMoleculeObject_atom.cpp \ 175 177 UIElements/Views/Qt4/Qt3D/GLMoleculeObject_bond.cpp \ 176 UIElements/Views/Qt4/Qt3D/GLMoleculeObject_molecule.cpp 178 UIElements/Views/Qt4/Qt3D/GLMoleculeObject_molecule.cpp \ 179 UIElements/Views/Qt4/Qt3D/GLMoleculeObject_shape.cpp 177 180 # UIElements/Views/Qt4/dialoglight.cpp 178 181 … … 185 188 UIElements/Views/Qt4/QtInfoBox.hpp \ 186 189 UIElements/Views/Qt4/QtMoleculeList.hpp \ 190 UIElements/Views/Qt4/QtShapeController.hpp \ 191 UIElements/Views/Qt4/QtShapeList.hpp \ 187 192 UIElements/Views/Qt4/QtStatusBar.hpp \ 188 193 UIElements/Views/Qt4/QtToolBar.hpp \ … … 192 197 UIElements/Views/Qt4/Qt3D/GLMoleculeObject_atom.hpp \ 193 198 UIElements/Views/Qt4/Qt3D/GLMoleculeObject_bond.hpp \ 194 UIElements/Views/Qt4/Qt3D/GLMoleculeObject_molecule.hpp 199 UIElements/Views/Qt4/Qt3D/GLMoleculeObject_molecule.hpp \ 200 UIElements/Views/Qt4/Qt3D/GLMoleculeObject_shape.hpp 195 201 196 202 QTUIUI_UIFILES = \ … … 303 309 304 310 libMolecuilderQtUI_la_LIBADD = \ 311 ../data/icons/libicons.la \ 305 312 ${QT_LIBS} \ 306 313 -lQtOpenGL \ 307 314 ${GLU_LIBS} 315 316 ##libMolecuilderQtUI_la_LDADD = \ 317 ## ../data/icons/libicons.a 308 318 309 319 nobase_libMolecuilderQtUI_la_include_HEADERS = ${QTUIHEADER} $(QTUIUI_UIFILES) -
src/UIElements/Menu/MenuDescription.cpp
ra1436b r36bb2d 71 71 MenuPositionMap->insert(std::make_pair("selection",TopPosition("edit",4))); 72 72 MenuPositionMap->insert(std::make_pair("tesselation",TopPosition("tools",2))); 73 MenuPositionMap->insert(std::make_pair("shape",TopPosition("tools",6))); 73 74 MenuPositionMap->insert(std::make_pair("tools",TopPosition("",4))); 74 75 MenuPositionMap->insert(std::make_pair("world",TopPosition("",1))); … … 86 87 MenuDescriptionsMap->insert(std::make_pair("selection","Select atoms/molecules")); 87 88 MenuDescriptionsMap->insert(std::make_pair("tesselation","Tesselate molecules")); 89 MenuDescriptionsMap->insert(std::make_pair("shape","Edit shapes")); 88 90 MenuDescriptionsMap->insert(std::make_pair("tools","Various tools")); 89 91 MenuDescriptionsMap->insert(std::make_pair("world","Edit world")); … … 101 103 MenuNameMap->insert(std::make_pair("selection","Selection")); 102 104 MenuNameMap->insert(std::make_pair("tesselation","Tesselation")); 105 MenuNameMap->insert(std::make_pair("shape","Shape")); 103 106 MenuNameMap->insert(std::make_pair("tools","Tools")); 104 107 MenuNameMap->insert(std::make_pair("world","Globals")); -
src/UIElements/Qt4/QtMainWindow.cpp
ra1436b r36bb2d 53 53 #include "Views/Qt4/QtMoleculeList.hpp" 54 54 #include "Views/Qt4/QtElementList.hpp" 55 #include "Views/Qt4/QtShapeController.hpp" 55 56 #include "Views/Qt4/QtInfoBox.hpp" 56 57 #include "Views/Qt4/QtStatusBar.hpp" … … 70 71 #include "Actions/WorldAction/OutputAsAction.hpp" 71 72 73 72 74 using namespace MoleCuilder; 73 75 … … 75 77 theApp(_theApp) 76 78 { 79 Q_INIT_RESOURCE(icons); 77 80 QCoreApplication::setOrganizationName("ins"); 78 81 QCoreApplication::setOrganizationDomain("ins.uni-bonn.de"); … … 80 83 QSplitter *splitter1 = new QSplitter (Qt::Horizontal, this ); 81 84 QSplitter *splitter2 = new QSplitter (Qt::Vertical, splitter1 ); 85 QSplitter *splitter3 = new QSplitter (Qt::Vertical, splitter1 ); 82 86 QTabWidget *worldTab = new QTabWidget(splitter2); 83 87 84 88 moleculeList = new QtMoleculeList(worldTab); 85 89 elementList = new QtElementList(worldTab); 90 shapeController = new QtShapeController(worldTab); 86 91 87 92 infoBox = new QtInfoBox(); … … 101 106 setCentralWidget(splitter1); 102 107 splitter1->addWidget(splitter2); 103 splitter1->addWidget(infoBox); 108 splitter1->addWidget(splitter3); 109 splitter1->setStretchFactor(0, 10); 110 splitter3->addWidget(infoBox); 111 splitter3->addWidget(shapeController); 104 112 splitter2->addWidget(glWorldView); 105 113 splitter2->addWidget(worldTab); -
src/UIElements/Qt4/QtMainWindow.hpp
ra1436b r36bb2d 25 25 class QtMoleculeList; 26 26 class QtElementList; 27 class QtShapeController; 27 28 class StringView; 28 29 class GLWorldView; … … 51 52 QtMoleculeList *moleculeList; 52 53 QtElementList *elementList; 54 QtShapeController *shapeController; 53 55 GLWorldView *glWorldView; 54 56 QtInfoBox *infoBox; -
src/UIElements/Qt4/Query/AtomsQtQuery.cpp
ra1436b r36bb2d 45 45 QtDialog::AtomsQtQuery::AtomsQtQuery(Parameter<std::vector<const atom *> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 46 46 QtQuery<std::vector<const atom *> >(_param, _title), 47 QtQueryList<const atom *>(_par ent, _dialog, temp)47 QtQueryList<const atom *>(_param, _parent, _dialog, temp) 48 48 { 49 49 ListQuerySubDialog *subDialog = new ListQuerySubDialog(this); -
src/UIElements/Qt4/Query/DoublesQtQuery.cpp
ra1436b r36bb2d 45 45 QtDialog::DoublesQtQuery::DoublesQtQuery(Parameter<std::vector<double> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 46 46 QtQuery<std::vector<double> >(_param, _title), 47 QtQueryList<double>(_par ent, _dialog, temp)47 QtQueryList<double>(_param, _parent, _dialog, temp) 48 48 { 49 49 ListQuerySubDialog *subDialog = new ListQuerySubDialog(this); -
src/UIElements/Qt4/Query/ElementsQtQuery.cpp
ra1436b r36bb2d 46 46 QtDialog::ElementsQtQuery::ElementsQtQuery(Parameter<std::vector<const element *> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 47 47 QtQuery<std::vector<const element *> >(_param, _title), 48 QtQueryList<const element *>(_par ent, _dialog, temp)48 QtQueryList<const element *>(_param, _parent, _dialog, temp) 49 49 { 50 50 ListQuerySubDialog *subDialog = new ListQuerySubDialog(this); -
src/UIElements/Qt4/Query/FilesQtQuery.cpp
ra1436b r36bb2d 46 46 QtDialog::FilesQtQuery::FilesQtQuery(Parameter<std::vector<boost::filesystem::path> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 47 47 QtQuery<std::vector<boost::filesystem::path> >(_param, _title), 48 QtQueryList<boost::filesystem::path>(_par ent, _dialog, temp)48 QtQueryList<boost::filesystem::path>(_param, _parent, _dialog, temp) 49 49 { 50 50 ListQuerySubDialog *subDialog = new ListQuerySubDialog(this); -
src/UIElements/Qt4/Query/IntsQtQuery.cpp
ra1436b r36bb2d 45 45 QtDialog::IntsQtQuery::IntsQtQuery(Parameter<std::vector<int> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 46 46 QtQuery<std::vector<int> >(_param, _title), 47 QtQueryList<int>(_par ent, _dialog, temp)47 QtQueryList<int>(_param, _parent, _dialog, temp) 48 48 { 49 49 ListQuerySubDialog *subDialog = new ListQuerySubDialog(this); -
src/UIElements/Qt4/Query/MoleculesQtQuery.cpp
ra1436b r36bb2d 45 45 QtDialog::MoleculesQtQuery::MoleculesQtQuery(Parameter<std::vector<const molecule *> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 46 46 QtQuery<std::vector<const molecule *> >(_param, _title), 47 QtQueryList<const molecule *>(_par ent, _dialog, temp)47 QtQueryList<const molecule *>(_param, _parent, _dialog, temp) 48 48 { 49 49 ListQuerySubDialog *subDialog = new ListQuerySubDialog(this); -
src/UIElements/Qt4/Query/QtQuery.hpp
ra1436b r36bb2d 306 306 public slots: 307 307 void onUpdate(const QString&); 308 void onUpdateCombo(int index); 308 309 309 310 private: … … 312 313 QLabel *titleLabel; 313 314 QLineEdit *inputBox; 315 QComboBox *comboBox; 314 316 Dialog *dialog; 315 317 }; -
src/UIElements/Qt4/Query/QtQueryList.hpp
ra1436b r36bb2d 17 17 #include "UIElements/Dialog.hpp" 18 18 #include "Parameters/Parameter.hpp" 19 #include "Parameters/Validators/STLVectorValidator.hpp" 20 #include "Parameters/Validators/Ops_Validator_impl.hpp" 19 21 20 22 class QListWidget; … … 50 52 class QtQueryList : public QtQueryListUntyped { 51 53 public: 52 QtQueryList( QBoxLayout *parent, Dialog *_dialog, std::vector<T> &_temp) : QtQueryListUntyped(parent, _dialog), tempRef(_temp)54 QtQueryList(Parameter<std::vector<T> > &parentParam, QBoxLayout *parent, Dialog *_dialog, std::vector<T> &_temp) : QtQueryListUntyped(parent, _dialog), tempRef(_temp) 53 55 { 54 subParam = new Parameter<T>("sub-param"); 56 // do we have an STLVectorValidator? 57 Validator<std::vector<T> > *val = &parentParam.getValidator(); 58 STLVectorValidator<std::vector<T> > *vector_val = NULL; 59 60 // might be hidden inside an And_Validator 61 And_Validator<std::vector<T> > * and_val = dynamic_cast<And_Validator<std::vector<T> > *>(val); 62 if (and_val){ 63 if (dynamic_cast<STLVectorValidator<std::vector<T> > *>(and_val->getA())) 64 vector_val = dynamic_cast<STLVectorValidator<std::vector<T> > *>(and_val->getA()); 65 else if (dynamic_cast<STLVectorValidator<std::vector<T> > *>(and_val->getB())) 66 vector_val = dynamic_cast<STLVectorValidator<std::vector<T> > *>(and_val->getB()); 67 }else{ 68 vector_val = dynamic_cast<STLVectorValidator<std::vector<T> > *>(val); 69 } 70 71 if (vector_val){ 72 // if so, try to use its ElementwiseValidator 73 subParam = new Parameter<T>("sub-param", *(vector_val->getElementwiseValidator())); 74 }else{ 75 subParam = new Parameter<T>("sub-param"); 76 } 55 77 } 56 78 virtual ~QtQueryList() -
src/UIElements/Qt4/Query/StringQtQuery.cpp
ra1436b r36bb2d 36 36 #include <Qt/qlabel.h> 37 37 #include <Qt/qlineedit.h> 38 #include <Qt/qcombobox.h> 38 39 39 40 #include "CodePatterns/MemDebug.hpp" … … 52 53 thisLayout = new QHBoxLayout(); 53 54 titleLabel = new QLabel(QString(getTitle().c_str())); 54 inputBox = new QLineEdit();55 55 parent->addLayout(thisLayout); 56 56 thisLayout->addWidget(titleLabel); 57 thisLayout->addWidget(inputBox);58 57 59 onUpdate(inputBox->text()); 60 connect(inputBox,SIGNAL(textChanged(const QString&)),this,SLOT(onUpdate(const QString&))); 58 59 60 if (dynamic_cast<DiscreteValidator<std::string>*>(&_param.getValidator()) != NULL){ 61 // Discrete set of valid string -> use a ComboBox. 62 63 const std::vector<std::string> &strings = dynamic_cast<DiscreteValidator<std::string>*>(&_param.getValidator())->getValidValues(); 64 comboBox = new QComboBox(); 65 for(vector<std::string>::const_iterator iter = strings.begin(); 66 iter != strings.end(); 67 ++iter) { 68 comboBox->addItem(QString((*iter).c_str())); 69 } 70 thisLayout->addWidget(comboBox); 71 72 connect(comboBox,SIGNAL(currentIndexChanged(int)),this,SLOT(onUpdateCombo(int))); 73 onUpdateCombo(0); 74 }else{ 75 // Use a LineEdit. 76 inputBox = new QLineEdit(); 77 thisLayout->addWidget(inputBox); 78 79 onUpdate(inputBox->text()); 80 connect(inputBox,SIGNAL(textChanged(const QString&)),this,SLOT(onUpdate(const QString&))); 81 } 61 82 } 62 83 … … 70 91 } 71 92 93 void QtDialog::StringQtQuery::onUpdateCombo(int newIndex) { 94 temp = comboBox->itemText(newIndex).toStdString(); 95 dialog->update(); 96 } 97 -
src/UIElements/Qt4/Query/StringsQtQuery.cpp
ra1436b r36bb2d 45 45 QtDialog::StringsQtQuery::StringsQtQuery(Parameter<std::vector<std::string> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 46 46 QtQuery<std::vector<std::string> >(_param, _title), 47 QtQueryList<std::string>(_par ent, _dialog, temp)47 QtQueryList<std::string>(_param, _parent, _dialog, temp) 48 48 { 49 49 ListQuerySubDialog *subDialog = new ListQuerySubDialog(this); -
src/UIElements/Qt4/Query/UnsignedIntQtQuery.cpp
ra1436b r36bb2d 54 54 inputBox = new QSpinBox(); 55 55 inputBox->setValue(temp); 56 inputBox->setMaximum(std::numeric_limits<int>::max()); // parameter is only int, so don't use std::numeric_limits<int>::max()! 56 57 parent->addLayout(thisLayout); 57 58 thisLayout->addWidget(titleLabel); -
src/UIElements/Qt4/Query/UnsignedIntsQtQuery.cpp
ra1436b r36bb2d 45 45 QtDialog::UnsignedIntsQtQuery::UnsignedIntsQtQuery(Parameter<std::vector<unsigned int> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 46 46 QtQuery<std::vector<unsigned int> >(_param, _title), 47 QtQueryList<unsigned int>(_par ent, _dialog, temp)47 QtQueryList<unsigned int>(_param, _parent, _dialog, temp) 48 48 { 49 49 ListQuerySubDialog *subDialog = new ListQuerySubDialog(this); -
src/UIElements/Qt4/Query/VectorsQtQuery.cpp
ra1436b r36bb2d 46 46 QtDialog::VectorsQtQuery::VectorsQtQuery(Parameter<std::vector<Vector> > &_param, std::string _title,QBoxLayout *_parent,Dialog *_dialog) : 47 47 QtQuery<std::vector<Vector> >(_param, _title), 48 QtQueryList<Vector>(_par ent, _dialog, temp)48 QtQueryList<Vector>(_param, _parent, _dialog, temp) 49 49 { 50 50 ListQuerySubDialog *subDialog = new ListQuerySubDialog(this); -
src/UIElements/Views/Qt4/Qt3D/GLMoleculeObject.cpp
ra1436b r36bb2d 81 81 } 82 82 83 GLMoleculeObject::GLMoleculeObject(QGLSceneNode *mesh, QObject *parent) 84 : QObject(parent) 85 { 86 //mesh->setParent(this); 87 for (int i=0;i<DETAILTYPES_MAX;i++) 88 m_mesh[i] = mesh; 89 m_scale = 1.0f; 90 m_scaleZ = 1.0f; 91 m_rotationAngle = 0.0f; 92 m_effect = 0; 93 m_objectId = -1; 94 m_hovering = false; 95 m_selected = false; 96 m_material = 0; 97 initStaticMaterials(); 98 } 99 83 100 GLMoleculeObject::GLMoleculeObject(QGLAbstractScene *scene, QObject *parent) 84 101 : QObject(parent) 85 102 { 86 103 scene->setParent(this); 87 m_mesh[0] = scene->mainNode(); 88 m_mesh[1] = scene->mainNode(); 89 m_mesh[2] = scene->mainNode(); 104 for (int i=0;i<DETAILTYPES_MAX;i++) 105 m_mesh[i] = scene->mainNode(); 90 106 m_scale = 1.0f; 91 107 m_scaleZ = 1.0f; -
src/UIElements/Views/Qt4/Qt3D/GLMoleculeObject.hpp
ra1436b r36bb2d 38 38 public: 39 39 explicit GLMoleculeObject(QGLSceneNode *mesh[], QObject *parent=0); 40 explicit GLMoleculeObject(QGLSceneNode *mesh, QObject *parent=0); 40 41 explicit GLMoleculeObject(QGLAbstractScene *scene, QObject *parent=0); 41 42 virtual ~GLMoleculeObject(); … … 70 71 void initStaticMaterials(); 71 72 void initialize(QGLView *view, QGLPainter *painter); 72 v oid draw(QGLPainter *painter, const QVector4D &cameraPlane);73 virtual void draw(QGLPainter *painter, const QVector4D &cameraPlane); 73 74 void drawSelectionBox(QGLPainter *painter); 74 75 … … 94 95 enum{DETAIL_HIGHEST, DETAIL_HIGH, DETAIL_MEDIUM, DETAIL_LOW, DETAILTYPES_MAX} DetailType; 95 96 96 pr ivate:97 protected: 97 98 98 99 static double detailMinDistance[DETAILTYPES_MAX]; -
src/UIElements/Views/Qt4/Qt3D/GLWorldScene.cpp
ra1436b r36bb2d 46 46 #include "GLMoleculeObject_bond.hpp" 47 47 #include "GLMoleculeObject_molecule.hpp" 48 #include "GLMoleculeObject_shape.hpp" 48 49 49 50 #include "CodePatterns/MemDebug.hpp" … … 59 60 #include "Descriptors/AtomIdDescriptor.hpp" 60 61 #include "Helpers/helpers.hpp" 62 #include "Shapes/ShapeRegistry.hpp" 61 63 #include "molecule.hpp" 62 64 #include "World.hpp" … … 293 295 294 296 emit changeOccured(); 297 } 298 299 /** Adds a shape to the scene. 300 * 301 * @param shape shape to be added 302 */ 303 void GLWorldScene::addShape(Shape &shape) 304 { 305 GLMoleculeObject_shape *shapeObject = new GLMoleculeObject_shape(shape, this); 306 ShapeNodeMap::iterator iter = ShapesinSceneMap.find(shape.getName()); 307 ASSERT(iter == ShapesinSceneMap.end(), 308 "GLWorldScene::addShape() - same shape "+shape.getName()+" added again."); 309 ShapesinSceneMap.insert( make_pair(shape.getName(), shapeObject) ); 310 } 311 312 void GLWorldScene::removeShape(Shape &shape) 313 { 314 ShapeNodeMap::iterator iter = ShapesinSceneMap.find(shape.getName()); 315 ASSERT(iter == ShapesinSceneMap.end(), 316 "GLWorldScene::removeShape() - shape "+shape.getName()+" not in scene."); 317 delete(iter->second); 318 } 319 320 void GLWorldScene::updateSelectedShapes() 321 { 322 foreach (QObject *obj, children()) { 323 GLMoleculeObject_shape *shapeobj = qobject_cast<GLMoleculeObject_shape *>(obj); 324 if (shapeobj){ 325 shapeobj->enable(ShapeRegistry::getInstance().isSelected(shapeobj->getShape())); 326 } 327 } 295 328 } 296 329 -
src/UIElements/Views/Qt4/Qt3D/GLWorldScene.hpp
ra1436b r36bb2d 26 26 class atom; 27 27 class molecule; 28 class Shape; 28 29 29 30 class QGLPainter; … … 34 35 class GLMoleculeObject_atom; 35 36 class GLMoleculeObject_molecule; 37 class GLMoleculeObject_shape; 36 38 37 39 /** This class contains a list of all molecules in the world. … … 86 88 void changeAtomId(GLMoleculeObject_atom *ob, int oldId, int newOd); 87 89 90 public: 91 void addShape(Shape &shape); 92 void removeShape(Shape &shape); 93 void updateSelectedShapes(); 94 88 95 private: 89 96 void init(); … … 96 103 typedef std::map< BondIds , GLMoleculeObject_bond* > BondNodeMap; 97 104 typedef std::map< moleculeId_t , GLMoleculeObject_molecule* > MoleculeNodeMap; 105 typedef std::map< std::string , GLMoleculeObject_shape* > ShapeNodeMap; 98 106 AtomNodeMap AtomsinSceneMap; 99 107 BondNodeMap BondsinSceneMap; 100 108 MoleculeNodeMap MoleculesinSceneMap; 109 ShapeNodeMap ShapesinSceneMap; 101 110 102 111 QGLSceneNode *meshEmpty[GLMoleculeObject::DETAILTYPES_MAX]; -
src/UIElements/Views/Qt4/Qt3D/GLWorldView.cpp
ra1436b r36bb2d 57 57 #include "CodePatterns/Observer/Notification.hpp" 58 58 #include "CodePatterns/Observer/ObserverLog.hpp" 59 #include "Shapes/ShapeRegistry.hpp" 59 60 #include "World.hpp" 60 61 #include "Box.hpp" … … 94 95 AtomObserver::getInstance().signOn(this, AtomObservable::PositionChanged); 95 96 97 ShapeRegistry::getInstance().signOn(this); 98 ShapeRegistry::getInstance().signOn(this, ShapeRegistry::ShapeInserted); 99 ShapeRegistry::getInstance().signOn(this, ShapeRegistry::ShapeRemoved); 100 ShapeRegistry::getInstance().signOn(this, ShapeRegistry::SelectionChanged); 101 96 102 redrawTimer = new QTimer(this); 97 103 } … … 106 112 World::getInstance().signOff(this, World::SelectionChanged); 107 113 AtomObserver::getInstance().signOff(this, AtomObservable::PositionChanged); 114 ShapeRegistry::getInstance().signOff(this); 115 ShapeRegistry::getInstance().signOff(this, ShapeRegistry::ShapeInserted); 116 ShapeRegistry::getInstance().signOff(this, ShapeRegistry::ShapeRemoved); 117 ShapeRegistry::getInstance().signOff(this, ShapeRegistry::SelectionChanged); 108 118 delete worldscene; 109 119 … … 158 168 stereoMenu->addAction(stereoAnaglyphAction); 159 169 stereoButton->setMenu(stereoMenu); 160 stereoButton->setIcon(QIcon ::fromTheme("find"));170 stereoButton->setIcon(QIcon(QPixmap(":/icon_view_stereo.png"))); 161 171 stereoButton->setPopupMode(QToolButton::InstantPopup); 162 172 toolbar->addWidget(stereoButton); … … 164 174 // selection mode 165 175 toolbar->addSeparator(); 166 QAction *selAtomAction = new QAction(QIcon ::fromTheme("edit-select-all"), tr("select atom by clicking"), this);176 QAction *selAtomAction = new QAction(QIcon(QPixmap(":/icon_select_atom.png")), tr("select atom by clicking"), this); 167 177 connect(selAtomAction, SIGNAL(triggered()), worldscene, SLOT(setSelectionModeAtom())); 168 178 toolbar->addAction(selAtomAction); 169 QAction *selMolAction = new QAction(QIcon ::fromTheme("edit-select-all"), tr("select molecule by clicking"), this);179 QAction *selMolAction = new QAction(QIcon(QPixmap(":/icon_select_molecule.png")), tr("select molecule by clicking"), this); 170 180 connect(selMolAction, SIGNAL(triggered()), worldscene, SLOT(setSelectionModeMolecule())); 171 181 toolbar->addAction(selMolAction); … … 351 361 #endif 352 362 emit changed(); 363 break; 364 } 365 default: 366 ASSERT(0, "GLWorldView::recieveNotification() - we cannot get here."); 367 break; 368 } 369 } else if (static_cast<ShapeRegistry*>(publisher) == ShapeRegistry::getPointer()) { 370 switch (notification->getChannelNo()) { 371 case ShapeRegistry::ShapeInserted: 372 { 373 worldscene->addShape(*ShapeRegistry::getInstance().lastChanged()); 374 break; 375 } 376 case ShapeRegistry::ShapeRemoved: 377 { 378 worldscene->removeShape(*ShapeRegistry::getInstance().lastChanged()); 379 break; 380 } 381 case ShapeRegistry::SelectionChanged: 382 { 383 worldscene->updateSelectedShapes(); 353 384 break; 354 385 } -
src/UIElements/Views/Qt4/Qt3D/GLWorldView.hpp
ra1436b r36bb2d 98 98 99 99 private: 100 100 101 GLWorldScene *worldscene; 101 102 -
src/UIElements/Views/Qt4/QtInfoBox.cpp
ra1436b r36bb2d 56 56 57 57 setMinimumWidth(200); 58 setMinimumHeight(200); 58 59 currentPage = 0; 59 60 -
src/cleanUp.cpp
ra1436b r36bb2d 59 59 #include "Parser/XmlParser.hpp" 60 60 61 #include "Shapes/ShapeFactory.hpp" 62 #include "Shapes/ShapeRegistry.hpp" 63 61 64 #include "UIElements/CommandLineUI/CommandLineParser.hpp" 62 65 #include "UIElements/Menu/MenuDescription.hpp" … … 93 96 RandomNumberEngineFactory::purgeInstance(); 94 97 RandomNumberGeneratorFactory::purgeInstance(); 98 ShapeFactory::purgeInstance(); 99 ShapeRegistry::purgeInstance(); 95 100 FormatParserStorage::purgeInstance(); 96 101 ChangeTracker::purgeInstance(); -
tests/Python/AllActions/options.dat
ra1436b r36bb2d 165 165 select-molecules-by-formula "H2O" 166 166 select-molecules-by-name "water" 167 select-shape-by-name "sphere2" 167 168 server-address "127.0.0.1" 168 169 server-port "1026" … … 179 180 set-tremolo-atomdata "ATOMDATA type id x=3" 180 181 set-world-time "10" 182 shape-name "sphere1" 183 shape-op "AND" 184 shape-type "sphere" 181 185 skiplines "1" 182 186 skiplines "2" 183 187 start-step "0" 184 188 stretch-bond "1.5" 189 stretch "1. 1. 1." 185 190 suspend-in-water "1.0" 186 191 tesselation-radius "5." 187 192 time-step-zero "0" 188 193 translate-atoms "1. 0. 0." 194 translation "0. 0. 0." 189 195 unselect-atom-by-element "1" 190 196 unselect-atom-by-element "4" … … 206 212 unselect-molecules-by-formula "H2O" 207 213 unselect-molecules-by-name "water" 214 unselect-shape-by-name "cube42" 208 215 verbose "3" 209 216 verlet-integration "forces.dat" -
tests/regression/Analysis/DipoleCorrelation-DiscreteAngles/testsuite-analysis-dipole-correlation-discrete-angles.at
ra1436b r36bb2d 51 51 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Analysis/DipoleCorrelation-DiscreteAngles/pre/water.xyz .], 0) 52 52 AT_CHECK([../../molecuilder -i waterbox-mirrored.xyz -o xyz --fill-void water.xyz --distances "3.1,3.1,3.1" --distance-to-boundary "1." --DoRotate 0], 0, [stdout], [stderr]) 53 AT_CHECK([../../molecuilder -i waterbox-mirrored.xyz -I -v 3 --select-atoms-inside-sphere 0.2 --position "5.63,5.71,5.71"--select-atoms-molecules --rotate-around-self 180 --axis "0,1,0"], 0, [stdout], [stderr])53 AT_CHECK([../../molecuilder -i waterbox-mirrored.xyz -I -v 3 --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "5.63,5.71,5.71" --stretch "0.2,0.2,0.2" --select-shape-by-name "sphere1" --select-atoms-inside-volume --select-atoms-molecules --rotate-around-self 180 --axis "0,1,0"], 0, [stdout], [stderr]) 54 54 AT_CHECK([../../molecuilder -i waterbox-mirrored.xyz -o xyz -I --select-all-molecules --dipole-correlation --bin-start -0.5 --bin-width 1. --bin-end 359.5 --output-file waterbox-mirrored_values.dat --bin-output-file waterbox-mirrored_histogram.dat], 0, [stdout], [stderr]) 55 55 AT_CHECK([file=waterbox-mirrored_histogram.dat; diff $file ${abs_top_srcdir}/tests/regression/Analysis/DipoleCorrelation-DiscreteAngles/post/waterbox-mirrored_histogram.dat], 0, [ignore], [ignore]) -
tests/regression/Atoms/RemoveCuboid/testsuite-atoms-remove-cuboid.at
ra1436b r36bb2d 41 41 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Atoms/RemoveCuboid/pre/test.xyz $file], 0) 42 42 AT_CHECK([chmod u+w $file], 0) 43 AT_CHECK([../../molecuilder -i $file -- select-atoms-inside-cuboid "2,2,2" --position "9.78,2.64,2.64" --angle-x 0. --angle-y 0. --angle-z 0.-r], 0, [stdout], [stderr])43 AT_CHECK([../../molecuilder -i $file --create-shape --shape-name "cube1" --shape-type "cube" --translation "9.78,2.64,2.64" --stretch "2,2,2" --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "cube1" --select-atoms-inside-volume -r], 0, [stdout], [stderr]) 44 44 AT_CHECK([sort -n $file | grep -v -E "^[[[:digit:]]]+" | grep -v "Created by" >test-withoutcuboid.xyz-sorted], 0, [ignore], [ignore]) 45 45 AT_CHECK([file=test-withoutcuboid.xyz-sorted; diff $file ${abs_top_srcdir}/tests/regression/Atoms/RemoveCuboid/post/test-withoutcuboid.xyz-sorted], 0, [ignore], [ignore]) … … 48 48 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Atoms/RemoveCuboid/pre/test.xyz $file], 0) 49 49 AT_CHECK([chmod u+w $file], 0) 50 AT_CHECK([../../molecuilder -i $file --select-all-atoms -- unselect-atoms-inside-cuboid "2,2,2" --position "9.78,2.64,2.64" --angle-x 0. --angle-y 0. --angle-z 0.-r], 0, [stdout], [stderr])50 AT_CHECK([../../molecuilder -i $file --select-all-atoms --create-shape --shape-name "cube1" --shape-type "cube" --translation "9.78,2.64,2.64" --stretch "2,2,2" --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "cube1" --unselect-atoms-inside-volume -r], 0, [stdout], [stderr]) 51 51 AT_CHECK([sort -n $file | grep -v -E "^[[[:digit:]]]+" | grep -v "Created by" >test-cuboid.xyz-sorted], 0, [ignore], [ignore]) 52 52 AT_CHECK([file=test-cuboid.xyz-sorted; diff $file ${abs_top_srcdir}/tests/regression/Atoms/RemoveCuboid/post/test-cuboid.xyz-sorted], 0, [ignore], [ignore]) … … 63 63 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Atoms/RemoveCuboid/pre/test.xyz $file], 0) 64 64 AT_CHECK([chmod u+w $file], 0) 65 AT_CHECK([../../molecuilder -i $file --select-all-atoms -- unselect-atoms-inside-cuboid "2,2,2" --position "9.78,2.64,2.64" --angle-x 0. --angle-y 0. --angle-z 0.-r --undo], 0, [stdout], [stderr])65 AT_CHECK([../../molecuilder -i $file --select-all-atoms --create-shape --shape-name "cube1" --shape-type "cube" --translation "9.78,2.64,2.64" --stretch "2,2,2" --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "cube1" --unselect-atoms-inside-volume -r --undo], 0, [stdout], [stderr]) 66 66 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Atoms/RemoveCuboid/pre/$file], 0, [ignore], [ignore]) 67 67 … … 69 69 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Atoms/RemoveCuboid/pre/test.xyz $file], 0) 70 70 AT_CHECK([chmod u+w $file], 0) 71 AT_CHECK([../../molecuilder -i $file -- select-atoms-inside-cuboid "2,2,2" --position "9.78,2.64,2.64" --angle-x 0. --angle-y 0. --angle-z 0.-r --undo], 0, [stdout], [stderr])71 AT_CHECK([../../molecuilder -i $file --create-shape --shape-name "cube1" --shape-type "cube" --translation "9.78,2.64,2.64" --stretch "2,2,2" --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "cube1" --select-atoms-inside-volume -r --undo], 0, [stdout], [stderr]) 72 72 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Atoms/RemoveCuboid/pre/$file], 0, [ignore], [ignore]) 73 73 … … 81 81 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Atoms/RemoveCuboid/pre/test.xyz $file], 0) 82 82 AT_CHECK([chmod u+w $file], 0) 83 AT_CHECK([../../molecuilder -i $file -- select-atoms-inside-cuboid "2,2,2" --position "9.78,2.64,2.64" --angle-x 0. --angle-y 0. --angle-z 0.-r --undo --redo], 0, [stdout], [stderr])83 AT_CHECK([../../molecuilder -i $file --create-shape --shape-name "cube1" --shape-type "cube" --translation "9.78,2.64,2.64" --stretch "2,2,2" --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "cube1" --select-atoms-inside-volume -r --undo --redo], 0, [stdout], [stderr]) 84 84 AT_CHECK([sort -n $file | grep -v -E "^[[[:digit:]]]+" | grep -v "Created by" >test-withoutcuboid.xyz-sorted], 0, [ignore], [ignore]) 85 85 AT_CHECK([file=test-withoutcuboid.xyz-sorted; diff $file ${abs_top_srcdir}/tests/regression/Atoms/RemoveCuboid/post/test-withoutcuboid.xyz-sorted], 0, [ignore], [ignore]) … … 88 88 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Atoms/RemoveCuboid/pre/test.xyz $file], 0) 89 89 AT_CHECK([chmod u+w $file], 0) 90 AT_CHECK([../../molecuilder -i $file --select-all-atoms -- unselect-atoms-inside-cuboid "2,2,2" --position "9.78,2.64,2.64" --angle-x 0. --angle-y 0. --angle-z 0.-r --undo --redo], 0, [stdout], [stderr])90 AT_CHECK([../../molecuilder -i $file --select-all-atoms --create-shape --shape-name "cube1" --shape-type "cube" --translation "9.78,2.64,2.64" --stretch "2,2,2" --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "cube1" --unselect-atoms-inside-volume -r --undo --redo], 0, [stdout], [stderr]) 91 91 AT_CHECK([sort -n $file | grep -v -E "^[[[:digit:]]]+" | grep -v "Created by" >test-cuboid.xyz-sorted], 0, [ignore], [ignore]) 92 92 AT_CHECK([file=test-cuboid.xyz-sorted; diff $file ${abs_top_srcdir}/tests/regression/Atoms/RemoveCuboid/post/test-cuboid.xyz-sorted], 0, [ignore], [ignore]) -
tests/regression/Atoms/RemoveSphere/testsuite-atoms-remove-sphere.at
ra1436b r36bb2d 41 41 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Atoms/RemoveSphere/pre/test.xyz $file], 0) 42 42 AT_CHECK([chmod u+w $file], 0) 43 AT_CHECK([../../molecuilder -i $file -- select-atoms-inside-sphere 7. --position "7.283585982, 3.275186040, 3.535886037" --angle-x 0. --angle-y 0. --angle-z 0.-r], 0, [stdout], [stderr])43 AT_CHECK([../../molecuilder -i $file --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "7.283585982, 3.275186040, 3.535886037" --stretch "7., 7., 7." --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "sphere1" --select-atoms-inside-volume -r], 0, [stdout], [stderr]) 44 44 AT_CHECK([sort -n $file | grep -v -E "^[[[:digit:]]]+" | grep -v "Created by" >test-withoutsphere.xyz-sorted], 0, [ignore], [ignore]) 45 45 AT_CHECK([file=test-withoutsphere.xyz-sorted; diff $file ${abs_top_srcdir}/tests/regression/Atoms/RemoveSphere/post/test-withoutsphere.xyz-sorted], 0, [ignore], [ignore]) … … 48 48 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Atoms/RemoveSphere/pre/test.xyz $file], 0) 49 49 AT_CHECK([chmod u+w $file], 0) 50 AT_CHECK([../../molecuilder -i $file --select-all-atoms -- unselect-atoms-inside-sphere 7. --position "7.283585982, 3.275186040, 3.535886037" --angle-x 0. --angle-y 0. --angle-z 0.-r], 0, [stdout], [stderr])50 AT_CHECK([../../molecuilder -i $file --select-all-atoms --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "7.283585982, 3.275186040, 3.535886037" --stretch "7., 7., 7." --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "sphere1" --unselect-atoms-inside-volume -r], 0, [stdout], [stderr]) 51 51 AT_CHECK([sort -n $file | grep -v -E "^[[[:digit:]]]+" | grep -v "Created by" >test-sphere.xyz-sorted], 0, [ignore], [ignore]) 52 52 AT_CHECK([file=test-sphere.xyz-sorted; diff $file ${abs_top_srcdir}/tests/regression/Atoms/RemoveSphere/post/test-sphere.xyz-sorted], 0, [ignore], [ignore]) … … 63 63 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Atoms/RemoveSphere/pre/test.xyz $file], 0) 64 64 AT_CHECK([chmod u+w $file], 0) 65 AT_CHECK([../../molecuilder -i $file -- select-atoms-inside-sphere 7. --position "7.283585982, 3.275186040, 3.535886037" --angle-x 0. --angle-y 0. --angle-z 0.-r --undo], 0, [stdout], [stderr])65 AT_CHECK([../../molecuilder -i $file --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "7.283585982, 3.275186040, 3.535886037" --stretch "7., 7., 7." --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "sphere1" --select-atoms-inside-volume -r --undo], 0, [stdout], [stderr]) 66 66 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Atoms/RemoveSphere/pre/$file], 0, [ignore], [ignore]) 67 67 … … 69 69 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Atoms/RemoveSphere/pre/test.xyz $file], 0) 70 70 AT_CHECK([chmod u+w $file], 0) 71 AT_CHECK([../../molecuilder -i $file --select-all-atoms -- unselect-atoms-inside-sphere 7. --position "7.283585982, 3.275186040, 3.535886037" --angle-x 0. --angle-y 0. --angle-z 0.-r --undo], 0, [stdout], [stderr])71 AT_CHECK([../../molecuilder -i $file --select-all-atoms --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "7.283585982, 3.275186040, 3.535886037" --stretch "7., 7., 7." --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "sphere1" --unselect-atoms-inside-volume -r --undo], 0, [stdout], [stderr]) 72 72 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Atoms/RemoveSphere/pre/$file], 0, [ignore], [ignore]) 73 73 … … 81 81 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Atoms/RemoveSphere/pre/test.xyz $file], 0) 82 82 AT_CHECK([chmod u+w $file], 0) 83 AT_CHECK([../../molecuilder -i $file -- select-atoms-inside-sphere 7. --position "7.283585982, 3.275186040, 3.535886037" --angle-x 0. --angle-y 0. --angle-z 0.-r --undo --redo], 0, [stdout], [stderr])83 AT_CHECK([../../molecuilder -i $file --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "7.283585982, 3.275186040, 3.535886037" --stretch "7., 7., 7." --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "sphere1" --select-atoms-inside-volume -r --undo --redo], 0, [stdout], [stderr]) 84 84 AT_CHECK([sort -n $file | grep -v -E "^[[[:digit:]]]+" | grep -v "Created by" >test-withoutsphere.xyz-sorted], 0, [ignore], [ignore]) 85 85 AT_CHECK([file=test-withoutsphere.xyz-sorted; diff $file ${abs_top_srcdir}/tests/regression/Atoms/RemoveSphere/post/test-withoutsphere.xyz-sorted], 0, [ignore], [ignore]) … … 88 88 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Atoms/RemoveSphere/pre/test.xyz $file], 0) 89 89 AT_CHECK([chmod u+w $file], 0) 90 AT_CHECK([../../molecuilder -i $file --select-all-atoms -- unselect-atoms-inside-sphere 7. --position "7.283585982, 3.275186040, 3.535886037" --angle-x 0. --angle-y 0. --angle-z 0.-r --undo --redo], 0, [stdout], [stderr])90 AT_CHECK([../../molecuilder -i $file --select-all-atoms --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "7.283585982, 3.275186040, 3.535886037" --stretch "7., 7., 7." --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "sphere1" --unselect-atoms-inside-volume -r --undo --redo], 0, [stdout], [stderr]) 91 91 AT_CHECK([sort -n $file | grep -v -E "^[[[:digit:]]]+" | grep -v "Created by" >test-sphere.xyz-sorted], 0, [ignore], [ignore]) 92 92 AT_CHECK([file=test-sphere.xyz-sorted; diff $file ${abs_top_srcdir}/tests/regression/Atoms/RemoveSphere/post/test-sphere.xyz-sorted], 0, [ignore], [ignore]) -
tests/regression/Filling/SphericalSurface/testsuite-molecules-fill-spherical-surface.at
ra1436b r36bb2d 42 42 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/SphericalSurface/pre/tensid.potentials .], 0) 43 43 AT_CHECK([chmod u+w $file], 0) 44 AT_CHECK([../../molecuilder --parse-tremolo-potentials tensid.potentials -i $file --select-all-molecules --rotate-to-principal-axis-system "0,0,-1" -- fill-spherical-surface --center "0,0,0" --radius 20.--count 200 --min-distance 3.1 --Alignment-Axis "0,0,1"], 0, [stdout], [stderr])44 AT_CHECK([../../molecuilder --parse-tremolo-potentials tensid.potentials -i $file --select-all-molecules --rotate-to-principal-axis-system "0,0,-1" --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "0,0,0" --stretch "20.,20.,20." --select-shape-by-name "sphere1" --fill-surface --count 200 --min-distance 3.1 --Alignment-Axis "0,0,1"], 0, [stdout], [stderr]) 45 45 AT_CHECK([grep "200 out of 200 returned true from predicate" stdout], 0, [ignore], [ignore]) 46 46 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Filling/SphericalSurface/post/tensid.data], 0, [ignore], [ignore]) … … 56 56 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/SphericalSurface/pre/tensid.potentials .], 0) 57 57 AT_CHECK([chmod u+w $file], 0) 58 AT_CHECK([../../molecuilder --parse-tremolo-potentials tensid.potentials -i $file --select-all-molecules --rotate-to-principal-axis-system "0,0,-1" -- fill-spherical-surface --center "0,0,0" --radius 20.--count 200 --min-distance 3.1 --Alignment-Axis "0,0,1" --undo], 0, [stdout], [stderr])58 AT_CHECK([../../molecuilder --parse-tremolo-potentials tensid.potentials -i $file --select-all-molecules --rotate-to-principal-axis-system "0,0,-1" --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "0,0,0" --stretch "20.,20.,20." --select-shape-by-name "sphere1" --fill-surface --count 200 --min-distance 3.1 --Alignment-Axis "0,0,1" --undo], 0, [stdout], [stderr]) 59 59 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Filling/SphericalSurface/post/$file], 0, [ignore], [ignore]) 60 60 … … 69 69 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Filling/SphericalSurface/pre/tensid.potentials .], 0) 70 70 AT_CHECK([chmod u+w $file], 0) 71 AT_CHECK([../../molecuilder --parse-tremolo-potentials tensid.potentials -i $file --select-all-molecules --rotate-to-principal-axis-system "0,0,-1" -- fill-spherical-surface --center "0,0,0" --radius 20.--count 200 --min-distance 3.1 --Alignment-Axis "0,0,1" --undo --redo], 0, [stdout], [stderr])71 AT_CHECK([../../molecuilder --parse-tremolo-potentials tensid.potentials -i $file --select-all-molecules --rotate-to-principal-axis-system "0,0,-1" --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "0,0,0" --stretch "20.,20.,20." --select-shape-by-name "sphere1" --fill-surface --count 200 --min-distance 3.1 --Alignment-Axis "0,0,1" --undo --redo], 0, [stdout], [stderr]) 72 72 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Filling/SphericalSurface/post/tensid.data], 0, [ignore], [ignore]) 73 73 -
tests/regression/Selection/Atoms/AtomsInsideCuboid/testsuite-selection-select-atoms-inside-cuboid-with-defaults.at
ra1436b r36bb2d 42 42 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz $file], 0) 43 43 AT_CHECK([chmod u+w $file], 0) 44 AT_CHECK([../../molecuilder -i $file -v 5 -- select-atoms-inside-cuboid "10,10,10" --position "0,0,0"-r], 0, [stdout], [stderr])44 AT_CHECK([../../molecuilder -i $file -v 5 --create-shape --shape-name "cube1" --shape-type "cube" --translation "0,0,0" --stretch "10, 10, 10" --select-shape-by-name "cube1" --select-atoms-inside-volume -r], 0, [stdout], [stderr]) 45 45 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideCuboid/post/allatomsoutsidecuboid.xyz], 0, [ignore], [ignore]) 46 46 … … 63 63 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz $file], 0) 64 64 AT_CHECK([chmod u+w $file], 0) 65 AT_CHECK([../../molecuilder -i $file -v 5 -- select-atoms-inside-cuboid "10,10,10" --position "0,0,0"--undo -r], 0, [stdout], [stderr])65 AT_CHECK([../../molecuilder -i $file -v 5 --create-shape --shape-name "cube1" --shape-type "cube" --translation "0,0,0" --stretch "10, 10, 10" --select-shape-by-name "cube1" --select-atoms-inside-volume --undo -r], 0, [stdout], [stderr]) 66 66 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz], 0, [ignore], [ignore]) 67 67 … … 75 75 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz $file], 0) 76 76 AT_CHECK([chmod u+w $file], 0) 77 AT_CHECK([../../molecuilder -i $file -v 5 -- select-atoms-inside-cuboid "10,10,10" --position "0,0,0"--undo --redo -r], 0, [stdout], [stderr])77 AT_CHECK([../../molecuilder -i $file -v 5 --create-shape --shape-name "cube1" --shape-type "cube" --translation "0,0,0" --stretch "10, 10, 10" --select-shape-by-name "cube1" --select-atoms-inside-volume --undo --redo -r], 0, [stdout], [stderr]) 78 78 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideCuboid/post/allatomsoutsidecuboid.xyz], 0, [ignore], [ignore]) 79 79 -
tests/regression/Selection/Atoms/AtomsInsideCuboid/testsuite-selection-select-atoms-inside-cuboid.at
ra1436b r36bb2d 41 41 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz $file], 0) 42 42 AT_CHECK([chmod u+w $file], 0) 43 AT_CHECK([../../molecuilder -i $file -v 5 -- select-atoms-inside-cuboid "10,10,10" --position "0,0,0" --angle-x 0 --angle-y 0 --angle-z 0-r], 0, [stdout], [stderr])43 AT_CHECK([../../molecuilder -i $file -v 5 --create-shape --shape-name "cube1" --shape-type "cube" --translation "0,0,0" --stretch "10, 10, 10" --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "cube1" --select-atoms-inside-volume -r], 0, [stdout], [stderr]) 44 44 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideCuboid/post/allatomsoutsidecuboid.xyz], 0, [ignore], [ignore]) 45 45 … … 62 62 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz $file], 0) 63 63 AT_CHECK([chmod u+w $file], 0) 64 AT_CHECK([../../molecuilder -i $file -v 5 -- select-atoms-inside-cuboid "10,10,10" --position "0,0,0" --angle-x 0 --angle-y 0 --angle-z 0--undo -r], 0, [stdout], [stderr])64 AT_CHECK([../../molecuilder -i $file -v 5 --create-shape --shape-name "cube1" --shape-type "cube" --translation "0,0,0" --stretch "10, 10, 10" --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "cube1" --select-atoms-inside-volume --undo -r], 0, [stdout], [stderr]) 65 65 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz], 0, [ignore], [ignore]) 66 66 … … 74 74 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz $file], 0) 75 75 AT_CHECK([chmod u+w $file], 0) 76 AT_CHECK([../../molecuilder -i $file -v 5 -- select-atoms-inside-cuboid "10,10,10" --position "0,0,0" --angle-x 0 --angle-y 0 --angle-z 0--undo --redo -r], 0, [stdout], [stderr])76 AT_CHECK([../../molecuilder -i $file -v 5 --create-shape --shape-name "cube1" --shape-type "cube" --translation "0,0,0" --stretch "10, 10, 10" --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "cube1" --select-atoms-inside-volume --undo --redo -r], 0, [stdout], [stderr]) 77 77 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideCuboid/post/allatomsoutsidecuboid.xyz], 0, [ignore], [ignore]) 78 78 -
tests/regression/Selection/Atoms/AtomsInsideCuboid/testsuite-selection-unselect-atoms-inside-cuboid.at
ra1436b r36bb2d 42 42 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz $file], 0) 43 43 AT_CHECK([chmod u+w $file], 0) 44 AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms -- unselect-atoms-inside-cuboid "10,10,10" --position "0,0,0" --angle-x 0 --angle-y 0 --angle-z0 -r], 0, [stdout], [stderr])44 AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms --create-shape --shape-name "cube1" --shape-type "cube" --translation "0,0,0" --stretch "10, 10, 10" --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "cube1" --unselect-atoms-inside-volume 0 -r], 0, [stdout], [stderr]) 45 45 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideCuboid/post/allatomsinsidecuboid.xyz], 0, [ignore], [ignore]) 46 46 … … 63 63 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz $file], 0) 64 64 AT_CHECK([chmod u+w $file], 0) 65 AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms -- unselect-atoms-inside-cuboid "10,10,10" --position "0,0,0" --angle-x 0 --angle-y 0 --angle-z 0--undo -r], 0, [stdout], [stderr])65 AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms --create-shape --shape-name "cube1" --shape-type "cube" --translation "0,0,0" --stretch "10, 10, 10" --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "cube1" --unselect-atoms-inside-volume --undo -r], 0, [stdout], [stderr]) 66 66 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideCuboid/post/empty.xyz], 0, [ignore], [ignore]) 67 67 … … 75 75 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideCuboid/pre/box.xyz $file], 0) 76 76 AT_CHECK([chmod u+w $file], 0) 77 AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms -- unselect-atoms-inside-cuboid "10,10,10" --position "0,0,0" --angle-x 0 --angle-y 0 --angle-z 0--undo --redo -r], 0, [stdout], [stderr])77 AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms --create-shape --shape-name "cube1" --shape-type "cube" --translation "0,0,0" --stretch "10, 10, 10" --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "cube1" --unselect-atoms-inside-volume --undo --redo -r], 0, [stdout], [stderr]) 78 78 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideCuboid/post/allatomsinsidecuboid.xyz], 0, [ignore], [ignore]) 79 79 -
tests/regression/Selection/Atoms/AtomsInsideSphere/testsuite-selection-select-atoms-inside-sphere.at
ra1436b r36bb2d 41 41 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/pre/box.xyz $file], 0) 42 42 AT_CHECK([chmod u+w $file], 0) 43 AT_CHECK([../../molecuilder -i $file -v 5 -- select-atoms-inside-sphere 10 --position "10,10,10"-r], 0, [stdout], [stderr])43 AT_CHECK([../../molecuilder -i $file -v 5 --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "10,10,10" --stretch "10., 10., 10." --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "sphere1" --select-atoms-inside-volume -r], 0, [stdout], [stderr]) 44 44 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/post/allatomsoutsidesphere.xyz], 0, [ignore], [ignore]) 45 45 … … 62 62 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/pre/box.xyz $file], 0) 63 63 AT_CHECK([chmod u+w $file], 0) 64 AT_CHECK([../../molecuilder -i $file -v 5 -- select-atoms-inside-sphere 10 --position "10,10,10"--undo -r], 0, [stdout], [stderr])64 AT_CHECK([../../molecuilder -i $file -v 5 --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "10,10,10" --stretch "10., 10., 10." --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "sphere1" --select-atoms-inside-volume --undo -r], 0, [stdout], [stderr]) 65 65 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/pre/box.xyz], 0, [ignore], [ignore]) 66 66 … … 74 74 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/pre/box.xyz $file], 0) 75 75 AT_CHECK([chmod u+w $file], 0) 76 AT_CHECK([../../molecuilder -i $file -v 5 -- select-atoms-inside-sphere 10 --position "10,10,10"--undo --redo -r], 0, [stdout], [stderr])76 AT_CHECK([../../molecuilder -i $file -v 5 --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "10,10,10" --stretch "10., 10., 10." --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "sphere1" --select-atoms-inside-volume --undo --redo -r], 0, [stdout], [stderr]) 77 77 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/post/allatomsoutsidesphere.xyz], 0, [ignore], [ignore]) 78 78 -
tests/regression/Selection/Atoms/AtomsInsideSphere/testsuite-selection-select-atoms-inside-tiny-sphere.at
ra1436b r36bb2d 41 41 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/pre/box.xyz $file], 0) 42 42 AT_CHECK([chmod u+w $file], 0) 43 AT_CHECK([../../molecuilder -i $file -v 5 -- select-atoms-inside-sphere 1.65 --position "10,10,10"-r], 0, [stdout], [stderr])43 AT_CHECK([../../molecuilder -i $file -v 5 --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "10,10,10" --stretch "1.65, 1.65, 1.65" --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "sphere1" --select-atoms-inside-volume -r], 0, [stdout], [stderr]) 44 44 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/post/allatomsoutsidetinysphere.xyz], 0, [ignore], [ignore]) 45 45 … … 62 62 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/pre/box.xyz $file], 0) 63 63 AT_CHECK([chmod u+w $file], 0) 64 AT_CHECK([../../molecuilder -i $file -v 5 -- select-atoms-inside-sphere 1.65 --position "10,10,10"--undo -r], 0, [stdout], [stderr])64 AT_CHECK([../../molecuilder -i $file -v 5 --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "10,10,10" --stretch "1.65, 1.65, 1.65" --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "sphere1" --select-atoms-inside-volume --undo -r], 0, [stdout], [stderr]) 65 65 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/pre/box.xyz], 0, [ignore], [ignore]) 66 66 … … 74 74 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/pre/box.xyz $file], 0) 75 75 AT_CHECK([chmod u+w $file], 0) 76 AT_CHECK([../../molecuilder -i $file -v 5 -- select-atoms-inside-sphere 1.65 --position "10,10,10"--undo --redo -r], 0, [stdout], [stderr])76 AT_CHECK([../../molecuilder -i $file -v 5 --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "10,10,10" --stretch "1.65, 1.65, 1.65" --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "sphere1" --select-atoms-inside-volume --undo --redo -r], 0, [stdout], [stderr]) 77 77 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/post/allatomsoutsidetinysphere.xyz], 0, [ignore], [ignore]) 78 78 -
tests/regression/Selection/Atoms/AtomsInsideSphere/testsuite-selection-unselect-atoms-inside-sphere.at
ra1436b r36bb2d 42 42 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/pre/box.xyz $file], 0) 43 43 AT_CHECK([chmod u+w $file], 0) 44 AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms -- unselect-atoms-inside-sphere 10 --position "10,10,10"-r], 0, [stdout], [stderr])44 AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "10,10,10" --stretch "10,10,10" --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "sphere1" --unselect-atoms-inside-volume -r], 0, [stdout], [stderr]) 45 45 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/post/allatomsinsidesphere.xyz], 0, [ignore], [ignore]) 46 46 … … 63 63 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/pre/box.xyz $file], 0) 64 64 AT_CHECK([chmod u+w $file], 0) 65 AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms -- unselect-atoms-inside-sphere 10 --position "10,10,10"--undo -r], 0, [stdout], [stderr])65 AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "10,10,10" --stretch "10,10,10" --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "sphere1" --unselect-atoms-inside-volume --undo -r], 0, [stdout], [stderr]) 66 66 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/post/empty.xyz], 0, [ignore], [ignore]) 67 67 … … 75 75 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/pre/box.xyz $file], 0) 76 76 AT_CHECK([chmod u+w $file], 0) 77 AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms -- unselect-atoms-inside-sphere 10 --position "10,10,10"--undo --redo -r], 0, [stdout], [stderr])77 AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "10,10,10" --stretch "10,10,10" --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "sphere1" --unselect-atoms-inside-volume --undo --redo -r], 0, [stdout], [stderr]) 78 78 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/post/allatomsinsidesphere.xyz], 0, [ignore], [ignore]) 79 79 -
tests/regression/Selection/Atoms/AtomsInsideSphere/testsuite-selection-unselect-atoms-inside-tiny-sphere.at
ra1436b r36bb2d 41 41 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/pre/box.xyz $file], 0) 42 42 AT_CHECK([chmod u+w $file], 0) 43 AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms -- unselect-atoms-inside-sphere 1.65 --position "10,10,10"-r], 0, [stdout], [stderr])43 AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "10,10,10" --stretch "1.65, 1.65, 1.65" --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "sphere1" --unselect-atoms-inside-volume -r], 0, [stdout], [stderr]) 44 44 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/post/allatomsinsidetinysphere.xyz], 0, [ignore], [ignore]) 45 45 … … 62 62 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/pre/box.xyz $file], 0) 63 63 AT_CHECK([chmod u+w $file], 0) 64 AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms -- unselect-atoms-inside-sphere 1.65 --position "10,10,10"--undo -r], 0, [stdout], [stderr])64 AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "10,10,10" --stretch "1.65, 1.65, 1.65" --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "sphere1" --unselect-atoms-inside-volume --undo -r], 0, [stdout], [stderr]) 65 65 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/post/empty.xyz], 0, [ignore], [ignore]) 66 66 … … 74 74 AT_CHECK([/bin/cp -f ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/pre/box.xyz $file], 0) 75 75 AT_CHECK([chmod u+w $file], 0) 76 AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms -- unselect-atoms-inside-sphere 1.65 --position "10,10,10"--undo --redo -r], 0, [stdout], [stderr])76 AT_CHECK([../../molecuilder -i $file -v 5 --select-all-atoms --create-shape --shape-name "sphere1" --shape-type "sphere" --translation "10,10,10" --stretch "1.65, 1.65, 1.65" --angle-x 0. --angle-y 0. --angle-z 0. --select-shape-by-name "sphere1" --unselect-atoms-inside-volume --undo --redo -r], 0, [stdout], [stderr]) 77 77 AT_CHECK([diff -I '.*Created by molecuilder.*' $file ${abs_top_srcdir}/tests/regression/Selection/Atoms/AtomsInsideSphere/post/allatomsinsidetinysphere.xyz], 0, [ignore], [ignore]) 78 78
Note:
See TracChangeset
for help on using the changeset viewer.