MCPcopy Create free account
hub / github.com/Kitware/VTK / noAnnotationsCheck

Method noAnnotationsCheck

GUISupport/Qt/vtkQtAnnotationLayersModelAdapter.cxx:122–135  ·  view source on GitHub ↗

------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

120
121//------------------------------------------------------------------------------
122bool vtkQtAnnotationLayersModelAdapter::noAnnotationsCheck() const
123{
124 if (this->Annotations == nullptr)
125 {
126 // It's not necessarily an error to have a null pointer for the
127 // table. It just means that the model is empty.
128 return true;
129 }
130 if (this->Annotations->GetNumberOfAnnotations() == 0)
131 {
132 return true;
133 }
134 return false;
135}
136
137//------------------------------------------------------------------------------
138// Description:

Callers 4

dataMethod · 0.95
headerDataMethod · 0.95
rowCountMethod · 0.95
columnCountMethod · 0.95

Calls 1

Tested by

no test coverage detected