Index: graf3d/gl/inc/TGLParametric.h =================================================================== --- graf3d/gl/inc/TGLParametric.h (revision 42013) +++ graf3d/gl/inc/TGLParametric.h (working copy) @@ -46,7 +46,6 @@ Ptr_t fZEquation; ParametricEquation_t fEquation; - Rgl::Range_t fURange; Rgl::Range_t fVRange; @@ -65,6 +64,9 @@ Double_t vMin, Double_t vMax); TGLParametricEquation(const TString &name, ParametricEquation_t equation, Double_t uMin, Double_t uMax, Double_t vMin, Double_t vMax); + TGLParametricEquation(const TString &name, ParametricEquation_t equation, + void(*ColorFunc)(Double_t &color,Double_t u, Double_t v), + Double_t uMin, Double_t uMax, Double_t vMin, Double_t vMax); Rgl::Range_t GetURange()const; Rgl::Range_t GetVRange()const; @@ -81,6 +83,7 @@ void ExecuteEvent(Int_t event, Int_t px, Int_t py); char *GetObjectInfo(Int_t px, Int_t py) const; void Paint(Option_t *option); + void (*GetColor)(Double_t &color,Double_t u, Double_t v); private: @@ -111,6 +114,7 @@ public: TGLParametricPlot(TGLParametricEquation *equation, TGLPlotCamera *camera); + Bool_t InitGeometry(); void StartPan(Int_t px, Int_t py); void Pan(Int_t px, Int_t py);