text3dwidget offers now users to decide whether it should face the camera or not

This commit is contained in:
Ozan Tonkal
2013-09-08 12:19:14 +02:00
parent 286f81f305
commit 2170559bed
6 changed files with 28 additions and 18 deletions

View File

@@ -62,7 +62,7 @@ namespace cv
void setRenderingProperty(const String &id, int property, double value);
double getRenderingProperty(const String &id, int property);
void setDesiredUpdateRate(double time);
void setDesiredUpdateRate(double rate);
double getDesiredUpdateRate();
void setRepresentation(int representation);

View File

@@ -14,7 +14,6 @@ namespace cv
OPACITY,
LINE_WIDTH,
FONT_SIZE,
COLOR,
REPRESENTATION,
IMMEDIATE_RENDERING,
SHADING
@@ -162,7 +161,7 @@ namespace cv
class CV_EXPORTS Text3DWidget : public Widget3D
{
public:
Text3DWidget(const String &text, const Point3f &position, double text_scale = 1.0, const Color &color = Color::white());
Text3DWidget(const String &text, const Point3f &position, double text_scale = 1.0, bool face_camera = true, const Color &color = Color::white());
void setText(const String &text);
String getText() const;