Open CASCADE Technology  7.5.0
Public Member Functions | Static Public Member Functions

ViewerTest_ContinuousRedrawer Class Reference

Auxiliary tool performing continuous redraws of specified window. Tool creates an extra working thread pushing content invalidation messages to specific window using Aspect_Window::InvalidateContent() method. Normally, GUI application should done continuous rendering in simple fashion - just by drawing next frame without waiting for new events from windowing system; however, implementation of this approach is problematic in context of ViewerTest due to message loop binding mechanism implied by Tcl/Tk. More...

#include <ViewerTest_ContinuousRedrawer.hxx>

Public Member Functions

 ~ViewerTest_ContinuousRedrawer ()
 Destructor. More...
 
bool IsStarted () const
 Return TRUE if redrawer thread is started. More...
 
void Start (const Handle< Aspect_Window > &theWindow, Standard_Real theTargetFps)
 Start thread. More...
 
void Stop (const Handle< Aspect_Window > &theWindow=NULL)
 Stop thread. More...
 
bool IsPaused () const
 Return TRUE if redrawer thread is in paused state. More...
 
void Pause ()
 Pause working thread, but does not terminate it. More...
 

Static Public Member Functions

static ViewerTest_ContinuousRedrawerInstance ()
 Return global instance. More...
 

Detailed Description

Auxiliary tool performing continuous redraws of specified window. Tool creates an extra working thread pushing content invalidation messages to specific window using Aspect_Window::InvalidateContent() method. Normally, GUI application should done continuous rendering in simple fashion - just by drawing next frame without waiting for new events from windowing system; however, implementation of this approach is problematic in context of ViewerTest due to message loop binding mechanism implied by Tcl/Tk.

Constructor & Destructor Documentation

◆ ~ViewerTest_ContinuousRedrawer()

ViewerTest_ContinuousRedrawer::~ViewerTest_ContinuousRedrawer ( )

Destructor.

Member Function Documentation

◆ Instance()

static ViewerTest_ContinuousRedrawer& ViewerTest_ContinuousRedrawer::Instance ( )
static

Return global instance.

◆ IsPaused()

bool ViewerTest_ContinuousRedrawer::IsPaused ( ) const
inline

Return TRUE if redrawer thread is in paused state.

◆ IsStarted()

bool ViewerTest_ContinuousRedrawer::IsStarted ( ) const
inline

Return TRUE if redrawer thread is started.

◆ Pause()

void ViewerTest_ContinuousRedrawer::Pause ( )

Pause working thread, but does not terminate it.

◆ Start()

void ViewerTest_ContinuousRedrawer::Start ( const Handle< Aspect_Window > &  theWindow,
Standard_Real  theTargetFps 
)

Start thread.

◆ Stop()

void ViewerTest_ContinuousRedrawer::Stop ( const Handle< Aspect_Window > &  theWindow = NULL)

Stop thread.


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