SpaceControl DLL
Version 2.8.9
API documentation for the SpaceControl 3D input devices
|
These functions are used for handling the axes' sensitivities. More...
Functions | |
ScStatus | scGetAdvSens (int devIdx, ScAdvSens *asP) |
Retrieves the actual six sensitivity parameters of the advanced settings. More... | |
ScStatus | scSetAdvSens (int devIdx, ScAdvSens *asP) |
Sets and retrieves the six actual sensitivity parameters of the advanced settings. More... | |
ScStatus | scGetSens (int devIdx, int *transSensP, int *rotSensP) |
Retrieves the device's sensitivity. More... | |
ScStatus | scSetSens (int devIdx, int *transSensP, int *rotSensP) |
Sets and retrieves the device's sensitivity. More... | |
ScStatus | scGetXTraSens (int devIdx, int *sensP) |
Retrieves the device's sensitivity for the x-translation. More... | |
ScStatus | scSetXTraSens (int devIdx, int *sensP) |
Sets and retrieves the device's sensitivity for the x-axis' translation. More... | |
ScStatus | scGetYTraSens (int devIdx, int *sensP) |
Retrieves the device's sensitivity for the y-translation. More... | |
ScStatus | scSetYTraSens (int devIdx, int *sensP) |
Sets and retrieves the device's sensitivity for the y-axis' translation. More... | |
ScStatus | scGetZTraSens (int devIdx, int *sensP) |
Retrieves the device's sensitivity for the z-translation. More... | |
ScStatus | scSetZTraSens (int devIdx, int *sensP) |
Sets and retrieves the device's sensitivity for the z-axis' translation. More... | |
ScStatus | scGetXRotSens (int devIdx, int *sensP) |
Retrieves the device's sensitivity for the x-rotation. More... | |
ScStatus | scSetXRotSens (int devIdx, int *sensP) |
Sets and retrieves the device's sensitivity for the x-axis' rotation. More... | |
ScStatus | scGetYRotSens (int devIdx, int *sensP) |
Retrieves the SC device's sensitivity for the y-rotation. More... | |
ScStatus | scSetYRotSens (int devIdx, int *sensP) |
Sets and retrieves the SpaceControl device's sensitivity for the y-axis' rotation. More... | |
ScStatus | scGetZRotSens (int devIdx, int *sensP) |
Retrieves the device's sensitivity for the z-rotation. More... | |
ScStatus | scSetZRotSens (int devIdx, int *sensP) |
Sets and retrieves the device's sensitivity for the z-axis' rotation. More... | |
These functions are used for handling the axes' sensitivities.
ScStatus scGetAdvSens | ( | int | devIdx, |
ScAdvSens * | asP | ||
) |
Retrieves the actual six sensitivity parameters of the advanced settings.
Example:
devIdx | index of the device the parameters are requested |
asP | pointer to the sensitivity structure to be retrieved |
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
ScStatus scGetSens | ( | int | devIdx, |
int * | transSensP, | ||
int * | rotSensP | ||
) |
Retrieves the device's sensitivity.
The sensitivity gives the relationship between the displacement of the cap and the standard data values produced by the device. Higher sensitivity values mean that the device will produce higher standard data values.
Example:
devIdx | the index of the device to be requested |
transSensP | sensitivity regarding translational displacement (0..15) |
rotSensP | sensitivity regarding rotational displacement (0..15) |
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
ScStatus scGetXRotSens | ( | int | devIdx, |
int * | sensP | ||
) |
Retrieves the device's sensitivity for the x-rotation.
The sensitivity gives the relationship between the displacement of the cap and the standard data values produced by the device. Higher sensitivity values mean that the device will produce higher standard data values.
Example:
devIdx | the index of the device to be requested |
sensP | actual sensitivity (1..15) |
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
ScStatus scGetXTraSens | ( | int | devIdx, |
int * | sensP | ||
) |
Retrieves the device's sensitivity for the x-translation.
The sensitivity gives the relationship between the displacement of the cap and the standard data values produced by the device. Higher sensitivity values mean that the device will produce higher standard data values.
Example:
devIdx | the index of the device to be requested |
sensP | actual sensitivity (1..15) |
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
ScStatus scGetYRotSens | ( | int | devIdx, |
int * | sensP | ||
) |
Retrieves the SC device's sensitivity for the y-rotation.
The sensitivity gives the relationship between the displacement of the cap and the standard data values produced by the device. Higher sensitivity values mean that the device will produce higher standard data values.
Example:
devIdx | the index of the device to be requested |
sensP | actual sensitivity (1..15) |
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
ScStatus scGetYTraSens | ( | int | devIdx, |
int * | sensP | ||
) |
Retrieves the device's sensitivity for the y-translation.
The sensitivity gives the relationship between the displacement of the cap and the standard data values produced by the device. Higher sensitivity values mean that the device will produce higher standard data values.
Example:
devIdx | the index of the device to be requested |
sensP | actual sensitivity (1..15) |
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
ScStatus scGetZRotSens | ( | int | devIdx, |
int * | sensP | ||
) |
Retrieves the device's sensitivity for the z-rotation.
The sensitivity gives the relationship between the displacement of the cap and the standard data values produced by the device. Higher sensitivity values mean that the device will produce higher standard data values.
Example:
devIdx | the index of the device to be requested |
sensP | actual sensitivity (1..15) |
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
ScStatus scGetZTraSens | ( | int | devIdx, |
int * | sensP | ||
) |
Retrieves the device's sensitivity for the z-translation.
The sensitivity gives the relationship between the displacement of the cap and the standard data values produced by the device. Higher sensitivity values mean that the device will produce higher standard data values.
Example:
devIdx | the index of the device to be requested |
sensP | actual sensitivity (1..15) |
References SC_COMMUNICATION_ERROR, SC_OK, and SC_WRONG_DEVICE_INDEX.
ScStatus scSetAdvSens | ( | int | devIdx, |
ScAdvSens * | asP | ||
) |
Sets and retrieves the six actual sensitivity parameters of the advanced settings.
Example:
devIdx | index of the device the parameters are requested |
asP | pointer to the sensitivity structure to be retrieved |
References SC_COMMUNICATION_ERROR, SC_OK, SC_PARAMETER_OUT_OF_RANGE, and SC_WRONG_DEVICE_INDEX.
ScStatus scSetSens | ( | int | devIdx, |
int * | transSensP, | ||
int * | rotSensP | ||
) |
Sets and retrieves the device's sensitivity.
See scGetSens() for details.
Attention: For the time being only parameter transSensP is used, whatever is given in parameter rotSensP is ignored and replaced by the same value as given in transSensP. I. e. you can not set different sensitivity values for translation and rotation with this function. If you want to achieve this use functions scGetXTraSens() etc. and scSetXRotSens() etc. To calculate the resulting sensitivity for an axis the driver adds the sensitivities set with scSetSens() and the functions scGetXTraSens() etc. Example:
devIdx | the index of the device the data is to be set |
transSensP | sensitivity regarding translational displacement (0..15) |
rotSensP | sensitivity regarding rotational displacement (0..15) |
References MAX_SENS, MIN_SENS, SC_COMMUNICATION_ERROR, SC_OK, SC_PARAMETER_OUT_OF_RANGE, and SC_WRONG_DEVICE_INDEX.
ScStatus scSetXRotSens | ( | int | devIdx, |
int * | sensP | ||
) |
Sets and retrieves the device's sensitivity for the x-axis' rotation.
See scGetXRotSens() for details.
Example:
devIdx | the index of the device to be requested |
sensP | actual sensitivity (1..15) |
References MAX_SENS, MIN_SENS, SC_COMMUNICATION_ERROR, SC_OK, SC_PARAMETER_OUT_OF_RANGE, and SC_WRONG_DEVICE_INDEX.
ScStatus scSetXTraSens | ( | int | devIdx, |
int * | sensP | ||
) |
Sets and retrieves the device's sensitivity for the x-axis' translation.
See scGetXTraSens() for details.
Example:
devIdx | the index of the device to be requested |
sensP | actual sensitivity (1..15) |
References MAX_SENS, MIN_SENS, SC_COMMUNICATION_ERROR, SC_OK, SC_PARAMETER_OUT_OF_RANGE, and SC_WRONG_DEVICE_INDEX.
ScStatus scSetYRotSens | ( | int | devIdx, |
int * | sensP | ||
) |
Sets and retrieves the SpaceControl device's sensitivity for the y-axis' rotation.
See scGetYRotSens() for details.
Example:
devIdx | the index of the device to be requested |
sensP | actual sensitivity (1..15) |
References MAX_SENS, MIN_SENS, SC_COMMUNICATION_ERROR, SC_OK, SC_PARAMETER_OUT_OF_RANGE, and SC_WRONG_DEVICE_INDEX.
ScStatus scSetYTraSens | ( | int | devIdx, |
int * | sensP | ||
) |
Sets and retrieves the device's sensitivity for the y-axis' translation.
See scGetYTraSens() for details.
Example:
devIdx | the index of the device to be requested |
sensP | actual sensitivity (1..15) |
References MAX_SENS, MIN_SENS, SC_COMMUNICATION_ERROR, SC_OK, SC_PARAMETER_OUT_OF_RANGE, and SC_WRONG_DEVICE_INDEX.
ScStatus scSetZRotSens | ( | int | devIdx, |
int * | sensP | ||
) |
Sets and retrieves the device's sensitivity for the z-axis' rotation.
See scGetZRotSens() for details.
Example:
devIdx | the index of the device to be requested |
sensP | actual sensitivity (1..15) |
References MAX_SENS, MIN_SENS, SC_COMMUNICATION_ERROR, SC_OK, SC_PARAMETER_OUT_OF_RANGE, and SC_WRONG_DEVICE_INDEX.
ScStatus scSetZTraSens | ( | int | devIdx, |
int * | sensP | ||
) |
Sets and retrieves the device's sensitivity for the z-axis' translation.
See scGetZTraSens() for details.
Example:
devIdx | the index of the device to be requested |
sensP | actual sensitivity (1..15) |
References MAX_SENS, MIN_SENS, SC_COMMUNICATION_ERROR, SC_OK, SC_PARAMETER_OUT_OF_RANGE, and SC_WRONG_DEVICE_INDEX.
Copyright (c) SpaceControl GmbH & Co. KG, Am Technologiepark 10, D-82229 Seefeld |