Alvaro Cassinelli / Mbed 2 deprecated skinGames_forktest

Dependencies:   mbed

Fork of scoreLight_Advanced by Alvaro Cassinelli

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers classRigidScafold.h Source File

classRigidScafold.h

00001 #ifndef RIGIDSCAFOLD_H
00002 #define RIGIDSCAFOLD_H
00003 
00004  #include "myVectorClass.h"
00005  
00006  #include <vector>
00007  using namespace std;
00008   
00009  class RigidScafold {
00010  public:
00011     RigidScafold();
00012     ~RigidScafold();
00013     
00014     // (1) METHODS for creating different SCAFOLD structures
00015  // Note: these scafolds may or may not be used to initialize the light loop (in case of elasticLoop). 
00016   void buildCircularScafold(float _radius, vector2Dd _pos, int _numScafoldPoints);
00017   void buildLine(float _length, float _angleDeg, vector2Dd _pos, int _numScafoldPoints);
00018   // void buildStarScafold....
00019   
00020   // Other functions to create letters, text, etc. 
00021   // ...
00022   
00023    // Transformations of the scafold (resize, shear, rotation...):
00024   void resizeDimensionScafold(float _newSize);
00025   void resizeFactorDimensionScafold(float _factor);
00026   void rotateScafold(float alphadeg);
00027   
00028   
00029   // DATA structures: 
00030     // note: the number of points in the scafold does not need to equate the number of points in the blob
00031     vector<vector2Dd> scafold; // scafold trajectory (either float or unsigned short). 
00032     vector2Dd centerScafold;
00033     float sizeScafold;
00034     // Notes: - Centered around the centerScafold point.
00035     //        - Can be used to initialize elastic loop.
00036  };
00037 
00038 #endif