DlgEditPointGraph::DlgEditPointGraph (MainWindow &mainWindow, const DocumentModelCoords &modelCoords, const DocumentModelGeneral &modelGeneral, const MainWindowModel &modelMainWindow, const Transformation &transformation, const double *xInitialValue, const double *yInitialValue) : QDialog (&mainWindow), m_changed (false), m_modelCoords (modelCoords), m_modelGeneral (modelGeneral), m_modelMainWindow (modelMainWindow) { LOG4CPP_INFO_S ((*mainCat)) << "DlgEditPointGraph::DlgEditPointGraph"; QVBoxLayout *layout = new QVBoxLayout; setLayout (layout); setCursor (QCursor (Qt::ArrowCursor)); setModal(true); setWindowTitle (tr ("Edit Curve Point(s)")); createCoords (layout); createHint (layout); createOkCancel (layout); initializeGraphCoordinates (xInitialValue, yInitialValue, transformation); m_changed = false; // Initialization of coordinate vaues changed this flag so we reset it and update the controls updateControls (); }
void Toroid::init(){ vertCount = detail * segs; triFaceCount = vertCount*2; indicesCount = triFaceCount*3; allocateMemory(); createVertices(); createIndices(); createFaces(); createVertexNormals(); createCoords(); }