InteractivePointer::InteractivePointer()
{
    this->setScaledContents(true);
    this->setSizePolicy(QSizePolicy::Ignored, QSizePolicy::Ignored);
    this->setFixedWidth(pointerSizeX());
    this->setFixedHeight(pointerSizeY());
    //this->setTextFormat(Qt::RichText);
    this->setMargin(0);
    this->setContentsMargins(0, 0, 0, 0);
    this->setAlignment(Qt::AlignTop);

    setPointerSizeX(40);
    setPointerSizeY(40);
    setWinSize(3);

    // Initialise an image to hold pointer data.
    m_imagep = new QImage(8, 8, QImage::Format_ARGB32);
    m_pixmap = QPixmap::fromImage(*m_imagep);

    // Set pixelmap to this label.
    this->setPixmap(m_pixmap);

    // Set font size.
    setFontSize(9);
    m_labelFont.setPointSize(fontSize());

    // Font metrics in order to adjust pointer size
    QFontMetrics fm(m_labelFont);
    m_pixelsWideT = fm.width("000");
    m_pixelsWideS = fm.width(" ");
    m_pixelsHighT = fm.height();
    m_pixelsHighS = fm.lineSpacing();
}
Пример #2
0
Node::Node()
{
	_rotation = Vector3f(0.0f, 0.0f, 0.0f);
	_scaling = Vector3f(1.0f, 1.0f, 1.0f);
	_translation = Vector3f(0.0f, 0.0f, 0.0f);
	setWinSize(winWidth, winHeight);
	setFOV(30.0f);
	setNearClippingPlane(1.0f);
	setFarClippingPlane(100.0f);
}
Пример #3
0
 PyrLkOptFlowEstimatorBase() { setWinSize(Size(21, 21)); setMaxLevel(3); }