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

多個camera, 一個offset, 一個rotation More...

#include "WatchBall.h"

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

Public Types

typedef std::vector< Camera
< Pixel > > 
Cameras
 

Public Member Functions

 WatchBall ()
 constructor More...
 
 WatchBall (WatchBall const &b)
 copy constructor More...
 
 ~WatchBall ()
 destructor More...
 
WatchBallcopyFrom (WatchBall const &b)
 copy data More...
 
WatchBallreferenceFrom (WatchBall const &b)
 reference More...
 
size_t cameraSize () const
 取得有幾個camera More...
 
Cameras cameras () const
 取得 cameras More...
 
CamerascamerasGet ()
 取得 cameras (non-constant) More...
 
Cameras cameras (Cameras const &c)
 設定 camera More...
 
Camera< Pixel > camera (size_t i) const
 取得第i個camera More...
 
Camera< Pixel > & cameraGet (size_t i)
 取得第i個camera (non-constant reference) More...
 
Camera< Pixel > camera (size_t i, Camera< Pixel > const &c)
 設定第i個camera More...
 
Vector3D< doubleoffset () const
 取得offset More...
 
Vector3D< double > & offsetGet ()
 取得offset (non-constant reference) More...
 
Vector3D< doubleoffset (Vector3D< double > const &ofs)
 設定offset More...
 
Pixel color (Vector3D< double > p) const
 取得底片color More...
 
Bitmap< Pixel > expand (double radius) const
 輸出展開圖 More...
 
WatchBalloperator= (WatchBall 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::WatchBall< Pixel >

多個camera, 一個offset, 一個rotation

Author
cat_leopard

Definition at line 22 of file WatchBall.h.

Member Typedef Documentation

template<class Pixel >
typedef std::vector<Camera<Pixel> > meow::WatchBall< Pixel >::Cameras

Definition at line 24 of file WatchBall.h.

Constructor & Destructor Documentation

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

constructor

Definition at line 45 of file WatchBall.h.

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

copy constructor

Definition at line 51 of file WatchBall.h.

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

destructor

Definition at line 57 of file WatchBall.h.

Member Function Documentation

template<class Pixel >
Camera<Pixel> meow::WatchBall< Pixel >::camera ( size_t  i) const
inline

取得第i個camera

Definition at line 108 of file WatchBall.h.

template<class Pixel >
Camera<Pixel> meow::WatchBall< Pixel >::camera ( size_t  i,
Camera< Pixel > const &  c 
)
inline

設定第i個camera

Definition at line 122 of file WatchBall.h.

template<class Pixel >
Camera<Pixel>& meow::WatchBall< Pixel >::cameraGet ( size_t  i)
inline

取得第i個camera (non-constant reference)

Definition at line 115 of file WatchBall.h.

template<class Pixel >
Cameras meow::WatchBall< Pixel >::cameras ( ) const
inline

取得 cameras

Definition at line 86 of file WatchBall.h.

template<class Pixel >
Cameras meow::WatchBall< Pixel >::cameras ( Cameras const &  c)
inline

設定 camera

Definition at line 100 of file WatchBall.h.

template<class Pixel >
Cameras& meow::WatchBall< Pixel >::camerasGet ( )
inline

取得 cameras (non-constant)

Definition at line 93 of file WatchBall.h.

template<class Pixel >
size_t meow::WatchBall< Pixel >::cameraSize ( ) const
inline

取得有幾個camera

Definition at line 79 of file WatchBall.h.

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

取得底片color

Definition at line 152 of file WatchBall.h.

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

copy data

Definition at line 63 of file WatchBall.h.

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

複製資料

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

Parameters
[in]b資料來源
Returns
this

Reimplemented from meow::ObjBase.

Definition at line 229 of file WatchBall.h.

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

new一個自己

Returns
一個new出來的pointer

Reimplemented from meow::ObjBase.

Definition at line 216 of file WatchBall.h.

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

回傳class的type

Returns
char const* 形式的typename

Reimplemented from meow::ObjBase.

Definition at line 237 of file WatchBall.h.

template<class Pixel >
Bitmap<Pixel> meow::WatchBall< Pixel >::expand ( double  radius) const
inline

輸出展開圖

Parameters
[in]radius半徑

Definition at line 170 of file WatchBall.h.

template<class Pixel >
Vector3D<double> meow::WatchBall< Pixel >::offset ( ) const
inline

取得offset

Definition at line 130 of file WatchBall.h.

template<class Pixel >
Vector3D<double> meow::WatchBall< Pixel >::offset ( Vector3D< double > const &  ofs)
inline

設定offset

Definition at line 144 of file WatchBall.h.

template<class Pixel >
Vector3D<double>& meow::WatchBall< Pixel >::offsetGet ( )
inline

取得offset (non-constant reference)

Definition at line 137 of file WatchBall.h.

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

same as copyFrom(b)

Definition at line 192 of file WatchBall.h.

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

將資料讀入

Note
未完成

Reimplemented from meow::ObjBase.

Definition at line 208 of file WatchBall.h.

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

reference

Definition at line 71 of file WatchBall.h.

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

回傳class的type

Returns
std::string 形式的typename

Reimplemented from meow::ObjBase.

Definition at line 245 of file WatchBall.h.

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

將資料寫入檔案

Note
未完成

Reimplemented from meow::ObjBase.

Definition at line 200 of file WatchBall.h.


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