RingChart::RingChart(QWidget *parent) : PlotterBase(parent) { setAntiAliasing(true); m_margin = 3; }
void showWindow(const std::string& title, const int width, const int height, bool fullscreen) { debug("jngl::showWindow(\""); debug(title); debug("\", "); debug(width); debug(", "); debug(height); debug(", "); debug(fullscreen); debug(");\n"); if (pWindow && width == pWindow->getWidth() && height == pWindow->getHeight() && fullscreen == pWindow->getFullscreen()) { return jngl::setTitle(title); } bool isMouseVisible = pWindow ? pWindow->getMouseVisible() : true; hideWindow(); if (width == 0) { throw std::runtime_error("Width Is 0"); } if (height == 0) { throw std::runtime_error("Height Is 0"); } pWindow.Set(new Window(title, width, height, fullscreen)); pWindow->SetMouseVisible(isMouseVisible); setAntiAliasing(antiAliasingEnabled); }
PieChart::PieChart(QWidget *parent) : PlotterBase(parent) { setAntiAliasing(true); m_index = 0; m_margin = 3; }