\hypertarget{a10120}{}\section{Decimate\+Thread Class Reference}
\label{a10120}\index{Decimate\+Thread@{Decimate\+Thread}}
Inheritance diagram for Decimate\+Thread\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=3.000000cm]{a10120}
\end{center}
\end{figure}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{a10124}{Params}
\end{DoxyCompactItemize}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a10120_ae3e924c5ce6a21bc9701c4e5e0ad8c8a}\label{a10120_ae3e924c5ce6a21bc9701c4e5e0ad8c8a}} 
typedef \hyperlink{a08924}{Open\+Mesh\+::\+Decimater\+::\+Base\+DecimaterT}$<$ \hyperlink{a08764}{Tri\+Mesh} $>$ {\bfseries Base\+Decimater\+Type}
\item 
\mbox{\Hypertarget{a10120_a29b5fb7c37ea34f7227135b9b999bff8}\label{a10120_a29b5fb7c37ea34f7227135b9b999bff8}} 
typedef \hyperlink{a08932}{Open\+Mesh\+::\+Decimater\+::\+DecimaterT}$<$ \hyperlink{a08764}{Tri\+Mesh} $>$ {\bfseries Decimater\+Type}
\item 
\mbox{\Hypertarget{a10120_a3c09a78b3d46413a7fcc86783b341c02}\label{a10120_a3c09a78b3d46413a7fcc86783b341c02}} 
typedef \hyperlink{a08940}{Open\+Mesh\+::\+Decimater\+::\+Mc\+DecimaterT}$<$ \hyperlink{a08764}{Tri\+Mesh} $>$ {\bfseries Mc\+Decimater\+Type}
\item 
\mbox{\Hypertarget{a10120_ae0a5c4ddcbe1aa460b09016f08e721ce}\label{a10120_ae0a5c4ddcbe1aa460b09016f08e721ce}} 
typedef \hyperlink{a08944}{Open\+Mesh\+::\+Decimater\+::\+Mixed\+DecimaterT}$<$ \hyperlink{a08764}{Tri\+Mesh} $>$ {\bfseries Mixed\+Decimater\+Type}
\end{DoxyCompactItemize}
\subsection*{Public Slots}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a10120_abee9a29e7dec37e3fa02804d76dccbc0}\label{a10120_abee9a29e7dec37e3fa02804d76dccbc0}} 
void {\bfseries decimate} ()
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{a10120_a9fba228d45e2cae87488c6cfe07464cc}{notify} (size\+\_\+t \+\_\+step)
\begin{DoxyCompactList}\small\item\em callback \end{DoxyCompactList}\item 
virtual bool \hyperlink{a10120_a83f1baf40a4aadd9b2f76f817ba7b849}{abort} () const
\begin{DoxyCompactList}\small\item\em Abort callback. \end{DoxyCompactList}\item 
void \hyperlink{a10120_ab3d8bf3e473210d1887c7af8d0c40c0a}{cancel} ()
\begin{DoxyCompactList}\small\item\em Cancel the job. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a10120_a25507273b74d3f93112a00eff83bf79b}\label{a10120_a25507273b74d3f93112a00eff83bf79b}} 
{\bfseries Decimate\+Thread} (const \hyperlink{a10124}{Params} \&\+\_\+param, Q\+String \+\_\+job\+Id, int \+\_\+obj\+Id)
\item 
\mbox{\Hypertarget{a10120_a8851231f9b454ae2b32aa205ff2224d2}\label{a10120_a8851231f9b454ae2b32aa205ff2224d2}} 
Base\+Decimater\+Type $\ast$ {\bfseries base\+Decimater} ()
\item 
\mbox{\Hypertarget{a10120_a9a440ae25f287c7002bf0a338343e6a0}\label{a10120_a9a440ae25f287c7002bf0a338343e6a0}} 
int {\bfseries object\+Id} () const
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a10120_a04f17afc62666a9398d3213ef18bf985}\label{a10120_a04f17afc62666a9398d3213ef18bf985}} 
bool {\bfseries abort\+\_\+}
\item 
\mbox{\Hypertarget{a10120_a455ec3b53e5ffbbd63a65e765e425a1a}\label{a10120_a455ec3b53e5ffbbd63a65e765e425a1a}} 
int {\bfseries max\+Collapses\+\_\+}
\item 
\mbox{\Hypertarget{a10120_a5b3527db2778606f02c6bc7c1b272340}\label{a10120_a5b3527db2778606f02c6bc7c1b272340}} 
\hyperlink{a10124}{Params} {\bfseries param\+\_\+}
\item 
\mbox{\Hypertarget{a10120_a7af4e990d39e7f0ccee5209d4ae9fbc3}\label{a10120_a7af4e990d39e7f0ccee5209d4ae9fbc3}} 
Q\+String {\bfseries job\+Id\+\_\+}
\item 
\mbox{\Hypertarget{a10120_ac8b1173111e280f4d4e5095134f728fc}\label{a10120_ac8b1173111e280f4d4e5095134f728fc}} 
Base\+Decimater\+Type $\ast$ {\bfseries base\+Dec\+\_\+}
\item 
\mbox{\Hypertarget{a10120_a4ec49365f25ef54cbb398e76348cfcc1}\label{a10120_a4ec49365f25ef54cbb398e76348cfcc1}} 
int {\bfseries obj\+Id\+\_\+}
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}


Definition at line 57 of file Decimate\+Thread.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a10120_a83f1baf40a4aadd9b2f76f817ba7b849}\label{a10120_a83f1baf40a4aadd9b2f76f817ba7b849}} 
\index{Decimate\+Thread@{Decimate\+Thread}!abort@{abort}}
\index{abort@{abort}!Decimate\+Thread@{Decimate\+Thread}}
\subsubsection{\texorpdfstring{abort()}{abort()}}
{\footnotesize\ttfamily bool Decimate\+Thread\+::abort (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [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.

\begin{DoxyReturn}{Returns}
abort Yes or No 
\end{DoxyReturn}


Reimplemented from \hyperlink{a08996_a8c18687cd88bbb0775577673c900d0a1}{Open\+Mesh\+::\+Decimater\+::\+Observer}.



Definition at line 52 of file Decimate\+Thread.\+cc.

\mbox{\Hypertarget{a10120_ab3d8bf3e473210d1887c7af8d0c40c0a}\label{a10120_ab3d8bf3e473210d1887c7af8d0c40c0a}} 
\index{Decimate\+Thread@{Decimate\+Thread}!cancel@{cancel}}
\index{cancel@{cancel}!Decimate\+Thread@{Decimate\+Thread}}
\subsubsection{\texorpdfstring{cancel()}{cancel()}}
{\footnotesize\ttfamily void Decimate\+Thread\+::cancel (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [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 \hyperlink{a09816_a52b846d7205201c48d21267228b54de5}{Open\+Flipper\+Thread}.



Definition at line 83 of file Decimate\+Thread.\+cc.

\mbox{\Hypertarget{a10120_a9fba228d45e2cae87488c6cfe07464cc}\label{a10120_a9fba228d45e2cae87488c6cfe07464cc}} 
\index{Decimate\+Thread@{Decimate\+Thread}!notify@{notify}}
\index{notify@{notify}!Decimate\+Thread@{Decimate\+Thread}}
\subsubsection{\texorpdfstring{notify()}{notify()}}
{\footnotesize\ttfamily void Decimate\+Thread\+::notify (\begin{DoxyParamCaption}\item[{size\+\_\+t}]{\+\_\+step }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}



callback 

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


\begin{DoxyParams}{Parameters}
{\em \+\_\+step} & Current step of the decimater \\
\hline
\end{DoxyParams}


Implements \hyperlink{a08996_ae7279c819cb88693c739f109bc21eaf4}{Open\+Mesh\+::\+Decimater\+::\+Observer}.



Definition at line 47 of file Decimate\+Thread.\+cc.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
Plugin-\/\+Decimater/Decimate\+Thread.\+hh\item 
Plugin-\/\+Decimater/Decimate\+Thread.\+cc\end{DoxyCompactItemize}
