ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ecvUtils.cpp
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #include "ecvUtils.h"
9 
10 #include "ecvConsole.h"
11 
12 namespace ecvUtils {
13 void DisplayLockedVerticesWarning(const QString &meshName,
14  bool displayAsError) {
15  QString message =
16  QString("Vertices of mesh '%1' are locked (they may be shared by "
17  "multiple entities for instance).\nYou should call this "
18  "method directly on the vertices cloud.\n(warning: all "
19  "entities depending on this cloud will be impacted!)")
20  .arg(meshName);
21 
22  if (displayAsError)
23  ecvConsole::Error(message);
24  else
25  ecvConsole::Warning(message);
26 }
27 } // namespace ecvUtils
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
void DisplayLockedVerticesWarning(const QString &meshName, bool displayAsError)
Display a warning or error for locked verts.
Definition: ecvUtils.cpp:13