Changeset a367b8
- Timestamp:
- Nov 15, 2012, 5:31:06 PM (12 years ago)
- Branches:
- Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
- Children:
- 4dc309
- Parents:
- 4477b7
- git-author:
- Michael Ankele <ankele@…> (09/05/12 15:38:31)
- git-committer:
- Frederik Heber <heber@…> (11/15/12 17:31:06)
- Location:
- src/Shapes
- Files:
-
- 2 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Shapes/Shape.hpp
r4477b7 ra367b8 27 27 class LineSegmentSet; 28 28 class Line; 29 class ShapeFactoryTest; 29 30 30 31 class Shape … … 33 34 typedef boost::shared_ptr<Shape_impl> impl_ptr; 34 35 friend impl_ptr getShapeImpl(const Shape&); 36 friend class ShapeFactoryTest; 35 37 36 38 Shape(impl_ptr); -
src/Shapes/ShapeFactory.cpp
r4477b7 ra367b8 85 85 86 86 87 void ShapeFactory::setType(ShapeType type) 88 { 89 ShapeNameMap::iterator iter = shapeNameMap.find(type); 90 ASSERT(iter != shapeNameMap.end(), 91 "ShapeFactory::setType() - unknown type: "+toString(type)+"."); 92 this->type = type; 93 } 94 87 95 void ShapeFactory::setStretch(const Vector &stretch) 88 96 { 89 ASSERT(!stretch.IsZero(), 90 "ShapeFactory::setStretch() - stretch is zero."); 97 for (int i=0; i<NDIM; i++){ 98 ASSERT(stretch[i] > 0, 99 "ShapeFactory::setStretch() - non positive component."); 100 } 91 101 this->stretch = stretch; 92 102 } -
src/Shapes/ShapeFactory.hpp
r4477b7 ra367b8 44 44 45 45 ShapeType getType() const { return type; } 46 void setType(ShapeType type) { this->type = type; }46 void setType(ShapeType type); 47 47 48 48 // create a shape -
src/Shapes/unittests/Makefile.am
r4477b7 ra367b8 5 5 SHAPETESTSSOURCES = \ 6 6 ../Shapes/unittests/BaseShapesUnitTest.cpp \ 7 ../Shapes/unittests/ShapeFactoryUnitTest.cpp \ 7 8 ../Shapes/unittests/ShapeOpsUnitTest.cpp \ 8 9 ../Shapes/unittests/Shape_HomogeneousPointsUnitTest.cpp … … 10 11 SHAPETESTSHEADERS= \ 11 12 ../Shapes/unittests/BaseShapesUnitTest.hpp \ 13 ../Shapes/unittests/ShapeFactoryUnitTest.hpp \ 12 14 ../Shapes/unittests/ShapeOpsUnitTest.hpp \ 13 15 ../Shapes/unittests/Shape_HomogeneousPointsUnitTest.cpp … … 15 17 SHAPETESTS = \ 16 18 BaseShapesUnitTest \ 19 ShapeFactoryUnitTest \ 17 20 ShapeOpsUnitTest \ 18 21 Shape_HomogeneousPointsUnitTest … … 38 41 BaseShapesUnitTest_LDADD = $(SHAPELIBS) 39 42 43 ShapeFactoryUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 44 ../Shapes/unittests/ShapeFactoryUnitTest.cpp \ 45 ../Shapes/unittests/ShapeFactoryUnitTest.hpp \ 46 ../Shapes/unittests/stubs/ApproximateShapeAreaStub.cpp \ 47 ../Shapes/unittests/stubs/ApproximateShapeVolumeStub.cpp 48 nodist_ShapeFactoryUnitTest_SOURCES = \ 49 ../Helpers/defs.hpp \ 50 ../Helpers/defs.cpp 51 ShapeFactoryUnitTest_LDADD = $(SHAPELIBS) 52 40 53 ShapeOpsUnitTest_SOURCES = $(top_srcdir)/src/unittests/UnitTestMain.cpp \ 41 54 ../Shapes/unittests/ShapeOpsUnitTest.cpp \
Note:
See TracChangeset
for help on using the changeset viewer.