initial base widget implementation

This commit is contained in:
ozantonkal
2013-07-03 18:48:11 +03:00
parent e0b7e63787
commit 54c7dfab83
4 changed files with 165 additions and 3 deletions

View File

@@ -113,4 +113,22 @@ namespace temp_viz
template<typename _Tp> inline bool isNan(const Point3_<_Tp>& p)
{ return isNan(p.x) || isNan(p.y) || isNan(p.z); }
class Widget
{
public:
Widget();
Widget(const String &id);
Widget(const Widget &other);
void setId(const String &id);
void setColor(const Color &color);
void setPose(const Affine3f &pose);
void updatePose(const Affine3f &pose);
Affine3f getPose() const;
private:
class Impl;
cv::Ptr<Impl> impl_;
friend struct WidgetAccessor;
};
}

View File

@@ -0,0 +1,12 @@
#pragma once
#include "precomp.hpp"
#include "types.hpp"
namespace temp_viz
{
struct WidgetAccessor
{
static CV_EXPORTS vtkSmartPointer<vtkActor> getActor(const Widget &widget);
};
}