12 #ifndef ROOT_TGLParametric
13 #define ROOT_TGLParametric
17 #ifndef ROOT_TGLHistPainter
45 typedef std::auto_ptr<TF2>
Ptr_t;
void InitGL() const
Initialize gl state.
ParametricEquation_t fEquation
std::auto_ptr< TF2 > Ptr_t
Camera for TGLPlotPainter and sub-classes.
TGLParametricEquation & operator=(const TGLParametricEquation &)
void EvalVertex(TGLVertex3 &newVertex, Double_t u, Double_t v) const
Calculate vertex.
void Pan(Int_t px, Int_t py)
User's moving mouse cursor, with middle mouse button pressed (for pad).
TGLPlotCoordinates fCartesianCoord
void DrawSectionYOZ() const
No such sections.
std::pair< Double_t, Double_t > Range_t
void SetConstrained(Bool_t c)
Set constrained.
Int_t DistancetoPrimitive(Int_t px, Int_t py)
Check, if parametric surface is under cursor.
void DeInitGL() const
Initialize gl state.
#define ClassDef(name, id)
The TNamed class is the base class for all named ROOT classes.
3 component (x/y/z) vertex class.
Bool_t IsModified() const
Something was changed in parametric equation (or constrained option was changed). ...
TGL2DArray< Vertex_t > fMesh
void SetSurfaceColor() const
Set material properties.
3 component (x/y/z) vector class.
TGLParametricEquation(const TString &name, const TString &xEquation, const TString &yEquation, const TString &zEquation, Double_t uMin, Double_t uMax, Double_t vMin, Double_t vMax)
TGLParametricEquation * fEquation
Class to manage histogram axis.
void(* ParametricEquation_t)(TGLVertex3 &, Double_t u, Double_t v)
ClassDef(TVirtualGLPainter, 0)
Helper class for plot-painters holding information about axis ranges, numbers of bins and flags if ce...
A parametric surface is a surface defined by a parametric equation, involving two parameters (u...
Base class for plot-painters that provide GL rendering of various 2D and 3D histograms, functions and parametric surfaces.
Rgl::Range_t GetVRange() const
[vMin, vMax]
void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Pass event to painter.
Bool_t InitGeometry()
Build mesh.
Rgl::Range_t GetURange() const
[uMin, uMax]
TGLParametricPlot(TGLParametricEquation *equation, TGLPlotCamera *camera)
Bool_t IsConstrained() const
Check is constrained.
void DrawSectionXOY() const
No such sections.
void AddOption(const TString &option)
No additional options for parametric surfaces.
void DrawSectionXOZ() const
No such sections.
void StartPan(Int_t px, Int_t py)
User clicks right mouse button (in a pad).
std::auto_ptr< TGLHistPainter > Painter_t
typedef void((*Func_t)())
void Paint(Option_t *option)
Delegate paint.
void SetModified(Bool_t m)
Set modified.
void ProcessEvent(Int_t event, Int_t px, Int_t py)
Change color/mesh size or switch on/off mesh/box cut.
void InitColors()
Calculate colors for vertices, using one of 20 color themes.
char * GetObjectInfo(Int_t px, Int_t py) const
No object info yet.
void DrawPlot() const
Draw parametric surface.
TGLParametricPlot & operator=(const TGLParametricPlot &)
char * GetPlotInfo(Int_t px, Int_t py)
No object info yet.