rendering properties in Widget and Viz3d

This commit is contained in:
ozantonkal
2013-08-24 11:49:56 +02:00
committed by Ozan Tonkal
parent b032b4dded
commit cf36b8f817
6 changed files with 137 additions and 183 deletions

View File

@@ -7,7 +7,6 @@
#include <opencv2/core.hpp>
#include <opencv2/viz/types.hpp>
#include <opencv2/viz/widgets.hpp>
#include <boost/concept_check.hpp>
namespace cv
{
@@ -55,6 +54,9 @@ namespace cv
void registerKeyboardCallback(KeyboardCallback callback, void* cookie = 0);
void registerMouseCallback(MouseCallback callback, void* cookie = 0);
void setRenderingProperty(int property, double value, const String &id);
double getRenderingProperty(int property, const String &id);
private:
struct VizImpl;

View File

@@ -16,10 +16,12 @@ namespace cv
Widget();
Widget(const Widget &other);
Widget& operator =(const Widget &other);
~Widget();
static Widget fromPlyFile(const String &file_name);
~Widget();
void setRenderingProperty(int property, double value);
double getRenderingProperty(int property) const;
template<typename _W> _W cast();
private:
@@ -43,7 +45,6 @@ namespace cv
Affine3f getPose() const;
void setColor(const Color &color);
private:
struct MatrixConverter;