#include "TGLParametricEquationGL.h"
#include "TGLParametric.h"
#include "TVirtualPad.h"
#include "TGLSurfacePainter.h"
#include "TGLTF3Painter.h"
#include "TGLAxis.h"
#include "TGLRnrCtx.h"
#include "TGLIncludes.h"
ClassImp(TGLParametricEquationGL)
TGLParametricEquationGL::TGLParametricEquationGL() : TGLObject(), fM(0)
{
fDLCache = kFALSE;
}
TGLParametricEquationGL::~TGLParametricEquationGL()
{
delete fPlotPainter;
}
Bool_t TGLParametricEquationGL::SetModel(TObject* obj, const Option_t* opt)
{
if(SetModelCheckClass(obj, TGLParametricEquation::Class()))
{
fM = dynamic_cast<TGLParametricEquation*>(obj);
fPlotPainter = new TGLParametricPlot(fM, 0);
TString option(opt);
fPlotPainter->AddOption(option);
fPlotPainter->InitGeometry();
return kTRUE;
}
return kFALSE;
}
void TGLParametricEquationGL::SetBBox()
{
fBoundingBox.Set(fPlotPainter->RefBackBox().Get3DBox());
}
void TGLParametricEquationGL::DirectDraw(TGLRnrCtx & ) const
{
fPlotPainter->RefBackBox().FindFrontPoint();
glPushAttrib(GL_ENABLE_BIT | GL_LIGHTING_BIT);
glEnable(GL_NORMALIZE);
fPlotPainter->InitGL();
fPlotPainter->DrawPlot();
glPopAttrib();
}
Last update: Thu Jan 17 08:52:08 2008
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.