Mercurial > hg > opencollidoscope
diff CollidoscopeApp/include/Chunk.h @ 5:75b744078d66
added license
author | Fiore Martin <f.martin@qmul.ac.uk> |
---|---|
date | Wed, 13 Jul 2016 16:06:46 +0200 |
parents | dd889fff8423 |
children | 4dad0b810f18 |
line wrap: on
line diff
--- a/CollidoscopeApp/include/Chunk.h Wed Jul 13 12:31:37 2016 +0200 +++ b/CollidoscopeApp/include/Chunk.h Wed Jul 13 16:06:46 2016 +0200 @@ -1,3 +1,26 @@ +/* + + Copyright (C) 2015 Fiore Martin + Copyright (C) 2016 Queen Mary University of London + Author: Fiore Martin + + This file is part of Collidoscope. + + Collidoscope is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <http://www.gnu.org/licenses/>. + +*/ + #pragma once @@ -26,7 +49,7 @@ /** * Constructor, takes as argument the index of this chunk in the wave */ - Chunk( size_t index ); + Chunk( size_t index ); /** * Sets the top value of this chunk. The value is passed in audio coordinates : [-1.0, 1.0] @@ -49,9 +72,9 @@ * Reset this chunks. When a chunk is reset it starts shrinking until it disappears. * */ - void reset(){ - mResetting = true; - } + void reset(){ + mResetting = true; + } /** * Called in the graphic loop. It update this chunk. @@ -72,16 +95,16 @@ /** * Informs this chunk that it's the first chunk of the selection. */ - void setAsSelectionStart(bool start){ - isSelectionStart = start; - } + void setAsSelectionStart(bool start){ + isSelectionStart = start; + } /** * Informs this chunk that it's the last chunk of the selection. */ - void setAsSelectionEnd(bool end){ - isSelectionEnd = end; - } + void setAsSelectionEnd(bool end){ + isSelectionEnd = end; + } private: