Templates -- Meow  1.2.9
A C++ template contains kinds of interesting classes and functions
meow::Camera< Pixel > Class Template Reference

Camera. More...

#include "Camera.h"

Inheritance diagram for meow::Camera< Pixel >:
meow::ObjBase

Public Types

typedef IdentityPoints< int,
double, Vector2D< double > > 
FixedPoints2D
 

Public Member Functions

 Camera ()
 constructor More...
 
 Camera (Camera const &b)
 copy constructor More...
 
 ~Camera ()
 destructor More...
 
CameracopyFrom (Camera const &b)
 複製資料 More...
 
CamerareferenceFrom (Camera const &b)
 參照 More...
 
Photo< Pixel > photo () const
 取得 photo More...
 
Photo< Pixel > & photoGet ()
 取得 photo (non-constant) More...
 
Photo< Pixel > photo (Photo< Pixel > const &pho)
 設定 photo More...
 
Rotation3D< doublerotation () const
 取得rotation More...
 
Rotation3D< double > & rotationGet ()
 取得rotation (non-constant) More...
 
Rotation3D< doublerotation (Rotation3D< double > const &rot)
 設定rotation More...
 
FixedPoints2D fixedPoints2D () const
 取得所有FixedPoint More...
 
FixedPoints2DfixedPoints2DGet () const
 取得所有FixedPoint(non-constant reference) More...
 
FixedPoints2D fixedPoints2D (FixedPoints2D const &fps2d) const
 設定FixedPoint More...
 
Vector< doublefixedPoint2D (int i)
 取得編號為i的fixed points 2d More...
 
bool inside (Vector3D< double > const &p) const
 詢問某點是否在底片範圍內 More...
 
Pixel color (Vector3D< double > const &p) const
 取得底片color More...
 
Cameraoperator= (Camera 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...
 
ObjBasecreate () const
 new一個自己 More...
 
ObjBasecopyFrom (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 ()
 Constructor with doing nothing. More...
 

Detailed Description

template<class Pixel>
class meow::Camera< Pixel >

Camera.

實際上就是一個 Photo 加上一個 Rotation3D. 另外附有 fixedPoint, 可以用來定位時參考

Author
cat_leopard

Definition at line 23 of file Camera.h.

Member Typedef Documentation

template<class Pixel>
typedef IdentityPoints<int, double, Vector2D<double> > meow::Camera< Pixel >::FixedPoints2D

Definition at line 25 of file Camera.h.

Constructor & Destructor Documentation

template<class Pixel>
meow::Camera< Pixel >::Camera ( )
inline

constructor

Definition at line 48 of file Camera.h.

template<class Pixel>
meow::Camera< Pixel >::Camera ( Camera< Pixel > const &  b)
inline

copy constructor

Definition at line 54 of file Camera.h.

template<class Pixel>
meow::Camera< Pixel >::~Camera ( )
inline

destructor

Definition at line 60 of file Camera.h.

Member Function Documentation

template<class Pixel>
Pixel meow::Camera< Pixel >::color ( Vector3D< double > const &  p) const
inline

取得底片color

Definition at line 165 of file Camera.h.

template<class Pixel>
Camera& meow::Camera< Pixel >::copyFrom ( Camera< Pixel > const &  b)
inline

複製資料

Definition at line 66 of file Camera.h.

template<class Pixel>
ObjBase* meow::Camera< Pixel >::copyFrom ( ObjBase const *  b)
inlinevirtual

複製資料

輸入型別是 ObjBase const* 事實上這個method就只是幫忙轉型然後呼叫原本的copyFrom

Parameters
[in]b資料來源
Returns
this

Reimplemented from meow::ObjBase.

Definition at line 238 of file Camera.h.

template<class Pixel>
ObjBase* meow::Camera< Pixel >::create ( ) const
inlinevirtual

new一個自己

Returns
一個new出來的pointer

Reimplemented from meow::ObjBase.

Definition at line 226 of file Camera.h.

template<class Pixel>
char const* meow::Camera< Pixel >::ctype ( ) const
inlinevirtual

回傳class的type

Returns
char const* 形式的typename

Reimplemented from meow::ObjBase.

Definition at line 246 of file Camera.h.

template<class Pixel>
Vector<double> meow::Camera< Pixel >::fixedPoint2D ( int  i)
inline

取得編號為i的fixed points 2d

Definition at line 150 of file Camera.h.

template<class Pixel>
FixedPoints2D meow::Camera< Pixel >::fixedPoints2D ( ) const
inline

取得所有FixedPoint

Definition at line 126 of file Camera.h.

template<class Pixel>
FixedPoints2D meow::Camera< Pixel >::fixedPoints2D ( FixedPoints2D const &  fps2d) const
inline

設定FixedPoint

Definition at line 140 of file Camera.h.

template<class Pixel>
FixedPoints2D& meow::Camera< Pixel >::fixedPoints2DGet ( ) const
inline

取得所有FixedPoint(non-constant reference)

Definition at line 133 of file Camera.h.

template<class Pixel>
bool meow::Camera< Pixel >::inside ( Vector3D< double > const &  p) const
inline

詢問某點是否在底片範圍內

Definition at line 157 of file Camera.h.

template<class Pixel>
Camera& meow::Camera< Pixel >::operator= ( Camera< Pixel > const &  b)
inline

same as copyFrom(b)

Definition at line 173 of file Camera.h.

template<class Pixel>
Photo<Pixel> meow::Camera< Pixel >::photo ( ) const
inline

取得 photo

Definition at line 82 of file Camera.h.

template<class Pixel>
Photo<Pixel> meow::Camera< Pixel >::photo ( Photo< Pixel > const &  pho)
inline

設定 photo

Definition at line 96 of file Camera.h.

template<class Pixel>
Photo<Pixel>& meow::Camera< Pixel >::photoGet ( )
inline

取得 photo (non-constant)

Definition at line 89 of file Camera.h.

template<class Pixel>
bool meow::Camera< Pixel >::read ( FILE *  f,
bool  bin,
unsigned int  fg 
)
inlinevirtual

將資料讀入

Note
未完成

Reimplemented from meow::ObjBase.

Definition at line 202 of file Camera.h.

template<class Pixel>
Camera& meow::Camera< Pixel >::referenceFrom ( Camera< Pixel > const &  b)
inline

參照

Definition at line 74 of file Camera.h.

template<class Pixel>
Rotation3D<double> meow::Camera< Pixel >::rotation ( ) const
inline

取得rotation

Definition at line 104 of file Camera.h.

template<class Pixel>
Rotation3D<double> meow::Camera< Pixel >::rotation ( Rotation3D< double > const &  rot)
inline

設定rotation

Definition at line 118 of file Camera.h.

template<class Pixel>
Rotation3D<double>& meow::Camera< Pixel >::rotationGet ( )
inline

取得rotation (non-constant)

Definition at line 111 of file Camera.h.

template<class Pixel>
std::string meow::Camera< Pixel >::type ( ) const
inlinevirtual

回傳class的type

Returns
std::string 形式的typename

Reimplemented from meow::ObjBase.

Definition at line 254 of file Camera.h.

template<class Pixel>
bool meow::Camera< Pixel >::write ( FILE *  f,
bool  bin,
unsigned int  fg 
) const
inlinevirtual

將資料寫入檔案

Note
未完成

Reimplemented from meow::ObjBase.

Definition at line 181 of file Camera.h.


The documentation for this class was generated from the following file: