Developer Documentation
|
Classes | |
struct | Params |
Public Types | |
typedef OpenMesh::Decimater::BaseDecimaterT< TriMesh > | BaseDecimaterType |
typedef OpenMesh::Decimater::DecimaterT< TriMesh > | DecimaterType |
typedef OpenMesh::Decimater::McDecimaterT< TriMesh > | McDecimaterType |
typedef OpenMesh::Decimater::MixedDecimaterT< TriMesh > | MixedDecimaterType |
Public Slots | |
void | decimate () |
![]() | |
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 |
![]() | |
OpenFlipperThread (const QString &_jobId) | |
void | run () |
Main processing. More... | |
QString | jobId () |
get JobId get the Id of the current Job More... | |
![]() | |
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 | |
![]() | |
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... | |
Definition at line 57 of file DecimateThread.hh.
typedef OpenMesh::Decimater::BaseDecimaterT< TriMesh > DecimateThread::BaseDecimaterType |
Definition at line 61 of file DecimateThread.hh.
typedef OpenMesh::Decimater::DecimaterT< TriMesh > DecimateThread::DecimaterType |
Definition at line 62 of file DecimateThread.hh.
typedef OpenMesh::Decimater::McDecimaterT< TriMesh > DecimateThread::McDecimaterType |
Definition at line 63 of file DecimateThread.hh.
typedef OpenMesh::Decimater::MixedDecimaterT< TriMesh > DecimateThread::MixedDecimaterType |
Definition at line 64 of file DecimateThread.hh.
DecimateThread::DecimateThread | ( | const Params & | _param, |
const QString & | _jobId, | ||
int | _objId | ||
) |
Definition at line 57 of file DecimateThread.cc.
DecimateThread::~DecimateThread | ( | ) |
Definition at line 79 of file DecimateThread.cc.
|
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.
Reimplemented from OpenMesh::Decimater::Observer.
Definition at line 52 of file DecimateThread.cc.
DecimateThread::BaseDecimaterType * DecimateThread::baseDecimater | ( | ) |
Definition at line 88 of file DecimateThread.cc.
|
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.
|
slot |
Definition at line 98 of file DecimateThread.cc.
|
virtual |
callback
This function has to be overloaded. It will be called regularly during the decimation process and will return the current step.
_step | Current step of the decimater |
Implements OpenMesh::Decimater::Observer.
Definition at line 47 of file DecimateThread.cc.
int DecimateThread::objectId | ( | ) | const |
Definition at line 93 of file DecimateThread.cc.
|
private |
Definition at line 83 of file DecimateThread.hh.
|
private |
Definition at line 87 of file DecimateThread.hh.
|
private |
Definition at line 86 of file DecimateThread.hh.
|
private |
Definition at line 84 of file DecimateThread.hh.
|
private |
Definition at line 88 of file DecimateThread.hh.
|
private |
Definition at line 85 of file DecimateThread.hh.