\hypertarget{a00346}{\section{A\+C\+G\+:\+:Scene\+Graph\+:\+:Open\+Mesh\+:\+:I\+O\+:\+:Base\+Writer Class Reference}
\label{a00346}\index{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+I\+O\+::\+Base\+Writer@{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+I\+O\+::\+Base\+Writer}}
}
\subsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00346_ab1b21598e51bb399b987bed27932c81d}{typedef unsigned int {\bfseries Option}}\label{a00346_ab1b21598e51bb399b987bed27932c81d}

\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\hypertarget{a00346_a77af7861e3501dbec547fd9dc79b57bc}{virtual \hyperlink{a00346_a77af7861e3501dbec547fd9dc79b57bc}{$\sim$\+Base\+Writer} ()}\label{a00346_a77af7861e3501dbec547fd9dc79b57bc}

\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\item 
\hypertarget{a00346_a46e5899101f7c68a33126c73d2dd80f0}{virtual std\+::string \hyperlink{a00346_a46e5899101f7c68a33126c73d2dd80f0}{get\+\_\+description} () const =0}\label{a00346_a46e5899101f7c68a33126c73d2dd80f0}

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

\begin{DoxyCompactList}\small\item\em Return file format's extension. \end{DoxyCompactList}\item 
virtual bool \hyperlink{a00346_a8d0865a67719791532514e9281e44a42}{can\+\_\+u\+\_\+write} (const std\+::string \&\+\_\+filename) const 
\begin{DoxyCompactList}\small\item\em Returns true if writer can write \+\_\+filename (checks extension). \+\_\+filename can also provide an extension without a name for a file e.\+g. \+\_\+filename == \char`\"{}om\char`\"{} checks, if the writer can write the \char`\"{}om\char`\"{} extension. \end{DoxyCompactList}\item 
virtual bool \hyperlink{a00346_abf80a2181dd5e24da96d7d80df714106}{write} (const std\+::string \&\+\_\+filename, \hyperlink{a00315}{Base\+Exporter} \&\+\_\+be, \hyperlink{a00942}{Options} \+\_\+opt, std\+::streamsize \+\_\+precision=6) const =0
\item 
virtual bool \hyperlink{a00346_a46b980171d86dfc30348b2ed11854971}{write} (std\+::ostream \&\+\_\+os, \hyperlink{a00315}{Base\+Exporter} \&\+\_\+be, \hyperlink{a00942}{Options} \+\_\+opt, std\+::streamsize \+\_\+precision=6) const =0
\item 
\hypertarget{a00346_a0e385dc062f5281da688eb5ccc72cf39}{virtual size\+\_\+t \hyperlink{a00346_a0e385dc062f5281da688eb5ccc72cf39}{binary\+\_\+size} (\hyperlink{a00315}{Base\+Exporter} \&, \hyperlink{a00942}{Options}) const }\label{a00346_a0e385dc062f5281da688eb5ccc72cf39}

\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{a00346_a9cafa9c5e0517a1e747c1007e6af2766}{bool {\bfseries check} (\hyperlink{a00315}{Base\+Exporter} \&\+\_\+be, \hyperlink{a00942}{Options} \+\_\+opt) const }\label{a00346_a9cafa9c5e0517a1e747c1007e6af2766}

\end{DoxyCompactItemize}


\subsection{Detailed Description}
Base class for all writer modules. The module should register itself at the I\+O\+Manager by calling the register\+\_\+module function. 

Definition at line 88 of file Mesh\+Node2\+T.\+cc.



\subsection{Member Function Documentation}
\hypertarget{a00346_a8d0865a67719791532514e9281e44a42}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+I\+O\+::\+Base\+Writer@{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+I\+O\+::\+Base\+Writer}!can\+\_\+u\+\_\+write@{can\+\_\+u\+\_\+write}}
\index{can\+\_\+u\+\_\+write@{can\+\_\+u\+\_\+write}!A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+I\+O\+::\+Base\+Writer@{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+I\+O\+::\+Base\+Writer}}
\subsubsection[{can\+\_\+u\+\_\+write}]{\setlength{\rightskip}{0pt plus 5cm}virtual bool A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+I\+O\+::\+Base\+Writer\+::can\+\_\+u\+\_\+write (
\begin{DoxyParamCaption}
\item[{const std\+::string \&}]{\+\_\+filename}
\end{DoxyParamCaption}
) const\hspace{0.3cm}{\ttfamily [virtual]}}}\label{a00346_a8d0865a67719791532514e9281e44a42}


Returns true if writer can write \+\_\+filename (checks extension). \+\_\+filename can also provide an extension without a name for a file e.\+g. \+\_\+filename == \char`\"{}om\char`\"{} checks, if the writer can write the \char`\"{}om\char`\"{} extension. 


\begin{DoxyParams}{Parameters}
{\em \+\_\+filename} & complete name of a file or just the extension \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
true, if writer can write data with the given extension 
\end{DoxyReturn}
\hypertarget{a00346_abf80a2181dd5e24da96d7d80df714106}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+I\+O\+::\+Base\+Writer@{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+I\+O\+::\+Base\+Writer}!write@{write}}
\index{write@{write}!A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+I\+O\+::\+Base\+Writer@{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+I\+O\+::\+Base\+Writer}}
\subsubsection[{write}]{\setlength{\rightskip}{0pt plus 5cm}virtual bool A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+I\+O\+::\+Base\+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 [pure virtual]}}}\label{a00346_abf80a2181dd5e24da96d7d80df714106}
Write to a file 
\begin{DoxyParams}{Parameters}
{\em \+\_\+filename} & write to file with the given filename \\
\hline
{\em \+\_\+be} & \hyperlink{a00315}{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}
\hypertarget{a00346_a46b980171d86dfc30348b2ed11854971}{\index{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+I\+O\+::\+Base\+Writer@{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+I\+O\+::\+Base\+Writer}!write@{write}}
\index{write@{write}!A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+I\+O\+::\+Base\+Writer@{A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+I\+O\+::\+Base\+Writer}}
\subsubsection[{write}]{\setlength{\rightskip}{0pt plus 5cm}virtual bool A\+C\+G\+::\+Scene\+Graph\+::\+Open\+Mesh\+::\+I\+O\+::\+Base\+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 [pure virtual]}}}\label{a00346_a46b980171d86dfc30348b2ed11854971}
Write to a std\+::ostream 
\begin{DoxyParams}{Parameters}
{\em \+\_\+os} & write to std\+::ostream \\
\hline
{\em \+\_\+be} & \hyperlink{a00315}{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}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
A\+C\+G/\+Scenegraph/Mesh\+Node2\+T.\+cc\end{DoxyCompactItemize}
