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:
@@ -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_;
|
||||
|
Reference in New Issue
Block a user