$search
#include <Resources.h>
Public Member Functions | |
int | AddShader (const char *shadername, const char *vertex_file=NULL, const char *fragment_file=NULL, const char *header=NULL) |
IplImage * | GetImage () |
ImageProcessor * | GetImageProcessor () |
IplImage * | GetNewImage () |
Shader * | GetShader (int id) |
IplImage * | InitCapture (float width=640.0, float height=480.0, int camID=CV_CAP_ANY) |
IplImage * | InitCapture (const char *file) |
ImageProcessor * | InitImageProcessor (int width, int height) |
void | ReleaseCapture () |
void | ReleaseImageProcessor () |
void | ReleaseShader (int id) |
void | ReleaseShader () |
int | SearchShaderName (const char *filename) |
void | SetShaderPath (const char *path) |
void | ShowLog (bool b) |
~Resources () | |
Static Public Member Functions | |
static Resources * | GetInstance () |
Private Member Functions | |
Resources () | |
int | SearchName (NameList *list, const char *filename) |
Private Attributes | |
CvCapture * | m_capture |
IplImage * | m_image |
ImageProcessor * | m_ip |
ShaderList | m_shaderList |
NameList | m_shaderNameList |
char | m_shaderPath [FN_LEN] |
bool | m_showlog |
Friends | |
class | Singleton< Resources > |
Definition at line 25 of file Resources.h.
Resources::Resources | ( | ) | [private] |
Definition at line 25 of file Resources.cpp.
Resources::~Resources | ( | ) |
Definition at line 32 of file Resources.cpp.
int Resources::AddShader | ( | const char * | shadername, | |
const char * | vertex_file = NULL , |
|||
const char * | fragment_file = NULL , |
|||
const char * | header = NULL | |||
) |
Definition at line 163 of file Resources.cpp.
IplImage * Resources::GetImage | ( | ) |
Definition at line 143 of file Resources.cpp.
ImageProcessor * Resources::GetImageProcessor | ( | ) |
Definition at line 150 of file Resources.cpp.
static Resources* Tracking::Resources::GetInstance | ( | ) | [inline, static] |
Reimplemented from Tracking::Singleton< Resources >.
Definition at line 50 of file Resources.h.
IplImage * Resources::GetNewImage | ( | ) |
Definition at line 119 of file Resources.cpp.
Shader * Resources::GetShader | ( | int | id | ) |
Definition at line 158 of file Resources.cpp.
IplImage * Resources::InitCapture | ( | float | width = 640.0 , |
|
float | height = 480.0 , |
|||
int | camID = CV_CAP_ANY | |||
) |
Definition at line 63 of file Resources.cpp.
IplImage * Resources::InitCapture | ( | const char * | file | ) |
Definition at line 44 of file Resources.cpp.
ImageProcessor * Resources::InitImageProcessor | ( | int | width, | |
int | height | |||
) |
Definition at line 85 of file Resources.cpp.
void Resources::ReleaseCapture | ( | ) |
Definition at line 105 of file Resources.cpp.
void Resources::ReleaseImageProcessor | ( | ) |
Definition at line 111 of file Resources.cpp.
void Resources::ReleaseShader | ( | int | id | ) |
Definition at line 228 of file Resources.cpp.
void Resources::ReleaseShader | ( | ) |
Definition at line 217 of file Resources.cpp.
int Resources::SearchName | ( | NameList * | list, | |
const char * | filename | |||
) | [private] |
Definition at line 8 of file Resources.cpp.
int Resources::SearchShaderName | ( | const char * | filename | ) |
Definition at line 236 of file Resources.cpp.
void Tracking::Resources::SetShaderPath | ( | const char * | path | ) | [inline] |
Definition at line 64 of file Resources.h.
void Tracking::Resources::ShowLog | ( | bool | b | ) | [inline] |
Definition at line 65 of file Resources.h.
Definition at line 27 of file Resources.h.
CvCapture* Tracking::Resources::m_capture [private] |
Definition at line 32 of file Resources.h.
IplImage* Tracking::Resources::m_image [private] |
Definition at line 33 of file Resources.h.
ImageProcessor* Tracking::Resources::m_ip [private] |
Definition at line 34 of file Resources.h.
ShaderList Tracking::Resources::m_shaderList [private] |
Definition at line 37 of file Resources.h.
Definition at line 40 of file Resources.h.
char Tracking::Resources::m_shaderPath[FN_LEN] [private] |
Definition at line 42 of file Resources.h.
bool Tracking::Resources::m_showlog [private] |
Definition at line 44 of file Resources.h.