just a test

Dependencies:   mbed

Fork of scoreLight_Advanced by Alvaro Cassinelli

Committer:
mbedalvaro
Date:
Tue Dec 02 04:28:42 2014 +0000
Revision:
48:7633d8e7b0d3
Parent:
35:35af5086ab4f
this is the working version of the skin games sowtware (aka, scorelight but with pre-determined "games")

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbedalvaro 30:d8af03f01cd4 1 #ifndef RIGIDSCAFOLD_H
mbedalvaro 30:d8af03f01cd4 2 #define RIGIDSCAFOLD_H
mbedalvaro 30:d8af03f01cd4 3
mbedalvaro 30:d8af03f01cd4 4 #include "myVectorClass.h"
mbedalvaro 30:d8af03f01cd4 5
mbedalvaro 30:d8af03f01cd4 6 #include <vector>
mbedalvaro 30:d8af03f01cd4 7 using namespace std;
mbedalvaro 30:d8af03f01cd4 8
mbedalvaro 30:d8af03f01cd4 9 class RigidScafold {
mbedalvaro 30:d8af03f01cd4 10 public:
mbedalvaro 30:d8af03f01cd4 11 RigidScafold();
mbedalvaro 30:d8af03f01cd4 12 ~RigidScafold();
mbedalvaro 30:d8af03f01cd4 13
mbedalvaro 30:d8af03f01cd4 14 // (1) METHODS for creating different SCAFOLD structures
mbedalvaro 30:d8af03f01cd4 15 // Note: these scafolds may or may not be used to initialize the light loop (in case of elasticLoop).
mbedalvaro 30:d8af03f01cd4 16 void buildCircularScafold(float _radius, vector2Dd _pos, int _numScafoldPoints);
mbedalvaro 30:d8af03f01cd4 17 void buildLine(float _length, float _angleDeg, vector2Dd _pos, int _numScafoldPoints);
mbedalvaro 30:d8af03f01cd4 18 // void buildStarScafold....
mbedalvaro 30:d8af03f01cd4 19
mbedalvaro 30:d8af03f01cd4 20 // Other functions to create letters, text, etc.
mbedalvaro 30:d8af03f01cd4 21 // ...
mbedalvaro 30:d8af03f01cd4 22
mbedalvaro 32:52273c3291fe 23 // Transformations of the scafold (resize, shear, rotation...):
mbedalvaro 33:43e8bc451ef0 24 void resizeDimensionScafold(float _newSize);
mbedalvaro 33:43e8bc451ef0 25 void resizeFactorDimensionScafold(float _factor);
mbedalvaro 35:35af5086ab4f 26 void rotateScafold(float alphadeg);
mbedalvaro 32:52273c3291fe 27
mbedalvaro 32:52273c3291fe 28
mbedalvaro 30:d8af03f01cd4 29 // DATA structures:
mbedalvaro 30:d8af03f01cd4 30 // note: the number of points in the scafold does not need to equate the number of points in the blob
mbedalvaro 30:d8af03f01cd4 31 vector<vector2Dd> scafold; // scafold trajectory (either float or unsigned short).
mbedalvaro 32:52273c3291fe 32 vector2Dd centerScafold;
mbedalvaro 33:43e8bc451ef0 33 float sizeScafold;
mbedalvaro 30:d8af03f01cd4 34 // Notes: - Centered around the centerScafold point.
mbedalvaro 30:d8af03f01cd4 35 // - Can be used to initialize elastic loop.
mbedalvaro 30:d8af03f01cd4 36 };
mbedalvaro 30:d8af03f01cd4 37
mbedalvaro 0:345b3bc7a0ea 38 #endif