diff --git a/Polyhedron/demo/Polyhedron/MainWindow.cpp b/Polyhedron/demo/Polyhedron/MainWindow.cpp index ecfcf4c045e..5176e8f4abc 100644 --- a/Polyhedron/demo/Polyhedron/MainWindow.cpp +++ b/Polyhedron/demo/Polyhedron/MainWindow.cpp @@ -868,7 +868,7 @@ void MainWindow::reload_item() { new_item->setColor(item->color()); new_item->setRenderingMode(item->renderingMode()); new_item->setVisible(item->visible()); - new_item->invalidate_OpenGLBuffers(); + new_item->invalidateOpenGLBuffers(); scene->replaceItem(item_index, new_item, true); item->deleteLater(); } diff --git a/Polyhedron/demo/Polyhedron/Plugins/AABB_tree/Cut_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/AABB_tree/Cut_plugin.cpp index 16e02c5b229..ff882bb86a7 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/AABB_tree/Cut_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/AABB_tree/Cut_plugin.cpp @@ -82,7 +82,7 @@ public: } // Wireframe OpenGL drawing in a display list - void invalidate_OpenGLBuffers() + void invalidateOpenGLBuffers() { compute_elements(); are_buffers_filled = false; @@ -167,7 +167,7 @@ public: bbox.ymax(), bbox.zmax()); } - void invalidate_OpenGLBuffers() + void invalidateOpenGLBuffers() { compute_elements(); are_buffers_filled = false; @@ -480,7 +480,7 @@ void Polyhedron_demo_cut_plugin::cut() { } messages->information(QString("cut (%1 ms). %2 edges.").arg(time.elapsed()).arg(edges_item->edges.size())); - edges_item->invalidate_OpenGLBuffers(); + edges_item->invalidateOpenGLBuffers(); scene->itemChanged(edges_item); } QApplication::restoreOverrideCursor(); diff --git a/Polyhedron/demo/Polyhedron/Plugins/Convex_decomposition/Nef_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Convex_decomposition/Nef_plugin.cpp index 3e2e55ae20e..22ba998b4d7 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Convex_decomposition/Nef_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Convex_decomposition/Nef_plugin.cpp @@ -117,7 +117,7 @@ Polyhedron_demo_nef_plugin::on_actionToNef_triggered() new_nef_item->setRenderingMode(item->renderingMode()); item->setVisible(false); scene->itemChanged(index); - new_nef_item->invalidate_OpenGLBuffers(); + new_nef_item->invalidateOpenGLBuffers(); scene->addItem(new_nef_item); std::cerr << "ok (" << time.elapsed() << " ms)" << std::endl; QApplication::restoreOverrideCursor(); diff --git a/Polyhedron/demo/Polyhedron/Plugins/IO/GOCAD_io_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/IO/GOCAD_io_plugin.cpp index 8aea36a586c..1977183a870 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/IO/GOCAD_io_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/IO/GOCAD_io_plugin.cpp @@ -73,7 +73,7 @@ Polyhedron_demo_gocad_plugin::load(QFileInfo fileinfo) { if(qcolor.isValid()) { item->setColor(qcolor); - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); } diff --git a/Polyhedron/demo/Polyhedron/Plugins/IO/Polylines_io_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/IO/Polylines_io_plugin.cpp index c4a1fb54469..ffb50fe7f19 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/IO/Polylines_io_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/IO/Polylines_io_plugin.cpp @@ -146,7 +146,7 @@ Polyhedron_demo_polylines_io_plugin::load(QFileInfo fileinfo) { item->setColor(Qt::black); item->setProperty("polylines metadata", polylines_metadata); std::cerr << "Number of polylines in item: " << item->polylines.size() << std::endl; - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); return item; } @@ -259,7 +259,7 @@ void Polyhedron_demo_polylines_io_plugin::addPolylineButton_clicked() item->setName(name); item->setColor(Qt::black); item->setProperty("polylines metadata", polylines_metadata); - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); scene->addItem(item); } } diff --git a/Polyhedron/demo/Polyhedron/Plugins/IO/XYZ_io_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/IO/XYZ_io_plugin.cpp index 64fe4d5c18d..c6b524be443 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/IO/XYZ_io_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/IO/XYZ_io_plugin.cpp @@ -209,7 +209,7 @@ void Polyhedron_demo_xyz_plugin::addPointSetButton_clicked() QString name = QString("Point_set #%1").arg(QString::number(nb_of_point_set)); item->setName(name); item->setColor(Qt::black); - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); scene->addItem(item); } } diff --git a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3_plugin/Detect_sharp_edges_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3_plugin/Detect_sharp_edges_plugin.cpp index 20dd0e740f4..44d30bdda4e 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Mesh_3_plugin/Detect_sharp_edges_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Mesh_3_plugin/Detect_sharp_edges_plugin.cpp @@ -111,7 +111,7 @@ void Polyhedron_demo_detect_sharp_edges_plugin::detectSharpEdges(bool input_dial CGAL::detect_sharp_edges(pMesh, angle); //update item - scene->item(tuple.first)->invalidate_OpenGLBuffers(); + scene->item(tuple.first)->invalidateOpenGLBuffers(); // update scene scene->itemChanged(tuple.first); diff --git a/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Clip_polyhedron_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Clip_polyhedron_plugin.cpp index 8ec351b42ef..11cb3b10ceb 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Clip_polyhedron_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Clip_polyhedron_plugin.cpp @@ -198,11 +198,11 @@ public Q_SLOTS: new_item->setColor(poly->color()); new_item->setRenderingMode(poly->renderingMode()); new_item->setVisible(poly->visible()); - new_item->invalidate_OpenGLBuffers(); + new_item->invalidateOpenGLBuffers(); new_item->setProperty("source filename", poly->property("source filename")); scene->replaceItem(scene->item_id(poly),new_item); delete poly; - new_item->invalidate_OpenGLBuffers(); + new_item->invalidateOpenGLBuffers(); viewer->updateGL(); messages->information(QString("%1 clipped").arg(new_item->name())); } @@ -215,7 +215,7 @@ public Q_SLOTS: else { CGAL::corefinement::inplace_clip_open_polyhedron(*(poly->polyhedron()),plane->plane()); - poly->invalidate_OpenGLBuffers(); + poly->invalidateOpenGLBuffers(); viewer->updateGL(); messages->information(QString("%1 clipped").arg(poly->name())); } diff --git a/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Corefinement_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Corefinement_plugin.cpp index a64b51861b0..a6abd0f2cea 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Corefinement_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Corefinement_plugin.cpp @@ -170,7 +170,7 @@ void Polyhedron_demo_corefinement_plugin::corefinement() new_item->setColor(Qt::green); new_item->setRenderingMode(Wireframe); scene->addItem(new_item); - new_item->invalidate_OpenGLBuffers(); + new_item->invalidateOpenGLBuffers(); std::cout << "ok (" << time.elapsed() << " ms)" << std::endl; } diff --git a/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Intersection_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Intersection_plugin.cpp index 8d4f4bc3b59..213ddfb395d 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Intersection_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Intersection_plugin.cpp @@ -212,7 +212,7 @@ void Polyhedron_demo_intersection_plugin::intersection() new_item->setColor(Qt::green); new_item->setRenderingMode(Wireframe); scene->addItem(new_item); - new_item->invalidate_OpenGLBuffers(); + new_item->invalidateOpenGLBuffers(); QApplication::restoreOverrideCursor(); } diff --git a/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Scene_combinatorial_map_item.cpp b/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Scene_combinatorial_map_item.cpp index ab567a13e5c..6780b157d03 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Scene_combinatorial_map_item.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Operations_on_polyhedra/Scene_combinatorial_map_item.cpp @@ -52,7 +52,7 @@ void Scene_combinatorial_map_item::set_next_volume(){ ++volume_to_display; volume_to_display=volume_to_display%(combinatorial_map().attributes<3>().size()+1); are_buffers_filled = false; - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); Q_EMIT itemChanged(); if (exportSelectedVolume!=NULL && ( volume_to_display==1 || volume_to_display==0 ) ) diff --git a/Polyhedron/demo/Polyhedron/Plugins/PCA/Scene_polyhedron_transform_item.cpp b/Polyhedron/demo/Polyhedron/Plugins/PCA/Scene_polyhedron_transform_item.cpp index dfd78cdb016..3b5ad7959bc 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PCA/Scene_polyhedron_transform_item.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PCA/Scene_polyhedron_transform_item.cpp @@ -13,7 +13,7 @@ Scene_polyhedron_transform_item::Scene_polyhedron_transform_item(const qglviewer { frame->setPosition(pos); nb_lines = 0; - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); } void Scene_polyhedron_transform_item::initialize_buffers(CGAL::Three::Viewer_interface *viewer =0) const @@ -115,7 +115,7 @@ Scene_polyhedron_transform_item::compute_bbox() const { } -void Scene_polyhedron_transform_item::invalidate_OpenGLBuffers() +void Scene_polyhedron_transform_item::invalidateOpenGLBuffers() { compute_elements(); are_buffers_filled = false; diff --git a/Polyhedron/demo/Polyhedron/Plugins/PCA/Scene_polyhedron_transform_item.h b/Polyhedron/demo/Polyhedron/Plugins/PCA/Scene_polyhedron_transform_item.h index 9e76ddd90ce..bc21640169c 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PCA/Scene_polyhedron_transform_item.h +++ b/Polyhedron/demo/Polyhedron/Plugins/PCA/Scene_polyhedron_transform_item.h @@ -27,7 +27,7 @@ public: const Scene_polyhedron_item* getBase() const{ return poly_item; }; const qglviewer::Vec& center() const { return center_; } virtual bool supportsRenderingMode(RenderingMode m) const { return m==Wireframe ; } - virtual void invalidate_OpenGLBuffers(); + virtual void invalidateOpenGLBuffers(); virtual bool keyPressEvent(QKeyEvent*); private: diff --git a/Polyhedron/demo/Polyhedron/Plugins/PCA/Trivial_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PCA/Trivial_plugin.cpp index 9b67b9207c5..f27e77a2a2d 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PCA/Trivial_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PCA/Trivial_plugin.cpp @@ -62,7 +62,7 @@ public: } - void invalidate_OpenGLBuffers() + void invalidateOpenGLBuffers() { compute_elements(); are_buffers_filled = false; diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Hole_filling_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Hole_filling_plugin.cpp index 9b7c0239b0d..49facb2a122 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Hole_filling_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Hole_filling_plugin.cpp @@ -341,7 +341,7 @@ protected: void change_poly_item_by_blocking(Scene_polyhedron_item* poly_item, Scene_hole_visualizer* collection) { if(collection) collection->block_poly_item_changed = true; - poly_item->invalidate_OpenGLBuffers(); + poly_item->invalidateOpenGLBuffers(); scene->itemChanged(poly_item); if(collection) collection->block_poly_item_changed = false; } diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Inside_out_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Inside_out_plugin.cpp index 2ab21d7d696..f351191e508 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Inside_out_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Inside_out_plugin.cpp @@ -65,11 +65,11 @@ void Polyhedron_demo_inside_out_plugin::on_actionInsideOut_triggered() // inside out CGAL::Polygon_mesh_processing::reverse_face_orientations(*pMesh); - poly_item->invalidate_OpenGLBuffers(); + poly_item->invalidateOpenGLBuffers(); } else { soup_item->inside_out(); - soup_item->invalidate_OpenGLBuffers(); + soup_item->invalidateOpenGLBuffers(); } // update scene diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Isotropic_remeshing_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Isotropic_remeshing_plugin.cpp index 2befea075e4..df42836df91 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Isotropic_remeshing_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Isotropic_remeshing_plugin.cpp @@ -229,7 +229,7 @@ public Q_SLOTS: .protect_constraints(protect) .smooth_along_features(smooth_features)); } - poly_item->invalidate_OpenGLBuffers(); + poly_item->invalidateOpenGLBuffers(); Q_EMIT poly_item->itemChanged(); } else{ @@ -329,7 +329,7 @@ public Q_SLOTS: BOOST_FOREACH(Scene_polyhedron_item* poly_item, selection) { - poly_item->invalidate_OpenGLBuffers(); + poly_item->invalidateOpenGLBuffers(); Q_EMIT poly_item->itemChanged(); } diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Jet_fitting_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Jet_fitting_plugin.cpp index 8b6aeb26ba0..2471c534a0b 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Jet_fitting_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Jet_fitting_plugin.cpp @@ -132,8 +132,8 @@ void Polyhedron_demo_jet_fitting_plugin::on_actionEstimateCurvature_triggered() scene->addItem(max_curv); scene->addItem(min_curv); - max_curv->invalidate_OpenGLBuffers(); - min_curv->invalidate_OpenGLBuffers(); + max_curv->invalidateOpenGLBuffers(); + min_curv->invalidateOpenGLBuffers(); // default cursor QApplication::restoreOverrideCursor(); diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Join_and_split_polyhedra_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Join_and_split_polyhedra_plugin.cpp index d690457844a..4e9c0b6c4da 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Join_and_split_polyhedra_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Join_and_split_polyhedra_plugin.cpp @@ -84,7 +84,7 @@ void Polyhedron_demo_join_and_split_polyhedra_plugin::on_actionJoinPolyhedra_tri } } - mainSelectionItem->invalidate_OpenGLBuffers(); + mainSelectionItem->invalidateOpenGLBuffers(); scene->itemChanged(mainSelectionIndex); //remove the other items @@ -166,7 +166,7 @@ void Polyhedron_demo_join_and_split_polyhedra_plugin::on_actionColorConnectedCom CGAL::internal::corefinement::Dummy_true(), marker ); - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); scene->itemChanged(item); } } diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Mean_curvature_flow_skeleton_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Mean_curvature_flow_skeleton_plugin.cpp index c4a33d53915..57a7667b00c 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Mean_curvature_flow_skeleton_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Mean_curvature_flow_skeleton_plugin.cpp @@ -333,7 +333,7 @@ public: { CGAL::Polyhedron_copy_3 modifier(mcs->meso_skeleton()); meso_skeleton->delegate(modifier); - scene->item(contractedItemIndex)->invalidate_OpenGLBuffers(); + scene->item(contractedItemIndex)->invalidateOpenGLBuffers(); scene->itemChanged(contractedItemIndex); } @@ -513,7 +513,7 @@ void Polyhedron_demo_mean_curvature_flow_skeleton_plugin::on_actionConvert_to_me skeleton_item->setName(QString("Medial skeleton curve of %1").arg(item->name())); scene->addItem(skeleton_item); - skeleton_item->invalidate_OpenGLBuffers(); + skeleton_item->invalidateOpenGLBuffers(); item->setPointsMode(); @@ -664,7 +664,7 @@ void Polyhedron_demo_mean_curvature_flow_skeleton_plugin::on_actionDegeneracy() } // update scene update_meso_skeleton(); - scene->item(fixedPointsItemIndex)->invalidate_OpenGLBuffers(); + scene->item(fixedPointsItemIndex)->invalidateOpenGLBuffers(); scene->itemChanged(fixedPointsItemIndex); scene->setSelectedItem(index); QApplication::restoreOverrideCursor(); @@ -828,7 +828,7 @@ void Polyhedron_demo_mean_curvature_flow_skeleton_plugin::on_actionSkeletonize() skeleton->setName(QString("skeleton curve of %1").arg(item->name())); scene->addItem(skeleton); - skeleton->invalidate_OpenGLBuffers(); + skeleton->invalidateOpenGLBuffers(); // set the fixed points and contracted mesh as invisible if (fixedPointsItemIndex >= 0) @@ -900,7 +900,7 @@ void Polyhedron_demo_mean_curvature_flow_skeleton_plugin::on_actionConverge() delete temp; } - scene->item(fixedPointsItemIndex)->invalidate_OpenGLBuffers(); + scene->item(fixedPointsItemIndex)->invalidateOpenGLBuffers(); scene->itemChanged(fixedPointsItemIndex); update_meso_skeleton(); scene->setSelectedItem(index); diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Orient_soup_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Orient_soup_plugin.cpp index cf17b0921d4..bc9b54b108c 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Orient_soup_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Orient_soup_plugin.cpp @@ -109,12 +109,12 @@ void Polyhedron_demo_orient_soup_plugin::orient() poly_item->setColor(item->color()); poly_item->setRenderingMode(item->renderingMode()); poly_item->setVisible(item->visible()); - poly_item->invalidate_OpenGLBuffers(); + poly_item->invalidateOpenGLBuffers(); poly_item->setProperty("source filename", item->property("source filename")); scene->replaceItem(index, poly_item); delete item; } else { - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); scene->itemChanged(item); } diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Point_inside_polyhedron_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Point_inside_polyhedron_plugin.cpp index 734aa3104ce..5af4869694a 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Point_inside_polyhedron_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Point_inside_polyhedron_plugin.cpp @@ -177,7 +177,7 @@ public Q_SLOTS: Q_FOREACH(CGAL::Three::Scene_interface::Item_id id, scene->selectionIndices()) { Scene_points_with_normal_item* point_item = qobject_cast(scene->item(id)); if(point_item) { - point_item->invalidate_OpenGLBuffers(); + point_item->invalidateOpenGLBuffers(); scene->itemChanged(point_item); } } diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Polyhedron_slicer_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Polyhedron_slicer_plugin.cpp index 8318c8b6d86..24e4c8f1584 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Polyhedron_slicer_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Polyhedron_slicer_plugin.cpp @@ -311,7 +311,7 @@ void Polyhedron_demo_polyhedron_slicer_plugin::on_Generate_button_clicked() new_polylines_item->setColor(Qt::green); new_polylines_item->setRenderingMode(Wireframe); scene->addItem(new_polylines_item); - new_polylines_item->invalidate_OpenGLBuffers(); + new_polylines_item->invalidateOpenGLBuffers(); } } } diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Polyhedron_stitching_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Polyhedron_stitching_plugin.cpp index c314cbdc93d..63d9d50d8fa 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Polyhedron_stitching_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Polyhedron_stitching_plugin.cpp @@ -141,7 +141,7 @@ void Polyhedron_demo_polyhedron_stitching_plugin::on_actionDetectBorders_trigger new_item->setName(tr("Boundary of %1").arg(item->name())); new_item->setColor(Qt::red); scene->addItem(new_item); - new_item->invalidate_OpenGLBuffers(); + new_item->invalidateOpenGLBuffers(); } } } @@ -158,7 +158,7 @@ void Polyhedron_demo_polyhedron_stitching_plugin::on_actionStitchBorders_trigger { Polyhedron* pMesh = item->polyhedron(); CGAL::Polygon_mesh_processing::stitch_borders(*pMesh); - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); scene->itemChanged(item); } } diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Repair_polyhedron_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Repair_polyhedron_plugin.cpp index 2202c137b4d..c735910be4f 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Repair_polyhedron_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Repair_polyhedron_plugin.cpp @@ -88,7 +88,7 @@ void Polyhedron_demo_repair_polyhedron_plugin::on_actionRemoveIsolatedVertices_t *poly_item->polyhedron()); messages->information(tr(" %1 isolated vertices have been removed.") .arg(nbv)); - poly_item->invalidate_OpenGLBuffers(); + poly_item->invalidateOpenGLBuffers(); Q_EMIT poly_item->itemChanged(); } } @@ -106,7 +106,7 @@ void Polyhedron_demo_repair_polyhedron_plugin::on_actionRemoveDegenerateFaces_tr *poly_item->polyhedron()); messages->information(tr(" %1 degenerate faces have been removed.") .arg(nbv)); - poly_item->invalidate_OpenGLBuffers(); + poly_item->invalidateOpenGLBuffers(); Q_EMIT poly_item->itemChanged(); } } diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Selection_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Selection_plugin.cpp index 4b480117f61..f9b7212c26c 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Selection_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Selection_plugin.cpp @@ -305,7 +305,7 @@ public Q_SLOTS: Scene_polyhedron_item* poly_item = new Scene_polyhedron_item(); if(selection_item->export_selected_facets_as_polyhedron(poly_item->polyhedron())) { poly_item->setName(QString("%1-facets").arg(selection_item->name())); - poly_item->invalidate_OpenGLBuffers(); // for init() + poly_item->invalidateOpenGLBuffers(); // for init() scene->setSelectedItem( scene->addItem(poly_item) ); scene->itemChanged(poly_item); } @@ -358,7 +358,7 @@ public Q_SLOTS: scene->erase(item_id); return; } - selection_item->invalidate_OpenGLBuffers(); + selection_item->invalidateOpenGLBuffers(); scene->itemChanged(selection_item); } // now set default params both for selection items coming from selection_io, or on_Create_selection_item_button_clicked diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Self_intersection_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Self_intersection_plugin.cpp index bc899572099..e1f880bfd82 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Self_intersection_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Self_intersection_plugin.cpp @@ -84,7 +84,7 @@ void Polyhedron_demo_self_intersection_plugin::on_actionSelfIntersection_trigger selection_item->selected_facets.insert(fb->first); selection_item->selected_facets.insert(fb->second); } - selection_item->invalidate_OpenGLBuffers(); + selection_item->invalidateOpenGLBuffers(); selection_item->setName(tr("%1 (selection) (intersecting triangles)").arg(item->name())); scene->addItem(selection_item); item->setRenderingMode(Wireframe); diff --git a/Polyhedron/demo/Polyhedron/Plugins/PMP/Triangulate_facets_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/PMP/Triangulate_facets_plugin.cpp index 93cb32f47ea..6d798ca0668 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/PMP/Triangulate_facets_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/PMP/Triangulate_facets_plugin.cpp @@ -97,7 +97,7 @@ public Q_SLOTS: } CGAL_assertion_code(pMesh->normalize_border()); // CGAL_assertion(pMesh->is_valid(true, 3)); - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); scene->itemChanged(item); // default cursor QApplication::restoreOverrideCursor(); @@ -127,7 +127,7 @@ public Q_SLOTS: CGAL_assertion_code(pMesh->normalize_border()); CGAL_assertion(pMesh->is_valid(false, 3)); - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); scene->itemChanged(item); // default cursor QApplication::restoreOverrideCursor(); diff --git a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Merge_point_sets_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Merge_point_sets_plugin.cpp index c2bee2a2fe6..3425b90f8fc 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Merge_point_sets_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Merge_point_sets_plugin.cpp @@ -77,7 +77,7 @@ void Polyhedron_demo_merge_point_sets_plugin::on_actionMergePointSets_triggered( } - mainSelectionItem->invalidate_OpenGLBuffers(); + mainSelectionItem->invalidateOpenGLBuffers(); scene->itemChanged(mainSelectionIndex); //remove the other items diff --git a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_bilateral_smoothing_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_bilateral_smoothing_plugin.cpp index c82a370587a..1d4732d2107 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_bilateral_smoothing_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_bilateral_smoothing_plugin.cpp @@ -117,7 +117,7 @@ void Polyhedron_demo_point_set_bilateral_smoothing_plugin::on_actionBilateralSmo << std::endl; // Updates scene - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); scene->itemChanged(index); QApplication::restoreOverrideCursor(); diff --git a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_normal_estimation_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_normal_estimation_plugin.cpp index 4c3d8286702..174ca2f28ac 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_normal_estimation_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_normal_estimation_plugin.cpp @@ -131,7 +131,7 @@ void Polyhedron_demo_point_set_normal_estimation_plugin::on_actionNormalInversio for(Point_set::iterator it = points->begin(); it != points->end(); ++it){ it->normal() = -1 * it->normal(); } - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); scene->itemChanged(item); } } @@ -259,7 +259,7 @@ void Polyhedron_demo_point_set_normal_estimation_plugin::on_actionNormalEstimati points->set_first_selected (first_unoriented_point); // Updates scene - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); scene->itemChanged(index); QApplication::restoreOverrideCursor(); @@ -276,7 +276,7 @@ void Polyhedron_demo_point_set_normal_estimation_plugin::on_actionNormalEstimati else { // Updates scene - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); scene->itemChanged(index); QApplication::restoreOverrideCursor(); diff --git a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_outliers_removal_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_outliers_removal_plugin.cpp index e72b2edb590..9a925f402b3 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_outliers_removal_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_outliers_removal_plugin.cpp @@ -106,7 +106,7 @@ void Polyhedron_demo_point_set_outliers_removal_plugin::on_actionOutlierRemoval_ points->set_first_selected (first_point_to_remove); // Updates scene - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); scene->itemChanged(index); QApplication::restoreOverrideCursor(); diff --git a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_selection_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_selection_plugin.cpp index ff7d8c7fd8a..8c160271acc 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_selection_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_selection_plugin.cpp @@ -391,7 +391,7 @@ protected: point_set_item->point_set()->set_first_selected (point_set_item->point_set()->begin() + size); } - point_set_item->invalidate_OpenGLBuffers(); + point_set_item->invalidateOpenGLBuffers(); } @@ -475,7 +475,7 @@ public Q_SLOTS: new_item->point_set()->push_back(*it); } new_item->resetSelection(); - new_item->invalidate_OpenGLBuffers(); + new_item->invalidateOpenGLBuffers(); scene->addItem(new_item); } diff --git a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_simplification_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_simplification_plugin.cpp index bf487a8a284..f3c9d958990 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_simplification_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_simplification_plugin.cpp @@ -182,7 +182,7 @@ void Polyhedron_demo_point_set_simplification_plugin::on_actionSimplify_triggere points->set_first_selected(first_point_to_remove); // Updates scene - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); scene->itemChanged(index); QApplication::restoreOverrideCursor(); diff --git a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_smoothing_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_smoothing_plugin.cpp index 5e86c542b6e..07b3e83fac4 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_smoothing_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_smoothing_plugin.cpp @@ -87,7 +87,7 @@ void Polyhedron_demo_point_set_smoothing_plugin::on_actionJetSmoothing_triggered item->set_has_normals(false); // update scene - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); scene->itemChanged(index); QApplication::restoreOverrideCursor(); diff --git a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_upsampling_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_upsampling_plugin.cpp index dd96b8c285a..54b257bbde6 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_upsampling_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Point_set_upsampling_plugin.cpp @@ -135,7 +135,7 @@ void Polyhedron_demo_point_set_upsampling_plugin::on_actionEdgeAwareUpsampling_t << std::endl; // Updates scene - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); scene->itemChanged(index); QApplication::restoreOverrideCursor(); diff --git a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Surface_reconstruction_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Surface_reconstruction_plugin.cpp index c5271da39ed..ace8103752b 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Point_set/Surface_reconstruction_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Point_set/Surface_reconstruction_plugin.cpp @@ -565,7 +565,7 @@ void Polyhedron_demo_surface_reconstruction_plugin::automatic_reconstruction new_item->setRenderingMode(pts_item->renderingMode()); new_item->setVisible(pts_item->visible()); new_item->resetSelection(); - new_item->invalidate_OpenGLBuffers(); + new_item->invalidateOpenGLBuffers(); points = new_item->point_set(); std::copy (pts_item->point_set()->begin(), pts_item->point_set()->end(), diff --git a/Polyhedron/demo/Polyhedron/Plugins/Subdivision_methods/Subdivision_methods_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Subdivision_methods/Subdivision_methods_plugin.cpp index e792b232f22..a2e0cf79125 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Subdivision_methods/Subdivision_methods_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Subdivision_methods/Subdivision_methods_plugin.cpp @@ -76,7 +76,7 @@ void Polyhedron_demo_subdivision_methods_plugin::on_actionLoop_triggered() CGAL::Subdivision_method_3::Loop_subdivision(*poly, 1); std::cout << "ok (" << time.elapsed() << " ms)" << std::endl; QApplication::restoreOverrideCursor(); - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); scene->itemChanged(item); } @@ -97,7 +97,7 @@ void Polyhedron_demo_subdivision_methods_plugin::on_actionCatmullClark_triggered CGAL::Subdivision_method_3::CatmullClark_subdivision(*poly, 1); std::cout << "ok (" << time.elapsed() << " ms)" << std::endl; QApplication::restoreOverrideCursor(); - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); scene->itemChanged(item); } @@ -118,7 +118,7 @@ void Polyhedron_demo_subdivision_methods_plugin::on_actionSqrt3_triggered() CGAL::Subdivision_method_3::Sqrt3_subdivision(*poly, 1); std::cout << "ok (" << time.elapsed() << " ms)" << std::endl; QApplication::restoreOverrideCursor(); - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); scene->itemChanged(item); } diff --git a/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Mesh_segmentation_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Mesh_segmentation_plugin.cpp index cd310be4ff2..03bac66da14 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Mesh_segmentation_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Mesh_segmentation_plugin.cpp @@ -205,7 +205,7 @@ void Polyhedron_demo_mesh_segmentation_plugin::on_SDF_button_clicked() scene->setSelectedItem(index); } else { - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); scene->itemChanged(index); } @@ -277,7 +277,7 @@ void Polyhedron_demo_mesh_segmentation_plugin::on_Partition_button_clicked() scene->setSelectedItem(index); } else { - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); scene->itemChanged(index); } diff --git a/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Mesh_simplification_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Mesh_simplification_plugin.cpp index ed4211be4eb..a29c92edceb 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Mesh_simplification_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Mesh_simplification_plugin.cpp @@ -88,7 +88,7 @@ void Polyhedron_demo_mesh_simplification_plugin::on_actionSimplify_triggered() << pMesh->size_of_halfedges() / 2 << " edges)" << std::endl; // update scene - item->invalidate_OpenGLBuffers(); + item->invalidateOpenGLBuffers(); scene->itemChanged(index); QApplication::restoreOverrideCursor(); } diff --git a/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Scene_polyhedron_shortest_path_item.cpp b/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Scene_polyhedron_shortest_path_item.cpp index 51058e8e897..b52c54c515e 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Scene_polyhedron_shortest_path_item.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Scene_polyhedron_shortest_path_item.cpp @@ -177,11 +177,11 @@ void Scene_polyhedron_shortest_path_item::ensure_shortest_paths_tree() void Scene_polyhedron_shortest_path_item::poly_item_changed() { recreate_shortest_path_object(); - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); Q_EMIT itemChanged(); } -void Scene_polyhedron_shortest_path_item::invalidate_OpenGLBuffers() +void Scene_polyhedron_shortest_path_item::invalidateOpenGLBuffers() { compute_elements(); compute_bbox(); @@ -383,7 +383,7 @@ bool Scene_polyhedron_shortest_path_item::run_point_select(const Ray_3& ray) } break; } - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); return true; } } diff --git a/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Scene_polyhedron_shortest_path_item.h b/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Scene_polyhedron_shortest_path_item.h index 07011ac7553..0bff4db678c 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Scene_polyhedron_shortest_path_item.h +++ b/Polyhedron/demo/Polyhedron/Plugins/Surface_mesh/Scene_polyhedron_shortest_path_item.h @@ -153,7 +153,7 @@ protected: public Q_SLOTS: virtual void poly_item_changed(); - virtual void invalidate_OpenGLBuffers(); + virtual void invalidateOpenGLBuffers(); }; #endif // SCENE_POLYHEDRON_SHORTEST_PATH_ITEM_H diff --git a/Polyhedron/demo/Polyhedron/Plugins/Surface_modeling/Edit_polyhedron_plugin.cpp b/Polyhedron/demo/Polyhedron/Plugins/Surface_modeling/Edit_polyhedron_plugin.cpp index 37477f7562d..5afb74d0fcf 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Surface_modeling/Edit_polyhedron_plugin.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Surface_modeling/Edit_polyhedron_plugin.cpp @@ -163,7 +163,7 @@ void Polyhedron_demo_edit_polyhedron_plugin::on_PrevCtrlVertPushButton_clicked() if(!edit_item) return; // the selected item is not of the right type edit_item->prev_ctrl_vertices_group(); - edit_item->invalidate_OpenGLBuffers(); + edit_item->invalidateOpenGLBuffers(); scene->itemChanged(edit_item); // for repaint } void Polyhedron_demo_edit_polyhedron_plugin::on_NextCtrlVertPushButton_clicked() @@ -182,7 +182,7 @@ void Polyhedron_demo_edit_polyhedron_plugin::on_SelectAllVerticesPushButton_clic if(!edit_item) return; // the selected item is not of the right type edit_item->set_all_vertices_as_roi(); - edit_item->invalidate_OpenGLBuffers(); + edit_item->invalidateOpenGLBuffers(); scene->itemChanged(edit_item); // for repaint } void Polyhedron_demo_edit_polyhedron_plugin::on_DeleteCtrlVertPushButton_clicked() @@ -192,7 +192,7 @@ void Polyhedron_demo_edit_polyhedron_plugin::on_DeleteCtrlVertPushButton_clicked if(!edit_item) return; // the selected item is not of the right type edit_item->delete_ctrl_vertices_group(); - edit_item->invalidate_OpenGLBuffers(); + edit_item->invalidateOpenGLBuffers(); scene->itemChanged(edit_item); // for repaint } void Polyhedron_demo_edit_polyhedron_plugin::on_ClearROIPushButton_clicked() @@ -202,7 +202,7 @@ void Polyhedron_demo_edit_polyhedron_plugin::on_ClearROIPushButton_clicked() if(!edit_item) return; // the selected item is not of the right type edit_item->clear_roi(); - edit_item->invalidate_OpenGLBuffers(); + edit_item->invalidateOpenGLBuffers(); scene->itemChanged(edit_item); // for repaint } void Polyhedron_demo_edit_polyhedron_plugin::on_ApplyAndClosePushButton_clicked() @@ -216,7 +216,7 @@ void Polyhedron_demo_edit_polyhedron_plugin::on_DiscardChangesPushButton_clicked if (!edit_item) return; // the selected item is not of the right type edit_item->reset_deform_object(); - edit_item->invalidate_OpenGLBuffers(); + edit_item->invalidateOpenGLBuffers(); scene->itemChanged(edit_item); //for redraw } void Polyhedron_demo_edit_polyhedron_plugin::on_ShowROICheckBox_stateChanged(int /*state*/) @@ -261,7 +261,7 @@ void Polyhedron_demo_edit_polyhedron_plugin::on_ActivateFixedPlaneCheckBox_state { Scene_edit_polyhedron_item* edit_item = qobject_cast(scene->item(i)); if(!edit_item) { continue; } - edit_item->invalidate_OpenGLBuffers(); + edit_item->invalidateOpenGLBuffers(); scene->itemChanged(edit_item); } } @@ -319,7 +319,7 @@ void Polyhedron_demo_edit_polyhedron_plugin::on_ReadROIPushButton_clicked() if(fileName.isNull()) { return; } edit_item->read_roi(fileName.toLocal8Bit().data()); - edit_item->invalidate_OpenGLBuffers(); + edit_item->invalidateOpenGLBuffers(); scene->itemChanged(edit_item); } void Polyhedron_demo_edit_polyhedron_plugin::dock_widget_visibility_changed(bool visible) diff --git a/Polyhedron/demo/Polyhedron/Plugins/Surface_modeling/Scene_edit_polyhedron_item.cpp b/Polyhedron/demo/Polyhedron/Plugins/Surface_modeling/Scene_edit_polyhedron_item.cpp index f910d84a38a..d2686c9d599 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Surface_modeling/Scene_edit_polyhedron_item.cpp +++ b/Polyhedron/demo/Polyhedron/Plugins/Surface_modeling/Scene_edit_polyhedron_item.cpp @@ -28,7 +28,7 @@ Scene_edit_polyhedron_item::Scene_edit_polyhedron_item connect(&k_ring_selector, SIGNAL(selected(const std::set&)), this, SLOT(selected(const std::set&))); - poly_item->set_color_vector_read_only(true); // to prevent recomputation of color vector in invalidate_OpenGLBuffers() + poly_item->set_color_vector_read_only(true); // to prevent recomputation of color vector in invalidateOpenGLBuffers() poly_item->update_vertex_indices(); deform_mesh = new Deform_mesh(*(poly_item->polyhedron()), @@ -97,7 +97,7 @@ Scene_edit_polyhedron_item::Scene_edit_polyhedron_item //the spheres : create_Sphere(length_of_axis/15.0); - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); } Scene_edit_polyhedron_item::~Scene_edit_polyhedron_item() @@ -532,7 +532,7 @@ void Scene_edit_polyhedron_item::remesh() void Scene_edit_polyhedron_item::timerEvent(QTimerEvent* /*event*/) { // just handle deformation - paint like selection is handled in eventFilter() if(state.ctrl_pressing && (state.left_button_pressing || state.right_button_pressing)) { - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); if(!ui_widget->ActivatePivotingCheckBox->isChecked()) { deform(); } @@ -821,7 +821,7 @@ void Scene_edit_polyhedron_item::compute_bbox(const CGAL::Three::Scene_interface } -void Scene_edit_polyhedron_item::invalidate_OpenGLBuffers() +void Scene_edit_polyhedron_item::invalidateOpenGLBuffers() { compute_normals_and_vertices(); update_normals(); @@ -833,7 +833,7 @@ Scene_polyhedron_item* Scene_edit_polyhedron_item::to_polyhedron_item() { Scene_polyhedron_item* poly_item_tmp = poly_item; poly_item->set_color_vector_read_only(false); own_poly_item=false; - poly_item_tmp->invalidate_OpenGLBuffers(); + poly_item_tmp->invalidateOpenGLBuffers(); return poly_item_tmp; } diff --git a/Polyhedron/demo/Polyhedron/Plugins/Surface_modeling/Scene_edit_polyhedron_item.h b/Polyhedron/demo/Polyhedron/Plugins/Surface_modeling/Scene_edit_polyhedron_item.h index 68ff590e9ff..2bd8983fffb 100644 --- a/Polyhedron/demo/Polyhedron/Plugins/Surface_modeling/Scene_edit_polyhedron_item.h +++ b/Polyhedron/demo/Polyhedron/Plugins/Surface_modeling/Scene_edit_polyhedron_item.h @@ -248,7 +248,7 @@ protected: public Q_SLOTS: - void invalidate_OpenGLBuffers(); + void invalidateOpenGLBuffers(); void selected(const std::set& m) { bool any_changes = false; @@ -266,7 +266,7 @@ public Q_SLOTS: } any_changes |= changed; } - if(any_changes) { invalidate_OpenGLBuffers(); Q_EMIT itemChanged(); } + if(any_changes) { invalidateOpenGLBuffers(); Q_EMIT itemChanged(); } } void select(double orig_x, @@ -439,7 +439,7 @@ public: active_group = --ctrl_vertex_frame_map.end(); - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); Q_EMIT itemChanged(); print_message("A new empty group of control vertices is created."); @@ -642,7 +642,7 @@ public: (vertices(*polyhedron()).first, vertices(*polyhedron()).second, polyhedron()->size_of_vertices(), Is_selected(deform_mesh), visitor); - if(visitor.any_inserted) { invalidate_OpenGLBuffers(); Q_EMIT itemChanged(); } + if(visitor.any_inserted) { invalidateOpenGLBuffers(); Q_EMIT itemChanged(); } return visitor.minimum_visitor.minimum; } protected: diff --git a/Polyhedron/demo/Polyhedron/Scene_c3t3_item.h b/Polyhedron/demo/Polyhedron/Scene_c3t3_item.h index 4f1b02cd6bd..4811135b357 100644 --- a/Polyhedron/demo/Polyhedron/Scene_c3t3_item.h +++ b/Polyhedron/demo/Polyhedron/Scene_c3t3_item.h @@ -54,7 +54,7 @@ public: return !!(os << c3t3()); } - void invalidate_OpenGLBuffers() + void invalidateOpenGLBuffers() { are_buffers_filled = false; compute_bbox(); diff --git a/Polyhedron/demo/Polyhedron/Scene_implicit_function_item.cpp b/Polyhedron/demo/Polyhedron/Scene_implicit_function_item.cpp index dddaded6962..a17717df8f8 100644 --- a/Polyhedron/demo/Polyhedron/Scene_implicit_function_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_implicit_function_item.cpp @@ -364,7 +364,7 @@ Scene_implicit_function_item(Implicit_function_interface* f) frame_->setOrientation(1., 0, 0, 0); connect(frame_, SIGNAL(modified()), this, SLOT(plane_was_moved())); - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); } @@ -536,7 +536,7 @@ compute_function_grid() const } // Update - const_cast(this)->invalidate_OpenGLBuffers(); + const_cast(this)->invalidateOpenGLBuffers(); } @@ -574,9 +574,9 @@ compute_min_max() } void -Scene_implicit_function_item::invalidate_OpenGLBuffers() +Scene_implicit_function_item::invalidateOpenGLBuffers() { - Scene_item::invalidate_OpenGLBuffers(); + Scene_item::invalidateOpenGLBuffers(); compute_bbox(); compute_vertices_and_texmap(); are_buffers_filled = false; diff --git a/Polyhedron/demo/Polyhedron/Scene_implicit_function_item.h b/Polyhedron/demo/Polyhedron/Scene_implicit_function_item.h index ff2c565ac02..053f2d566ce 100644 --- a/Polyhedron/demo/Polyhedron/Scene_implicit_function_item.h +++ b/Polyhedron/demo/Polyhedron/Scene_implicit_function_item.h @@ -69,7 +69,7 @@ public: virtual void draw_edges(CGAL::Three::Viewer_interface*) const; virtual QString toolTip() const; - virtual void invalidate_OpenGLBuffers(); + virtual void invalidateOpenGLBuffers(); public Q_SLOTS: void plane_was_moved() { need_update_ = true; } void compute_function_grid() const; diff --git a/Polyhedron/demo/Polyhedron/Scene_item.cpp b/Polyhedron/demo/Polyhedron/Scene_item.cpp index 2584ceea1a1..756c725bbe5 100644 --- a/Polyhedron/demo/Polyhedron/Scene_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_item.cpp @@ -101,7 +101,7 @@ QMenu* CGAL::Three::Scene_item::contextMenu() return defaultContextMenu; } -void CGAL::Three::Scene_item::invalidate_OpenGLBuffers() {} +void CGAL::Three::Scene_item::invalidateOpenGLBuffers() {} void CGAL::Three::Scene_item::selection_changed(bool) {} diff --git a/Polyhedron/demo/Polyhedron/Scene_nef_polyhedron_item.cpp b/Polyhedron/demo/Polyhedron/Scene_nef_polyhedron_item.cpp index 7f0bc23477e..c27b4661127 100644 --- a/Polyhedron/demo/Polyhedron/Scene_nef_polyhedron_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_nef_polyhedron_item.cpp @@ -352,7 +352,7 @@ Scene_nef_polyhedron_item::load_from_off(std::istream& in) // Polyhedron poly; // in >> poly; // *nef_poly = Nef_polyhedron(poly); - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); return (bool) in; } @@ -367,7 +367,7 @@ bool Scene_nef_polyhedron_item::load(std::istream& in) { in >> *nef_poly; - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); return (bool) in; } @@ -655,17 +655,17 @@ convex_decomposition(std::list< Scene_polyhedron_item*>& convex_parts) from_exact(P, *poly); Scene_polyhedron_item *spoly = new Scene_polyhedron_item(poly); convex_parts.push_back(spoly); - spoly->invalidate_OpenGLBuffers(); + spoly->invalidateOpenGLBuffers(); } } } void Scene_nef_polyhedron_item:: -invalidate_OpenGLBuffers() +invalidateOpenGLBuffers() { compute_bbox(); - Base::invalidate_OpenGLBuffers(); + Base::invalidateOpenGLBuffers(); are_buffers_filled = false; } void diff --git a/Polyhedron/demo/Polyhedron/Scene_nef_polyhedron_item.h b/Polyhedron/demo/Polyhedron/Scene_nef_polyhedron_item.h index 6271a894b1f..7cf33a959d7 100644 --- a/Polyhedron/demo/Polyhedron/Scene_nef_polyhedron_item.h +++ b/Polyhedron/demo/Polyhedron/Scene_nef_polyhedron_item.h @@ -26,7 +26,7 @@ public: QFont font() const; QString toolTip() const; - virtual void invalidate_OpenGLBuffers(); + virtual void invalidateOpenGLBuffers(); virtual void selection_changed(bool); // Indicate if rendering mode is supported virtual bool supportsRenderingMode(RenderingMode m) const { return m != Gouraud && m!=Splatting; } // CHECK THIS! diff --git a/Polyhedron/demo/Polyhedron/Scene_plane_item.h b/Polyhedron/demo/Polyhedron/Scene_plane_item.h index b0ff494a653..d7e07bfb1fb 100644 --- a/Polyhedron/demo/Polyhedron/Scene_plane_item.h +++ b/Polyhedron/demo/Polyhedron/Scene_plane_item.h @@ -33,7 +33,7 @@ public: { setNormal(0., 0., 1.); //Generates an integer which will be used as ID for each buffer - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); } ~Scene_plane_item() { @@ -117,7 +117,7 @@ private: } public Q_SLOTS: - virtual void invalidate_OpenGLBuffers() + virtual void invalidateOpenGLBuffers() { compute_normals_and_vertices(); are_buffers_filled = false; diff --git a/Polyhedron/demo/Polyhedron/Scene_points_with_normal_item.cpp b/Polyhedron/demo/Polyhedron/Scene_points_with_normal_item.cpp index adb08b5e349..648c44a4711 100644 --- a/Polyhedron/demo/Polyhedron/Scene_points_with_normal_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_points_with_normal_item.cpp @@ -56,7 +56,7 @@ Scene_points_with_normal_item::Scene_points_with_normal_item(const Scene_points_ nb_points = 0; nb_selected_points = 0; nb_lines = 0; - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); } // Converts polyhedron to point set @@ -83,7 +83,7 @@ Scene_points_with_normal_item::Scene_points_with_normal_item(const Polyhedron& i nb_points = 0; nb_selected_points = 0; nb_lines = 0; - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); } Scene_points_with_normal_item::~Scene_points_with_normal_item() @@ -241,7 +241,7 @@ void Scene_points_with_normal_item::deleteSelection() std::cerr << "done: " << task_timer.time() << " seconds, " << (memory>>20) << " Mb allocated" << std::endl; - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); Q_EMIT itemChanged(); } @@ -249,7 +249,7 @@ void Scene_points_with_normal_item::deleteSelection() void Scene_points_with_normal_item::invertSelection() { m_points->invert_selection(); - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); Q_EMIT itemChanged(); } @@ -257,7 +257,7 @@ void Scene_points_with_normal_item::invertSelection() void Scene_points_with_normal_item::selectAll() { m_points->select_all(); - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); Q_EMIT itemChanged(); } // Reset selection mark @@ -265,7 +265,7 @@ void Scene_points_with_normal_item::resetSelection() { // Un-select all points m_points->unselect_all(); - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); Q_EMIT itemChanged(); } //Select duplicated points @@ -275,7 +275,7 @@ void Scene_points_with_normal_item::selectDuplicates() for (Point_set::iterator ptit=m_points->begin(); ptit!=m_points->end();++ptit ) if ( !unique_points.insert(*ptit).second ) m_points->select(ptit); - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); Q_EMIT itemChanged(); } @@ -303,7 +303,7 @@ bool Scene_points_with_normal_item::read_ply_point_set(std::istream& stream) } } } - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); return ok; } @@ -329,7 +329,7 @@ bool Scene_points_with_normal_item::read_off_point_set(std::istream& stream) std::back_inserter(*m_points), CGAL::make_normal_of_point_with_normal_pmap(Point_set::value_type())) && !isEmpty(); - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); return ok; } @@ -369,7 +369,7 @@ bool Scene_points_with_normal_item::read_xyz_point_set(std::istream& stream) } } } - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); return ok; } @@ -590,7 +590,7 @@ void Scene_points_with_normal_item::set_has_normals(bool b) { } } -void Scene_points_with_normal_item::invalidate_OpenGLBuffers() +void Scene_points_with_normal_item::invalidateOpenGLBuffers() { are_buffers_filled = false; compute_bbox(); diff --git a/Polyhedron/demo/Polyhedron/Scene_points_with_normal_item.h b/Polyhedron/demo/Polyhedron/Scene_points_with_normal_item.h index e5e0e470b68..ea74b7ecd93 100644 --- a/Polyhedron/demo/Polyhedron/Scene_points_with_normal_item.h +++ b/Polyhedron/demo/Polyhedron/Scene_points_with_normal_item.h @@ -46,7 +46,7 @@ public: // Function for displaying meta-data of the item virtual QString toolTip() const; - virtual void invalidate_OpenGLBuffers(); + virtual void invalidateOpenGLBuffers(); // Indicate if rendering mode is supported virtual bool supportsRenderingMode(RenderingMode m) const; diff --git a/Polyhedron/demo/Polyhedron/Scene_polygon_soup_item.cpp b/Polyhedron/demo/Polyhedron/Scene_polygon_soup_item.cpp index 66f71fc3911..eb2c5921012 100644 --- a/Polyhedron/demo/Polyhedron/Scene_polygon_soup_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_polygon_soup_item.cpp @@ -398,7 +398,7 @@ Scene_polygon_soup_item::load(std::istream& in) else soup->clear(); bool result = CGAL::read_OFF(in, soup->points, soup->polygons); - Q_EMIT invalidate_OpenGLBuffers(); + Q_EMIT invalidateOpenGLBuffers(); return result; } @@ -427,7 +427,7 @@ void Scene_polygon_soup_item::load(Scene_polyhedron_item* poly_item) { CGAL::generic_print_polyhedron(std::cerr, *poly_item->polyhedron(), writer); - Q_EMIT invalidate_OpenGLBuffers(); + Q_EMIT invalidateOpenGLBuffers(); } void @@ -450,7 +450,7 @@ void Scene_polygon_soup_item::shuffle_orientations() { if(std::rand() % 2 == 0) soup->inverse_orientation(i); } - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); } void Scene_polygon_soup_item::inside_out() @@ -460,7 +460,7 @@ void Scene_polygon_soup_item::inside_out() { soup->inverse_orientation(i); } - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); } bool @@ -657,7 +657,7 @@ Scene_polygon_soup_item::isEmpty() const { return (soup == 0 || soup->points.empty()); } void -Scene_polygon_soup_item::invalidate_OpenGLBuffers() +Scene_polygon_soup_item::invalidateOpenGLBuffers() { are_buffers_filled = false; compute_bbox(); diff --git a/Polyhedron/demo/Polyhedron/Scene_polygon_soup_item.h b/Polyhedron/demo/Polyhedron/Scene_polygon_soup_item.h index fc5dd8b4bc6..8c3aa200884 100644 --- a/Polyhedron/demo/Polyhedron/Scene_polygon_soup_item.h +++ b/Polyhedron/demo/Polyhedron/Scene_polygon_soup_item.h @@ -132,7 +132,7 @@ public: //soup->fill_edges(); oriented = false; - Q_EMIT invalidate_OpenGLBuffers(); + Q_EMIT invalidateOpenGLBuffers(); } bool save(std::ostream& out) const; @@ -146,7 +146,7 @@ public: virtual void draw(CGAL::Three::Viewer_interface*) const; virtual void draw_points(CGAL::Three::Viewer_interface*) const; virtual void draw_edges(CGAL::Three::Viewer_interface* viewer) const; - void invalidate_OpenGLBuffers(); + void invalidateOpenGLBuffers(); bool isFinite() const { return true; } bool isEmpty() const; void compute_bbox() const; diff --git a/Polyhedron/demo/Polyhedron/Scene_polyhedron_item.cpp b/Polyhedron/demo/Polyhedron/Scene_polyhedron_item.cpp index 68381f0c740..b432ee17b03 100644 --- a/Polyhedron/demo/Polyhedron/Scene_polyhedron_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_polyhedron_item.cpp @@ -664,7 +664,7 @@ Scene_polyhedron_item::Scene_polyhedron_item(Polyhedron* const p) is_triangulated = true; nb_f_lines = 0; init(); - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); self_intersect = false; } @@ -685,7 +685,7 @@ Scene_polyhedron_item::Scene_polyhedron_item(const Polyhedron& p) nb_facets = 0; nb_lines = 0; nb_f_lines = 0; - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); self_intersect = false; } @@ -745,7 +745,7 @@ Scene_polyhedron_item::load(std::istream& in) if ( in && !isEmpty() ) { - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); return true; } return false; @@ -787,7 +787,7 @@ Scene_polyhedron_item::load_obj(std::istream& in) } if ( (! failed) && !isEmpty() ) { - invalidate_buffers(); + invalidateOpenGLBuffers(); return true; } return false; @@ -875,14 +875,14 @@ QMenu* Scene_polyhedron_item::contextMenu() void Scene_polyhedron_item::show_only_feature_edges(bool b) { show_only_feature_edges_m = b; - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); Q_EMIT itemChanged(); } void Scene_polyhedron_item::show_feature_edges(bool b) { show_feature_edges_m = b; - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); Q_EMIT itemChanged(); } @@ -1020,12 +1020,12 @@ void Scene_polyhedron_item::compute_bbox() const { void Scene_polyhedron_item:: -invalidate_OpenGLBuffers() +invalidateOpenGLBuffers() { Q_EMIT item_is_about_to_be_changed(); delete_aabb_tree(this); init(); - Base::invalidate_OpenGLBuffers(); + Base::invalidateOpenGLBuffers(); are_buffers_filled = false; } @@ -1154,7 +1154,7 @@ Scene_polyhedron_item::select(double orig_x, polyhedron()->erase_facet(selected_fh->halfedge()); polyhedron()->normalize_border(); //set_erase_next_picked_facet(false); - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); Q_EMIT itemChanged(); } } diff --git a/Polyhedron/demo/Polyhedron/Scene_polyhedron_item.h b/Polyhedron/demo/Polyhedron/Scene_polyhedron_item.h index 81bb15075b7..883b7b966ae 100644 --- a/Polyhedron/demo/Polyhedron/Scene_polyhedron_item.h +++ b/Polyhedron/demo/Polyhedron/Scene_polyhedron_item.h @@ -90,7 +90,7 @@ public: bool self_intersected(){return !self_intersect;} public Q_SLOTS: - virtual void invalidate_OpenGLBuffers(); + virtual void invalidateOpenGLBuffers(); virtual void selection_changed(bool); virtual void setColor(QColor c); virtual void show_feature_edges(bool); @@ -115,7 +115,7 @@ Q_SIGNALS: void selected_facet(void*); void selected_edge(void*); void selected_halfedge(void*); - void item_is_about_to_be_changed(); // emitted in invalidate_OpenGLBuffers() + void item_is_about_to_be_changed(); // emitted in invalidateOpenGLBuffers() private: // Initialization diff --git a/Polyhedron/demo/Polyhedron/Scene_polyhedron_item_decorator.cpp b/Polyhedron/demo/Polyhedron/Scene_polyhedron_item_decorator.cpp index b5f33100fb1..3172020a1e2 100644 --- a/Polyhedron/demo/Polyhedron/Scene_polyhedron_item_decorator.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_polyhedron_item_decorator.cpp @@ -63,10 +63,10 @@ Scene_polyhedron_item_decorator::compute_bbox() const { void Scene_polyhedron_item_decorator:: -invalidate_OpenGLBuffers() +invalidateOpenGLBuffers() { - poly_item->invalidate_OpenGLBuffers(); - Scene_item::invalidate_OpenGLBuffers(); + poly_item->invalidateOpenGLBuffers(); + Scene_item::invalidateOpenGLBuffers(); compute_bbox(); } diff --git a/Polyhedron/demo/Polyhedron/Scene_polyhedron_item_decorator.h b/Polyhedron/demo/Polyhedron/Scene_polyhedron_item_decorator.h index 4ecd47bd76f..37668909dc6 100644 --- a/Polyhedron/demo/Polyhedron/Scene_polyhedron_item_decorator.h +++ b/Polyhedron/demo/Polyhedron/Scene_polyhedron_item_decorator.h @@ -49,7 +49,7 @@ public: void set_delete_item(bool delete_item) { delete_poly_item = delete_item; } public Q_SLOTS: - void invalidate_OpenGLBuffers(); + void invalidateOpenGLBuffers(); void select(double orig_x, double orig_y, double orig_z, diff --git a/Polyhedron/demo/Polyhedron/Scene_polyhedron_selection_item.h b/Polyhedron/demo/Polyhedron/Scene_polyhedron_selection_item.h index 4912fc5630c..effd5e80084 100644 --- a/Polyhedron/demo/Polyhedron/Scene_polyhedron_selection_item.h +++ b/Polyhedron/demo/Polyhedron/Scene_polyhedron_selection_item.h @@ -207,7 +207,7 @@ public: buffers[i].create(); } init(poly_item, mw); - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); } ~Scene_polyhedron_selection_item() @@ -404,7 +404,7 @@ public: select_all(); break; case Active_handle::EDGE: selected_edges.insert(edges(*polyhedron()).first, edges(*polyhedron()).second); - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); QGLViewer* v = *QGLViewer::QGLViewerPool().begin(); v->update(); @@ -418,7 +418,7 @@ public: for(typename Tr::Iterator it = tr.iterator_begin() ; it != tr.iterator_end(); ++it) { tr.container().insert(*it); } - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); Q_EMIT itemChanged(); } @@ -440,7 +440,7 @@ public: Selection_traits tr(this); tr.container().clear(); - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); Q_EMIT itemChanged(); } @@ -492,7 +492,7 @@ public: Travel_isolated_components().travel (tr.iterator_begin(), tr.iterator_end(), tr.size(), tr.container(), visitor); - if(visitor.any_inserted) { invalidate_OpenGLBuffers(); Q_EMIT itemChanged(); } + if(visitor.any_inserted) { invalidateOpenGLBuffers(); Q_EMIT itemChanged(); } return visitor.minimum_visitor.minimum; } @@ -596,7 +596,7 @@ public: any_change |= tr.container().insert(*it).second; } } - if(any_change) { invalidate_OpenGLBuffers(); Q_EMIT itemChanged(); } + if(any_change) { invalidateOpenGLBuffers(); Q_EMIT itemChanged(); } } template @@ -625,7 +625,7 @@ public: any_change |= (tr.container().erase(*it)!=0); } } - if(any_change) { invalidate_OpenGLBuffers(); Q_EMIT itemChanged(); } + if(any_change) { invalidateOpenGLBuffers(); Q_EMIT itemChanged(); } } void erase_selected_facets() { @@ -637,7 +637,7 @@ public: polyhedron()->erase_facet((*fb)->halfedge()); } selected_facets.clear(); - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); changed_with_poly_item(); } @@ -711,12 +711,12 @@ public: if (h->is_feature_edge()) selected_edges.insert(e); } - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); } void changed_with_poly_item() { // no need to update indices - poly_item->invalidate_OpenGLBuffers(); + poly_item->invalidateOpenGLBuffers(); Q_EMIT poly_item->itemChanged(); Q_EMIT itemChanged(); } @@ -725,10 +725,10 @@ Q_SIGNALS: void simplicesSelected(CGAL::Three::Scene_item*); public Q_SLOTS: - void invalidate_OpenGLBuffers() { + void invalidateOpenGLBuffers() { // do not use decorator function, which calls changed on poly_item which cause deletion of AABB - // poly_item->invalidate_OpenGLBuffers(); + // poly_item->invalidateOpenGLBuffers(); are_buffers_filled = false; compute_bbox(); } @@ -799,7 +799,7 @@ protected: BOOST_FOREACH(HandleType h, selection) any_change |= (tr.container().erase(h)!=0); } - if(any_change) { invalidate_OpenGLBuffers(); Q_EMIT itemChanged(); } + if(any_change) { invalidateOpenGLBuffers(); Q_EMIT itemChanged(); } return any_change; } diff --git a/Polyhedron/demo/Polyhedron/Scene_polylines_item.cpp b/Polyhedron/demo/Polyhedron/Scene_polylines_item.cpp index 762c4f241b9..b7b3f67e870 100644 --- a/Polyhedron/demo/Polyhedron/Scene_polylines_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_polylines_item.cpp @@ -331,7 +331,7 @@ Scene_polylines_item::Scene_polylines_item() nb_wire = 0; nb_centers = 0; nb_lines = 0; - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); } @@ -537,7 +537,7 @@ QMenu* Scene_polylines_item::contextMenu() return menu; } -void Scene_polylines_item::invalidate_OpenGLBuffers() +void Scene_polylines_item::invalidateOpenGLBuffers() { are_buffers_filled = false; compute_bbox(); @@ -575,7 +575,7 @@ void Scene_polylines_item::change_corner_radii(double r) { if(r >= 0) { d->spheres_drawn_radius = r; d->draw_extremities = (r > 0); - this->invalidate_OpenGLBuffers(); + this->invalidateOpenGLBuffers(); Q_EMIT itemChanged(); } } @@ -677,6 +677,6 @@ Scene_polylines_item::merge(Scene_polylines_item* other_item) { metadata.append(other_metadata_variant.toStringList()); setProperty("polylines metadata", metadata); } - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); } diff --git a/Polyhedron/demo/Polyhedron/Scene_polylines_item.h b/Polyhedron/demo/Polyhedron/Scene_polylines_item.h index 97fac2f2e56..480744ce178 100644 --- a/Polyhedron/demo/Polyhedron/Scene_polylines_item.h +++ b/Polyhedron/demo/Polyhedron/Scene_polylines_item.h @@ -72,7 +72,7 @@ public: } public Q_SLOTS: - virtual void invalidate_OpenGLBuffers(); + virtual void invalidateOpenGLBuffers(); void change_corner_radii(double); void change_corner_radii(); void split_at_sharp_angles(); @@ -82,7 +82,7 @@ public Q_SLOTS: void smooth(){ for (Polylines_container::iterator pit=polylines.begin(),pit_end=polylines.end();pit!=pit_end;++pit) smooth(*pit); - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); Q_EMIT itemChanged(); } public: diff --git a/Polyhedron/demo/Polyhedron/Scene_textured_polyhedron_item.cpp b/Polyhedron/demo/Polyhedron/Scene_textured_polyhedron_item.cpp index 949dbb46635..5208d8247b6 100644 --- a/Polyhedron/demo/Polyhedron/Scene_textured_polyhedron_item.cpp +++ b/Polyhedron/demo/Polyhedron/Scene_textured_polyhedron_item.cpp @@ -215,7 +215,7 @@ Scene_textured_polyhedron_item::Scene_textured_polyhedron_item() is_selected=false; nb_facets = 0; nb_lines = 0; - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); } Scene_textured_polyhedron_item::Scene_textured_polyhedron_item(Textured_polyhedron* const p) @@ -226,7 +226,7 @@ Scene_textured_polyhedron_item::Scene_textured_polyhedron_item(Textured_polyhedr texture.GenerateCheckerBoard(2048,2048,128,0,0,0,250,250,255); nb_facets = 0; nb_lines = 0; - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); } Scene_textured_polyhedron_item::Scene_textured_polyhedron_item(const Textured_polyhedron& p) @@ -237,7 +237,7 @@ Scene_textured_polyhedron_item::Scene_textured_polyhedron_item(const Textured_po is_selected=false; nb_facets = 0; nb_lines = 0; - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); } Scene_textured_polyhedron_item::~Scene_textured_polyhedron_item() @@ -256,7 +256,7 @@ Scene_textured_polyhedron_item::load(std::istream& in) { std::cout<<"LOAD"<> *poly; - invalidate_OpenGLBuffers(); + invalidateOpenGLBuffers(); return in && !isEmpty(); } @@ -346,7 +346,7 @@ Scene_textured_polyhedron_item::compute_bbox() const { bbox.xmax(),bbox.ymax(),bbox.zmax()); } void -Scene_textured_polyhedron_item::invalidate_OpenGLBuffers() +Scene_textured_polyhedron_item::invalidateOpenGLBuffers() { are_buffers_filled = false; compute_bbox(); diff --git a/Polyhedron/demo/Polyhedron/Scene_textured_polyhedron_item.h b/Polyhedron/demo/Polyhedron/Scene_textured_polyhedron_item.h index 7f2b4841d05..dbddb4983b6 100644 --- a/Polyhedron/demo/Polyhedron/Scene_textured_polyhedron_item.h +++ b/Polyhedron/demo/Polyhedron/Scene_textured_polyhedron_item.h @@ -44,7 +44,7 @@ public: bool isEmpty() const; void compute_bbox() const; - virtual void invalidate_OpenGLBuffers(); + virtual void invalidateOpenGLBuffers(); virtual void selection_changed(bool); private: diff --git a/Three/include/CGAL/Three/Scene_item.h b/Three/include/CGAL/Three/Scene_item.h index 816e0ee2f8f..bdf1530f5c3 100644 --- a/Three/include/CGAL/Three/Scene_item.h +++ b/Three/include/CGAL/Three/Scene_item.h @@ -288,9 +288,9 @@ public Q_SLOTS: //! important to call this function whenever the internal data is changed, //! or the displayed item will not be updated. //!Must be overloaded. - virtual void invalidate_OpenGLBuffers(); - //!Setter for the color of the item. Calls invalidate_OpenGLBuffers() so the new color is applied. - virtual void setColor(QColor c) { color_ = c; invalidate_OpenGLBuffers(); } + virtual void invalidateOpenGLBuffers(); + //!Setter for the color of the item. Calls invalidateOpenGLBuffers() so the new color is applied. + virtual void setColor(QColor c) { color_ = c; invalidateOpenGLBuffers(); } //!Setter for the RGB color of the item. Calls setColor(QColor). //!@see setColor(QColor c) void setRbgColor(int r, int g, int b) { setColor(QColor(r, g, b)); } @@ -379,11 +379,11 @@ protected: //! file. std::size_t nb_isolated_vertices; /*! Decides if the draw function must call initialize_buffers() or not. It is set - * to true in the end of initialize_buffers() and to false in invalidate_OpenGLBuffers(). The need of + * to true in the end of initialize_buffers() and to false in invalidateOpenGLBuffers(). The need of * this boolean comes from the need of a context from the OpenGLFunctions used in * initialize_buffers(). * @see initialize_buffers() - * @see invalidate_OpenGLBuffers() + * @see invalidateOpenGLBuffers() */ mutable bool are_buffers_filled; //!The rendering mode of the item. @@ -392,16 +392,16 @@ protected: //!The default context menu. QMenu* defaultContextMenu; /*! Contains the previous RenderingMode. - * This is used to determine if invalidate_buffers should be called or not + * This is used to determine if invalidateOpenGLBuffers should be called or not * in certain cases. - * @see invalidate_OpenGLBuffers()*/ + * @see invalidateOpenGLBuffers()*/ RenderingMode prev_shading; /*! \todo replace it by RenderingMode(). * \brief * Contains the current RenderingMode. - * This is used to determine if invalidate_buffers should be called or not + * This is used to determine if invalidateOpenGLBuffers should be called or not * in certain cases. - * @see invalidate_OpenGLBuffers()*/ + * @see invalidateOpenGLBuffers()*/ RenderingMode cur_shading; //!Contains the size of the vector of VBOs int buffersSize; @@ -430,8 +430,8 @@ protected: */ void initialize_buffers(){} - /*! Collects all the data for the shaders. Must be called in #invalidate_OpenGLBuffers(). - * @see invalidate_OpenGLBuffers(). + /*! Collects all the data for the shaders. Must be called in #invalidateOpenGLBuffers(). + * @see invalidateOpenGLBuffers(). */ void compute_elements(){} /*! Passes all the uniform data to the shaders.