fixes based on the feedback: window name prefix is automatically added when it is not there, singleton class returns reference instead of pointer, destructor is private, release function implemented

This commit is contained in:
ozantonkal
2013-08-23 18:49:21 +02:00
parent 6bc393676d
commit d83be1dccc
5 changed files with 50 additions and 20 deletions

View File

@@ -95,15 +95,18 @@ namespace cv
class CV_EXPORTS VizAccessor
{
public:
~VizAccessor();
static VizAccessor * getInstance();
static VizAccessor & getInstance();
static void release();
Viz3d get(const String &window_name);
void add(Viz3d window);
void remove(const String &window_name);
static void generateWindowName(const String &window_name, String &output);
private:
VizAccessor(); // Singleton
~VizAccessor();
static VizAccessor * instance_;
static bool is_instantiated_;