PBL4
Loading...
Searching...
No Matches
config.Config Class Reference
Inheritance diagram for config.Config:

Public Member Functions

 __init__ (self, pnd, prd, w, h, p, gamma, overlapWidth, side, isDual, monitorWidth)
 Constructor for Config class.
 
 getProjectionDistance (self)
 Retrieve the projection distance.
 
 getProjectorDistance (self)
 Retrieve the projector distance.
 
 getImgWidth (self)
 Retrieve the image width.
 
 getImgHeight (self)
 Retrieve the image height.
 
 getImgPath (self)
 Retrieve the image path.
 
 getGamma (self)
 Retrieve the gamma value.
 
 getOverlapWidth (self)
 Retrieve the overlap width.
 
 getSide (self)
 Retrieve the side of projection.
 
 getIsDualMonitor (self)
 
 getMonitorWidth (self)
 

Static Public Member Functions

 readConfigFile ()
 Reads the configuration from a config.ini file and returns a Config object.
 

Constructor & Destructor Documentation

◆ __init__()

config.Config.__init__ ( self,
pnd,
prd,
w,
h,
p,
gamma,
overlapWidth,
side,
isDual,
monitorWidth )

Constructor for Config class.

Parameters
pndProjection distance.
prdProjector distance.
wImage width.
hImage height.
pPath to the image.
gammaGamma value for adjustments.
overlapWidthWidth of the overlap area.
sideSide of projection.

Member Function Documentation

◆ getGamma()

config.Config.getGamma ( self)

Retrieve the gamma value.

Returns
: Gamma value as a float.

◆ getImgHeight()

config.Config.getImgHeight ( self)

Retrieve the image height.

Returns
: Image height as an integer.

◆ getImgPath()

config.Config.getImgPath ( self)

Retrieve the image path.

Returns
: Image path as a string.

◆ getImgWidth()

config.Config.getImgWidth ( self)

Retrieve the image width.

Returns
: Image width as an integer.

◆ getIsDualMonitor()

config.Config.getIsDualMonitor ( self)

◆ getMonitorWidth()

config.Config.getMonitorWidth ( self)

◆ getOverlapWidth()

config.Config.getOverlapWidth ( self)

Retrieve the overlap width.

Returns
: Overlap width as an integer.

◆ getProjectionDistance()

config.Config.getProjectionDistance ( self)

Retrieve the projection distance.

Returns
: Projection distance as an integer.

◆ getProjectorDistance()

config.Config.getProjectorDistance ( self)

Retrieve the projector distance.

Returns
: Projector distance as an integer.

◆ getSide()

config.Config.getSide ( self)

Retrieve the side of projection.

Returns
: Side as a string.

◆ readConfigFile()

config.Config.readConfigFile ( )
static

Reads the configuration from a config.ini file and returns a Config object.

Returns
: Config object with settings loaded from config.ini.

The documentation for this class was generated from the following file: