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

Method Paint

Views/Infovis/vtkTanglegramItem.cxx:114–145  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

112
113//------------------------------------------------------------------------------
114bool vtkTanglegramItem::Paint(vtkContext2D* painter)
115{
116 this->RefreshBuffers(painter);
117
118 if (!this->TreeReordered)
119 {
120 this->ReorderTree();
121
122 // this will force Dendrogram2's PrunedTree to re-copy itself from the
123 // newly rearranged tree.
124 this->Dendrogram2->PrepareToPaint(painter);
125 }
126
127 if (!this->PositionSet)
128 {
129 this->PositionTree2();
130 }
131
132 this->PaintChildren(painter);
133
134 if (this->Table != nullptr)
135 {
136 this->PaintCorrespondenceLines(painter);
137 }
138
139 if (this->Tree1Label != nullptr || this->Tree2Label != nullptr)
140 {
141 this->PaintTreeLabels(painter);
142 }
143
144 return true;
145}
146
147//------------------------------------------------------------------------------
148void vtkTanglegramItem::RefreshBuffers(vtkContext2D* painter)

Callers

nothing calls this directly

Calls 7

RefreshBuffersMethod · 0.95
ReorderTreeMethod · 0.95
PositionTree2Method · 0.95
PaintTreeLabelsMethod · 0.95
PrepareToPaintMethod · 0.80
PaintChildrenMethod · 0.80

Tested by

no test coverage detected