Sophie

Sophie

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

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

#ifndef ROOT_PolarGraphDemo
#define ROOT_PolarGraphDemo

#include <memory>

#include "DemoBase.h"

class TGraphPolar;

namespace ROOT {
namespace iOS {
namespace Demos {

class PolarGraphDemo : public DemoBase {
private:
   enum {
      kNPointsAFL = 1000,
      kNPointsCP = 20
   };
public:
   PolarGraphDemo();
   ~PolarGraphDemo();
   
   //overriders.
   void ResetDemo() {}
   bool IsAnimated() const {return false;}
   unsigned NumOfFrames() const {return 1;}
   double AnimationTime() const {return 0.;}

   void StartAnimation() {}
   void NextStep() {}
   void StopAnimation() {}

   void AdjustPad(Pad *pad);

   void PresentDemo();
   
   bool Supports3DRotation() const {return false;}
private:
   std::unique_ptr<TGraphPolar> fPolarAFL; //polar graph with draw option "AFL"
   std::unique_ptr<TGraphPolar> fPolarCP;  //polar graph with draw option "CP"

   PolarGraphDemo(const PolarGraphDemo &rhs) = delete;
   PolarGraphDemo &operator = (const PolarGraphDemo &rhs) = delete;
};

}
}
}

#endif