Skip to content
Snippets Groups Projects
Commit 47fcfae7 authored by Jaswant Panchumarti (Kitware)'s avatar Jaswant Panchumarti (Kitware)
Browse files

vtkCameraOrientationRepresentation: Add missing property keys for child actors

- this ensures the render passes are available on the actor's property keys and execute when rendering
parent fe029429
No related branches found
No related tags found
No related merge requests found
......@@ -624,10 +624,12 @@ int vtkCameraOrientationRepresentation::RenderOpaqueGeometry(vtkViewport* vp)
if (this->Container->GetVisibility())
{
this->Container->SetPropertyKeys(this->GetPropertyKeys());
this->Container->GetMapper()->Update();
count += this->Container->RenderOpaqueGeometry(vp);
}
this->Shafts->SetPropertyKeys(this->GetPropertyKeys());
this->Shafts->GetMapper()->Update();
count += this->Shafts->RenderOpaqueGeometry(vp);
......@@ -636,6 +638,7 @@ int vtkCameraOrientationRepresentation::RenderOpaqueGeometry(vtkViewport* vp)
for (int dir = 0; dir < 2; ++dir)
{
const auto& handle = this->Handles[ax][dir];
handle->SetPropertyKeys(this->GetPropertyKeys());
handle->GetMapper()->Update();
count += handle->RenderOpaqueGeometry(vp);
}
......@@ -650,17 +653,21 @@ int vtkCameraOrientationRepresentation::RenderTranslucentPolygonalGeometry(vtkVi
if (this->Container->GetVisibility())
{
this->Container->SetPropertyKeys(this->GetPropertyKeys());
this->Container->GetMapper()->Update();
count += this->Container->RenderTranslucentPolygonalGeometry(vp);
}
this->Shafts->SetPropertyKeys(this->GetPropertyKeys());
this->Shafts->GetMapper()->Update();
count += this->Shafts->RenderTranslucentPolygonalGeometry(vp);
for (int ax = 0; ax < 3; ++ax)
{
for (int dir = 0; dir < 2; ++dir)
{
const auto& handle = this->Handles[ax][dir];
handle->SetPropertyKeys(this->GetPropertyKeys());
handle->GetMapper()->Update();
count += handle->RenderTranslucentPolygonalGeometry(vp);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment