Exemplo n.º 1
0
CMatrixStatic::CMatrixStatic()
{
	SetNumberOfLines(0);
	SetXCharsPerLine(0);
	m_crOnColor = RGB(63, 181, 255);
	m_crOffColor = RGB(23, 64,  103);
	m_crBackColor = RGB(0,  0,   0);
	m_btimer = false;
	m_bAutoPad = false;
}
Exemplo n.º 2
0
void CMatrixStatic::SetText(LPCTSTR lpszText)
{
	if (m_csStrText != lpszText)
	{
		m_csStrText = lpszText;
		m_bModified = true;
		if (m_iMaxXChars == 0)
			SetXCharsPerLine();
		if (m_iMaxYChars == 0)
			SetNumberOfLines();
		if (m_bImmediateUpdate)
			RedrawWindow(NULL, NULL,  RDW_INVALIDATE | RDW_UPDATENOW | RDW_NOERASE);
		else
			Invalidate();
	}
}
Exemplo n.º 3
0
void
avtLineScanQuery::SetInputParams(const MapNode &params)
{
    if (params.HasNumericEntry("num_lines"))
        SetNumberOfLines(params.GetEntry("num_lines")->ToInt());

    if (params.HasNumericEntry("num_bins"))
        SetNumberOfBins(params.GetEntry("num_bins")->ToInt());

    double min = 0., max = 1.0;
    if (params.HasNumericEntry("min"))
    {
        min = params.GetEntry("min")->ToDouble();
    }

    if (params.HasNumericEntry("max"))
    {
        max = params.GetEntry("max")->ToDouble();
    }

    SetRange(min, max);
}