10 #include <QApplication>
11 #include <QMainWindow>
12 #include <QMessageBox>
64 QMessageBox::StandardButton q;
65 q = QMessageBox::question(
67 "Precompute Gradient? This can be slow, but once complete "
68 "will greatly decrease future computation times.",
69 QMessageBox::Yes | QMessageBox::No);
70 if (q == QMessageBox::Yes)
83 QMessageBox::StandardButton q;
84 q = QMessageBox::question(
86 "Precompute Curvature? This can be slow, but once complete "
87 "will greatly decrease future computation times.",
88 QMessageBox::Yes | QMessageBox::No);
89 if (q == QMessageBox::Yes)
107 "path... please try again."),
146 if (selectedEntities.size() > 0)
149 if (selectedEntities[0]->getUniqueID() ==
m_trace_id) {
152 selectedEntities[0]))
173 bool shift = QApplication::keyboardModifiers().testFlag(
176 fitPlane = !fitPlane;
221 QString(
"[ccCompass] Trace orientation estimate = " +
226 QString(
"[ccCompass] Not enough topography to fit "
virtual void setVisible(bool state)
Sets entity visibility.
static bool isFitPlane(ccHObject *object)
void showNormals(bool state) override
Sets normals visibility.
Hierarchical CLOUDVIEWER Object.
ccHObject * find(unsigned uniqueID)
Finds an entity in this object hierarchy.
void detachChild(ccHObject *child)
Detaches a specific child.
unsigned getChildrenNumber() const
Returns the number of children.
virtual bool addChild(ccHObject *child, int dependencyFlags=DP_PARENT_OF_OTHER, int insertIndex=-1)
Adds a child.
virtual void setSelectionBehavior(SelectionBehavior mode)
Sets selection behavior (when displayed)
ccHObject * getParent() const
Returns parent object.
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
ccHObject * getChild(unsigned childPos) const
Returns the ith child.
void setActive(bool isActive)
virtual QString getName() const
Returns object name.
virtual unsigned getUniqueID() const
Returns object unique ID.
virtual void setName(const QString &name)
Sets object name.
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
int insertWaypoint(int pointId)
ccFitPlane * fitPlane(int surface_effect_tolerance=10, float min_planarity=0.75f)
size_t waypoint_count() const
void buildCurvatureCost(QWidget *parent)
bool isGradientPrecomputed()
void buildGradientCost(QWidget *parent)
bool isCurvaturePrecomputed()
bool optimizePath(int maxIterations=1000000)
unsigned size() const override
Returns the number of points.
virtual ccHObject * dbRootObject()=0
Returns DB root (as a ccHObject)
virtual QMainWindow * getMainWindow()=0
Returns main window.
virtual const ccHObject::Container & getSelectedEntities() const =0
Returns currently selected entities ("read only")
virtual void setSelectedInDB(ccHObject *obj, bool selected)=0
Selects or unselects an entity (in db tree)
virtual void addToDB(ccHObject *obj, bool updateZoom=false, bool autoExpandDBTree=true, bool checkDimensions=false, bool autoRedraw=true)=0
virtual void dispToConsole(QString message, ConsoleMessageLevel level=STD_CONSOLE_MESSAGE)=0
virtual void removeFromDB(ccHObject *obj, bool autoDelete=true)=0
Removes an entity from main db tree.