------------------------------------------------------------------------------ Build the translucent poly actors and render. ------------------------------------------------------------------------------
| 231 | // Build the translucent poly actors and render. |
| 232 | //------------------------------------------------------------------------------ |
| 233 | int 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. |
no test coverage detected