12 #ifndef ROOT_TASPaletteEditor 13 #define ROOT_TASPaletteEditor 25 #ifndef ROOT_TAttImage 54 { fPalette = palette; fAttImage = attImage; }
Double_t fMinValue
min value of image
This is a GUI window to edit a color palette.
void CloseWindow()
Close editor.
void InsertNewPalette(TImagePalette *newPalette)
The newPalette is inserted in the list of palettes (fPaletteList) and fPalette is set to the newPalet...
TImagePalette * fPalette
current palette
TH1D * fHisto
histogram of image pixels
TASPaletteEditor(TAttImage *attImage, UInt_t w, UInt_t h)
Palette editor constructor.
PaintPalette * fPaintPalette
void Paint(Option_t *option)
Actually paint the paletter.
void InvertPalette()
The palette is inverted.
void UpdateScreen(Bool_t histoUpdate)
All widgets of the screen are updated with the current palette.
virtual ~TASPaletteEditor()
Palette editor destructor. Deletes all frames and their layout hints.
TGRadioButton * fRamps[3]
#define ClassDef(name, id)
PaintPalette(TImagePalette **palette, TAttImage *attImage)
TVirtualPad is an abstract base class for the Pad and Canvas classes.
Edit the palette via a GUI.
Bool_t ProcessMessage(Long_t msg, Long_t param1, Long_t param2)
Process all editor mouse events.
void SetRamp(Long_t ramp)
The palette is repeated up to 4 times.
LimitLine * fLimitLine[2]
TGCheckButton * fStepButton
void LogPalette()
The anchor points are rescaled by a log operation.
TList * fPaletteList
list of palettes for undo and redo
void SetStep()
Create a step palette.
void NewPalette(Long_t id)
A new palette is created, depending on the id.
tomato 1-D histogram with a double per channel (see TH1 documentation)}
TGTextButton * fUnDoButton
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to an event at (px,py).
TGTextButton * fReDoButton
TRootEmbeddedCanvas * fPaletteCanvas
canvas to draw the current palette
A class to define a conversion from pixel values to pixel color.
void UpdateRange()
Updates the range of the palette.
Mother of all ROOT objects.
TGCheckButton * fAutoUpdate
void ExpPalette()
The anchor points are rescaled by a exp operation.
TImagePalette ** fPalette
TRootEmbeddedCanvas * fHistCanvas
canvas to draw the histogram
void Open()
Opens either a ROOT file or an ASCII file and reads a palette.
void LinPalette()
The anchor points are rescaled to be linar.
void Save()
Saves the current palette either into a ROOT file or in an ASCII file.
Double_t fMaxValue
max value of image