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,13 +1,15 @@
#pragma once #pragma once
#include <opencv2/viz/widgets.hpp> #include <opencv2/core/cvdef.h>
#include <vtkSmartPointer.h> #include <vtkSmartPointer.h>
#include <vtkLODActor.h> #include <vtkLODActor.h>
namespace temp_viz namespace temp_viz
{ {
class Widget;
//The class is only that depends on VTK in its interface. //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 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 namespace temp_viz
{ {
///////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////////////////////////////
/// brief The base class for all widgets /// The base class for all widgets
class CV_EXPORTS Widget class CV_EXPORTS Widget
{ {
public: public:

View File

@ -1,7 +1,7 @@
#include <opencv2/viz/types.hpp> #include <opencv2/viz/types.hpp>
////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////////////////////////////////
/// cv::Color /// cv::viz::Color
temp_viz::Color::Color() : Scalar(0, 0, 0) {} temp_viz::Color::Color() : Scalar(0, 0, 0) {}
temp_viz::Color::Color(double gray) : Scalar(gray, gray, gray) {} temp_viz::Color::Color(double gray) : Scalar(gray, gray, gray) {}