TestCenter Reference
|
Package to provide screenshot related support functions. More...
Functions | |
createOffscreenScreenShot (SONodeName, filename=None, transparencyType=None, size=None, backgroundColor=None) | |
Create an screenshot of the given Inventor node that must be present in the given context. | |
createScreenShot (window, filename) | |
Create a screenshot of the given MeVisLab window. | |
canCreateScreenshot () | |
Returns whether a screenshot can be created on this hardware. | |
Package to provide screenshot related support functions.
TestSupport.ScreenShot.canCreateScreenshot | ( | ) |
Returns whether a screenshot can be created on this hardware.
Definition at line 126 of file ScreenShot.py.
TestSupport.ScreenShot.createOffscreenScreenShot | ( | SONodeName, | |
filename = None, | |||
transparencyType = None, | |||
size = None, | |||
backgroundColor = None ) |
Create an screenshot of the given Inventor node that must be present in the given context.
The image is saved in png format and with the filename being the hash of image's content. @parem filename Name of the screenshot file. The file will be saved in the current function's result directory. If a file with the given name exists the function fails and returns None.
SONodeName | Name of the inventor output field to create screenshot of. |
transparencyType | Type of transparency to be used. |
size | Tuple with values for x and y dimension. |
backgroundColor | set background color for scene (3-element tuple/list, individual values have to be in [0,1]) |
Definition at line 40 of file ScreenShot.py.
TestSupport.ScreenShot.createScreenShot | ( | window, | |
filename ) |
Create a screenshot of the given MeVisLab window.
Definition at line 89 of file ScreenShot.py.