vtkMatrix4x4 *matrix = vtkMatrix4x4::New();
double view[4];
matrix->DeepCopy(this->Renderer->GetActiveCamera()->
- GetCompositePerspectiveTransformMatrix(
- this->Renderer->GetTiledAspectRatio(),0,1));
+ GetCompositeProjectionTransformMatrix(this->Renderer->GetTiledAspectRatio(),0,1));
// If we have more than a few query points, we grab the z-buffer for the
// selection region all at once and probe the resulting array. When we
return;
}
- vtkProp *prop = path->GetFirstNode()->GetProp();
+ vtkProp *prop = path->GetFirstNode()->GetViewProp();
this->ValidPick = 1;
this->Picker->GetPickPosition(this->LastPickPosition);
//
// if no places picked, then try to pick the sphere.
myPicker->Pick(X, Y, 0., CurrentRenderer);
if(vtkAssemblyPath *aPath = myPicker->GetPath()){
- if(aPath->GetFirstNode()->GetProp() == mySphereActor){
+ if(aPath->GetFirstNode()->GetViewProp() == mySphereActor){
myState = VISU_SphereWidget::Moving;
HighlightSphere(1);
}