FAST  3.2.0
Framework for Heterogeneous Medical Image Computing and Visualization
Public Slots | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
fast::Window Class Reference

#include <Window.hpp>

+ Inheritance diagram for fast::Window:
+ Collaboration diagram for fast::Window:

Public Slots

void stop ()
 

Public Member Functions

virtual void setTimeout (unsigned int milliseconds)
 
 ~Window ()
 
virtual void start ()
 
void setWidth (uint width)
 
void setHeight (uint height)
 
void setSize (uint width, uint height)
 
void enableMaximized ()
 
void disableMaximized ()
 
void enableFullscreen ()
 
void disableFullscreen ()
 
void setTitle (std::string)
 
std::vector< View * > getViews () const
 
ViewgetView (uint i) const
 
int getScreenWidth () const
 
int getScreenHeight () const
 
float getScalingFactor () const
 
void saveScreenshotOnClose (std::string filename)
 
void saveScreenshotOfViewsOnClose (std::string filename)
 
QWidget * getWidget ()
 
void addProcessObject (std::shared_ptr< ProcessObject > po)
 
- Public Member Functions inherited from fast::Object
 Object ()
 
virtual ~Object ()
 
ReportergetReporter ()
 

Static Public Member Functions

static void initializeQtApp ()
 
static QGLContext * getMainGLContext ()
 
static void setMainGLContext (QGLContext *context)
 
static void cleanup ()
 
- Static Public Member Functions inherited from fast::Object
static std::string getStaticNameOfClass ()
 

Protected Member Functions

void startComputationThread ()
 
void stopComputationThread ()
 
 Window ()
 
ViewcreateView ()
 
- Protected Member Functions inherited from fast::Object
ReporterreportError ()
 
ReporterreportWarning ()
 
ReporterreportInfo ()
 
ReporterEnd reportEnd () const
 

Protected Attributes

WindowWidgetmWidget
 
unsigned int mWidth
 
unsigned int mHeight
 
bool mFullscreen
 
bool mMaximized
 
unsigned int mTimeout
 
float mGUIScalingFactor = 1.0f
 
QEventLoop * mEventLoop
 
ComputationThreadmThread
 
std::vector< std::shared_ptr< ProcessObject > > m_processObjects
 
- Protected Attributes inherited from fast::Object
std::weak_ptr< ObjectmPtr
 

Additional Inherited Members

- Public Types inherited from fast::Object
typedef std::shared_ptr< Objectpointer
 

Constructor & Destructor Documentation

◆ ~Window()

fast::Window::~Window ( )

◆ Window()

fast::Window::Window ( )
protected

Member Function Documentation

◆ addProcessObject()

void fast::Window::addProcessObject ( std::shared_ptr< ProcessObject po)

◆ cleanup()

static void fast::Window::cleanup ( )
static

◆ createView()

View* fast::Window::createView ( )
protected

◆ disableFullscreen()

void fast::Window::disableFullscreen ( )

◆ disableMaximized()

void fast::Window::disableMaximized ( )

◆ enableFullscreen()

void fast::Window::enableFullscreen ( )

◆ enableMaximized()

void fast::Window::enableMaximized ( )

◆ getMainGLContext()

static QGLContext* fast::Window::getMainGLContext ( )
static

◆ getScalingFactor()

float fast::Window::getScalingFactor ( ) const

Get GUI scaling factor

Returns

◆ getScreenHeight()

int fast::Window::getScreenHeight ( ) const

Get screen height in pixels

Returns
height in pixels

◆ getScreenWidth()

int fast::Window::getScreenWidth ( ) const

Get screen width in pixels

Returns
width in pixels

◆ getView()

View* fast::Window::getView ( uint  i) const

◆ getViews()

std::vector<View*> fast::Window::getViews ( ) const

◆ getWidget()

QWidget* fast::Window::getWidget ( )

◆ initializeQtApp()

static void fast::Window::initializeQtApp ( )
static

◆ saveScreenshotOfViewsOnClose()

void fast::Window::saveScreenshotOfViewsOnClose ( std::string  filename)

◆ saveScreenshotOnClose()

void fast::Window::saveScreenshotOnClose ( std::string  filename)

◆ setHeight()

void fast::Window::setHeight ( uint  height)

◆ setMainGLContext()

static void fast::Window::setMainGLContext ( QGLContext *  context)
static

◆ setSize()

void fast::Window::setSize ( uint  width,
uint  height 
)

◆ setTimeout()

virtual void fast::Window::setTimeout ( unsigned int  milliseconds)
virtual

Makes the window close after a specific number of ms

◆ setTitle()

void fast::Window::setTitle ( std::string  )

◆ setWidth()

void fast::Window::setWidth ( uint  width)

◆ start()

virtual void fast::Window::start ( )
virtual

Starts an update loop on all renderers attached to each view in this window.

Reimplemented in fast::MultiViewWindow.

◆ startComputationThread()

void fast::Window::startComputationThread ( )
protected

◆ stop

void fast::Window::stop ( )
slot

◆ stopComputationThread()

void fast::Window::stopComputationThread ( )
protected

Member Data Documentation

◆ m_processObjects

std::vector<std::shared_ptr<ProcessObject> > fast::Window::m_processObjects
protected

◆ mEventLoop

QEventLoop* fast::Window::mEventLoop
protected

◆ mFullscreen

bool fast::Window::mFullscreen
protected

◆ mGUIScalingFactor

float fast::Window::mGUIScalingFactor = 1.0f
protected

◆ mHeight

unsigned int fast::Window::mHeight
protected

◆ mMaximized

bool fast::Window::mMaximized
protected

◆ mThread

ComputationThread* fast::Window::mThread
protected

◆ mTimeout

unsigned int fast::Window::mTimeout
protected

◆ mWidget

WindowWidget* fast::Window::mWidget
protected

◆ mWidth

unsigned int fast::Window::mWidth
protected

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