\hypertarget{a08552}{}\section{Open\+Mesh\+:\+:IO\+:\+:\+\_\+\+O\+F\+F\+Writer\+\_\+ Class Reference}
\label{a08552}\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+F\+F\+Writer\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+F\+F\+Writer\+\_\+}}


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

Inheritance diagram for Open\+Mesh\+:\+:IO\+:\+:\+\_\+\+O\+F\+F\+Writer\+\_\+\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a08552}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08552_a2ccc310e59e07805977322a2936534e5}\label{a08552_a2ccc310e59e07805977322a2936534e5}} 
std\+::string \hyperlink{a08552_a2ccc310e59e07805977322a2936534e5}{get\+\_\+description} () const
\begin{DoxyCompactList}\small\item\em Return short description of the supported file format. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{a08552_a9707b222c513c1b15b6d72f76b6544be}\label{a08552_a9707b222c513c1b15b6d72f76b6544be}} 
std\+::string \hyperlink{a08552_a9707b222c513c1b15b6d72f76b6544be}{get\+\_\+extensions} () const
\begin{DoxyCompactList}\small\item\em Return file format\textquotesingle{}s extension. \end{DoxyCompactList}\item 
bool \hyperlink{a08552_a8d6aba495f374407792fea9f510e7504}{write} (const std\+::string \&, \hyperlink{a08460}{Base\+Exporter} \&, \hyperlink{a08480}{Options}, std\+::streamsize \+\_\+precision=6) const
\item 
bool \hyperlink{a08552_a45be761d2e1a452027c09b7d02edab2f}{write} (std\+::ostream \&, \hyperlink{a08460}{Base\+Exporter} \&, \hyperlink{a08480}{Options}, std\+::streamsize \+\_\+precision=6) const
\item 
\mbox{\Hypertarget{a08552_a70fdbd82e6472cad78226fc073f91cc2}\label{a08552_a70fdbd82e6472cad78226fc073f91cc2}} 
size\+\_\+t \hyperlink{a08552_a70fdbd82e6472cad78226fc073f91cc2}{binary\+\_\+size} (\hyperlink{a08460}{Base\+Exporter} \&\+\_\+be, \hyperlink{a08480}{Options} \+\_\+opt) const
\begin{DoxyCompactList}\small\item\em Returns expected size of file if binary format is supported else 0. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Protected Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a08552_a02dd1ec375b59cfc4be5a8c79895cc64}\label{a08552_a02dd1ec375b59cfc4be5a8c79895cc64}} 
void {\bfseries write\+Value} (std\+::ostream \&\+\_\+out, int value) const
\item 
\mbox{\Hypertarget{a08552_a06c880374be9a193998b91d72823eba2}\label{a08552_a06c880374be9a193998b91d72823eba2}} 
void {\bfseries write\+Value} (std\+::ostream \&\+\_\+out, unsigned int value) const
\item 
\mbox{\Hypertarget{a08552_ac4e130295a44b06b9c3158676f509d57}\label{a08552_ac4e130295a44b06b9c3158676f509d57}} 
void {\bfseries write\+Value} (std\+::ostream \&\+\_\+out, float value) const
\item 
\mbox{\Hypertarget{a08552_a8064d2afb1aec74dc6bed8034c6b7818}\label{a08552_a8064d2afb1aec74dc6bed8034c6b7818}} 
bool {\bfseries write\+\_\+ascii} (std\+::ostream \&\+\_\+in, \hyperlink{a08460}{Base\+Exporter} \&, \hyperlink{a08480}{Options}) const
\item 
\mbox{\Hypertarget{a08552_ad2140f3d045a58a038b4304bdf583dfa}\label{a08552_ad2140f3d045a58a038b4304bdf583dfa}} 
bool {\bfseries write\+\_\+binary} (std\+::ostream \&\+\_\+in, \hyperlink{a08460}{Base\+Exporter} \&, \hyperlink{a08480}{Options}) const
\end{DoxyCompactItemize}
\subsection*{Additional Inherited Members}


\subsection{Detailed Description}
Implementation of the O\+FF format writer. This class is singleton\textquotesingle{}ed by \hyperlink{a08912}{SingletonT} to O\+F\+F\+Writer.

By passing \hyperlink{a08480}{Options} to the write function you can manipulate the writing behavoir. The following options can be set\+:

Binary Vertex\+Normal Vertex\+Color Vertex\+Tex\+Coord Face\+Color Color\+Alpha 

Definition at line 92 of file O\+F\+F\+Writer.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a08552_a8d6aba495f374407792fea9f510e7504}\label{a08552_a8d6aba495f374407792fea9f510e7504}} 
\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+F\+F\+Writer\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+F\+F\+Writer\+\_\+}!write@{write}}
\index{write@{write}!Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+F\+F\+Writer\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+F\+F\+Writer\+\_\+}}
\subsubsection{\texorpdfstring{write()}{write()}\hspace{0.1cm}{\footnotesize\ttfamily [1/2]}}
{\footnotesize\ttfamily bool Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+F\+F\+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 81 of file O\+F\+F\+Writer.\+cc.

\mbox{\Hypertarget{a08552_a45be761d2e1a452027c09b7d02edab2f}\label{a08552_a45be761d2e1a452027c09b7d02edab2f}} 
\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+F\+F\+Writer\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+F\+F\+Writer\+\_\+}!write@{write}}
\index{write@{write}!Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+F\+F\+Writer\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+F\+F\+Writer\+\_\+}}
\subsubsection{\texorpdfstring{write()}{write()}\hspace{0.1cm}{\footnotesize\ttfamily [2/2]}}
{\footnotesize\ttfamily bool Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+F\+F\+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 94 of file O\+F\+F\+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\+F\+F\+Writer.\+hh\item 
Open\+Flipper/libs\+\_\+required/\+Open\+Mesh/src/\+Open\+Mesh/\+Core/\+I\+O/writer/O\+F\+F\+Writer.\+cc\end{DoxyCompactItemize}
