mirror of https://github.com/CGAL/cgal
fixes and clean-up
This commit is contained in:
parent
4454047702
commit
9582ce1c5f
|
|
@ -241,10 +241,8 @@ MainWindow::MainWindow(QWidget* parent)
|
|||
// can easily copy-paste its text.
|
||||
// connect(ui->infoLabel, SIGNAL(customContextMenuRequested(const QPoint & )),
|
||||
// this, SLOT(showSceneContextMenu(const QPoint &)));
|
||||
|
||||
connect(ui->actionRecenterScene, SIGNAL(triggered()),
|
||||
viewer, SLOT(update()));
|
||||
|
||||
connect(ui->actionAntiAliasing, SIGNAL(toggled(bool)),
|
||||
viewer, SLOT(setAntiAliasing(bool)));
|
||||
|
||||
|
|
|
|||
|
|
@ -347,7 +347,6 @@ protected Q_SLOTS:
|
|||
void filterOperations();
|
||||
//!Updates the bounding box and moves the camera to fits the scene.
|
||||
void on_actionRecenterScene_triggered();
|
||||
|
||||
//!Resizes the header of the scene view
|
||||
void resetHeader();
|
||||
|
||||
|
|
|
|||
|
|
@ -346,60 +346,6 @@
|
|||
<string>Ctrl+Q</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSimplify">
|
||||
<property name="text">
|
||||
<string>&Simplification</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionCatmullClark">
|
||||
<property name="text">
|
||||
<string>&Catmull-Clark</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionKernel">
|
||||
<property name="text">
|
||||
<string>&Kernel</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionUnion">
|
||||
<property name="text">
|
||||
<string>&Union (A/B)</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+O, U</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionIntersection">
|
||||
<property name="text">
|
||||
<string>&Intersection (A/B)</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+O, I</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDifference">
|
||||
<property name="text">
|
||||
<string>&Difference (A/B)</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+O, D</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionFitPlane">
|
||||
<property name="text">
|
||||
<string>Fit &Plane</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionFitLine">
|
||||
<property name="text">
|
||||
<string>Fit &Line</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionEstimateCurvature">
|
||||
<property name="text">
|
||||
<string>&Curvature Estimation</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionLoad">
|
||||
<property name="icon">
|
||||
<iconset resource="Polyhedron_3.qrc">
|
||||
|
|
@ -436,11 +382,6 @@
|
|||
<string>Ctrl+D</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSqrt3">
|
||||
<property name="text">
|
||||
<string>&Sqrt3</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionAntiAliasing">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
|
|
@ -454,71 +395,16 @@
|
|||
<string>n/a</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionConvexHull">
|
||||
<property name="text">
|
||||
<string>&Convex Hull</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionEraseAll">
|
||||
<property name="text">
|
||||
<string>&Erase All</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionOptions">
|
||||
<property name="text">
|
||||
<string>&Options...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionLoop">
|
||||
<property name="text">
|
||||
<string>&Loop</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSaveAs">
|
||||
<property name="text">
|
||||
<string>Save &as...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSave">
|
||||
<property name="text">
|
||||
<string>&Save</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSaveAll">
|
||||
<property name="text">
|
||||
<string>Save A&ll</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionMergeAll">
|
||||
<property name="text">
|
||||
<string>Mer&ge All</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionMerge">
|
||||
<property name="text">
|
||||
<string>&Merge</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSelfIntersection">
|
||||
<property name="text">
|
||||
<string>Self-&intersection</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSelectAll">
|
||||
<property name="text">
|
||||
<string>Select &All</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSelectNone">
|
||||
<property name="text">
|
||||
<string>Select &None</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionSelectInvert">
|
||||
<property name="text">
|
||||
<string>&Invert Selection</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionShowHide">
|
||||
<property name="text">
|
||||
<string>Show/Hide</string>
|
||||
|
|
@ -537,46 +423,6 @@
|
|||
<string>Set Polyhedron B</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionInsideOut">
|
||||
<property name="text">
|
||||
<string>&Inside-Out</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionRemeshing">
|
||||
<property name="text">
|
||||
<string>&Remeshing</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionConvexDecomposition">
|
||||
<property name="text">
|
||||
<string>Convex Decomposition</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionMVC">
|
||||
<property name="text">
|
||||
<string>Mean &Value Coordinates</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDCP">
|
||||
<property name="text">
|
||||
<string>Discrete &Conformal Maps</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionExplode">
|
||||
<property name="text">
|
||||
<string>Explode</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionToNef">
|
||||
<property name="text">
|
||||
<string>Convert to Nef Polyhedron</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionToPoly">
|
||||
<property name="text">
|
||||
<string>Convert to Normal Polyhedron</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionDrawTwoSides">
|
||||
<property name="checkable">
|
||||
<bool>true</bool>
|
||||
|
|
@ -601,14 +447,6 @@
|
|||
<string>Change &Background Color...</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionMinkowskiSum">
|
||||
<property name="text">
|
||||
<string>&Minkowski Sum (A/B)</string>
|
||||
</property>
|
||||
<property name="shortcut">
|
||||
<string>Ctrl+O, M</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionLookAt">
|
||||
<property name="text">
|
||||
<string>&Look at...</string>
|
||||
|
|
@ -652,11 +490,6 @@
|
|||
<string>&Preferences</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionLSC">
|
||||
<property name="text">
|
||||
<string>Least Square Conformal Maps</string>
|
||||
</property>
|
||||
</action>
|
||||
<action name="actionLoadPlugin">
|
||||
<property name="text">
|
||||
<string>Load Plugin</string>
|
||||
|
|
@ -705,7 +538,6 @@
|
|||
<string>In Polyhedron Mode, the default type for facegraphs is Polyhedron, by opposition to Surface_mesh.</string>
|
||||
</property>
|
||||
</action>
|
||||
|
||||
</widget>
|
||||
<customwidgets>
|
||||
<customwidget>
|
||||
|
|
|
|||
|
|
@ -144,8 +144,8 @@ public:
|
|||
this, SLOT(on_actionSkeletonize()));
|
||||
connect(ui->pushButton_converge, SIGNAL(clicked()),
|
||||
this, SLOT(on_actionConverge()));
|
||||
connect(dynamic_cast<Scene*>(scene), SIGNAL(updated_bbox()),
|
||||
this, SLOT(on_actionUpdateBBox()));
|
||||
connect(dynamic_cast<Scene*>(scene), SIGNAL(updated_bbox(bool)),
|
||||
this, SLOT(on_actionUpdateBBox(bool)));
|
||||
connect(ui->pushButton_segment, SIGNAL(clicked()),
|
||||
this, SLOT(on_actionSegment()));
|
||||
|
||||
|
|
@ -361,7 +361,7 @@ public Q_SLOTS:
|
|||
void on_actionRun();
|
||||
void on_actionSkeletonize();
|
||||
void on_actionConverge();
|
||||
void on_actionUpdateBBox();
|
||||
void on_actionUpdateBBox(bool);
|
||||
void on_actionSegment();
|
||||
void on_actionItemAboutToBeDestroyed(CGAL::Three::Scene_item*);
|
||||
|
||||
|
|
@ -408,7 +408,7 @@ void Polyhedron_demo_mean_curvature_flow_skeleton_plugin::on_actionMCFSkeleton_t
|
|||
}
|
||||
}
|
||||
|
||||
void Polyhedron_demo_mean_curvature_flow_skeleton_plugin::on_actionUpdateBBox()
|
||||
void Polyhedron_demo_mean_curvature_flow_skeleton_plugin::on_actionUpdateBBox(bool)
|
||||
{
|
||||
double diag = scene->len_diagonal();
|
||||
ui->min_edge_length->setValue(0.002 * diag);
|
||||
|
|
|
|||
|
|
@ -923,8 +923,6 @@ void Scene::itemVisibilityChanged()
|
|||
|
||||
void Scene::itemVisibilityChanged(CGAL::Three::Scene_item* item)
|
||||
{
|
||||
Bbox bbox_before = bbox();
|
||||
|
||||
if(item->isFinite()
|
||||
&& !item->isEmpty())
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue