\hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter__}{}\section{Open\+Mesh\+:\+:IO\+:\+:\+\_\+\+P\+L\+Y\+Writer\+\_\+ Class Reference}
\label{classOpenMesh_1_1IO_1_1__PLYWriter__}\index{Open\+Mesh\+::\+I\+O\+::\+\_\+\+P\+L\+Y\+Writer\+\_\+@{Open\+Mesh\+::\+I\+O\+::\+\_\+\+P\+L\+Y\+Writer\+\_\+}}


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

Inheritance diagram for Open\+Mesh\+:\+:IO\+:\+:\+\_\+\+P\+L\+Y\+Writer\+\_\+\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{classOpenMesh_1_1IO_1_1__PLYWriter__}
\end{center}
\end{figure}
\subsection*{Classes}
\begin{DoxyCompactItemize}
\item 
struct \hyperlink{structOpenMesh_1_1IO_1_1__PLYWriter___1_1CustomProperty}{Custom\+Property}
\end{DoxyCompactItemize}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter___aaac8c19574d786528b2eb013127e2e3d}\label{classOpenMesh_1_1IO_1_1__PLYWriter___aaac8c19574d786528b2eb013127e2e3d}} 
enum {\bfseries Value\+Type} \{ \newline
{\bfseries Unsupported} = 0, 
{\bfseries Value\+Type\+F\+L\+O\+A\+T32}, 
{\bfseries Value\+Type\+F\+L\+O\+AT}, 
{\bfseries Value\+Type\+I\+N\+T32}, 
\newline
{\bfseries Value\+Type\+I\+NT}, 
{\bfseries Value\+Type\+U\+I\+NT}, 
{\bfseries Value\+Type\+U\+C\+H\+AR}, 
{\bfseries Value\+Type\+C\+H\+AR}, 
\newline
{\bfseries Value\+Type\+U\+I\+N\+T8}, 
{\bfseries Value\+Type\+U\+S\+H\+O\+RT}, 
{\bfseries Value\+Type\+S\+H\+O\+RT}, 
{\bfseries Value\+Type\+D\+O\+U\+B\+LE}
 \}
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter___ab6bcf926defc3c161634c298aaa4a77b}\label{classOpenMesh_1_1IO_1_1__PLYWriter___ab6bcf926defc3c161634c298aaa4a77b}} 
virtual \hyperlink{classOpenMesh_1_1IO_1_1__PLYWriter___ab6bcf926defc3c161634c298aaa4a77b}{$\sim$\+\_\+\+P\+L\+Y\+Writer\+\_\+} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter___adbc99f44098e13c64e3c8ce3f601c07e}\label{classOpenMesh_1_1IO_1_1__PLYWriter___adbc99f44098e13c64e3c8ce3f601c07e}} 
std\+::string \hyperlink{classOpenMesh_1_1IO_1_1__PLYWriter___adbc99f44098e13c64e3c8ce3f601c07e}{get\+\_\+description} () const override
\begin{DoxyCompactList}\small\item\em Return short description of the supported file format. \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter___a2669e579709656e8e313a28c569c8f94}\label{classOpenMesh_1_1IO_1_1__PLYWriter___a2669e579709656e8e313a28c569c8f94}} 
std\+::string \hyperlink{classOpenMesh_1_1IO_1_1__PLYWriter___a2669e579709656e8e313a28c569c8f94}{get\+\_\+extensions} () const override
\begin{DoxyCompactList}\small\item\em Return file format\textquotesingle{}s extension. \end{DoxyCompactList}\item 
bool \hyperlink{classOpenMesh_1_1IO_1_1__PLYWriter___a23dac7e3ae807a6555bac455186bc1d8}{write} (const std\+::string \&, \hyperlink{classOpenMesh_1_1IO_1_1BaseExporter}{Base\+Exporter} \&, \hyperlink{classOpenMesh_1_1IO_1_1Options}{Options}, std\+::streamsize \+\_\+precision=6) const override
\item 
bool \hyperlink{classOpenMesh_1_1IO_1_1__PLYWriter___ad6fa18c264717d04f704d50feed76e96}{write} (std\+::ostream \&, \hyperlink{classOpenMesh_1_1IO_1_1BaseExporter}{Base\+Exporter} \&, \hyperlink{classOpenMesh_1_1IO_1_1Options}{Options}, std\+::streamsize \+\_\+precision=6) const override
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter___a871ab6da978ba5f561ed3a66d32fa45e}\label{classOpenMesh_1_1IO_1_1__PLYWriter___a871ab6da978ba5f561ed3a66d32fa45e}} 
size\+\_\+t \hyperlink{classOpenMesh_1_1IO_1_1__PLYWriter___a871ab6da978ba5f561ed3a66d32fa45e}{binary\+\_\+size} (\hyperlink{classOpenMesh_1_1IO_1_1BaseExporter}{Base\+Exporter} \&\+\_\+be, \hyperlink{classOpenMesh_1_1IO_1_1Options}{Options} \+\_\+opt) const override
\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{classOpenMesh_1_1IO_1_1__PLYWriter___acabaf9e99667875c6bf5b74825249ad2}\label{classOpenMesh_1_1IO_1_1__PLYWriter___acabaf9e99667875c6bf5b74825249ad2}} 
void {\bfseries write\+Value} (Value\+Type \+\_\+type, std\+::ostream \&\+\_\+out, signed char value) const
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter___ad8145575156b83e13a9f5cb6c075385e}\label{classOpenMesh_1_1IO_1_1__PLYWriter___ad8145575156b83e13a9f5cb6c075385e}} 
void {\bfseries write\+Value} (Value\+Type \+\_\+type, std\+::ostream \&\+\_\+out, unsigned char value) const
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter___a7b30c1f5b012a59928d66e76c4459f25}\label{classOpenMesh_1_1IO_1_1__PLYWriter___a7b30c1f5b012a59928d66e76c4459f25}} 
void {\bfseries write\+Value} (Value\+Type \+\_\+type, std\+::ostream \&\+\_\+out, short value) const
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter___a9ca0051c5a0f5e574c5b3742ab0266c0}\label{classOpenMesh_1_1IO_1_1__PLYWriter___a9ca0051c5a0f5e574c5b3742ab0266c0}} 
void {\bfseries write\+Value} (Value\+Type \+\_\+type, std\+::ostream \&\+\_\+out, unsigned short value) const
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter___afb8339094da6dbcf52bd680f379302e6}\label{classOpenMesh_1_1IO_1_1__PLYWriter___afb8339094da6dbcf52bd680f379302e6}} 
void {\bfseries write\+Value} (Value\+Type \+\_\+type, std\+::ostream \&\+\_\+out, int value) const
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter___a2316b1a856732302fdf834ab5492c3bc}\label{classOpenMesh_1_1IO_1_1__PLYWriter___a2316b1a856732302fdf834ab5492c3bc}} 
void {\bfseries write\+Value} (Value\+Type \+\_\+type, std\+::ostream \&\+\_\+out, unsigned int value) const
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter___ab8a8c0c1b3ecb8d89ce4bc573de66bf2}\label{classOpenMesh_1_1IO_1_1__PLYWriter___ab8a8c0c1b3ecb8d89ce4bc573de66bf2}} 
void {\bfseries write\+Value} (Value\+Type \+\_\+type, std\+::ostream \&\+\_\+out, float value) const
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter___a389e22d7df9a0e96414b5e399f8c0025}\label{classOpenMesh_1_1IO_1_1__PLYWriter___a389e22d7df9a0e96414b5e399f8c0025}} 
void {\bfseries write\+Value} (Value\+Type \+\_\+type, std\+::ostream \&\+\_\+out, double value) const
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter___ab43af6037a8ca10d855248c2f55b4544}\label{classOpenMesh_1_1IO_1_1__PLYWriter___ab43af6037a8ca10d855248c2f55b4544}} 
bool {\bfseries write\+\_\+ascii} (std\+::ostream \&\+\_\+out, \hyperlink{classOpenMesh_1_1IO_1_1BaseExporter}{Base\+Exporter} \&, \hyperlink{classOpenMesh_1_1IO_1_1Options}{Options}) const
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter___ad0bd6da724bdd61837a0e10b59e0b181}\label{classOpenMesh_1_1IO_1_1__PLYWriter___ad0bd6da724bdd61837a0e10b59e0b181}} 
bool {\bfseries write\+\_\+binary} (std\+::ostream \&\+\_\+out, \hyperlink{classOpenMesh_1_1IO_1_1BaseExporter}{Base\+Exporter} \&, \hyperlink{classOpenMesh_1_1IO_1_1Options}{Options}) const
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter___a3a0a5f4ea0b39d3d417989061136e6e8}\label{classOpenMesh_1_1IO_1_1__PLYWriter___a3a0a5f4ea0b39d3d417989061136e6e8}} 
void \hyperlink{classOpenMesh_1_1IO_1_1__PLYWriter___a3a0a5f4ea0b39d3d417989061136e6e8}{write\+\_\+header} (std\+::ostream \&\+\_\+out, \hyperlink{classOpenMesh_1_1IO_1_1BaseExporter}{Base\+Exporter} \&\+\_\+be, \hyperlink{classOpenMesh_1_1IO_1_1Options}{Options} \&\+\_\+opt, std\+::vector$<$ \hyperlink{structOpenMesh_1_1IO_1_1__PLYWriter___1_1CustomProperty}{Custom\+Property} $>$ \&\+\_\+ov\+Props, std\+::vector$<$ \hyperlink{structOpenMesh_1_1IO_1_1__PLYWriter___1_1CustomProperty}{Custom\+Property} $>$ \&\+\_\+of\+Props) const
\begin{DoxyCompactList}\small\item\em write header into the stream \+\_\+out. Returns custom properties (vertex and face) which are written into the header \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter___a20693bbd7d9dac3317db66a0f4678bf8}\label{classOpenMesh_1_1IO_1_1__PLYWriter___a20693bbd7d9dac3317db66a0f4678bf8}} 
std\+::vector$<$ \hyperlink{structOpenMesh_1_1IO_1_1__PLYWriter___1_1CustomProperty}{Custom\+Property} $>$ \hyperlink{classOpenMesh_1_1IO_1_1__PLYWriter___a20693bbd7d9dac3317db66a0f4678bf8}{write\+Custom\+Type\+Header} (std\+::ostream \&\+\_\+out, Base\+Kernel\+::const\+\_\+prop\+\_\+iterator \+\_\+begin, Base\+Kernel\+::const\+\_\+prop\+\_\+iterator \+\_\+end) const
\begin{DoxyCompactList}\small\item\em write custom persistant properties into the header for the current element, returns all properties, which were written sorted \end{DoxyCompactList}\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter___a7b9469da97f8500b3fe5168c40c54a5c}\label{classOpenMesh_1_1IO_1_1__PLYWriter___a7b9469da97f8500b3fe5168c40c54a5c}} 
{\footnotesize template$<$bool binary$>$ }\\void {\bfseries write\+\_\+custom\+Prop} (std\+::ostream \&\+\_\+our, const \hyperlink{structOpenMesh_1_1IO_1_1__PLYWriter___1_1CustomProperty}{Custom\+Property} \&\+\_\+prop, size\+\_\+t \+\_\+index) const
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter___ab851b49eef794c4f4a9be60c7141c951}\label{classOpenMesh_1_1IO_1_1__PLYWriter___ab851b49eef794c4f4a9be60c7141c951}} 
{\footnotesize template$<$typename T $>$ }\\void {\bfseries write\+Proxy} (Value\+Type \+\_\+type, std\+::ostream \&\+\_\+out, T \+\_\+value, Open\+Mesh\+::\+Gen\+Prog\+::\+True\+Type) const
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter___a2e87364efc9cc735203043dac14bf389}\label{classOpenMesh_1_1IO_1_1__PLYWriter___a2e87364efc9cc735203043dac14bf389}} 
{\footnotesize template$<$typename T $>$ }\\void {\bfseries write\+Proxy} (Value\+Type \+\_\+type, std\+::ostream \&\+\_\+out, T \+\_\+value, Open\+Mesh\+::\+Gen\+Prog\+::\+False\+Type) const
\end{DoxyCompactItemize}
\subsection*{Private Attributes}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter___a15234aa02eafda23687b1774257c5f58}\label{classOpenMesh_1_1IO_1_1__PLYWriter___a15234aa02eafda23687b1774257c5f58}} 
\hyperlink{classOpenMesh_1_1IO_1_1Options}{Options} {\bfseries options\+\_\+}
\item 
\mbox{\Hypertarget{classOpenMesh_1_1IO_1_1__PLYWriter___af13081f25c0e736a5af1143026b7d885}\label{classOpenMesh_1_1IO_1_1__PLYWriter___af13081f25c0e736a5af1143026b7d885}} 
const char $\ast$ {\bfseries name\+Of\+Type\+\_\+} \mbox{[}12\mbox{]}
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Implementation of the P\+LY format writer. This class is singleton\textquotesingle{}ed by \hyperlink{classOpenMesh_1_1SingletonT}{SingletonT} to P\+L\+Y\+Writer.

currently supported options\+:
\begin{DoxyItemize}
\item Vertex\+Colors
\item Face\+Colors
\item Binary
\item Binary -\/$>$ M\+SB 
\end{DoxyItemize}

Definition at line 89 of file P\+L\+Y\+Writer.\+hh.



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

Write to a file 
\begin{DoxyParams}{Parameters}
{\em \+\_\+filename} & write to file with the given filename \\
\hline
{\em \+\_\+be} & \hyperlink{classOpenMesh_1_1IO_1_1BaseExporter}{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{classOpenMesh_1_1IO_1_1BaseWriter_a7c0818a63926bdb439044a8f4c038d85}{Open\+Mesh\+::\+I\+O\+::\+Base\+Writer}.



Definition at line 95 of file P\+L\+Y\+Writer.\+cc.

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

Write to a std\+::ostream 
\begin{DoxyParams}{Parameters}
{\em \+\_\+os} & write to std\+::ostream \\
\hline
{\em \+\_\+be} & \hyperlink{classOpenMesh_1_1IO_1_1BaseExporter}{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{classOpenMesh_1_1IO_1_1BaseWriter_ae0aa2050e93f96d71ff70ce788a76a94}{Open\+Mesh\+::\+I\+O\+::\+Base\+Writer}.



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