Templates -- Meow  1.1.4
A C++ template which is unable and also not allowed to compile to obj-file first.
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 const & cameras () const
 取得 cameras More...
 
CamerascamerasGet ()
 取得 cameras (non-constant) More...
 
Cameras const & cameras (Cameras const &c)
 設定 camera More...
 
Camera< Pixel > const & camera (size_t i) const
 取得第i個camera More...
 
Camera< Pixel > & camera (size_t i)
 取得第i個camera (non-constant reference) More...
 
Camera< Pixel > const & camera (size_t i, Camera< Pixel > const &c)
 設定第i個camera More...
 
Vector3D< double > const & offset () const
 取得offset More...
 
Vector3D< double > & offset ()
 取得offset (non-constant reference) More...
 
Vector3D< double > const & offset (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 ()
 

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 46 of file WatchBall.h.

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

copy constructor

Definition at line 52 of file WatchBall.h.

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

destructor

Definition at line 58 of file WatchBall.h.

Member Function Documentation

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

取得第i個camera

Definition at line 109 of file WatchBall.h.

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

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

Definition at line 116 of file WatchBall.h.

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

設定第i個camera

Definition at line 123 of file WatchBall.h.

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

取得 cameras

Definition at line 87 of file WatchBall.h.

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

設定 camera

Definition at line 101 of file WatchBall.h.

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

取得 cameras (non-constant)

Definition at line 94 of file WatchBall.h.

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

取得有幾個camera

Definition at line 80 of file WatchBall.h.

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

取得底片color

Definition at line 153 of file WatchBall.h.

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

copy data

Definition at line 64 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 230 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 217 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 238 of file WatchBall.h.

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

輸出展開圖

Parameters
[in]radius半徑

Definition at line 171 of file WatchBall.h.

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

取得offset

Definition at line 131 of file WatchBall.h.

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

取得offset (non-constant reference)

Definition at line 138 of file WatchBall.h.

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

設定offset

Definition at line 145 of file WatchBall.h.

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

same as copyFrom(b)

Definition at line 193 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 209 of file WatchBall.h.

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

reference

Definition at line 72 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 247 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 201 of file WatchBall.h.


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