12#ifndef ROOT_TASPaletteEditor
13#define ROOT_TASPaletteEditor
#define ClassDef(name, id)
void Paint(Option_t *option)
Paint the limit lines.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
PaintPalette(TImagePalette **palette, TAttImage *attImage)
TImagePalette ** fPalette
void Paint(Option_t *option)
Actually paint the paletter.
This is a GUI window to edit a color palette.
void UpdateScreen(Bool_t histoUpdate)
All widgets of the screen are updated with the current palette.
PaintPalette * fPaintPalette
void UpdateRange()
Updates the range of the palette.
TGTextButton * fUnDoButton
TImagePalette * fPalette
current palette
void CloseWindow()
Close editor.
TGCheckButton * fStepButton
TGTextButton * fReDoButton
Double_t fMinValue
min value of image
void Open()
Opens either a ROOT file or an ASCII file and reads a palette.
TList * fPaletteList
list of palettes for undo and redo
void ExpPalette()
The anchor points are rescaled by a exp operation.
void InsertNewPalette(TImagePalette *newPalette)
The newPalette is inserted in the list of palettes (fPaletteList) and fPalette is set to the newPalet...
TGRadioButton * fRamps[3]
TRootEmbeddedCanvas * fHistCanvas
canvas to draw the histogram
TH1D * fHisto
histogram of image pixels
void Save()
Saves the current palette either into a ROOT file or in an ASCII file.
TGCheckButton * fAutoUpdate
virtual ~TASPaletteEditor()
Palette editor destructor. Deletes all frames and their layout hints.
void NewPalette(Long_t id)
A new palette is created, depending on the id.
void LinPalette()
The anchor points are rescaled to be linar.
LimitLine * fLimitLine[2]
void SetRamp(Long_t ramp)
The palette is repeated up to 4 times.
Bool_t ProcessMessage(Longptr_t msg, Longptr_t param1, Longptr_t param2)
Process all editor mouse events.
void InvertPalette()
The palette is inverted.
void SetStep()
Create a step palette.
Double_t fMaxValue
max value of image
void LogPalette()
The anchor points are rescaled by a log operation.
TRootEmbeddedCanvas * fPaletteCanvas
canvas to draw the current palette
A combobox (also known as a drop down listbox) allows the selection of one item out of a list of item...
Defines top level windows that interact with the system Window Manager.
Yield an action as soon as it is clicked.
1-D histogram with a double per channel (see TH1 documentation)}
A class to define a conversion from pixel values to pixel color.
Use the TLine constructor to create a simple line.
Mother of all ROOT objects.
Edit the palette via a GUI.
This class creates a TGCanvas in which a TCanvas is created.
TVirtualPad is an abstract base class for the Pad and Canvas classes.