12 #ifndef ROOT_TASPaletteEditor
13 #define ROOT_TASPaletteEditor
25 #ifndef ROOT_TAttImage
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...
TASPaletteEditor(TAttImage *attImage, UInt_t w, UInt_t h)
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.
void Paint(Option_t *option)
Paint the limit lines.
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.
virtual void ExecuteEvent(Int_t event, Int_t px, Int_t py)
Execute action corresponding to one event.
void SetStep()
Create a step palette.
void NewPalette(Long_t id)
A new palette is created, depending on the id.
1-D histogram with a double per channel (see TH1 documentation)}
TGTextButton * fUnDoButton
LimitLine(Coord_t x, Coord_t y1, Coord_t y2, TASPaletteEditor *gui)
The blue limit line in the pixel value histogram.
TGTextButton * fReDoButton
TRootEmbeddedCanvas * fPaletteCanvas
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
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.