44 inline bool hasHoles()
const {
return (_holes > 0); }
65 return (_numNotices == 0 && _numWarnings == 0 && _numErrors == 0 && _numFatals == 0);
104 std::string _message;
111 int _nonCloseableHoles;
This class provides diagnostic information on a WEMNode.
const WEMPatch * getPatch() const
Returns the patch.
int numFatals() const
Returns the number of fatals.
WEMPatchDiagnosis(bool hasEdges)
Standard constructor.
std::string getErrorMessage() const
Returns the error message.
WEMPatch * getPatch()
Returns the patch.
void checkIntegrity(WEMPatch *patch)
Checks the integrity of the given patch.
bool hasNonCloseableHoles() const
Returns whether 'Non-closeable holes' errors were found.
bool selected
Is the node selected.
std::string message
Stuff used by SoWEMDiagnosis.
int numDuplicateNodes() const
Returns whether 'Get amount of duplicate nodes' errors were found.
int numHoles() const
Returns the number of found holes.
int numWarnings() const
Returns the number of warnings.
bool hasDuplicateNodes() const
Returns whether 'Duplicate nodes' errors were found.
bool isOk() const
Returns whether the patch is ok.
bool isInverted() const
Returns whether the patch is inverted.
int getSeverity() const
Returns the severity of errors.
int numErrors() const
Returns the number of errors.
int numNonCloseableHoles() const
Returns the number of non-closeable holes.
int numNotices() const
Returns the number of notices.
bool hasHoles() const
Returns whether Get 'Holes' errors were found.
~WEMPatchDiagnosis()
Standard destructor.
Base class for triangle and quad patches.
const int PATCH_SEVERITY_WARNING
Error status: a warning.
const int PATCH_SEVERITY_ALLISWELL
Error status: no error at all.
const int PATCH_SEVERITY_ERROR
Error status: an error.
const int PATCH_SEVERITY_NOTICE
Error status: just a notice.
const int PATCH_SEVERITY_FATAL
Error status: a serious error.