mySurfaceActor = SVTK_DeviceActor::New();
mySurfaceActor->SetRepresentation(SVTK::Representation::Surface);
mySurfaceActor->SetUserMatrix(m);
- mySurfaceActor->SetProperty(GetProperty());
myEdgeActor = SVTK_DeviceActor::New();
myEdgeActor->SetRepresentation(SVTK::Representation::Wireframe);
myEdgeActor->RenderOpaqueGeometry(ren);
break;
case Surface :
+ case FeatureEdges :
mySurfaceActor->SetAllocatedRenderTime(this->AllocatedRenderTime,ren);
mySurfaceActor->RenderOpaqueGeometry(ren);
break;
myEdgeActor->SetAllocatedRenderTime(this->AllocatedRenderTime/2.0,ren);
myEdgeActor->RenderOpaqueGeometry(ren);
break;
- case FeatureEdges :
- mySurfaceActor->SetAllocatedRenderTime(this->AllocatedRenderTime,ren);
- mySurfaceActor->RenderOpaqueGeometry(ren);
- break;
}
return 1;
}
int
VISU_MeshAct
+#if (VTK_XVERSION < 0x050100)
::RenderTranslucentGeometry(vtkViewport *ren)
+#else
+::RenderTranslucentPolygonalGeometry(vtkViewport *ren)
+#endif
{
GetMatrix(myNodeActor->GetUserMatrix());
GetMatrix(myEdgeActor->GetUserMatrix());
#endif
break;
case Surface :
+ case FeatureEdges :
mySurfaceActor->SetAllocatedRenderTime(this->AllocatedRenderTime,ren);
#if (VTK_XVERSION < 0x050100)
mySurfaceActor->RenderTranslucentGeometry(ren);
myEdgeActor->RenderTranslucentGeometry(ren);
#else
myEdgeActor->RenderTranslucentPolygonalGeometry(ren);
-#endif
- break;
- case FeatureEdges :
- mySurfaceActor->SetAllocatedRenderTime(this->AllocatedRenderTime,ren);
-#if (VTK_XVERSION < 0x050100)
- mySurfaceActor->RenderTranslucentGeometry(ren);
-#else
- mySurfaceActor->RenderTranslucentPolygonalGeometry(ren);
#endif
break;
}
return 1;
}
+#if (VTK_XVERSION >= 0x050100)
+int
+VISU_MeshAct
+::HasTranslucentPolygonalGeometry()
+{
+ int result = 0;
+
+ using namespace SVTK::Representation;
+ switch ( GetRepresentation() ) {
+ case Points:
+ result |= myNodeActor->HasTranslucentPolygonalGeometry();
+ break;
+ case Wireframe:
+ case Insideframe:
+ result |= myEdgeActor->HasTranslucentPolygonalGeometry();
+ break;
+ case Surface:
+ case FeatureEdges:
+ result |= mySurfaceActor->HasTranslucentPolygonalGeometry();
+ break;
+ case Surfaceframe:
+ result |= mySurfaceActor->HasTranslucentPolygonalGeometry();
+ result |= myEdgeActor->HasTranslucentPolygonalGeometry();
+ break;
+ default:
+ break;
+ }
+
+ return result;
+}
+#endif
+
VISU_Actor::EQuadratic2DRepresentation
VISU_MeshAct::GetQuadratic2DRepresentation() const
{