Developer Documentation
DecimateThread Class Reference
Inheritance diagram for DecimateThread:
OpenFlipperThread OpenMesh::Decimater::Observer

Classes

struct  Params
 

Public Types

typedef OpenMesh::Decimater::BaseDecimaterT< TriMeshBaseDecimaterType
 
typedef OpenMesh::Decimater::DecimaterT< TriMeshDecimaterType
 
typedef OpenMesh::Decimater::McDecimaterT< TriMeshMcDecimaterType
 
typedef OpenMesh::Decimater::MixedDecimaterT< TriMeshMixedDecimaterType
 

Public Slots

void decimate ()
 
- Public Slots inherited from OpenFlipperThread
void slotCancel (const QString &_jobId)
 Cancel this job. More...
 
void startProcessing ()
 start processing More...
 

Public Member Functions

virtual void notify (size_t _step)
 callback More...
 
virtual bool abort () const
 Abort callback. More...
 
void cancel ()
 Cancel the job. More...
 
 DecimateThread (const Params &_param, const QString &_jobId, int _objId)
 
BaseDecimaterType * baseDecimater ()
 
int objectId () const
 
- Public Member Functions inherited from OpenFlipperThread
 OpenFlipperThread (const QString &_jobId)
 
void run ()
 Main processing. More...
 
QString jobId ()
 get JobId get the Id of the current Job More...
 
- Public Member Functions inherited from OpenMesh::Decimater::Observer
 Observer (size_t _notificationInterval)
 
virtual ~Observer ()
 Destructor. More...
 
size_t get_interval () const
 Get the interval between notification steps. More...
 
void set_interval (size_t _notificationInterval)
 Set the interval between notification steps. More...
 
virtual void notify (size_t _step)=0
 callback More...
 
virtual bool abort () const
 Abort callback. More...
 

Private Attributes

bool abort_
 
int maxCollapses_
 
Params param_
 
QString jobId_
 
BaseDecimaterType * baseDec_
 
int objId_
 

Additional Inherited Members

- Signals inherited from OpenFlipperThread
void startProcessingInternal ()
 start processing of a function More...
 
void state (QString _jobId, int _state)
 Tell core about job state. More...
 
void function (const QString _jobId="")
 job function More...
 
void finished (QString _jobId)
 job done More...
 

Detailed Description

Definition at line 57 of file DecimateThread.hh.

Member Typedef Documentation

◆ BaseDecimaterType

typedef OpenMesh::Decimater::BaseDecimaterT< TriMesh > DecimateThread::BaseDecimaterType

Definition at line 61 of file DecimateThread.hh.

◆ DecimaterType

typedef OpenMesh::Decimater::DecimaterT< TriMesh > DecimateThread::DecimaterType

Definition at line 62 of file DecimateThread.hh.

◆ McDecimaterType

typedef OpenMesh::Decimater::McDecimaterT< TriMesh > DecimateThread::McDecimaterType

Definition at line 63 of file DecimateThread.hh.

◆ MixedDecimaterType

typedef OpenMesh::Decimater::MixedDecimaterT< TriMesh > DecimateThread::MixedDecimaterType

Definition at line 64 of file DecimateThread.hh.

Constructor & Destructor Documentation

◆ DecimateThread()

DecimateThread::DecimateThread ( const Params _param,
const QString &  _jobId,
int  _objId 
)

Definition at line 57 of file DecimateThread.cc.

◆ ~DecimateThread()

DecimateThread::~DecimateThread ( )

Definition at line 79 of file DecimateThread.cc.

Member Function Documentation

◆ abort()

bool DecimateThread::abort ( ) const
virtual

Abort callback.

After each notification, this function is called by the decimater. If the function returns true, the decimater will stop at a consistent state. Otherwise it will continue.

Returns
abort Yes or No

Reimplemented from OpenMesh::Decimater::Observer.

Definition at line 52 of file DecimateThread.cc.

◆ baseDecimater()

DecimateThread::BaseDecimaterType * DecimateThread::baseDecimater ( )

Definition at line 88 of file DecimateThread.cc.

◆ cancel()

void DecimateThread::cancel ( )
virtual

Cancel the job.

Reimplement this function to correctly terminate your job. If your job is able to terminate correctly then you can reimplement this function and stop your process.

Reimplemented from OpenFlipperThread.

Definition at line 83 of file DecimateThread.cc.

◆ decimate

void DecimateThread::decimate ( )
slot

Definition at line 98 of file DecimateThread.cc.

◆ notify()

void DecimateThread::notify ( size_t  _step)
virtual

callback

This function has to be overloaded. It will be called regularly during the decimation process and will return the current step.

Parameters
_stepCurrent step of the decimater

Implements OpenMesh::Decimater::Observer.

Definition at line 47 of file DecimateThread.cc.

◆ objectId()

int DecimateThread::objectId ( ) const

Definition at line 93 of file DecimateThread.cc.

Member Data Documentation

◆ abort_

bool DecimateThread::abort_
private

Definition at line 83 of file DecimateThread.hh.

◆ baseDec_

BaseDecimaterType* DecimateThread::baseDec_
private

Definition at line 87 of file DecimateThread.hh.

◆ jobId_

QString DecimateThread::jobId_
private

Definition at line 86 of file DecimateThread.hh.

◆ maxCollapses_

int DecimateThread::maxCollapses_
private

Definition at line 84 of file DecimateThread.hh.

◆ objId_

int DecimateThread::objId_
private

Definition at line 88 of file DecimateThread.hh.

◆ param_

Params DecimateThread::param_
private

Definition at line 85 of file DecimateThread.hh.


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