Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of scoreLight_Advanced by
classRigidScafold.h
- Committer:
- mbedalvaro
- Date:
- 2012-11-05
- Revision:
- 33:43e8bc451ef0
- Parent:
- 32:52273c3291fe
- Child:
- 35:35af5086ab4f
File content as of revision 33:43e8bc451ef0:
#ifndef RIGIDSCAFOLD_H
#define RIGIDSCAFOLD_H
#include "myVectorClass.h"
#include <vector>
using namespace std;
class RigidScafold {
public:
RigidScafold();
~RigidScafold();
// (1) METHODS for creating different SCAFOLD structures
// Note: these scafolds may or may not be used to initialize the light loop (in case of elasticLoop).
void buildCircularScafold(float _radius, vector2Dd _pos, int _numScafoldPoints);
void buildLine(float _length, float _angleDeg, vector2Dd _pos, int _numScafoldPoints);
// void buildStarScafold....
// Other functions to create letters, text, etc.
// ...
// Transformations of the scafold (resize, shear, rotation...):
void resizeDimensionScafold(float _newSize);
void resizeFactorDimensionScafold(float _factor);
// DATA structures:
// note: the number of points in the scafold does not need to equate the number of points in the blob
vector<vector2Dd> scafold; // scafold trajectory (either float or unsigned short).
vector2Dd centerScafold;
float sizeScafold;
// Notes: - Centered around the centerScafold point.
// - Can be used to initialize elastic loop.
};
#endif
