00001 // @(#)root/eve:$Id: TEveProjectionManagerEditor.h 25422 2008-09-16 20:50:49Z matevz $ 00002 // Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 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_TEveProjectionManagerEditor 00013 #define ROOT_TEveProjectionManagerEditor 00014 00015 #include "TGedFrame.h" 00016 00017 class TGComboBox; 00018 class TGCheckButton; 00019 class TGNumberEntry; 00020 class TGColorSelect; 00021 00022 class TEveProjectionManager; 00023 class TEveGValuator; 00024 00025 class TEveProjectionManagerEditor : public TGedFrame 00026 { 00027 private: 00028 TEveProjectionManagerEditor(const TEveProjectionManagerEditor&); // Not implemented 00029 TEveProjectionManagerEditor& operator=(const TEveProjectionManagerEditor&); // Not implemented 00030 00031 protected: 00032 TEveProjectionManager *fM; // Model object. 00033 00034 TGComboBox *fType; // TEveProjection type widget 00035 TEveGValuator *fDistortion; // TEveProjection distortion widget 00036 TEveGValuator *fFixR; // TEveProjection fixed-radius widget 00037 TEveGValuator *fFixZ; // TEveProjection fixed-z widget 00038 TEveGValuator *fPastFixRFac; // TEveProjection relative scale after FixR 00039 TEveGValuator *fPastFixZFac; // TEveProjection relative scale after FixZ 00040 TEveGValuator *fCurrentDepth; // TEveProjection z-coordinate widget 00041 TEveGValuator *fMaxTrackStep; // TEveProjection relative scale after FixZ 00042 00043 TGVerticalFrame *fCenterFrame; // parent frame for distortion center 00044 TEveGValuator *fCenterX; // center x value widget 00045 TEveGValuator *fCenterY; // center y value widget 00046 TEveGValuator *fCenterZ; // center z value widget 00047 00048 public: 00049 TEveProjectionManagerEditor(const TGWindow* p=0, Int_t width=170, Int_t height=30, UInt_t options = kChildFrame, Pixel_t back=GetDefaultFrameBackground()); 00050 virtual ~TEveProjectionManagerEditor(){} 00051 00052 virtual void SetModel(TObject* obj); 00053 00054 // Declare callback/slot methods 00055 00056 void DoType(Int_t type); 00057 void DoDistortion(); 00058 void DoFixR(); 00059 void DoFixZ(); 00060 void DoPastFixRFac(); 00061 void DoPastFixZFac(); 00062 void DoCurrentDepth(); 00063 void DoMaxTrackStep(); 00064 void DoCenter(); 00065 00066 ClassDef(TEveProjectionManagerEditor, 0); // Editor for TEveProjectionManager class. 00067 }; 00068 00069 #endif