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

Method RenderTranslucentPolygonalGeometry

Rendering/Annotation/vtkAxisActor.cxx:233–256  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Build the translucent poly actors and render. ------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

231// Build the translucent poly actors and render.
232//------------------------------------------------------------------------------
233int vtkAxisActor::RenderTranslucentPolygonalGeometry(vtkViewport* viewport)
234{
235 int numberOfRenderedProps = 0;
236
237 this->BuildAxis(viewport, false);
238
239 // Everything is built, just have to render
240
241 // pass keys to sub props
242 vtkInformation* propKeys = this->GetPropertyKeys();
243
244 vtkNew<vtkPropCollection> translucentProps;
245 this->GetTranslucentProps(translucentProps);
246 translucentProps->InitTraversal();
247
248 for (int idx = 0; idx < translucentProps->GetNumberOfItems(); idx++)
249 {
250 vtkProp* prop = translucentProps->GetNextProp();
251 prop->SetPropertyKeys(propKeys);
252 numberOfRenderedProps += prop->RenderTranslucentPolygonalGeometry(viewport);
253 }
254
255 return numberOfRenderedProps;
256}
257
258//------------------------------------------------------------------------------
259// Render the 2d annotations.

Callers 1

Calls 5

BuildAxisMethod · 0.95
GetTranslucentPropsMethod · 0.95
GetNextPropMethod · 0.80
InitTraversalMethod · 0.45
GetNumberOfItemsMethod · 0.45

Tested by

no test coverage detected