move frompolyfile to widget class as static method, remove addpolygon and its alikes

This commit is contained in:
ozantonkal
2013-08-22 19:42:19 +02:00
committed by Ozan Tonkal
parent 0bbaf5d47a
commit b032b4dded
7 changed files with 43 additions and 681 deletions

View File

@@ -27,13 +27,6 @@ namespace cv
void setBackgroundColor(const Color& color = Color::black());
//to refactor
bool addPolygonMesh(const Mesh3d& mesh, const String& id = "polygon");
bool updatePolygonMesh(const Mesh3d& mesh, const String& id = "polygon");
bool addPolylineFromPolygonMesh (const Mesh3d& mesh, const String& id = "polyline");
bool addPolygon(const Mat& cloud, const Color& color, const String& id = "polygon");
void showWidget(const String &id, const Widget &widget, const Affine3f &pose = Affine3f::Identity());
void removeWidget(const String &id);
Widget getWidget(const String &id) const;

View File

@@ -16,6 +16,8 @@ namespace cv
Widget();
Widget(const Widget &other);
Widget& operator =(const Widget &other);
static Widget fromPlyFile(const String &file_name);
~Widget();