mirror of
https://github.com/opencv/opencv.git
synced 2025-06-12 12:22:51 +08:00
45 lines
914 B
C++
45 lines
914 B
C++
#pragma once
|
|
|
|
#include <opencv2/viz/types.hpp>
|
|
|
|
|
|
namespace temp_viz
|
|
{
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
/// The base class for all widgets
|
|
class CV_EXPORTS Widget
|
|
{
|
|
public:
|
|
Widget();
|
|
Widget(const Widget &other);
|
|
Widget& operator =(const Widget &other);
|
|
|
|
~Widget();
|
|
|
|
void copyTo(Widget &dst);
|
|
|
|
void setColor(const Color &color);
|
|
void setPose(const Affine3f &pose);
|
|
void updatePose(const Affine3f &pose);
|
|
Affine3f getPose() const;
|
|
|
|
private:
|
|
class Impl;
|
|
Impl* impl_;
|
|
|
|
void create();
|
|
void release();
|
|
|
|
friend struct WidgetAccessor;
|
|
};
|
|
|
|
|
|
class CV_EXPORTS LineWidget : public Widget
|
|
{
|
|
public:
|
|
LineWidget(const Point3f &pt1, const Point3f &pt2, const Color &color = Color::white());
|
|
};
|
|
|
|
|
|
}
|