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; }
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(); } }
void avtLineScanQuery::SetInputParams(const MapNode ¶ms) { 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); }