OLD | NEW |
1 /* | 1 /* |
2 This file is part of LilyPond, the GNU music typesetter. | 2 This file is part of LilyPond, the GNU music typesetter. |
3 | 3 |
4 Copyright (C) 1999--2015 Han-Wen Nienhuys <hanwen@xs4all.nl> | 4 Copyright (C) 1999--2015 Han-Wen Nienhuys <hanwen@xs4all.nl> |
5 | 5 |
6 LilyPond is free software: you can redistribute it and/or modify | 6 LilyPond is free software: you can redistribute it and/or modify |
7 it under the terms of the GNU General Public License as published by | 7 it under the terms of the GNU General Public License as published by |
8 the Free Software Foundation, either version 3 of the License, or | 8 the Free Software Foundation, either version 3 of the License, or |
9 (at your option) any later version. | 9 (at your option) any later version. |
10 | 10 |
11 LilyPond is distributed in the hope that it will be useful, | 11 LilyPond is distributed in the hope that it will be useful, |
12 but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 GNU General Public License for more details. | 14 GNU General Public License for more details. |
15 | 15 |
16 You should have received a copy of the GNU General Public License | 16 You should have received a copy of the GNU General Public License |
17 along with LilyPond. If not, see <http://www.gnu.org/licenses/>. | 17 along with LilyPond. If not, see <http://www.gnu.org/licenses/>. |
18 */ | 18 */ |
19 | 19 |
20 #ifndef SPRING_HH | 20 #ifndef SPRING_HH |
21 #define SPRING_HH | 21 #define SPRING_HH |
22 | 22 |
23 #include "lily-proto.hh" | 23 #include "lily-proto.hh" |
24 #include "smobs.hh" | 24 #include "smobs.hh" |
25 | 25 |
26 class Spring : public Simple_smob<Spring> | 26 class Spring : public Simple_smob<Spring> |
27 { | 27 { |
28 public: | 28 public: |
29 static SCM equal_p (SCM, SCM); | 29 static SCM equal_p (SCM, SCM); |
30 static const char type_p_name_[]; | 30 static const char * const type_p_name_; |
31 private: | 31 private: |
32 Real distance_; | 32 Real distance_; |
33 Real min_distance_; | 33 Real min_distance_; |
34 | 34 |
35 Real inverse_stretch_strength_; | 35 Real inverse_stretch_strength_; |
36 Real inverse_compress_strength_; | 36 Real inverse_compress_strength_; |
37 | 37 |
38 Real blocking_force_; | 38 Real blocking_force_; |
39 | 39 |
40 void update_blocking_force (); | 40 void update_blocking_force (); |
(...skipping 20 matching lines...) Expand all Loading... |
61 void set_default_compress_strength (); | 61 void set_default_compress_strength (); |
62 void set_default_stretch_strength (); | 62 void set_default_stretch_strength (); |
63 | 63 |
64 void operator *= (Real); | 64 void operator *= (Real); |
65 bool operator > (Spring const &) const; | 65 bool operator > (Spring const &) const; |
66 }; | 66 }; |
67 | 67 |
68 Spring merge_springs (vector<Spring> const &springs); | 68 Spring merge_springs (vector<Spring> const &springs); |
69 | 69 |
70 #endif /* SPRING_HH */ | 70 #endif /* SPRING_HH */ |
OLD | NEW |