#include "TGFrame.h"
#include "TGLayout.h"
#include "TGLWidget.h"
#include "TGLSAFrame.h"
#include "TString.h"
#include "TGLPShapeObj.h"
#include "TGLPhysicalShape.h"
#include "TGLLogicalShape.h"
#include "TGLEmbeddedViewer.h"
#include "TGLEventHandler.h"
ClassImp(TGLEmbeddedViewer);
TGLEmbeddedViewer::TGLEmbeddedViewer(const TGWindow *parent, TVirtualPad *pad) :
TGLViewer(pad, 0, 0, 400, 300),
fFrame(0)
{
fFrame = new TGCompositeFrame(parent);
CreateFrames();
fFrame->MapSubwindows();
fFrame->Resize(fFrame->GetDefaultSize());
fFrame->Resize(400, 300);
}
TGLEmbeddedViewer::~TGLEmbeddedViewer()
{
delete fFrame;
fGLWidget = 0;
}
void TGLEmbeddedViewer::CreateFrames()
{
fGLWidget = TGLWidget::Create(fFrame, kTRUE, kTRUE, 0, 10, 10);
fEventHandler = new TGLEventHandler("Default", fGLWidget, this);
fGLWidget->SetEventHandler(fEventHandler);
fFrame->AddFrame(fGLWidget, new TGLayoutHints(kLHintsExpandX |
kLHintsExpandY, 2, 2, 2, 2));
}
Last change: Wed Jun 25 08:40:55 2008
Last generated: 2008-06-25 08:40
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.