|
iMSTK
Interactive Medical Simulation Toolkit
|
Utility class to manage screen capture. More...
#include <imstkScreenCaptureUtility.h>

Public Member Functions | |
| ScreenCaptureUtility (std::string prefix="Screenshot-") | |
| Constructor. | |
| std::string | saveScreenShot () |
Saves a screenshot with a name of <prefix><screenshotNumber>.<implementationImageType> the <ImplementationImageType> is most likely .png. More... | |
| virtual std::string | saveScreenShot (const std::string &name)=0 |
| Saves a screenshot with the given name, the implementation will add the image type used to store the file. More... | |
| unsigned int | getScreenShotNumber () const |
| Returns the number of the next screenshot. | |
| void | setScreenShotPrefix (const std::string &newPrefix) |
| set/reset the prefix and the count numbers | |
| void | resetScreenShotNumber () |
| reset the screenshot number | |
Protected Attributes | |
| unsigned int | m_screenShotNumber = 0 |
| screen shot number is added to the file prefix, and incremented everytime a screen shot is taken | |
| std::string | m_screenShotPrefix |
| the prefix for the screenshots to be saved | |
Utility class to manage screen capture.
Definition at line 18 of file imstkScreenCaptureUtility.h.
| std::string imstk::ScreenCaptureUtility::saveScreenShot | ( | ) |
Saves a screenshot with a name of <prefix><screenshotNumber>.<implementationImageType> the <ImplementationImageType> is most likely .png.
Definition at line 18 of file imstkScreenCaptureUtility.cpp.
|
pure virtual |
Saves a screenshot with the given name, the implementation will add the image type used to store the file.
| name | base name for the file to store |
Implemented in imstk::VTKScreenCaptureUtility.
1.8.13