diff options
Diffstat (limited to 'doc/latex/classmeow_1_1Photo.tex')
-rw-r--r-- | doc/latex/classmeow_1_1Photo.tex | 688 |
1 files changed, 688 insertions, 0 deletions
diff --git a/doc/latex/classmeow_1_1Photo.tex b/doc/latex/classmeow_1_1Photo.tex new file mode 100644 index 0000000..d0e0fdc --- /dev/null +++ b/doc/latex/classmeow_1_1Photo.tex @@ -0,0 +1,688 @@ +\hypertarget{classmeow_1_1Photo}{\section{meow\-:\-:Photo$<$ Pixel $>$ Class Template Reference} +\label{classmeow_1_1Photo}\index{meow\-::\-Photo$<$ Pixel $>$@{meow\-::\-Photo$<$ Pixel $>$}} +} + + +底片 + + + + +{\ttfamily \#include \char`\"{}Photo.\-h\char`\"{}} + +Inheritance diagram for meow\-:\-:Photo$<$ Pixel $>$\-:\begin{figure}[H] +\begin{center} +\leavevmode +\includegraphics[height=2.000000cm]{classmeow_1_1Photo} +\end{center} +\end{figure} +\subsection*{Public Member Functions} +\begin{DoxyCompactItemize} +\item +\hyperlink{classmeow_1_1Photo_a84b9bae13da85ab5d1caf02cdede7092}{Photo} () +\begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Photo_a85f96086c9c4041ae14f0c1c9c6d23f8}{Photo} (\hyperlink{classmeow_1_1Photo}{Photo} const \&b) +\begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Photo_a66e6f809ee030d4b3d5c0d1edd7b641e}{Photo} (\hyperlink{classmeow_1_1Bitmap}{Bitmap}$<$ Pixel $>$ const \&bmp) +\begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Photo_a68137359863914ebedb467782b8ef440}{Photo} (\hyperlink{classmeow_1_1Bitmap}{Bitmap}$<$ Pixel $>$ const \&bmp, \hyperlink{classdouble}{double} f) +\begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Photo_af69dcdd4ccd4c15227cf0b104325d8de}{Photo} (\hyperlink{classmeow_1_1Bitmap}{Bitmap}$<$ Pixel $>$ const \&bmp, \hyperlink{classdouble}{double} f, \hyperlink{classmeow_1_1Vector2D}{Vector2\-D}$<$ \hyperlink{classdouble}{double} $>$ const \&c) +\begin{DoxyCompactList}\small\item\em constructor \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Photo_ad3ba33208243966fe72db6c3a519e22d}{$\sim$\-Photo} () +\begin{DoxyCompactList}\small\item\em destructor \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Photo}{Photo} \& \hyperlink{classmeow_1_1Photo_a53bc0c60fb3abd9e95999990c6f132e6}{copy\-From} (\hyperlink{classmeow_1_1Photo}{Photo} const \&b) +\begin{DoxyCompactList}\small\item\em 複製資料 \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Photo}{Photo} \& \hyperlink{classmeow_1_1Photo_a1d51d273f9847c8c81de3acaafdf893f}{refernece\-From} (\hyperlink{classmeow_1_1Photo}{Photo} const \&b) +\begin{DoxyCompactList}\small\item\em 參照 \end{DoxyCompactList}\item +void \hyperlink{classmeow_1_1Photo_ab5a901c44b8c5523def9b40f27a5fda3}{reset} (\hyperlink{classmeow_1_1Bitmap}{Bitmap}$<$ Pixel $>$ const \&bmp) +\begin{DoxyCompactList}\small\item\em 重設bitmap, focal 用猜的 \end{DoxyCompactList}\item +void \hyperlink{classmeow_1_1Photo_aed3ed47ee1ddae0732e24af71b91a7b0}{reset} (\hyperlink{classmeow_1_1Bitmap}{Bitmap}$<$ Pixel $>$ const \&bmp, \hyperlink{classdouble}{double} f) +\begin{DoxyCompactList}\small\item\em 重設bitmap, focal \end{DoxyCompactList}\item +void \hyperlink{classmeow_1_1Photo_a4d237ed59e6227940c20831cdce797a8}{reset} (\hyperlink{classmeow_1_1Bitmap}{Bitmap}$<$ Pixel $>$ const \&bmp, \hyperlink{classdouble}{double} f, \hyperlink{classmeow_1_1Vector2D}{Vector2\-D}$<$ \hyperlink{classdouble}{double} $>$ const \&c) +\begin{DoxyCompactList}\small\item\em 重設bitmap, focal, center \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Bitmap}{Bitmap}$<$ Pixel $>$ const \& \hyperlink{classmeow_1_1Photo_a49ada6e814bd2280af12183897227e62}{bitmap} () const +\begin{DoxyCompactList}\small\item\em 回傳{\ttfamily bitmap} \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Bitmap}{Bitmap}$<$ Pixel $>$ \& \hyperlink{classmeow_1_1Photo_a07c8ca1846fc97005a7d960c5fc703a7}{bitmap\-Get} () +\begin{DoxyCompactList}\small\item\em 回傳{\ttfamily bitmap} 的參照(非constant) \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Bitmap}{Bitmap}$<$ Pixel $>$ const \& \hyperlink{classmeow_1_1Photo_a511f65855ee9f102c2472ce236ba7d3c}{bitmap} (\hyperlink{classmeow_1_1Bitmap}{Bitmap}$<$ Pixel $>$ const \&bmp) +\begin{DoxyCompactList}\small\item\em 設定bitmap \end{DoxyCompactList}\item +\hyperlink{classdouble}{double} \hyperlink{classmeow_1_1Photo_ab7b4b1f6b3f8100ea670500f168cb1e4}{focal} () const +\begin{DoxyCompactList}\small\item\em 回傳focal length \end{DoxyCompactList}\item +\hyperlink{classdouble}{double} \hyperlink{classmeow_1_1Photo_a1fbde3a8b2be3662cf67a035cf887be9}{focal} (\hyperlink{classdouble}{double} f) +\begin{DoxyCompactList}\small\item\em 設定 focal length \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector2D}{Vector2\-D}$<$ \hyperlink{classdouble}{double} $>$ const \& \hyperlink{classmeow_1_1Photo_a1a81a5be069f31e16e2e665ff97e778c}{center} () const +\begin{DoxyCompactList}\small\item\em 取得照片中心點底片座標 \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector2D}{Vector2\-D}$<$ \hyperlink{classdouble}{double} $>$ \& \hyperlink{classmeow_1_1Photo_a19976fbe55a9d7e17baac9460d5b829c}{center\-Get} () +\begin{DoxyCompactList}\small\item\em 取得照片中心點底片座標 (non-\/constant reference) \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Vector2D}{Vector2\-D}$<$ \hyperlink{classdouble}{double} $>$ const \& \hyperlink{classmeow_1_1Photo_a563850b9827f24d6d0be5c63e408d253}{center} (\hyperlink{classmeow_1_1Vector2D}{Vector2\-D}$<$ \hyperlink{classdouble}{double} $>$ const \&c) +\begin{DoxyCompactList}\small\item\em 設定照片中心點底片座標 \end{DoxyCompactList}\item +size\-\_\-t \hyperlink{classmeow_1_1Photo_a1a0582b5c3683264fcad5ca67b376f7c}{width} () const +\begin{DoxyCompactList}\small\item\em 回傳bitmap寬 \end{DoxyCompactList}\item +size\-\_\-t \hyperlink{classmeow_1_1Photo_a0fc9394bbee567c1961500808a5f9a9d}{height} () const +\begin{DoxyCompactList}\small\item\em 回傳bitmap高 \end{DoxyCompactList}\item +Pixel \hyperlink{classmeow_1_1Photo_a3489796a4101da9291fff280cb89728e}{pixel} (size\-\_\-t y, size\-\_\-t x) const +\begin{DoxyCompactList}\small\item\em 回傳bitmap的某pixel \end{DoxyCompactList}\item +Pixel \hyperlink{classmeow_1_1Photo_a38c943a8bd30b309a8042599dcf9f1e7}{pixel} (size\-\_\-t y, size\-\_\-t x, Pixel const \&p) +\begin{DoxyCompactList}\small\item\em 設定某pixel \end{DoxyCompactList}\item +bool \hyperlink{classmeow_1_1Photo_ae1d328ee4c0971d4a90fb1f05bea1e66}{inside} (\hyperlink{classmeow_1_1Vector2D}{Vector2\-D}$<$ \hyperlink{classdouble}{double} $>$ const \&yx) const +\begin{DoxyCompactList}\small\item\em 檢查某點是否在底片範圍內 \end{DoxyCompactList}\item +bool \hyperlink{classmeow_1_1Photo_a43ac8952d85ea584dc9ea9a0424dbb98}{inside} (\hyperlink{classmeow_1_1Vector3D}{Vector3\-D}$<$ \hyperlink{classdouble}{double} $>$ const \&p) const +\begin{DoxyCompactList}\small\item\em 檢查某點是否在底片範圍內 \end{DoxyCompactList}\item +Pixel \hyperlink{classmeow_1_1Photo_aad526a7b9aecbcfebb12be76979ce7d1}{color} (\hyperlink{classmeow_1_1Vector2D}{Vector2\-D}$<$ \hyperlink{classdouble}{double} $>$ const \&yx) const +\begin{DoxyCompactList}\small\item\em 取得給照片座標中某點的色彩 \end{DoxyCompactList}\item +Pixel \hyperlink{classmeow_1_1Photo_a95c01aa8e4b620c8290a3054663e41f4}{color} (\hyperlink{classmeow_1_1Vector3D}{Vector3\-D}$<$ \hyperlink{classdouble}{double} $>$ const \&p) const +\begin{DoxyCompactList}\small\item\em 取得給照片座標中某點的色彩 \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1Photo}{Photo} \& \hyperlink{classmeow_1_1Photo_ab97f03da439edeb8834fd6e7a3487f65}{operator=} (\hyperlink{classmeow_1_1Photo}{Photo} const \&b) +\begin{DoxyCompactList}\small\item\em same as {\ttfamily }.copy\-From(b) \end{DoxyCompactList}\item +bool \hyperlink{classmeow_1_1Photo_ab92324c852686bcad5e374aa9ae8e952}{write} (F\-I\-L\-E $\ast$f, bool bin, unsigned \hyperlink{classint}{int} fg) const +\begin{DoxyCompactList}\small\item\em 將資料寫入檔案 \end{DoxyCompactList}\item +bool \hyperlink{classmeow_1_1Photo_a97cc535d734fdf53457c84ef5f0bdc50}{read} (F\-I\-L\-E $\ast$f, bool bin, unsigned \hyperlink{classint}{int} fg) +\begin{DoxyCompactList}\small\item\em 將資料讀入 \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1ObjBase}{Obj\-Base} $\ast$ \hyperlink{classmeow_1_1Photo_a449f74fa427154f943d6abee255431aa}{create} () const +\begin{DoxyCompactList}\small\item\em new一個自己 \end{DoxyCompactList}\item +\hyperlink{classmeow_1_1ObjBase}{Obj\-Base} $\ast$ \hyperlink{classmeow_1_1Photo_a0e947011dcb0db21760c89663acd2208}{copy\-From} (\hyperlink{classmeow_1_1ObjBase}{Obj\-Base} const $\ast$b) +\begin{DoxyCompactList}\small\item\em 複製資料 \end{DoxyCompactList}\item +char const $\ast$ \hyperlink{classmeow_1_1Photo_a93fdf3b617d8b1c751823074fca049a9}{ctype} () const +\begin{DoxyCompactList}\small\item\em 回傳class的type \end{DoxyCompactList}\item +std\-::string \hyperlink{classmeow_1_1Photo_a84cf3012af5e67b4aafc1ee7eafd70d1}{type} () const +\begin{DoxyCompactList}\small\item\em 回傳class的type \end{DoxyCompactList}\end{DoxyCompactItemize} +\subsection*{Additional Inherited Members} + + +\subsection{Detailed Description} +\subsubsection*{template$<$class Pixel$>$class meow\-::\-Photo$<$ Pixel $>$} + +底片 + +基本上就是一個 {\ttfamily \hyperlink{classmeow_1_1Photo}{Photo}} 加上 {\ttfamily focal} + +\begin{DoxyAuthor}{Author} +cat\-\_\-leopard +\end{DoxyAuthor} + + +\subsection{Constructor \& Destructor Documentation} +\hypertarget{classmeow_1_1Photo_a84b9bae13da85ab5d1caf02cdede7092}{\index{meow\-::\-Photo@{meow\-::\-Photo}!Photo@{Photo}} +\index{Photo@{Photo}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{Photo}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ {\bf meow\-::\-Photo}$<$ Pixel $>$\-::{\bf Photo} ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_a84b9bae13da85ab5d1caf02cdede7092} + + +constructor + +focal 預設為 1 \hypertarget{classmeow_1_1Photo_a85f96086c9c4041ae14f0c1c9c6d23f8}{\index{meow\-::\-Photo@{meow\-::\-Photo}!Photo@{Photo}} +\index{Photo@{Photo}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{Photo}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ {\bf meow\-::\-Photo}$<$ Pixel $>$\-::{\bf Photo} ( +\begin{DoxyParamCaption} +\item[{{\bf Photo}$<$ Pixel $>$ const \&}]{b} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_a85f96086c9c4041ae14f0c1c9c6d23f8} + + +constructor + +複製資料 + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em b} & 資料來源 \\ +\hline +\end{DoxyParams} +\hypertarget{classmeow_1_1Photo_a66e6f809ee030d4b3d5c0d1edd7b641e}{\index{meow\-::\-Photo@{meow\-::\-Photo}!Photo@{Photo}} +\index{Photo@{Photo}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{Photo}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ {\bf meow\-::\-Photo}$<$ Pixel $>$\-::{\bf Photo} ( +\begin{DoxyParamCaption} +\item[{{\bf Bitmap}$<$ Pixel $>$ const \&}]{bmp} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_a66e6f809ee030d4b3d5c0d1edd7b641e} + + +constructor + +直接給定圖片, 焦距用猜的 + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em bmp} & 給定的圖片 \\ +\hline +\end{DoxyParams} +\hypertarget{classmeow_1_1Photo_a68137359863914ebedb467782b8ef440}{\index{meow\-::\-Photo@{meow\-::\-Photo}!Photo@{Photo}} +\index{Photo@{Photo}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{Photo}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ {\bf meow\-::\-Photo}$<$ Pixel $>$\-::{\bf Photo} ( +\begin{DoxyParamCaption} +\item[{{\bf Bitmap}$<$ Pixel $>$ const \&}]{bmp, } +\item[{{\bf double}}]{f} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_a68137359863914ebedb467782b8ef440} + + +constructor + +直接給定圖片與焦距 + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em bmp} & 給定的圖片 \\ +\hline +\mbox{\tt in} & {\em f} & 給定的焦距 \\ +\hline +\end{DoxyParams} +\hypertarget{classmeow_1_1Photo_af69dcdd4ccd4c15227cf0b104325d8de}{\index{meow\-::\-Photo@{meow\-::\-Photo}!Photo@{Photo}} +\index{Photo@{Photo}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{Photo}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ {\bf meow\-::\-Photo}$<$ Pixel $>$\-::{\bf Photo} ( +\begin{DoxyParamCaption} +\item[{{\bf Bitmap}$<$ Pixel $>$ const \&}]{bmp, } +\item[{{\bf double}}]{f, } +\item[{{\bf Vector2\-D}$<$ {\bf double} $>$ const \&}]{c} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_af69dcdd4ccd4c15227cf0b104325d8de} + + +constructor + +直接給定圖片, 焦距與中心點位置 + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em bmp} & 給定的圖片 \\ +\hline +\mbox{\tt in} & {\em f} & 給定的焦距 \\ +\hline +\mbox{\tt in} & {\em c} & 中心點作標 \\ +\hline +\end{DoxyParams} +\hypertarget{classmeow_1_1Photo_ad3ba33208243966fe72db6c3a519e22d}{\index{meow\-::\-Photo@{meow\-::\-Photo}!$\sim$\-Photo@{$\sim$\-Photo}} +\index{$\sim$\-Photo@{$\sim$\-Photo}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{$\sim$\-Photo}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ {\bf meow\-::\-Photo}$<$ Pixel $>$\-::$\sim${\bf Photo} ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_ad3ba33208243966fe72db6c3a519e22d} + + +destructor + + + +\subsection{Member Function Documentation} +\hypertarget{classmeow_1_1Photo_a49ada6e814bd2280af12183897227e62}{\index{meow\-::\-Photo@{meow\-::\-Photo}!bitmap@{bitmap}} +\index{bitmap@{bitmap}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{bitmap}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ {\bf Bitmap}$<$Pixel$>$ const\& {\bf meow\-::\-Photo}$<$ Pixel $>$\-::bitmap ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_a49ada6e814bd2280af12183897227e62} + + +回傳{\ttfamily bitmap} + +\hypertarget{classmeow_1_1Photo_a511f65855ee9f102c2472ce236ba7d3c}{\index{meow\-::\-Photo@{meow\-::\-Photo}!bitmap@{bitmap}} +\index{bitmap@{bitmap}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{bitmap}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ {\bf Bitmap}$<$Pixel$>$ const\& {\bf meow\-::\-Photo}$<$ Pixel $>$\-::bitmap ( +\begin{DoxyParamCaption} +\item[{{\bf Bitmap}$<$ Pixel $>$ const \&}]{bmp} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_a511f65855ee9f102c2472ce236ba7d3c} + + +設定bitmap + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em bmp} & 新的 bitmap \\ +\hline +\end{DoxyParams} +\begin{DoxyReturn}{Returns} +新的 {\ttfamily bitmap} +\end{DoxyReturn} +\hypertarget{classmeow_1_1Photo_a07c8ca1846fc97005a7d960c5fc703a7}{\index{meow\-::\-Photo@{meow\-::\-Photo}!bitmap\-Get@{bitmap\-Get}} +\index{bitmap\-Get@{bitmap\-Get}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{bitmap\-Get}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ {\bf Bitmap}$<$Pixel$>$\& {\bf meow\-::\-Photo}$<$ Pixel $>$\-::bitmap\-Get ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_a07c8ca1846fc97005a7d960c5fc703a7} + + +回傳{\ttfamily bitmap} 的參照(非constant) + +\hypertarget{classmeow_1_1Photo_a1a81a5be069f31e16e2e665ff97e778c}{\index{meow\-::\-Photo@{meow\-::\-Photo}!center@{center}} +\index{center@{center}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{center}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ {\bf Vector2\-D}$<${\bf double}$>$ const\& {\bf meow\-::\-Photo}$<$ Pixel $>$\-::center ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_a1a81a5be069f31e16e2e665ff97e778c} + + +取得照片中心點底片座標 + +\begin{DoxyReturn}{Returns} +一個二維vector +\end{DoxyReturn} +\hypertarget{classmeow_1_1Photo_a563850b9827f24d6d0be5c63e408d253}{\index{meow\-::\-Photo@{meow\-::\-Photo}!center@{center}} +\index{center@{center}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{center}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ {\bf Vector2\-D}$<${\bf double}$>$ const\& {\bf meow\-::\-Photo}$<$ Pixel $>$\-::center ( +\begin{DoxyParamCaption} +\item[{{\bf Vector2\-D}$<$ {\bf double} $>$ const \&}]{c} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_a563850b9827f24d6d0be5c63e408d253} + + +設定照片中心點底片座標 + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em c} & 新的座標\\ +\hline +\end{DoxyParams} +\begin{DoxyReturn}{Returns} +新的座標 +\end{DoxyReturn} +\hypertarget{classmeow_1_1Photo_a19976fbe55a9d7e17baac9460d5b829c}{\index{meow\-::\-Photo@{meow\-::\-Photo}!center\-Get@{center\-Get}} +\index{center\-Get@{center\-Get}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{center\-Get}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ {\bf Vector2\-D}$<${\bf double}$>$\& {\bf meow\-::\-Photo}$<$ Pixel $>$\-::center\-Get ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_a19976fbe55a9d7e17baac9460d5b829c} + + +取得照片中心點底片座標 (non-\/constant reference) + +\begin{DoxyReturn}{Returns} +一個二維vector +\end{DoxyReturn} +\hypertarget{classmeow_1_1Photo_aad526a7b9aecbcfebb12be76979ce7d1}{\index{meow\-::\-Photo@{meow\-::\-Photo}!color@{color}} +\index{color@{color}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{color}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ Pixel {\bf meow\-::\-Photo}$<$ Pixel $>$\-::color ( +\begin{DoxyParamCaption} +\item[{{\bf Vector2\-D}$<$ {\bf double} $>$ const \&}]{yx} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_aad526a7b9aecbcfebb12be76979ce7d1} + + +取得給照片座標中某點的色彩 + +用浮點數vector傳入, 所以色彩是經過渲染過的 + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em yx} & 底片座標(原點為center)\\ +\hline +\end{DoxyParams} +\begin{DoxyReturn}{Returns} +pixel +\end{DoxyReturn} +\hypertarget{classmeow_1_1Photo_a95c01aa8e4b620c8290a3054663e41f4}{\index{meow\-::\-Photo@{meow\-::\-Photo}!color@{color}} +\index{color@{color}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{color}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ Pixel {\bf meow\-::\-Photo}$<$ Pixel $>$\-::color ( +\begin{DoxyParamCaption} +\item[{{\bf Vector3\-D}$<$ {\bf double} $>$ const \&}]{p} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_a95c01aa8e4b620c8290a3054663e41f4} + + +取得給照片座標中某點的色彩 + +這次是輸入大地座標 + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em p} & 大地座標p \\ +\hline +\end{DoxyParams} +\begin{DoxyReturn}{Returns} +pixel +\end{DoxyReturn} +\hypertarget{classmeow_1_1Photo_a53bc0c60fb3abd9e95999990c6f132e6}{\index{meow\-::\-Photo@{meow\-::\-Photo}!copy\-From@{copy\-From}} +\index{copy\-From@{copy\-From}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{copy\-From}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ {\bf Photo}\& {\bf meow\-::\-Photo}$<$ Pixel $>$\-::copy\-From ( +\begin{DoxyParamCaption} +\item[{{\bf Photo}$<$ Pixel $>$ const \&}]{b} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_a53bc0c60fb3abd9e95999990c6f132e6} + + +複製資料 + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em b} & 資料來源 \\ +\hline +\end{DoxyParams} +\hypertarget{classmeow_1_1Photo_a0e947011dcb0db21760c89663acd2208}{\index{meow\-::\-Photo@{meow\-::\-Photo}!copy\-From@{copy\-From}} +\index{copy\-From@{copy\-From}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{copy\-From}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ {\bf Obj\-Base}$\ast$ {\bf meow\-::\-Photo}$<$ Pixel $>$\-::copy\-From ( +\begin{DoxyParamCaption} +\item[{{\bf Obj\-Base} const $\ast$}]{b} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classmeow_1_1Photo_a0e947011dcb0db21760c89663acd2208} + + +複製資料 + +\begin{DoxyVerb}輸入型別是 \c ObjBase \c const* +這裡假設實體其實是 \c Bitmap. +事實上這個method就只是幫忙轉型然後呼叫原本的\c copyFrom +\end{DoxyVerb} + + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em b} & 資料來源 \\ +\hline +\end{DoxyParams} +\begin{DoxyReturn}{Returns} +this +\end{DoxyReturn} + + +Reimplemented from \hyperlink{classmeow_1_1ObjBase_a79725f50866832762db87184eb528619}{meow\-::\-Obj\-Base}. + +\hypertarget{classmeow_1_1Photo_a449f74fa427154f943d6abee255431aa}{\index{meow\-::\-Photo@{meow\-::\-Photo}!create@{create}} +\index{create@{create}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{create}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ {\bf Obj\-Base}$\ast$ {\bf meow\-::\-Photo}$<$ Pixel $>$\-::create ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classmeow_1_1Photo_a449f74fa427154f943d6abee255431aa} + + +new一個自己 + +\begin{DoxyReturn}{Returns} +一個new出來的\-Bitmap$<$\-Pixel$>$ +\end{DoxyReturn} + + +Reimplemented from \hyperlink{classmeow_1_1ObjBase_ac9114e6917bca03b8f3c89694214b57c}{meow\-::\-Obj\-Base}. + +\hypertarget{classmeow_1_1Photo_a93fdf3b617d8b1c751823074fca049a9}{\index{meow\-::\-Photo@{meow\-::\-Photo}!ctype@{ctype}} +\index{ctype@{ctype}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{ctype}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ char const$\ast$ {\bf meow\-::\-Photo}$<$ Pixel $>$\-::ctype ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classmeow_1_1Photo_a93fdf3b617d8b1c751823074fca049a9} + + +回傳class的type + +\begin{DoxyReturn}{Returns} +{\ttfamily char} {\ttfamily const{\ttfamily $\ast$} 形式的typename} +\end{DoxyReturn} + + +Reimplemented from \hyperlink{classmeow_1_1ObjBase_a4aae58e8005739abe6d091d8b55a21e8}{meow\-::\-Obj\-Base}. + +\hypertarget{classmeow_1_1Photo_ab7b4b1f6b3f8100ea670500f168cb1e4}{\index{meow\-::\-Photo@{meow\-::\-Photo}!focal@{focal}} +\index{focal@{focal}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{focal}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ {\bf double} {\bf meow\-::\-Photo}$<$ Pixel $>$\-::focal ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_ab7b4b1f6b3f8100ea670500f168cb1e4} + + +回傳focal length + +\hypertarget{classmeow_1_1Photo_a1fbde3a8b2be3662cf67a035cf887be9}{\index{meow\-::\-Photo@{meow\-::\-Photo}!focal@{focal}} +\index{focal@{focal}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{focal}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ {\bf double} {\bf meow\-::\-Photo}$<$ Pixel $>$\-::focal ( +\begin{DoxyParamCaption} +\item[{{\bf double}}]{f} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_a1fbde3a8b2be3662cf67a035cf887be9} + + +設定 focal length + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em f} & 新的 focal length \\ +\hline +\end{DoxyParams} +\begin{DoxyReturn}{Returns} +新的 {\ttfamily focal} length +\end{DoxyReturn} +\hypertarget{classmeow_1_1Photo_a0fc9394bbee567c1961500808a5f9a9d}{\index{meow\-::\-Photo@{meow\-::\-Photo}!height@{height}} +\index{height@{height}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{height}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ size\-\_\-t {\bf meow\-::\-Photo}$<$ Pixel $>$\-::height ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_a0fc9394bbee567c1961500808a5f9a9d} + + +回傳bitmap高 + +\hypertarget{classmeow_1_1Photo_ae1d328ee4c0971d4a90fb1f05bea1e66}{\index{meow\-::\-Photo@{meow\-::\-Photo}!inside@{inside}} +\index{inside@{inside}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{inside}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ bool {\bf meow\-::\-Photo}$<$ Pixel $>$\-::inside ( +\begin{DoxyParamCaption} +\item[{{\bf Vector2\-D}$<$ {\bf double} $>$ const \&}]{yx} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_ae1d328ee4c0971d4a90fb1f05bea1e66} + + +檢查某點是否在底片範圍內 + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em yx} & 底片座標\\ +\hline +\end{DoxyParams} +\begin{DoxyReturn}{Returns} +{\ttfamily true/false} +\end{DoxyReturn} +\hypertarget{classmeow_1_1Photo_a43ac8952d85ea584dc9ea9a0424dbb98}{\index{meow\-::\-Photo@{meow\-::\-Photo}!inside@{inside}} +\index{inside@{inside}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{inside}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ bool {\bf meow\-::\-Photo}$<$ Pixel $>$\-::inside ( +\begin{DoxyParamCaption} +\item[{{\bf Vector3\-D}$<$ {\bf double} $>$ const \&}]{p} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_a43ac8952d85ea584dc9ea9a0424dbb98} + + +檢查某點是否在底片範圍內 + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em p} & 大地座標\\ +\hline +\end{DoxyParams} +\begin{DoxyReturn}{Returns} +{\ttfamily true/false} +\end{DoxyReturn} +\hypertarget{classmeow_1_1Photo_ab97f03da439edeb8834fd6e7a3487f65}{\index{meow\-::\-Photo@{meow\-::\-Photo}!operator=@{operator=}} +\index{operator=@{operator=}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{operator=}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ {\bf Photo}\& {\bf meow\-::\-Photo}$<$ Pixel $>$\-::operator= ( +\begin{DoxyParamCaption} +\item[{{\bf Photo}$<$ Pixel $>$ const \&}]{b} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_ab97f03da439edeb8834fd6e7a3487f65} + + +same as {\ttfamily }.copy\-From(b) + +\hypertarget{classmeow_1_1Photo_a3489796a4101da9291fff280cb89728e}{\index{meow\-::\-Photo@{meow\-::\-Photo}!pixel@{pixel}} +\index{pixel@{pixel}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{pixel}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ Pixel {\bf meow\-::\-Photo}$<$ Pixel $>$\-::pixel ( +\begin{DoxyParamCaption} +\item[{size\-\_\-t}]{y, } +\item[{size\-\_\-t}]{x} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_a3489796a4101da9291fff280cb89728e} + + +回傳bitmap的某pixel + +\hypertarget{classmeow_1_1Photo_a38c943a8bd30b309a8042599dcf9f1e7}{\index{meow\-::\-Photo@{meow\-::\-Photo}!pixel@{pixel}} +\index{pixel@{pixel}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{pixel}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ Pixel {\bf meow\-::\-Photo}$<$ Pixel $>$\-::pixel ( +\begin{DoxyParamCaption} +\item[{size\-\_\-t}]{y, } +\item[{size\-\_\-t}]{x, } +\item[{Pixel const \&}]{p} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_a38c943a8bd30b309a8042599dcf9f1e7} + + +設定某pixel + +\hypertarget{classmeow_1_1Photo_a97cc535d734fdf53457c84ef5f0bdc50}{\index{meow\-::\-Photo@{meow\-::\-Photo}!read@{read}} +\index{read@{read}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{read}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ bool {\bf meow\-::\-Photo}$<$ Pixel $>$\-::read ( +\begin{DoxyParamCaption} +\item[{F\-I\-L\-E $\ast$}]{f, } +\item[{bool}]{bin, } +\item[{unsigned {\bf int}}]{fg} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classmeow_1_1Photo_a97cc535d734fdf53457c84ef5f0bdc50} + + +將資料讀入 + +\begin{DoxyNote}{Note} +未完成 +\end{DoxyNote} + + +Reimplemented from \hyperlink{classmeow_1_1ObjBase_a4c1f5cb4b05559197148a8f6524bfc34}{meow\-::\-Obj\-Base}. + +\hypertarget{classmeow_1_1Photo_a1d51d273f9847c8c81de3acaafdf893f}{\index{meow\-::\-Photo@{meow\-::\-Photo}!refernece\-From@{refernece\-From}} +\index{refernece\-From@{refernece\-From}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{refernece\-From}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ {\bf Photo}\& {\bf meow\-::\-Photo}$<$ Pixel $>$\-::refernece\-From ( +\begin{DoxyParamCaption} +\item[{{\bf Photo}$<$ Pixel $>$ const \&}]{b} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_a1d51d273f9847c8c81de3acaafdf893f} + + +參照 + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em b} & 參照來源 \\ +\hline +\end{DoxyParams} +\hypertarget{classmeow_1_1Photo_ab5a901c44b8c5523def9b40f27a5fda3}{\index{meow\-::\-Photo@{meow\-::\-Photo}!reset@{reset}} +\index{reset@{reset}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{reset}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ void {\bf meow\-::\-Photo}$<$ Pixel $>$\-::reset ( +\begin{DoxyParamCaption} +\item[{{\bf Bitmap}$<$ Pixel $>$ const \&}]{bmp} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_ab5a901c44b8c5523def9b40f27a5fda3} + + +重設bitmap, focal 用猜的 + +focal直接代對角線, center代bitmap中心點 + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em bmp} & 新的 {\ttfamily bitmap} \\ +\hline +\end{DoxyParams} +\hypertarget{classmeow_1_1Photo_aed3ed47ee1ddae0732e24af71b91a7b0}{\index{meow\-::\-Photo@{meow\-::\-Photo}!reset@{reset}} +\index{reset@{reset}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{reset}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ void {\bf meow\-::\-Photo}$<$ Pixel $>$\-::reset ( +\begin{DoxyParamCaption} +\item[{{\bf Bitmap}$<$ Pixel $>$ const \&}]{bmp, } +\item[{{\bf double}}]{f} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_aed3ed47ee1ddae0732e24af71b91a7b0} + + +重設bitmap, focal + +center代bitmap中心點 + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em bmp} & 新的 {\ttfamily bitmap} \\ +\hline +\mbox{\tt in} & {\em f} & 新的 {\ttfamily focal} \\ +\hline +\end{DoxyParams} +\hypertarget{classmeow_1_1Photo_a4d237ed59e6227940c20831cdce797a8}{\index{meow\-::\-Photo@{meow\-::\-Photo}!reset@{reset}} +\index{reset@{reset}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{reset}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ void {\bf meow\-::\-Photo}$<$ Pixel $>$\-::reset ( +\begin{DoxyParamCaption} +\item[{{\bf Bitmap}$<$ Pixel $>$ const \&}]{bmp, } +\item[{{\bf double}}]{f, } +\item[{{\bf Vector2\-D}$<$ {\bf double} $>$ const \&}]{c} +\end{DoxyParamCaption} +)\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_a4d237ed59e6227940c20831cdce797a8} + + +重設bitmap, focal, center + + +\begin{DoxyParams}[1]{Parameters} +\mbox{\tt in} & {\em bmp} & 新的 {\ttfamily bitmap} \\ +\hline +\mbox{\tt in} & {\em f} & 新的 {\ttfamily focal} \\ +\hline +\mbox{\tt in} & {\em c} & 新的中心點作標 \\ +\hline +\end{DoxyParams} +\hypertarget{classmeow_1_1Photo_a84cf3012af5e67b4aafc1ee7eafd70d1}{\index{meow\-::\-Photo@{meow\-::\-Photo}!type@{type}} +\index{type@{type}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{type}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ std\-::string {\bf meow\-::\-Photo}$<$ Pixel $>$\-::type ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classmeow_1_1Photo_a84cf3012af5e67b4aafc1ee7eafd70d1} + + +回傳class的type + +\begin{DoxyReturn}{Returns} +{\ttfamily std\-::string} 形式的typename +\end{DoxyReturn} + + +Reimplemented from \hyperlink{classmeow_1_1ObjBase_a63a4911bb073281820fe9b7a9908ba72}{meow\-::\-Obj\-Base}. + +\hypertarget{classmeow_1_1Photo_a1a0582b5c3683264fcad5ca67b376f7c}{\index{meow\-::\-Photo@{meow\-::\-Photo}!width@{width}} +\index{width@{width}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{width}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ size\-\_\-t {\bf meow\-::\-Photo}$<$ Pixel $>$\-::width ( +\begin{DoxyParamCaption} +{} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}}}\label{classmeow_1_1Photo_a1a0582b5c3683264fcad5ca67b376f7c} + + +回傳bitmap寬 + +\hypertarget{classmeow_1_1Photo_ab92324c852686bcad5e374aa9ae8e952}{\index{meow\-::\-Photo@{meow\-::\-Photo}!write@{write}} +\index{write@{write}!meow::Photo@{meow\-::\-Photo}} +\subsubsection[{write}]{\setlength{\rightskip}{0pt plus 5cm}template$<$class Pixel$>$ bool {\bf meow\-::\-Photo}$<$ Pixel $>$\-::write ( +\begin{DoxyParamCaption} +\item[{F\-I\-L\-E $\ast$}]{f, } +\item[{bool}]{bin, } +\item[{unsigned {\bf int}}]{fg} +\end{DoxyParamCaption} +) const\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [virtual]}}}\label{classmeow_1_1Photo_ab92324c852686bcad5e374aa9ae8e952} + + +將資料寫入檔案 + +\begin{DoxyNote}{Note} +未完成 +\end{DoxyNote} + + +Reimplemented from \hyperlink{classmeow_1_1ObjBase_ae9e9e5c664b7a92e54a3616983f39ba8}{meow\-::\-Obj\-Base}. + + + +The documentation for this class was generated from the following file\-:\begin{DoxyCompactItemize} +\item +meowpp/gra/\hyperlink{Photo_8h}{Photo.\-h}\end{DoxyCompactItemize} |