#include "TEveTriangleSetEditor.h"
#include "TEveTriangleSet.h"
#include "TGWidget.h"
#include "TGLabel.h"
ClassImp(TEveTriangleSetEditor);
TEveTriangleSetEditor::TEveTriangleSetEditor(const TGWindow *p, Int_t width, Int_t height,
UInt_t options, Pixel_t back) :
TGedFrame(p, width, height, options | kVerticalFrame, back),
fM (0),
fInfo (0)
{
MakeTitle("TEveTriangleSet");
fInfo = new TGLabel(this);
fInfo->SetTextJustify(kTextLeft);
AddFrame(fInfo, new TGLayoutHints(kLHintsNormal|kLHintsExpandX, 8, 0, 2, 0));
}
void TEveTriangleSetEditor::SetModel(TObject* obj)
{
fM = dynamic_cast<TEveTriangleSet*>(obj);
fInfo->SetText(Form("Vertices: %d, Triangles: %d", fM->GetNVerts(), fM->GetNTrings()));
}
Last change: Fri Oct 31 16:21:08 2008
Last generated: 2008-10-31 16:21
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.