{ /** ****************************************************************** * * Module Name : testme.C * * Author/Date : C.B. Lirakis / 13-Jun-01 * * Description : * * Restrictions/Limitations : * * Change Descriptions : * * Classification : Unclassified * * References : * * * RCS header info. * ---------------- * $RCSfile$ * $Author$ * $Date$ * $Locker$ * $Name$ * $Revision$ * * $Log: $ * * * Copyright (C) BBNT Solutions LLC 2001 ******************************************************************* */ gROOT->Reset(); TCanvas *Calvin = new TCanvas("Calvin","Playtime",10,10,800,800); TPad *Hobbes = new TPad("Hobbes","Silly",0.02,0.02,0.98,0.98,10); TMarker3DBox *Blueberry = new TMarker3DBox (10.0,10.0,10.0,1.0, 1.0, 1.0,0.0,0.0); Hobbes->Draw(); Hobbes->cd(); // creating a view TView *Noko = new TView(1); double size = 600.0; Noko->SetRange(0.0,0.0,-1.0,20.0,20.0,1.0); TAxis3D rulers; rulers.Draw(); Blueberry->Draw(); int TwoD=0; // Fool with polymarkers. TPolyMarker3D *Poly3= new TPolyMarker3D(1000,1); Poly3->SetMarkerColor(2); Poly3->SetMarkerStyle(7); double x,y,z; int i,j; double pi = 3.141526; for(i = 1; i < 100;i++) { x = pi/10 * (double)i; for (j=1; j < 100; j++) { y = pi/10 * (double)j; z = sin(x)/x + sin(y)/y; Poly3->SetPoint(i, x, y, z); } } Poly3->Draw(); }