fix crucial bug in get method, hide add and remove methods from user

This commit is contained in:
Ozan Tonkal
2013-09-08 00:15:14 +02:00
parent 2969ec0274
commit 286f81f305
2 changed files with 7 additions and 4 deletions

View File

@@ -101,8 +101,6 @@ namespace cv
static void release();
Viz3d get(const String &window_name);
void add(Viz3d window);
void remove(const String &window_name);
//! window names automatically have Viz - prefix even though not provided by the users
static void generateWindowName(const String &window_name, String &output);
@@ -111,9 +109,14 @@ namespace cv
VizAccessor(); // Singleton
~VizAccessor();
void add(Viz3d window);
void remove(const String &window_name);
static VizAccessor * instance_;
static bool is_instantiated_;
static VizMap viz_map_;
friend class Viz3d;
};
} /* namespace viz */
} /* namespace cv */