library: libASImage
#include "TASPaletteEditor.h"

TASPaletteEditor


class description - source file - inheritance tree (.pdf)

class TASPaletteEditor : public TPaletteEditor, public TGMainFrame

Inheritance Chart:
TPaletteEditor
TObject
<-
TGObject
<-
TGWindow
TQObject
<-
TGFrame
<-
TGCompositeFrame
<-
TGMainFrame
<-
TASPaletteEditor

    protected:
void ExpPalette() void InsertNewPalette(TImagePalette* newPalette) void InvertPalette() void LinPalette() void LogPalette() void NewPalette(Long_t id) void Open() void Save() void SetRamp(Long_t ramp) void SetStep() void UpdateScreen(Bool_t histoUpdate) public:
TASPaletteEditor(TAttImage* attImage, UInt_t w, UInt_t h) TASPaletteEditor(const TASPaletteEditor&) virtual ~TASPaletteEditor() static TClass* Class() virtual void CloseWindow() virtual TClass* IsA() const virtual Bool_t ProcessMessage(Long_t msg, Long_t param1, Long_t param2) virtual void ShowMembers(TMemberInspector& insp, char* parent) virtual void Streamer(TBuffer& b) void StreamerNVirtual(TBuffer& b) void UpdateRange()

Data Members


    protected:
Double_t fMinValue min value of image Double_t fMaxValue max value of image TH1D* fHisto hitogram of image pixels TRootEmbeddedCanvas* fPaletteCanvas canvas to draw the current palette TRootEmbeddedCanvas* fHistCanvas canvas to draw the histogram TList* fPaletteList list of palettes for undo and redo TImagePalette* fPalette current palette TVirtualPad* fImagePad TASPaletteEditor::PaintPalette* fPaintPalette TASPaletteEditor::LimitLine* fLimitLine[2] TGTextButton* fUnDoButton TGTextButton* fReDoButton TGCheckButton* fAutoUpdate TGCheckButton* fStepButton TGRadioButton* fRamps[3] Int_t fRampFactor TGComboBox* fComboBox

Class Description

                                                                      
  TASPaletteEditor                                                    
                                                                      
  This is a GUI window to edit a color palette.                       
  It is called by a pull down menu item of TASImage.                  
                                                                      


TASPaletteEditor(TAttImage *attImage, UInt_t w, UInt_t h) : TPaletteEditor(attImage, w, h), TGMainFrame(gClient->GetRoot(), w, h)
 Palette editor constructor.
 The palette editor aloows the editing of the color palette of the image.

~TASPaletteEditor()
 Palette editor destructor. Deletes all frames and their layout hints.

void CloseWindow()
 Close editor.

Bool_t ProcessMessage(Long_t msg, Long_t param1, Long_t param2)
 Process all editor mouse events

void InsertNewPalette(TImagePalette *newPalette)
 The newPalette is inserted in the list of palettes (fPaletteList) and
 fPalette is set to the newPalette. Protected method,

void Save()
 Saves the current palette either into a ROOT file or in an ASCII file.
 It is called by the Save - button. Protected method.

void Open()
 Opens either a ROOT file or an ASCII file and reads a palette.
 It is called by the Open - button. Protected method.

void UpdateScreen(Bool_t histoUpdate)
 All widgeds of the screen are updated with the current palette.
 Protected method.

void LogPalette()
 The anchor points are rescaled by a log operation.
 It is called by the log - button. Protected method.

void ExpPalette()
 The anchor points are rescaled by a exp operation.
 It is called by the exp - button. Protected method.

void LinPalette()
 The anchor points are rescaled to be linar.
 It is called by the lin - button. Protected method.

void InvertPalette()
 The palette is inverted.
 It is called by the invert - button. Protected method.

void NewPalette(Long_t id)
 A new palette is created, depending on the id.
 It is called by the combo box. Protected method.

void SetStep()
 Create a step palette. This is called by the step - check button.
 Protected method.

void SetRamp(Long_t ramp)
 The palette is repeated up to 4 times.
 This is called by one of the ramp radio buttons. Protected method.

void UpdateRange()
 Updates the range of the palette.
 This is called after the blue limit lines were moved to define
 a new range.



Inline Functions


                 TClass* Class()
                 TClass* IsA() const
                    void ShowMembers(TMemberInspector& insp, char* parent)
                    void Streamer(TBuffer& b)
                    void StreamerNVirtual(TBuffer& b)
        TASPaletteEditor TASPaletteEditor(const TASPaletteEditor&)


Author: Reiner Rohlfs 24/03/2002
Last update: root/asimage:$Name: $:$Id: TASPaletteEditor.cxx,v 1.6 2004/12/07 15:34:27 brun Exp $
Copyright (C) 1995-2002, Rene Brun, Fons Rademakers and Reiner Rohlfs *


ROOT page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.