Hello!
I want to rotate the view of my canvas, unfortunately I cannot set the view angle i want with the “SetTheta” and
"SetPhi" methods of TCanvas.
I tried TView like this:
int res = 3000;
TCanvas * theCanvas = new TCanvas("3DCT","3DCT",
-res/2.,res/2.
res,res);
gStyle -> SetCanvasPreferGL(true);
gSystem -> Load("libGeom");
TView * theView = TView::CreateView(1);
int irep;
theView -> SetView(phi,theta,psi,irep)
theCanvas -> SetView(theView);
...
but that does nothing. What is Psi by the way, I thought it would be the third angle of rotation that I need but it doesnt do anything if I change it and I cannot find an explanation in the documentation.
And does anybody know how the “DefineViewDirection” method works? I cannot realy get anything from the
documentation but it sounds like I could use it.
best regards
Badger