//-------------------------------------------------------------------------------------------------- /// //-------------------------------------------------------------------------------------------------- void RimPlotCurve::resetAppearance() { setColor(cvf::Color3f(cvf::Color3::BLACK)); setLineThickness(2); setLineStyle(STYLE_SOLID); setSymbol(SYMBOL_NONE); setSymbolSkipDinstance(10); }
DPAngVelPlot::DPAngVelPlot(int type, int system, bool hasgrid, std::string title, int plottype, int units, double linethickness) : DPPlotSettings(type, system, hasgrid, title) { PROGRAMCOLORS = Colors(); setAngVelPlotType(plottype); setUnits(units); setLineThickness(linethickness); this->colors.push_back(PROGRAMCOLORS.colorlist[DEEPORANGE]); }
DrawWindow(int w, int h, std::string name) { // constructor width=w; height=h; window_name = name; cv::namedWindow(window_name, CV_WINDOW_AUTOSIZE ); winx=0; winy=0; grid = cv::Mat( height, width, CV_8UC3 ); // 3 channel color setLineType("solid"); setLineThickness(2); setPenColor(0,0,0); clearWindow(255,255,255); }
void cParameters::read() { QSettings settings(QApplication::organizationName(), QApplication::applicationName()); #ifdef _DEBUG std::cout << "settings location: " << settings.fileName().toStdString().c_str() << std::endl; #endif settings.beginGroup("MainWindow"); setNbFen( settings.value("NbFen", QPoint(1, 1) ).toPoint()); setFullScreen( settings.value("openInFullScreen", false).toBool()); setPosition( settings.value("pos", QPoint(200, 200)).toPoint()); setSzFen( settings.value("size", QSize(800, 600) ).toSize()); settings.endGroup(); settings.beginGroup("Drawing settings"); setLineThickness( settings.value("linethickness", 2.f ).toFloat()); setPointDiameter( settings.value("pointdiameter",4.f ).toFloat()); setGamma( settings.value("gamma",1.f ).toFloat()); setForceGray( settings.value("forceGray", false ).toBool()); setShowMasks( settings.value("showMasks", false ).toBool()); setCenterType( settings.value("SceneCenterType", 0 ).toInt()); setENavigation((eNavigationType)settings.value("NavigationType", 0 ).toInt()); settings.endGroup(); settings.beginGroup("Misc"); setDefPtName( settings.value("defPtName", QString("100")).toString()); setPostFix( settings.value("postFix", QString("_mask")).toString()); setZoomWindowValue(zoomClip( settings.value("zoom", 3.0).toFloat())); setSelectionRadius( settings.value("radius",50).toInt()); setShiftStep(settings.value("shiftStep", 0.5f).toFloat()); settings.endGroup(); settings.beginGroup("Point creation"); setPtCreationMode( static_cast<qTypePts> (settings.value("Mode", qNSM_Pts).toInt())); setPtCreationWindowSize( settings.value("WindowSize",3.f).toFloat()); settings.endGroup(); settings.beginGroup("Language"); setLanguage( settings.value("lang", 0).toInt() ); settings.endGroup(); }