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

Method Update

Views/Qt/vtkQtAnnotationView.cxx:115–139  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

113
114//------------------------------------------------------------------------------
115void vtkQtAnnotationView::Update()
116{
117 vtkDataRepresentation* rep = this->GetRepresentation();
118 if (!rep)
119 {
120 this->Adapter->reset();
121 this->View->update();
122 return;
123 }
124
125 // Make sure the input connection is up to date.
126 vtkDataObject* a = rep->GetAnnotationLink()->GetAnnotationLayers();
127 if (a->GetMTime() != this->LastInputMTime)
128 {
129 this->LastInputMTime = a->GetMTime();
130
131 this->Adapter->SetVTKDataObject(nullptr);
132 this->Adapter->SetVTKDataObject(a);
133 }
134
135 this->View->update();
136
137 this->View->resizeColumnToContents(0);
138 this->View->resizeColumnToContents(1);
139}
140
141//------------------------------------------------------------------------------
142void vtkQtAnnotationView::PrintSelf(ostream& os, vtkIndent indent)

Callers

nothing calls this directly

Calls 6

GetRepresentationMethod · 0.80
GetAnnotationLinkMethod · 0.80
resetMethod · 0.45
updateMethod · 0.45
GetMTimeMethod · 0.45
SetVTKDataObjectMethod · 0.45

Tested by

no test coverage detected