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


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

Inheritance diagram for Open\+Mesh\+:\+:IO\+:\+:\+\_\+\+O\+B\+J\+Writer\+\_\+\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a08548}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08548_aeb70a2844af33fdff77e1d1619b19592}\label{a08548_aeb70a2844af33fdff77e1d1619b19592}} 
virtual \hyperlink{a08548_aeb70a2844af33fdff77e1d1619b19592}{$\sim$\+\_\+\+O\+B\+J\+Writer\+\_\+} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08548_a1fc163c9d0cb3b97a843e8b36228f3bd}\label{a08548_a1fc163c9d0cb3b97a843e8b36228f3bd}} 
std\+::string \hyperlink{a08548_a1fc163c9d0cb3b97a843e8b36228f3bd}{get\+\_\+description} () const
\begin{DoxyCompactList}\small\item\em Return short description of the supported file format. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08548_ad97520ecab35a06177d4f6a40c50fa55}\label{a08548_ad97520ecab35a06177d4f6a40c50fa55}} 
std\+::string \hyperlink{a08548_ad97520ecab35a06177d4f6a40c50fa55}{get\+\_\+extensions} () const
\begin{DoxyCompactList}\small\item\em Return file format\textquotesingle{}s extension. \end{DoxyCompactList}\item 
bool \hyperlink{a08548_a24770c8de6b2e3e0d324596bde72c1c3}{write} (const std\+::string \&, \hyperlink{a08460}{Base\+Exporter} \&, \hyperlink{a08480}{Options}, std\+::streamsize \+\_\+precision=6) const
\item 
bool \hyperlink{a08548_a52c30c84288e1adb7d2741ec79d8bee3}{write} (std\+::ostream \&, \hyperlink{a08460}{Base\+Exporter} \&, \hyperlink{a08480}{Options}, std\+::streamsize \+\_\+precision=6) const
\item 
\mbox{\Hypertarget{a08548_a072ff2c1cf695ba919257c0cc6e0d9b0}\label{a08548_a072ff2c1cf695ba919257c0cc6e0d9b0}} 
size\+\_\+t \hyperlink{a08548_a072ff2c1cf695ba919257c0cc6e0d9b0}{binary\+\_\+size} (\hyperlink{a08460}{Base\+Exporter} \&, \hyperlink{a08480}{Options}) const
\begin{DoxyCompactList}\small\item\em Returns expected size of file if binary format is supported else 0. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08548_a8821f1f83fe7c893a4f8ffd7f62ff785}\label{a08548_a8821f1f83fe7c893a4f8ffd7f62ff785}} 
size\+\_\+t {\bfseries get\+Material} (\hyperlink{a06210_aa8903e7c1a37b97fb332a69122a7c6e8}{Open\+Mesh\+::\+Vec3f} \+\_\+color) const
\item 
\mbox{\Hypertarget{a08548_ad27e28d15795e922062cefde380789c6}\label{a08548_ad27e28d15795e922062cefde380789c6}} 
size\+\_\+t {\bfseries get\+Material} (\hyperlink{a06210_a3b7e6dba036bbefcc461f05db4f7694b}{Open\+Mesh\+::\+Vec4f} \+\_\+color) const
\item 
\mbox{\Hypertarget{a08548_ac738ec076aefe9076af5799ea45f84ef}\label{a08548_ac738ec076aefe9076af5799ea45f84ef}} 
bool {\bfseries write\+Material} (std\+::ostream \&\+\_\+out, \hyperlink{a08460}{Base\+Exporter} \&, \hyperlink{a08480}{Options}) const
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08548_a6d9ebbea4a98ab7a7eafbbc97b006d59}\label{a08548_a6d9ebbea4a98ab7a7eafbbc97b006d59}} 
std\+::string {\bfseries path\+\_\+}
\item 
\mbox{\Hypertarget{a08548_af05d487970d45d0ff21643b92b346836}\label{a08548_af05d487970d45d0ff21643b92b346836}} 
std\+::string {\bfseries obj\+Name\+\_\+}
\item 
\mbox{\Hypertarget{a08548_ae93d7158c9f83d14eb76c9bb498002c8}\label{a08548_ae93d7158c9f83d14eb76c9bb498002c8}} 
std\+::vector$<$ \hyperlink{a06210_aa8903e7c1a37b97fb332a69122a7c6e8}{Open\+Mesh\+::\+Vec3f} $>$ {\bfseries material\+\_\+}
\item 
\mbox{\Hypertarget{a08548_afbbe203aa603493120401465ddecde63}\label{a08548_afbbe203aa603493120401465ddecde63}} 
std\+::vector$<$ \hyperlink{a06210_a3b7e6dba036bbefcc461f05db4f7694b}{Open\+Mesh\+::\+Vec4f} $>$ {\bfseries material\+A\+\_\+}
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
This class defines the O\+BJ writer. This class is further singleton\textquotesingle{}ed by \hyperlink{a08912}{SingletonT} to O\+B\+J\+Writer. 

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



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a08548_a24770c8de6b2e3e0d324596bde72c1c3}\label{a08548_a24770c8de6b2e3e0d324596bde72c1c3}} 
\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Writer\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Writer\+\_\+}!write@{write}}
\index{write@{write}!Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Writer\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Writer\+\_\+}}
\subsubsection{\texorpdfstring{write()}{write()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily bool Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Writer\+\_\+\+::write (\begin{DoxyParamCaption}\item[{const std\+::string \&}]{\+\_\+filename,  }\item[{\hyperlink{a08460}{Base\+Exporter} \&}]{\+\_\+be,  }\item[{\hyperlink{a08480}{Options}}]{\+\_\+opt,  }\item[{std\+::streamsize}]{\+\_\+precision = {\ttfamily 6} }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}

Write to a file 
\begin{DoxyParams}{Parameters}
{\em \+\_\+filename} & write to file with the given filename \\
\hline
{\em \+\_\+be} & \hyperlink{a08460}{Base\+Exporter}, which specifies the data source \\
\hline
{\em \+\_\+opt} & writing options \\
\hline
{\em \+\_\+precision} & can be used to specify the precision of the floating point notation. \\
\hline
\end{DoxyParams}


Implements \hyperlink{a08544_a7c0818a63926bdb439044a8f4c038d85}{Open\+Mesh\+::\+I\+O\+::\+Base\+Writer}.



Definition at line 84 of file O\+B\+J\+Writer.\+cc.

\mbox{\Hypertarget{a08548_a52c30c84288e1adb7d2741ec79d8bee3}\label{a08548_a52c30c84288e1adb7d2741ec79d8bee3}} 
\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Writer\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Writer\+\_\+}!write@{write}}
\index{write@{write}!Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Writer\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Writer\+\_\+}}
\subsubsection{\texorpdfstring{write()}{write()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily bool Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+B\+J\+Writer\+\_\+\+::write (\begin{DoxyParamCaption}\item[{std\+::ostream \&}]{\+\_\+os,  }\item[{\hyperlink{a08460}{Base\+Exporter} \&}]{\+\_\+be,  }\item[{\hyperlink{a08480}{Options}}]{\+\_\+opt,  }\item[{std\+::streamsize}]{\+\_\+precision = {\ttfamily 6} }\end{DoxyParamCaption}) const\hspace{0.3cm}{\ttfamily [virtual]}}

Write to a std\+::ostream 
\begin{DoxyParams}{Parameters}
{\em \+\_\+os} & write to std\+::ostream \\
\hline
{\em \+\_\+be} & \hyperlink{a08460}{Base\+Exporter}, which specifies the data source \\
\hline
{\em \+\_\+opt} & writing options \\
\hline
{\em \+\_\+precision} & can be used to specify the precision of the floating point notation. \\
\hline
\end{DoxyParams}


Implements \hyperlink{a08544_ae0aa2050e93f96d71ff70ce788a76a94}{Open\+Mesh\+::\+I\+O\+::\+Base\+Writer}.



Definition at line 206 of file O\+B\+J\+Writer.\+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/writer/O\+B\+J\+Writer.\+hh\item 
Open\+Flipper/libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Core/\+I\+O/writer/O\+B\+J\+Writer.\+cc\end{DoxyCompactItemize}
