TEveShapeEditor.h

Go to the documentation of this file.
00001 // @(#)root/eve:$Id: TEveShapeEditor.h 32483 2010-03-05 19:31:54Z matevz $
00002 // Author: Matevz Tadel 2007
00003 
00004 /*************************************************************************
00005  * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers.               *
00006  * All rights reserved.                                                  *
00007  *                                                                       *
00008  * For the licensing terms see $ROOTSYS/LICENSE.                         *
00009  * For the list of contributors see $ROOTSYS/README/CREDITS.             *
00010  *************************************************************************/
00011 
00012 #ifndef ROOT_TEveShapeEditor
00013 #define ROOT_TEveShapeEditor
00014 
00015 #include "TGedFrame.h"
00016 
00017 class TGButton;
00018 class TGCheckButton;
00019 class TGNumberEntry;
00020 class TGColorSelect;
00021 
00022 class TEveShape;
00023 
00024 class TEveShapeEditor : public TGedFrame
00025 {
00026 private:
00027    TEveShapeEditor(const TEveShapeEditor&);            // Not implemented
00028    TEveShapeEditor& operator=(const TEveShapeEditor&); // Not implemented
00029 
00030 protected:
00031    TEveShape        *fM; // Model object.
00032 
00033    TGNumberEntry    *fLineWidth;  // Line width widget.
00034    TGColorSelect    *fLineColor;  // Line color widget.
00035    TGCheckButton    *fDrawFrame;       // Checkbox for frame rendering.
00036    TGCheckButton    *fHighlightFrame;  // Checkbox for frame rendering.
00037 
00038 public:
00039    TEveShapeEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30,
00040          UInt_t options=kChildFrame, Pixel_t back=GetDefaultFrameBackground());
00041    virtual ~TEveShapeEditor() {}
00042 
00043    virtual void SetModel(TObject* obj);
00044 
00045    void DoLineWidth();
00046    void DoLineColor(Pixel_t color);
00047    void DoDrawFrame();
00048    void DoHighlightFrame();
00049 
00050    ClassDef(TEveShapeEditor, 0); // GUI editor for TEveShape.
00051 };
00052 
00053 #endif

Generated on Tue Jul 5 14:15:00 2011 for ROOT_528-00b_version by  doxygen 1.5.1