static void PolarClicked() { UpdatePlane(); dlgPlanePolarShowModal(*(SingleWindow*)dialog->GetRootOwner(), plane); Update(); }
bool dlgPlanePolarShowModal(SingleWindow &parent, Plane &_plane) { plane = _plane; dialog = LoadDialog(CallBackTable, parent, Layout::landscape ? _T("IDR_XML_PLANE_POLAR_L") : _T("IDR_XML_PLANE_POLAR")); assert(dialog != NULL); DockWindow &dock = *(DockWindow *)dialog->FindByName(_T("shape")); PolarShapeEditWidget *shape_editor = new PolarShapeEditWidget(plane.polar_shape); dock.SetWidget(shape_editor); shape_editor->SetDataAccessCallback(PolarChanged); Update(); bool result = (dialog->ShowModal() == mrOK); if (result) { UpdatePlane(); _plane = plane; } delete dialog; return result; }
R3MeshFace:: R3MeshFace(const vector<R3MeshVertex *>& vertices) : vertices(vertices), plane(0, 0, 0, 0), id(0) { UpdatePlane(); }
CBasePoly::CBasePoly( CEditBrush *pBrush, uint32 i0, uint32 i1, uint32 i2, bool bUpdatePlane ) { m_pBrush = pBrush; m_Indices.SetSize( 3 ); m_Indices[0] = i0; m_Indices[1] = i1; m_Indices[2] = i2; if( bUpdatePlane ) UpdatePlane(); }
bool dlgPlaneDetailsShowModal(SingleWindow &parent, Plane &_plane) { plane = _plane; dialog = LoadDialog(CallBackTable, parent, Layout::landscape ? _T("IDR_XML_PLANE_DETAILS_L") : _T("IDR_XML_PLANE_DETAILS")); assert(dialog != NULL); Update(); bool result = (dialog->ShowModal() == mrOK); if (result) { UpdatePlane(); _plane = plane; } delete dialog; return result; }