mirror of https://github.com/CGAL/cgal
rename function
This commit is contained in:
parent
ce9aed08f5
commit
e3dc7183f8
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -73,7 +73,7 @@ Polyhedron_demo_gocad_plugin::load(QFileInfo fileinfo) {
|
|||
if(qcolor.isValid())
|
||||
{
|
||||
item->setColor(qcolor);
|
||||
item->invalidate_OpenGLBuffers();
|
||||
item->invalidateOpenGLBuffers();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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()));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 ) )
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ public:
|
|||
|
||||
}
|
||||
|
||||
void invalidate_OpenGLBuffers()
|
||||
void invalidateOpenGLBuffers()
|
||||
{
|
||||
compute_elements();
|
||||
are_buffers_filled = false;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -333,7 +333,7 @@ public:
|
|||
{
|
||||
CGAL::Polyhedron_copy_3<Mean_curvature_skeleton::Meso_skeleton, Polyhedron::HalfedgeDS> 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);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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_points_with_normal_item*>(scene->item(id));
|
||||
if(point_item) {
|
||||
point_item->invalidate_OpenGLBuffers();
|
||||
point_item->invalidateOpenGLBuffers();
|
||||
scene->itemChanged(point_item);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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_edit_polyhedron_item*>(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)
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ Scene_edit_polyhedron_item::Scene_edit_polyhedron_item
|
|||
connect(&k_ring_selector, SIGNAL(selected(const std::set<Polyhedron::Vertex_handle>&)), this,
|
||||
SLOT(selected(const std::set<Polyhedron::Vertex_handle>&)));
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -248,7 +248,7 @@ protected:
|
|||
|
||||
|
||||
public Q_SLOTS:
|
||||
void invalidate_OpenGLBuffers();
|
||||
void invalidateOpenGLBuffers();
|
||||
void selected(const std::set<Polyhedron::Vertex_handle>& 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:
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ public:
|
|||
return !!(os << c3t3());
|
||||
}
|
||||
|
||||
void invalidate_OpenGLBuffers()
|
||||
void invalidateOpenGLBuffers()
|
||||
{
|
||||
are_buffers_filled = false;
|
||||
compute_bbox();
|
||||
|
|
|
|||
|
|
@ -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<Scene_implicit_function_item*>(this)->invalidate_OpenGLBuffers();
|
||||
const_cast<Scene_implicit_function_item*>(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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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) {}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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!
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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<Facet_handle>(); 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<HandleType, Scene_polyhedron_selection_item> tr(this);
|
||||
tr.container().clear();
|
||||
invalidate_OpenGLBuffers();
|
||||
invalidateOpenGLBuffers();
|
||||
Q_EMIT itemChanged();
|
||||
}
|
||||
|
||||
|
|
@ -492,7 +492,7 @@ public:
|
|||
Travel_isolated_components().travel<HandleType>
|
||||
(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 <class Handle>
|
||||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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"<<std::endl;
|
||||
in >> *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();
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue