Graphite Version 3
An experimental 3D geometry processing program
Loading...
Searching...
No Matches
OGF::ApplicationBase::ApplicationBaseProgressClient Class Reference

A ProgressClient that redirects all messages to an ApplicationBase. More...

#include <OGF/scene_graph/skin/application_base.h>

Inheritance diagram for OGF::ApplicationBase::ApplicationBaseProgressClient:
GEO::ProgressClient GEO::Counted

Public Member Functions

 ApplicationBaseProgressClient (ApplicationBase *app)
void begin () override
 Starts listening progress.
void progress (index_t step, index_t percent) override
 Tracks progress.
void end (bool canceled) override
 Stops listening progress.
Public Member Functions inherited from GEO::Counted
void ref () const
 Increments the reference count.
void unref () const
 Decrements the reference count.
bool is_shared () const
 Check if the object is shared.
int nb_refs () const
 Gets the number of references that point to this object.

Additional Inherited Members

Static Public Member Functions inherited from GEO::Counted
static void ref (const Counted *counted)
 Increments the reference count.
static void unref (const Counted *counted)
 Decrements the reference count.
Protected Member Functions inherited from GEO::ProgressClient
 ~ProgressClient () override
Protected Member Functions inherited from GEO::Counted
 Counted ()
 Creates a reference counted object.
virtual ~Counted ()
 Destroys a reference counted object.

Detailed Description

A ProgressClient that redirects all messages to an ApplicationBase.

Definition at line 452 of file application_base.h.

Member Function Documentation

◆ begin()

void OGF::ApplicationBase::ApplicationBaseProgressClient::begin ( )
overridevirtual

Starts listening progress.

This function is called by the ProgressTask to start tracking the execution of a new task. Clients are free to do whatever is appropriate (show a progress bar, a progress dialog, ...)

Implements GEO::ProgressClient.

◆ end()

void OGF::ApplicationBase::ApplicationBaseProgressClient::end ( bool canceled)
overridevirtual

Stops listening progress.

This function is called by the ProgressTask to stop tracking the execution of the task. Clients are free to do whatever is appropriate (hide a progress bar, a progress dialog, log the elapsed time, ...). If the task was not terminated normally (i.e., canceled() then parameter canceled is set to true.

Parameters
[in]canceledset to true if the task was canceled, false otherwise.

Implements GEO::ProgressClient.

◆ progress()

void OGF::ApplicationBase::ApplicationBaseProgressClient::progress ( index_t step,
index_t percent )
overridevirtual

Tracks progress.

This function is called by the ProgressTask repeatedly during the execution of the task. Clients are free to do whatever is appropriate (update a progress bar, log the current values, ...).

Parameters
[in]stepthe current progress step
[in]percentthe percentage of completion of the task

Implements GEO::ProgressClient.


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