#include "DrawInterfaceWidget.h"
#include <iostream>
using namespace std;

DrawInterfaceWidget::DrawInterfaceWidget(int x, 
					 int y, 
					 int w, 
					 int h,
					 float min_x, 
					 float min_y, 
					 float max_x, 
					 float max_y,
					 const char * s) : 
  DrawObjectWidget(x,y,w,h,min_x,min_y,max_x,max_y,s) {}

DrawInterfaceWidget::DrawInterfaceWidget(int x, 
					 int y, 
					 int w, 
					 int h,
					 const char * s) : 
  DrawObjectWidget(x,y,w,h,s) {}

void DrawInterfaceWidget::drawCircle(float x,float y,float w, float h, 
				     uchar red, uchar green, uchar blue,
				     bool filled) {
  addDrawObject(new DrawObjectCircle(x,y,w,h,red,green,blue,filled));
} 

void DrawInterfaceWidget::drawCircle(float x,float y,float r, 
				     uchar red, uchar green, uchar blue,
				     bool filled) {
  addDrawObject(new DrawObjectCircle(x,y,r,red,green,blue,filled));
}

void DrawInterfaceWidget::drawRectangle(float x,float y,float w, float h, 
				     uchar red, uchar green, uchar blue,
				     bool filled) {
  addDrawObject(new DrawObjectRectangle(x,y,w,h,red,green,blue,filled));
} 

void DrawInterfaceWidget::drawImage(float x, float y, float w, float h,
				    uchar * rgb_image, uint columns, 
				    uint rows) {
  addDrawObject(new DrawObjectImage(x,y,w,h,rgb_image,columns,rows));
}

void DrawInterfaceWidget::drawLine(float x1, float y1, float x2, float y2,
				   uchar red, uchar green, uchar blue, 
				   int style, int width) {
  addDrawObject(new DrawObjectLine(x1,y1,x2,y2,red,green,blue,style,width));
}

void DrawInterfaceWidget::drawText(const char * _text, float _x, float _y,
				   uchar _red, uchar _green, uchar _blue,
				   int _font_id,int _font_size) {
  addDrawObject(new DrawObjectText(_text,_x,_y,
				   _red,_green,_blue,
				   _font_id,_font_size));
}
