\hypertarget{a00269}{\section{Open\+Mesh\+:\+:I\+O\+:\+:\+\_\+\+S\+T\+L\+Reader\+\_\+ Class Reference}
\label{a00269}\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+}}
}


{\ttfamily \#include $<$libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Core/\+I\+O/reader/\+S\+T\+L\+Reader.\+hh$>$}

Inheritance diagram for Open\+Mesh\+:\+:I\+O\+:\+:\+\_\+\+S\+T\+L\+Reader\+\_\+\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a00269}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00269_a88db910f48bfa7c42c873888bed4cfc6}{virtual \hyperlink{a00269_a88db910f48bfa7c42c873888bed4cfc6}{$\sim$\+\_\+\+S\+T\+L\+Reader\+\_\+} ()}\label{a00269_a88db910f48bfa7c42c873888bed4cfc6}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\hypertarget{a00269_a3f2d2f8443ad016d81ad1506cf22f5db}{std\+::string \hyperlink{a00269_a3f2d2f8443ad016d81ad1506cf22f5db}{get\+\_\+description} () const }\label{a00269_a3f2d2f8443ad016d81ad1506cf22f5db}

\begin{DoxyCompactList}\small\item\em Returns a brief description of the file type that can be parsed. \end{DoxyCompactList}\item 
std\+::string \hyperlink{a00269_a1313e21a04264133ffca2be46c47697f}{get\+\_\+extensions} () const 
\item 
bool \hyperlink{a00269_ab13615c05aef446846cf177b439bdeb7}{read} (const std\+::string \&\+\_\+filename, \hyperlink{a00319}{Base\+Importer} \&\+\_\+bi, \hyperlink{a00941}{Options} \&\+\_\+opt)
\item 
bool \hyperlink{a00269_ab0015a00f47a24d94dde0ee81a76666a}{read} (std\+::istream \&\+\_\+in, \hyperlink{a00319}{Base\+Importer} \&\+\_\+bi, \hyperlink{a00941}{Options} \&\+\_\+opt)
\item 
void \hyperlink{a00269_a858cd5bae3eea93ecc33ca12a3e6c475}{set\+\_\+epsilon} (float \+\_\+eps)
\item 
\hypertarget{a00269_a453b5bc39c6256dae86d72e73d9ece7e}{float \hyperlink{a00269_a453b5bc39c6256dae86d72e73d9ece7e}{epsilon} () const }\label{a00269_a453b5bc39c6256dae86d72e73d9ece7e}

\begin{DoxyCompactList}\small\item\em Returns the threshold to be used for considering two point to be equal. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00269_a18af6adee5ca48b63bb91957db4455a6}{enum {\bfseries S\+T\+L\+\_\+\+Type} \{ {\bfseries S\+T\+L\+A}, 
{\bfseries S\+T\+L\+B}, 
{\bfseries N\+O\+N\+E}
 \}}\label{a00269_a18af6adee5ca48b63bb91957db4455a6}

\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00269_a42b0e0c13cf8a04b6c517f4148d91ff9}{S\+T\+L\+\_\+\+Type {\bfseries check\+\_\+stl\+\_\+type} (const std\+::string \&\+\_\+filename) const }\label{a00269_a42b0e0c13cf8a04b6c517f4148d91ff9}

\item 
\hypertarget{a00269_a487ce5d059420e6a18e4bbada07cbbff}{bool {\bfseries read\+\_\+stla} (const std\+::string \&\+\_\+filename, \hyperlink{a00319}{Base\+Importer} \&\+\_\+bi, \hyperlink{a00941}{Options} \&\+\_\+opt) const }\label{a00269_a487ce5d059420e6a18e4bbada07cbbff}

\item 
\hypertarget{a00269_aa9e82a0c5900fb6b7de275c3834e7fee}{bool {\bfseries read\+\_\+stla} (std\+::istream \&\+\_\+in, \hyperlink{a00319}{Base\+Importer} \&\+\_\+bi, \hyperlink{a00941}{Options} \&\+\_\+opt) const }\label{a00269_aa9e82a0c5900fb6b7de275c3834e7fee}

\item 
\hypertarget{a00269_a75cf8766ecdf9bf2d2ac17631758b684}{bool {\bfseries read\+\_\+stlb} (const std\+::string \&\+\_\+filename, \hyperlink{a00319}{Base\+Importer} \&\+\_\+bi, \hyperlink{a00941}{Options} \&\+\_\+opt) const }\label{a00269_a75cf8766ecdf9bf2d2ac17631758b684}

\item 
\hypertarget{a00269_ae3dbae8aa3ee0fda14847990787b3c03}{bool {\bfseries read\+\_\+stlb} (std\+::istream \&\+\_\+in, \hyperlink{a00319}{Base\+Importer} \&\+\_\+bi, \hyperlink{a00941}{Options} \&\+\_\+opt) const }\label{a00269_ae3dbae8aa3ee0fda14847990787b3c03}

\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00269_aff38b3536cb026953f5398031465a037}{float {\bfseries eps\+\_\+}}\label{a00269_aff38b3536cb026953f5398031465a037}

\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
Implementation of the S\+T\+L format reader. This class is singleton'ed by \hyperlink{a01181}{Singleton\+T} to S\+T\+L\+Reader. 

Definition at line 89 of file S\+T\+L\+Reader.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a00269_a1313e21a04264133ffca2be46c47697f}{\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+}!get\+\_\+extensions@{get\+\_\+extensions}}
\index{get\+\_\+extensions@{get\+\_\+extensions}!Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+}}
\subsubsection[{get\+\_\+extensions}]{\setlength{\rightskip}{0pt plus 5cm}std\+::string Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+\+::get\+\_\+extensions (
\begin{DoxyParamCaption}
{}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{a00269_a1313e21a04264133ffca2be46c47697f}
Returns a string with the accepted file extensions separated by a whitespace and in small caps. 

Implements \hyperlink{a00338_a9e76bc7b1b46b7a8b4922d8ca5934419}{Open\+Mesh\+::\+I\+O\+::\+Base\+Reader}.



Definition at line 102 of file S\+T\+L\+Reader.\+hh.

\hypertarget{a00269_ab13615c05aef446846cf177b439bdeb7}{\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+}!read@{read}}
\index{read@{read}!Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+}}
\subsubsection[{read}]{\setlength{\rightskip}{0pt plus 5cm}bool Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+\+::read (
\begin{DoxyParamCaption}
\item[{const std\+::string \&}]{\+\_\+filename, }
\item[{{\bf Base\+Importer} \&}]{\+\_\+bi, }
\item[{{\bf Options} \&}]{\+\_\+opt}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{a00269_ab13615c05aef446846cf177b439bdeb7}
Reads a mesh given by a filename. Usually this method opens a stream and passes it to stream read method. Acceptance checks by filename extension can be placed here.

\hyperlink{a00941}{Options} can be passed via \+\_\+opt. After execution \+\_\+opt contains the \hyperlink{a00941}{Options} that were available 

Implements \hyperlink{a00338_af4a32645528c1bf2043a9259b172f411}{Open\+Mesh\+::\+I\+O\+::\+Base\+Reader}.



Definition at line 96 of file S\+T\+L\+Reader.\+cc.

\hypertarget{a00269_ab0015a00f47a24d94dde0ee81a76666a}{\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+}!read@{read}}
\index{read@{read}!Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+}}
\subsubsection[{read}]{\setlength{\rightskip}{0pt plus 5cm}bool Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+\+::read (
\begin{DoxyParamCaption}
\item[{std\+::istream \&}]{\+\_\+is, }
\item[{{\bf Base\+Importer} \&}]{\+\_\+bi, }
\item[{{\bf Options} \&}]{\+\_\+opt}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [virtual]}}}\label{a00269_ab0015a00f47a24d94dde0ee81a76666a}
Reads a mesh given by a std\+::stream. This method usually uses the same stream reading method that read uses. \hyperlink{a00941}{Options} can be passed via \+\_\+opt. After execution \+\_\+opt contains the \hyperlink{a00941}{Options} that were available.

Please make sure that if \+\_\+is is std\+::ifstream, the correct std\+::ios\+\_\+base\+::openmode flags are set. 

Implements \hyperlink{a00338_a0fd4df36decf91cd91a7f363aae56065}{Open\+Mesh\+::\+I\+O\+::\+Base\+Reader}.



Definition at line 146 of file S\+T\+L\+Reader.\+cc.

\hypertarget{a00269_a858cd5bae3eea93ecc33ca12a3e6c475}{\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+}!set\+\_\+epsilon@{set\+\_\+epsilon}}
\index{set\+\_\+epsilon@{set\+\_\+epsilon}!Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+}}
\subsubsection[{set\+\_\+epsilon}]{\setlength{\rightskip}{0pt plus 5cm}void Open\+Mesh\+::\+I\+O\+::\+\_\+\+S\+T\+L\+Reader\+\_\+\+::set\+\_\+epsilon (
\begin{DoxyParamCaption}
\item[{float}]{\+\_\+eps}
\end{DoxyParamCaption}
)\hspace{0.3cm}{\ttfamily [inline]}}}\label{a00269_a858cd5bae3eea93ecc33ca12a3e6c475}
Set the threshold to be used for considering two point to be equal. Can be used to merge small gaps 

Definition at line 114 of file S\+T\+L\+Reader.\+hh.



The documentation for this class was generated from the following files\+:\begin{DoxyCompactItemize}
\item 
libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Core/\+I\+O/reader/S\+T\+L\+Reader.\+hh\item 
libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Core/\+I\+O/reader/S\+T\+L\+Reader.\+cc\end{DoxyCompactItemize}
