Multi-Projector
|
A class for managing image-related configuration settings stored in environment variables. More...
Public Member Functions | |
__init__ (self, configFilePath) | |
Constructor to initialize the ImageConfiguration object. | |
str | getImageFilePath (self) |
Retrieve the path of the image file from environment variables. | |
str | getSide (self) |
Retrieve the 'SIDE' setting (e.g., "left" or "right"). | |
int | getDistanceBetweenProjectorCm (self) |
Retrieve the distance between projectors in centimeters. | |
int | getProjectionWidthCm (self) |
Retrieve the projection width in centimeters. | |
float | getGammaValue (self) |
Retrieve the gamma value for image display correction. | |
Public Attributes | |
configFilePath = configFilePath | |
A class for managing image-related configuration settings stored in environment variables.
This class is responsible for loading environment variables from a configuration file (using load_dotenv
) and providing convenient getters for the necessary values.
image_configuration.ImageConfiguration.__init__ | ( | self, | |
configFilePath ) |
Constructor to initialize the ImageConfiguration object.
configFilePath | A string specifying the path to the dotenv configuration file. |
The constructor loads environment variables from the specified file, making them available via the getter methods.
int image_configuration.ImageConfiguration.getDistanceBetweenProjectorCm | ( | self | ) |
Retrieve the distance between projectors in centimeters.
float image_configuration.ImageConfiguration.getGammaValue | ( | self | ) |
Retrieve the gamma value for image display correction.
str image_configuration.ImageConfiguration.getImageFilePath | ( | self | ) |
Retrieve the path of the image file from environment variables.
int image_configuration.ImageConfiguration.getProjectionWidthCm | ( | self | ) |
Retrieve the projection width in centimeters.
str image_configuration.ImageConfiguration.getSide | ( | self | ) |
Retrieve the 'SIDE' setting (e.g., "left" or "right").
image_configuration.ImageConfiguration.configFilePath = configFilePath |