Templates -- Meow
1.1.2
不能,也不應該先編譯成obj-file的templates
|
底片 More...
#include "Photo.h"
Public Member Functions | |
Photo () | |
constructor More... | |
Photo (Photo const &b) | |
constructor More... | |
Photo (Bitmap< Pixel > const &bmp) | |
constructor More... | |
Photo (Bitmap< Pixel > const &bmp, double f) | |
constructor More... | |
Photo (Bitmap< Pixel > const &bmp, double f, Vector2D< double > const &c) | |
constructor More... | |
~Photo () | |
destructor More... | |
Photo & | copyFrom (Photo const &b) |
複製資料 More... | |
Photo & | referneceFrom (Photo const &b) |
參照 More... | |
void | reset (Bitmap< Pixel > const &bmp) |
重設bitmap, focal 用猜的 More... | |
void | reset (Bitmap< Pixel > const &bmp, double f) |
重設bitmap, focal More... | |
void | reset (Bitmap< Pixel > const &bmp, double f, Vector2D< double > const &c) |
重設bitmap, focal, center More... | |
Bitmap< Pixel > const & | bitmap () const |
回傳bitmap More... | |
Bitmap< Pixel > & | bitmapGet () |
回傳bitmap 的參照(非constant) More... | |
Bitmap< Pixel > const & | bitmap (Bitmap< Pixel > const &bmp) |
設定bitmap More... | |
double | focal () const |
回傳focal length More... | |
double | focal (double f) |
設定 focal length More... | |
Vector2D< double > const & | center () const |
取得照片中心點底片座標 More... | |
Vector2D< double > & | centerGet () |
取得照片中心點底片座標 (non-constant reference) More... | |
Vector2D< double > const & | center (Vector2D< double > const &c) |
設定照片中心點底片座標 More... | |
size_t | width () const |
回傳bitmap寬 More... | |
size_t | height () const |
回傳bitmap高 More... | |
Pixel | pixel (size_t y, size_t x) const |
回傳bitmap的某pixel More... | |
Pixel | pixel (size_t y, size_t x, Pixel const &p) |
設定某pixel More... | |
bool | inside (Vector2D< double > const &yx) const |
檢查某點是否在底片範圍內 More... | |
bool | inside (Vector3D< double > const &p) const |
檢查某點是否在底片範圍內 More... | |
Pixel | color (Vector2D< double > const &yx) const |
取得給照片座標中某點的色彩 More... | |
Pixel | color (Vector3D< double > const &p) const |
取得給照片座標中某點的色彩 More... | |
Photo & | operator= (Photo const &b) |
same as .copyFrom(b) More... | |
bool | write (FILE *f, bool bin, unsigned int fg) const |
將資料寫入檔案 More... | |
bool | read (FILE *f, bool bin, unsigned int fg) |
將資料讀入 More... | |
ObjBase * | create () const |
new一個自己 More... | |
ObjBase * | copyFrom (ObjBase const *b) |
複製資料 More... | |
char const * | ctype () const |
回傳class的type More... | |
std::string | type () const |
回傳class的type More... | |
Public Member Functions inherited from meow::ObjBase | |
virtual | ~ObjBase () |
Additional Inherited Members | |
Static Public Member Functions inherited from meow::ObjBase | |
static char const * | ctypeBase () |
用C-style string回傳base的type name More... | |
static std::string | typeBase () |
用std::string回傳base的type name More... | |
Protected Member Functions inherited from meow::ObjBase | |
ObjBase () | |
|
inline |
constructor
focal 預設為 1
|
inline |
constructor
複製資料
[in] | b | 資料來源 |
|
inline |
constructor
直接給定圖片, 焦距用猜的
[in] | bmp | 給定的圖片 |
|
inline |
constructor
直接給定圖片與焦距
[in] | bmp | 給定的圖片 |
[in] | f | 給定的焦距 |
|
inline |
constructor
直接給定圖片, 焦距與中心點位置
[in] | bmp | 給定的圖片 |
[in] | f | 給定的焦距 |
[in] | c | 中心點作標 |
|
inline |
destructor
|
inline |
回傳bitmap
|
inline |
設定bitmap
[in] | bmp | 新的 bitmap |
bitmap
|
inline |
回傳bitmap
的參照(非constant)
|
inline |
取得照片中心點底片座標
|
inline |
設定照片中心點底片座標
[in] | c | 新的座標 |
|
inline |
取得照片中心點底片座標 (non-constant reference)
|
inline |
取得給照片座標中某點的色彩
用浮點數vector傳入, 所以色彩是經過渲染過的
[in] | yx | 底片座標(原點為center) |
|
inline |
取得給照片座標中某點的色彩
這次是輸入大地座標
[in] | p | 大地座標p |
|
inline |
複製資料
[in] | b | 資料來源 |
|
inlinevirtual |
複製資料
輸入型別是 \c ObjBase \c const* 這裡假設實體其實是 \c Bitmap. 事實上這個method就只是幫忙轉型然後呼叫原本的\c copyFrom
[in] | b | 資料來源 |
Reimplemented from meow::ObjBase.
|
inlinevirtual |
|
inlinevirtual |
|
inline |
回傳focal length
|
inline |
設定 focal length
[in] | f | 新的 focal length |
focal
length
|
inline |
回傳bitmap高
|
inline |
檢查某點是否在底片範圍內
[in] | yx | 底片座標 |
true/false
|
inline |
檢查某點是否在底片範圍內
[in] | p | 大地座標 |
true/false
|
inline |
same as .copyFrom(b)
|
inline |
回傳bitmap的某pixel
|
inline |
設定某pixel
|
inlinevirtual |
|
inline |
參照
[in] | b | 參照來源 |
|
inline |
重設bitmap, focal 用猜的
focal直接代對角線, center代bitmap中心點
[in] | bmp | 新的 bitmap |
|
inline |
重設bitmap, focal
center代bitmap中心點
[in] | bmp | 新的 bitmap |
[in] | f | 新的 focal |
|
inline |
重設bitmap, focal, center
[in] | bmp | 新的 bitmap |
[in] | f | 新的 focal |
[in] | c | 新的中心點作標 |
|
inlinevirtual |
|
inline |
回傳bitmap寬
|
inlinevirtual |