\hypertarget{a08488}{}\section{Open\+Mesh\+:\+:IO\+:\+:\+\_\+\+O\+B\+J\+Reader\+\_\+ Class Reference}
\label{a08488}\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+}}


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

Inheritance diagram for Open\+Mesh\+:\+:IO\+:\+:\+\_\+\+O\+B\+J\+Reader\+\_\+\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a08488}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08488_af7f27509f9ac2bd59dd0f31535b43ccb}\label{a08488_af7f27509f9ac2bd59dd0f31535b43ccb}} 
std\+::string \hyperlink{a08488_af7f27509f9ac2bd59dd0f31535b43ccb}{get\+\_\+description} () const
\begin{DoxyCompactList}\small\item\em Returns a brief description of the file type that can be parsed. \end{DoxyCompactList}\item 
std\+::string \hyperlink{a08488_a8619b817593f5e88ddbded9cc94cea41}{get\+\_\+extensions} () const
\item 
bool \hyperlink{a08488_a63954abd80bd199f5e6bd76e2346cd34}{read} (const std\+::string \&\+\_\+filename, \hyperlink{a08468}{Base\+Importer} \&\+\_\+bi, \hyperlink{a08480}{Options} \&\+\_\+opt)
\item 
bool \hyperlink{a08488_a3aa2dc8668159e54b09cc573a89b49be}{read} (std\+::istream \&\+\_\+in, \hyperlink{a08468}{Base\+Importer} \&\+\_\+bi, \hyperlink{a08480}{Options} \&\+\_\+opt)
\end{DoxyCompactItemize}
\subsection*{Private Types}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08488_af8cb1e58050837bb16133cd7ebeee320}\label{a08488_af8cb1e58050837bb16133cd7ebeee320}} 
typedef std\+::map$<$ std\+::string, Material $>$ {\bfseries Material\+List}
\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08488_ab6ce5b0e51d8730fa6324a9b67eb1e46}\label{a08488_ab6ce5b0e51d8730fa6324a9b67eb1e46}} 
bool {\bfseries read\+\_\+material} (std\+::fstream \&\+\_\+in)
\item 
\mbox{\Hypertarget{a08488_ab5f1c0e007913ae8b73407e04ad320e7}\label{a08488_ab5f1c0e007913ae8b73407e04ad320e7}} 
bool {\bfseries read\+\_\+vertices} (std\+::istream \&\+\_\+in, \hyperlink{a08468}{Base\+Importer} \&\+\_\+bi, \hyperlink{a08480}{Options} \&\+\_\+opt, std\+::vector$<$ \hyperlink{a06210_aa8903e7c1a37b97fb332a69122a7c6e8}{Vec3f} $>$ \&normals, std\+::vector$<$ \hyperlink{a06210_aa8903e7c1a37b97fb332a69122a7c6e8}{Vec3f} $>$ \&colors, std\+::vector$<$ \hyperlink{a06210_aa8903e7c1a37b97fb332a69122a7c6e8}{Vec3f} $>$ \&texcoords3d, std\+::vector$<$ \hyperlink{a06210_abe4bc40898580f1b70eea39adaa4dda0}{Vec2f} $>$ \&texcoords, std\+::vector$<$ \hyperlink{a08696}{Vertex\+Handle} $>$ \&vertex\+Handles, \hyperlink{a08480}{Options} \&file\+Options)
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08488_a591c84e103fb0d2a10968ae8d0609b81}\label{a08488_a591c84e103fb0d2a10968ae8d0609b81}} 
Material\+List {\bfseries materials\+\_\+}
\item 
\mbox{\Hypertarget{a08488_ab3410d4c19707251e6bb8763a0d16660}\label{a08488_ab3410d4c19707251e6bb8763a0d16660}} 
std\+::string {\bfseries path\+\_\+}
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
Implementation of the O\+BJ format reader. 

Definition at line 82 of file O\+B\+J\+Reader.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a08488_a8619b817593f5e88ddbded9cc94cea41}\label{a08488_a8619b817593f5e88ddbded9cc94cea41}} 
\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+}!get\+\_\+extensions@{get\+\_\+extensions}}
\index{get\+\_\+extensions@{get\+\_\+extensions}!Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+}}
\subsubsection{\texorpdfstring{get\+\_\+extensions()}{get\_extensions()}}
{\footnotesize\ttfamily std\+::string Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+\+::get\+\_\+extensions (\begin{DoxyParamCaption}{ }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}

Returns a string with the accepted file extensions separated by a whitespace and in small caps. 

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



Definition at line 91 of file O\+B\+J\+Reader.\+hh.

\mbox{\Hypertarget{a08488_a63954abd80bd199f5e6bd76e2346cd34}\label{a08488_a63954abd80bd199f5e6bd76e2346cd34}} 
\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+}!read@{read}}
\index{read@{read}!Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+}}
\subsubsection{\texorpdfstring{read()}{read()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily bool Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+\+::read (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{\+\_\+filename,  }\item[{\hyperlink{a08468}{Base\+Importer} \&}]{\+\_\+bi,  }\item[{\hyperlink{a08480}{Options} \&}]{\+\_\+opt }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

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{a08480}{Options} can be passed via \+\_\+opt. After execution \+\_\+opt contains the \hyperlink{a08480}{Options} that were available 

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



Definition at line 124 of file O\+B\+J\+Reader.\+cc.

\mbox{\Hypertarget{a08488_a3aa2dc8668159e54b09cc573a89b49be}\label{a08488_a3aa2dc8668159e54b09cc573a89b49be}} 
\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+}!read@{read}}
\index{read@{read}!Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+}}
\subsubsection{\texorpdfstring{read()}{read()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily bool Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Reader\+\_\+\+::read (\begin{DoxyParamCaption}\item[{std\+::istream \&}]{\+\_\+is,  }\item[{\hyperlink{a08468}{Base\+Importer} \&}]{\+\_\+bi,  }\item[{\hyperlink{a08480}{Options} \&}]{\+\_\+opt }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [virtual]}}

Reads a mesh given by a std\+::stream. This method usually uses the same stream reading method that read uses. \hyperlink{a08480}{Options} can be passed via \+\_\+opt. After execution \+\_\+opt contains the \hyperlink{a08480}{Options} that were available.

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

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



Definition at line 404 of file O\+B\+J\+Reader.\+cc.



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