widget_accessor.hpp - minimize dependencies

This commit is contained in:
Anatoly Baksheev
2013-07-04 15:11:04 +04:00
parent efa7f09048
commit 141cfd562c
3 changed files with 7 additions and 5 deletions

View File

@@ -1,15 +1,17 @@
#pragma once
#include <opencv2/viz/widgets.hpp>
#include <opencv2/core/cvdef.h>
#include <vtkSmartPointer.h>
#include <vtkLODActor.h>
namespace temp_viz
{
class Widget;
//The class is only that depends on VTK in its interface.
//It is indended for those user who want to develop own widgets system using VTK library API.
//It is indended for those users who want to develop own widgets system using VTK library API.
struct CV_EXPORTS WidgetAccessor
{
static vtkSmartPointer<vtkLODActor> getActor(const Widget &widget);
static vtkSmartPointer<vtkLODActor> getActor(const Widget &widget);
};
}

View File

@@ -6,7 +6,7 @@
namespace temp_viz
{
/////////////////////////////////////////////////////////////////////////////
/// brief The base class for all widgets
/// The base class for all widgets
class CV_EXPORTS Widget
{
public: