48 plane->SetOrigin(0, 0, 0);
49 plane->SetNormal(-1, 0, 0);
53 clipper->SetClipFunction(plane);
54 clipper->SetInputConnection(filter->GetOutputPort());
60 filterNormals->SetFeatureAngle(45);
61 filterNormals->SetInputConnection(clipper->GetOutputPort());
65 mapper->SetInputConnection(filterNormals->GetOutputPort());
66 mapper->SetColorModeToDirectScalars();
67 mapper->ScalarVisibilityOn();
71 actor->SetMapper(mapper);
72 actor->SetVisibility(1);
76 actor->GetProperty()->SetOpacity(
vc.
alpha);
82 actor->GetProperty()->SetRepresentationToSurface();
85 actor->GetProperty()->SetRepresentationToSurface();
88 actor->GetProperty()->SetRepresentationToWireframe();
92 actor->GetProperty()->SetAmbient(0.2);
93 actor->GetProperty()->SetDiffuse(0.7);
94 actor->GetProperty()->SetSpecular(0.1);
95 actor->GetProperty()->SetSpecularPower(1);
void TransformPlane(G4double dx, G4double dy, G4double dz, G4double r00, G4double r01, G4double r02, G4double r10, G4double r11, G4double r12, G4double r20, G4double r21, G4double r22)
G4ViewParameters::DrawingStyle fDrawingStyle
const G4VtkViewer * fViewer