Templates -- Meow  1.1.4
A C++ template which is unable and also not allowed to compile to obj-file first.
meow::Eye< Pixel > Class Template Reference

一個 Camera 加上一個offset transformation More...

#include "Eye.h"

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

Public Member Functions

 Eye ()
 
 Eye (Eye const &b)
 
 Eye (Camera< Pixel > const &c, Vector3D< double > const &o)
 
 ~Eye ()
 
EyecopyFrom (Eye const &e)
 
EyereferenceFrom (Eye const &e)
 
Camera< Pixel > const & camera () const
 
Camera< Pixel > & cameraGet ()
 
Camera< Pixel > const & camera (Camera< Pixel > const &c)
 
Vector3D< double > const & offset () const
 
Vector3D< double > & offsetGet ()
 
Vector3D< double > const & offset (Vector3D< double > const &ofs)
 
bool inside (Vector3D< double > const &v) const
 
Eyeoperator= (Eye const &e)
 
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::Eye< Pixel >

一個 Camera 加上一個offset transformation

Author
cat_leopard

Definition at line 17 of file Eye.h.

Constructor & Destructor Documentation

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

Definition at line 38 of file Eye.h.

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

Definition at line 41 of file Eye.h.

template<class Pixel>
meow::Eye< Pixel >::Eye ( Camera< Pixel > const &  c,
Vector3D< double > const &  o 
)
inline

Definition at line 44 of file Eye.h.

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

Definition at line 47 of file Eye.h.

Member Function Documentation

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

Definition at line 60 of file Eye.h.

template<class Pixel>
Camera<Pixel> const& meow::Eye< Pixel >::camera ( Camera< Pixel > const &  c)
inline

Definition at line 68 of file Eye.h.

template<class Pixel>
Camera<Pixel>& meow::Eye< Pixel >::cameraGet ( )
inline

Definition at line 64 of file Eye.h.

template<class Pixel>
Eye& meow::Eye< Pixel >::copyFrom ( Eye< Pixel > const &  e)
inline

Definition at line 50 of file Eye.h.

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

複製資料

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

Parameters
[in]b資料來源
Returns
this

Reimplemented from meow::ObjBase.

Definition at line 151 of file Eye.h.

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

new一個自己

Returns
一個new出來的pointer

Reimplemented from meow::ObjBase.

Definition at line 139 of file Eye.h.

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

回傳class的type

Returns
char const* 形式的typename

Reimplemented from meow::ObjBase.

Definition at line 159 of file Eye.h.

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

Definition at line 86 of file Eye.h.

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

Definition at line 73 of file Eye.h.

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

Definition at line 81 of file Eye.h.

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

Definition at line 77 of file Eye.h.

template<class Pixel>
Eye& meow::Eye< Pixel >::operator= ( Eye< Pixel > const &  e)
inline

Definition at line 90 of file Eye.h.

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

將資料讀入

Note
未完成

Reimplemented from meow::ObjBase.

Definition at line 119 of file Eye.h.

template<class Pixel>
Eye& meow::Eye< Pixel >::referenceFrom ( Eye< Pixel > const &  e)
inline

Definition at line 55 of file Eye.h.

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

回傳class的type

Returns
std::string 形式的typename

Reimplemented from meow::ObjBase.

Definition at line 167 of file Eye.h.

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

將資料寫入檔案

Note
未完成

Reimplemented from meow::ObjBase.

Definition at line 98 of file Eye.h.


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