Templates -- Meow  204.13.18
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
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 > const & photo () const
 取得 photo More...
 
Photo< Pixel > & photoGet ()
 取得 photo (non-constant) More...
 
Photo< Pixel > const & photo (Photo< Pixel > const &pho)
 設定 photo More...
 
Rotation3D< double > const & rotation () const
 取得rotation More...
 
Rotation3D< double > & rotationGet ()
 取得rotation (non-constant) More...
 
Rotation3D< double > const & rotation (Rotation3D< double > const &rot)
 設定rotation More...
 
FixedPoints2D const & fixedPoints2D () const
 取得所有FixedPoint More...
 
FixedPoints2DfixedPoints2DGet () const
 取得所有FixedPoint(non-constant reference) More...
 
FixedPoints2D const & fixedPoints2D (FixedPoints2D const &fps2d) const
 設定FixedPoint More...
 
Vector< doublefixedPoint2D (int i)
 取得編號為i的fixed points 2d More...
 
bool inside (Vector3D< double > p) const
 詢問某點是否在底片範圍內 More...
 
Pixel color (Vector3D< double > 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> 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 47 of file Camera.h.

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

copy constructor

Definition at line 53 of file Camera.h.

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

destructor

Definition at line 59 of file Camera.h.

Member Function Documentation

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

取得底片color

Definition at line 164 of file Camera.h.

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

複製資料

Definition at line 65 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 237 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 225 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 245 of file Camera.h.

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

取得編號為i的fixed points 2d

Definition at line 149 of file Camera.h.

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

取得所有FixedPoint

Definition at line 125 of file Camera.h.

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

設定FixedPoint

Definition at line 139 of file Camera.h.

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

取得所有FixedPoint(non-constant reference)

Definition at line 132 of file Camera.h.

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

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

Definition at line 156 of file Camera.h.

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

same as copyFrom(b)

Definition at line 172 of file Camera.h.

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

取得 photo

Definition at line 81 of file Camera.h.

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

設定 photo

Definition at line 95 of file Camera.h.

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

取得 photo (non-constant)

Definition at line 88 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 201 of file Camera.h.

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

參照

Definition at line 73 of file Camera.h.

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

取得rotation

Definition at line 103 of file Camera.h.

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

設定rotation

Definition at line 117 of file Camera.h.

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

取得rotation (non-constant)

Definition at line 110 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 180 of file Camera.h.


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