Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > 8c86774a3e53d77cc119f53a2b94a57a > files > 396

root-tutorial-5.34.14-2.fc18.noarch.rpm

#include "TFrame.h"
#include "IOSPad.h"
#include "TF2.h"

#include "SurfaceDemo.h"

namespace ROOT {
namespace iOS {
namespace Demos {

//______________________________________________________________________________
SurfaceDemo::SurfaceDemo()
               : fSurface(new TF2("fun1","1000*((sin(x)/x)*(sin(y)/y))+200", -6., 6., -6., 6.))
{
}

//______________________________________________________________________________
SurfaceDemo::~SurfaceDemo()
{
   //For unique_ptr's dtor only.
}

//______________________________________________________________________________
void SurfaceDemo::AdjustPad(Pad *pad)
{
   pad->SetFillColor(38);
}

//______________________________________________________________________________
void SurfaceDemo::PresentDemo()
{
   fSurface->Draw("surf1");
}


}
}
}