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


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

Inheritance diagram for Open\+Mesh\+:\+:I\+O\+:\+:\+\_\+\+O\+F\+F\+Writer\+\_\+\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a00264}
\end{center}
\end{figure}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00264_aa9d5d470755469d88eddaba5d6945a33}{std\+::string \hyperlink{a00264_aa9d5d470755469d88eddaba5d6945a33}{get\+\_\+description} () const }\label{a00264_aa9d5d470755469d88eddaba5d6945a33}

\begin{DoxyCompactList}\small\item\em Return short description of the supported file format. \end{DoxyCompactList}\item 
\hypertarget{a00264_a9d6340faf7f9859e09b817fa0cae1529}{std\+::string \hyperlink{a00264_a9d6340faf7f9859e09b817fa0cae1529}{get\+\_\+extensions} () const }\label{a00264_a9d6340faf7f9859e09b817fa0cae1529}

\begin{DoxyCompactList}\small\item\em Return file format's extension. \end{DoxyCompactList}\item 
bool \hyperlink{a00264_a25dffaeba54287b8a5871ca45ab205e8}{write} (const std\+::string \&, \hyperlink{a00314}{Base\+Exporter} \&, \hyperlink{a00941}{Options}, std\+::streamsize \+\_\+precision=6) const 
\item 
bool \hyperlink{a00264_a7307374d92852b0482563b8e5e805884}{write} (std\+::ostream \&, \hyperlink{a00314}{Base\+Exporter} \&, \hyperlink{a00941}{Options}, std\+::streamsize \+\_\+precision=6) const 
\item 
\hypertarget{a00264_af052800810b1de522fd65efd011f339c}{size\+\_\+t \hyperlink{a00264_af052800810b1de522fd65efd011f339c}{binary\+\_\+size} (\hyperlink{a00314}{Base\+Exporter} \&\+\_\+be, \hyperlink{a00941}{Options} \+\_\+opt) const }\label{a00264_af052800810b1de522fd65efd011f339c}

\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 
\hypertarget{a00264_a866bc75f53d74a55911bfbc4d78adb90}{void {\bfseries write\+Value} (std\+::ostream \&\+\_\+out, int value) const }\label{a00264_a866bc75f53d74a55911bfbc4d78adb90}

\item 
\hypertarget{a00264_a4659019f5698ec9c4429df27b035398a}{void {\bfseries write\+Value} (std\+::ostream \&\+\_\+out, unsigned int value) const }\label{a00264_a4659019f5698ec9c4429df27b035398a}

\item 
\hypertarget{a00264_a25d6062e74323de651b10ca2b2f2434f}{void {\bfseries write\+Value} (std\+::ostream \&\+\_\+out, float value) const }\label{a00264_a25d6062e74323de651b10ca2b2f2434f}

\item 
\hypertarget{a00264_a8aa94e185fd3903d9df4563d63c808f8}{bool {\bfseries write\+\_\+ascii} (std\+::ostream \&\+\_\+in, \hyperlink{a00314}{Base\+Exporter} \&, \hyperlink{a00941}{Options}) const }\label{a00264_a8aa94e185fd3903d9df4563d63c808f8}

\item 
\hypertarget{a00264_ac7fd563914cd3ac91292ab4e4b3a1e10}{bool {\bfseries write\+\_\+binary} (std\+::ostream \&\+\_\+in, \hyperlink{a00314}{Base\+Exporter} \&, \hyperlink{a00941}{Options}) const }\label{a00264_ac7fd563914cd3ac91292ab4e4b3a1e10}

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


\subsection{Detailed Description}
Implementation of the O\+F\+F format writer. This class is singleton'ed by \hyperlink{a01181}{Singleton\+T} to O\+F\+F\+Writer.

By passing \hyperlink{a00941}{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 97 of file O\+F\+F\+Writer.\+hh.



\subsection{Member Function Documentation}
\hypertarget{a00264_a25dffaeba54287b8a5871ca45ab205e8}{\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[{write}]{\setlength{\rightskip}{0pt plus 5cm}bool Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+F\+F\+Writer\+\_\+\+::write (
\begin{DoxyParamCaption}
\item[{const std\+::string \&}]{\+\_\+filename, }
\item[{{\bf Base\+Exporter} \&}]{\+\_\+be, }
\item[{{\bf Options}}]{\+\_\+opt, }
\item[{std\+::streamsize}]{\+\_\+precision = {\ttfamily 6}}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}}\label{a00264_a25dffaeba54287b8a5871ca45ab205e8}
Write to a file 
\begin{DoxyParams}{Parameters}
{\em \+\_\+filename} & write to file with the given filename \\
\hline
{\em \+\_\+be} & \hyperlink{a00314}{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{a00345_a7c0818a63926bdb439044a8f4c038d85}{Open\+Mesh\+::\+I\+O\+::\+Base\+Writer}.



Definition at line 86 of file O\+F\+F\+Writer.\+cc.

\hypertarget{a00264_a7307374d92852b0482563b8e5e805884}{\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[{write}]{\setlength{\rightskip}{0pt plus 5cm}bool Open\+Mesh\+::\+I\+O\+::\+\_\+\+O\+F\+F\+Writer\+\_\+\+::write (
\begin{DoxyParamCaption}
\item[{std\+::ostream \&}]{\+\_\+os, }
\item[{{\bf Base\+Exporter} \&}]{\+\_\+be, }
\item[{{\bf Options}}]{\+\_\+opt, }
\item[{std\+::streamsize}]{\+\_\+precision = {\ttfamily 6}}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}}\label{a00264_a7307374d92852b0482563b8e5e805884}
Write to a std\+::ostream 
\begin{DoxyParams}{Parameters}
{\em \+\_\+os} & write to std\+::ostream \\
\hline
{\em \+\_\+be} & \hyperlink{a00314}{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{a00345_ae0aa2050e93f96d71ff70ce788a76a94}{Open\+Mesh\+::\+I\+O\+::\+Base\+Writer}.



Definition at line 99 of file O\+F\+F\+Writer.\+cc.



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