AwCore
AnyWave core library
|
AwSensor describes physical properties for a sensor. More...
Public Member Functions | |
AwSensor (int type) | |
AwSensor (AwSensor *s) | |
AwSensor (AwChannel *channel) | |
int | type () |
const QString & | label () |
double * | coordinates () |
double * | orientation () |
float | value () |
bool | isBad () |
bool | isAlwaysBad () |
void | setType (int type) |
void | setLabel (const QString &label) |
void | setCoordinates (double x, double y, double z) |
void | setCoordinates (double *point) |
void | setOrientation (double ox, double oy, double oz) |
void | setOrientation (double *orientation) |
void | setValue (float value) |
void | setBad (bool bad=true) |
AwSensor describes physical properties for a sensor.
A sensor may have 3D coordiates (x, y, z) and an orientation (ox, oy, oz). A sensors has a label and a type (MEG, EEG) principally
AwSensor::AwSensor | ( | int | type | ) |
Instantiate a sensor based on a channel type.
AwSensor::AwSensor | ( | AwSensor * | s | ) |
Copy constructor
|
inline |
Returns 3D coordinates as a pointer to an array of double.
|
inline |
Returns trus if the sensor is marked as always bad. Always bad sensors are sensors that will stay marked as bad forever.
|
inline |
Returns true if the sensor is marked as bad.
|
inline |
Returns the sensor's label
|
inline |
Returns 3D orientation coordinates as a pointer to an array of double.
|
inline |
Sets the marker as bad.
void AwSensor::setCoordinates | ( | double | x, |
double | y, | ||
double | z | ||
) |
Sets the 3D coordinates
void AwSensor::setCoordinates | ( | double * | point | ) |
Sets the 3D coordinates using an array of double
|
inline |
Sets the sensor's label
void AwSensor::setOrientation | ( | double | ox, |
double | oy, | ||
double | oz | ||
) |
Sets the 3D coordinates of the orientation vector.
void AwSensor::setOrientation | ( | double * | orientation | ) |
Sets the 3D coordinates of the orientation vector using an array of double.
|
inline |
Sets the sensor's type
|
inline |
Sets the scalar value
|
inline |
Returns the type of sensor (AwChannel::EEG or AwChannel::MEG)
|
inline |
Returns the scalar value set for the sensor. Used when computing mapping of activies.