LegendItem::LegendItem(QwtPlot* owner) { setRenderHint(QwtPlotItem::RenderAntialiased); setTextPen(QPen(Qt::black)); setBackgroundOpacity(200); setBackgroundMode(ItemBackground); setBorderRadius(4); setAlignment(Qt::AlignTop | Qt::AlignHCenter); setMargin(0); setSpacing(4); setItemMargin(2); attach(owner); }
LegendItem::LegendItem() { setRenderHint( QwtPlotItem::RenderAntialiased ); QColor color( Qt::white ); setTextPen( color ); #if 1 setBorderPen( color ); QColor c( Qt::gray ); c.setAlpha( 200 ); setBackgroundBrush( c ); #endif }
JLegendItem() { setRenderHint(QwtPlotItem::RenderAntialiased); setAlignment(Qt::AlignTop | Qt::AlignRight); setTextPen(QColor(200, 200, 200, 150)); setBorderPen(QColor(150, 150, 150, 50)); setBackgroundBrush(QColor(150, 150, 150, 20)); setBorderRadius(3); setMargin(2); setSpacing(10); setItemMargin(0); QFont _font = font(); _font.setPointSize(8); setFont(_font); }
/** \brief Constructor - does nothing with the kinect driver but inits some internal vars **/ QKinectWrapper::QKinectWrapper() { // Register types used in signal/slot mechanism qRegisterMetaType<QKinect::KinectStatus>( "QKinect::KinectStatus" ); qRegisterMetaType<QKinect::CalibrationStatus>( "QKinect::CalibrationStatus" ); status=QKinect::Idle; g_bNeedPose=FALSE; strcpy(g_strPose,""); displayInfoDepth = true; displayInfoImage = true; displaySkeletonDepth = true; displaySkeletonImage = true; setSkeletonPen(QPen(QBrush(Qt::white),5)); setTextPen(QPen(QBrush(Qt::white),5)); QFont font; font.setPointSize(16); setFont(font); }