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

Method RenderOverlay

Rendering/Annotation/vtkBarChartActor.cxx:176–214  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Plot scalar data for each input dataset.

Source from the content-addressed store, hash-verified

174//------------------------------------------------------------------------------
175// Plot scalar data for each input dataset.
176int vtkBarChartActor::RenderOverlay(vtkViewport* viewport)
177{
178 int renderedSomething = 0;
179
180 if (!this->BuildPlot(viewport))
181 {
182 return 0;
183 }
184
185 // Done rebuilding, render as appropriate.
186 if (this->Input == nullptr || this->N <= 0)
187 {
188 vtkErrorMacro(<< "Nothing to plot!");
189 return 0;
190 }
191
192 if (this->TitleVisibility)
193 {
194 renderedSomething += this->TitleActor->RenderOverlay(viewport);
195 }
196
197 renderedSomething += this->YAxis->RenderOverlay(viewport);
198 renderedSomething += this->PlotActor->RenderOverlay(viewport);
199
200 if (this->LabelVisibility)
201 {
202 for (int i = 0; i < this->N; i++)
203 {
204 renderedSomething += this->BarActors[i]->RenderOverlay(viewport);
205 }
206 }
207
208 if (this->LegendVisibility)
209 {
210 renderedSomething += this->LegendActor->RenderOverlay(viewport);
211 }
212
213 return renderedSomething;
214}
215
216//------------------------------------------------------------------------------
217// Plot scalar data for each input dataset.

Callers

nothing calls this directly

Calls 1

BuildPlotMethod · 0.95

Tested by

no test coverage detected