Image widgets implementation, GridWidget: vtkExtractEdges instead of Wireframe

This commit is contained in:
ozantonkal
2013-07-17 11:35:14 +02:00
parent 769eba7535
commit 40e47e6f3f
3 changed files with 262 additions and 4 deletions

View File

@@ -140,6 +140,28 @@ namespace cv
void setText(const String &text);
String getText() const;
};
class CV_EXPORTS ImageOverlayWidget : public Widget2D
{
public:
ImageOverlayWidget(const Mat &image, const Point2i &pos);
void setImage(const Mat &image);
private:
struct CopyImpl;
};
class CV_EXPORTS Image3DWidget : public Widget3D
{
public:
Image3DWidget(const Mat &image);
void setImage(const Mat &image);
private:
struct CopyImpl;
};
class CV_EXPORTS CloudWidget : public Widget3D
{
@@ -183,6 +205,8 @@ namespace cv
template<> CV_EXPORTS GridWidget Widget::cast<GridWidget>();
template<> CV_EXPORTS Text3DWidget Widget::cast<Text3DWidget>();
template<> CV_EXPORTS TextWidget Widget::cast<TextWidget>();
template<> CV_EXPORTS ImageOverlayWidget Widget::cast<ImageOverlayWidget>();
template<> CV_EXPORTS Image3DWidget Widget::cast<Image3DWidget>();
template<> CV_EXPORTS CloudWidget Widget::cast<CloudWidget>();
template<> CV_EXPORTS CloudNormalsWidget Widget::cast<CloudNormalsWidget>();
template<> CV_EXPORTS MeshWidget Widget::cast<MeshWidget>();