Sophie

Sophie

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

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

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

#include "LegoDemo.h"

namespace ROOT {
namespace iOS {
namespace Demos {

//______________________________________________________________________________
LegoDemo::LegoDemo()
            : fLego(new TF2("fun1","1000*((sin(x)/x)*(sin(y)/y))+200", -6., 6., -6., 6.))
{
   //Ctor.
   fLego->SetFillColor(kOrange);
}

//______________________________________________________________________________
LegoDemo::~LegoDemo()
{
   //Just for unique_ptr's dtor.
}

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

//______________________________________________________________________________
void LegoDemo::PresentDemo()
{
   //Draw fun of x and y as lego.
   fLego->Draw("lego");
}

}
}
}