Alvaro Cassinelli
/
skinGames_forktest
just a test
Fork of scoreLight_Advanced by
classRigidScafold.h@22:d87317d7ca91, 2012-06-02 (annotated)
- Committer:
- mbedalvaro
- Date:
- Sat Jun 02 06:38:12 2012 +0000
- Revision:
- 22:d87317d7ca91
- Parent:
- 12:0de9cd2bced5
- Child:
- 30:d8af03f01cd4
testing the LUT table
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
mbedalvaro | 0:345b3bc7a0ea | 1 | #ifndef RIGIDSCAFOLD_H |
mbedalvaro | 0:345b3bc7a0ea | 2 | #define RIGIDSCAFOLD_H |
mbedalvaro | 0:345b3bc7a0ea | 3 | |
mbedalvaro | 0:345b3bc7a0ea | 4 | #include "myVectorClass.h" |
mbedalvaro | 0:345b3bc7a0ea | 5 | |
mbedalvaro | 0:345b3bc7a0ea | 6 | #include <vector> |
mbedalvaro | 0:345b3bc7a0ea | 7 | using namespace std; |
mbedalvaro | 0:345b3bc7a0ea | 8 | |
mbedalvaro | 0:345b3bc7a0ea | 9 | class RigidScafold { |
mbedalvaro | 0:345b3bc7a0ea | 10 | public: |
mbedalvaro | 0:345b3bc7a0ea | 11 | RigidScafold(); |
mbedalvaro | 0:345b3bc7a0ea | 12 | ~RigidScafold(); |
mbedalvaro | 0:345b3bc7a0ea | 13 | |
mbedalvaro | 0:345b3bc7a0ea | 14 | // (1) METHODS for creating different SCAFOLD structures |
mbedalvaro | 0:345b3bc7a0ea | 15 | // Note: these scafolds may or may not be used to initialize the light loop (in case of elasticLoop). |
mbedalvaro | 12:0de9cd2bced5 | 16 | void buildCircularScafold(float _radius, vector2Dd _pos, int _numScafoldPoints); |
mbedalvaro | 12:0de9cd2bced5 | 17 | void buildLine(float _length, float _angleDeg, vector2Dd _pos, int _numScafoldPoints); |
mbedalvaro | 22:d87317d7ca91 | 18 | // void buildStarScafold.... |
mbedalvaro | 7:0df17f3078bc | 19 | |
mbedalvaro | 0:345b3bc7a0ea | 20 | // Other functions to create letters, text, etc. |
mbedalvaro | 0:345b3bc7a0ea | 21 | // ... |
mbedalvaro | 0:345b3bc7a0ea | 22 | |
mbedalvaro | 0:345b3bc7a0ea | 23 | // DATA structures: |
mbedalvaro | 0:345b3bc7a0ea | 24 | // note: the number of points in the scafold does not need to equate the number of points in the blob |
mbedalvaro | 12:0de9cd2bced5 | 25 | vector<vector2Dd> scafold; // scafold trajectory (either float or unsigned short). |
mbedalvaro | 12:0de9cd2bced5 | 26 | // Notes: - Centered around the centerScafold point. |
mbedalvaro | 12:0de9cd2bced5 | 27 | // - Can be used to initialize elastic loop. |
mbedalvaro | 0:345b3bc7a0ea | 28 | }; |
mbedalvaro | 0:345b3bc7a0ea | 29 | |
mbedalvaro | 0:345b3bc7a0ea | 30 | #endif |