![]() |
ROOT 6.07/09 Reference Guide |
TImage attributes.
Image attributes are:
This class is used (in general by secondary inheritance) by some other classes (image display).
Definition at line 65 of file TAttImage.h.
Public Types | |
enum | EImageQuality { kImgDefault = -1, kImgPoor = 0, kImgFast = 1, kImgGood = 2, kImgBest = 3 } |
Public Member Functions | |
TAttImage () | |
TAttImage default constructor. More... | |
TAttImage (EImageQuality lquality, UInt_t lcompression, Bool_t constRatio) | |
TAttImage normal constructor. More... | |
virtual | ~TAttImage () |
TAttImage destructor. More... | |
void | Copy (TAttImage &attline) const |
Copy this image attributes to a new attimage. More... | |
virtual void | EditorClosed () |
Bool_t | GetConstRatio () const |
UInt_t | GetImageCompression () const |
EImageQuality | GetImageQuality () const |
virtual const TImagePalette & | GetPalette () const |
Bool_t | IsPaletteEnabled () const |
virtual void | ResetAttImage (Option_t *option="") |
Reset this image attributes to default values. More... | |
virtual void | SaveImageAttributes (std::ostream &out, const char *name, EImageQuality qualdef=kImgDefault, UInt_t comprdef=0, Bool_t constRatiodef=kTRUE) |
Save image attributes as C++ statement(s) on output stream, but not the palette. More... | |
virtual void | SetConstRatio (Bool_t constRatio=kTRUE) |
Set (constRatio = kTRUE) or unset (constRadio = kFALSE) the ratio flag. More... | |
virtual void | SetImageCompression (UInt_t lcompression) |
virtual void | SetImageQuality (EImageQuality lquality) |
virtual void | SetPalette (const TImagePalette *palette) |
Set a new palette for the image. More... | |
virtual void | SetPaletteEnabled (Bool_t on=kTRUE) |
virtual void | StartPaletteEditor () |
Opens a GUI to edit the color palette. More... | |
Protected Attributes | |
Bool_t | fConstRatio |
keep aspect ratio of image on the screen More... | |
UInt_t | fImageCompression |
compression [0 .. 100] 0: no compression More... | |
EImageQuality | fImageQuality |
OPTION={GetMethod="GetImageQuality";SetMethod="SetImageQuality";Items=(kImgDefault="Default",kImgPoor="Poor",kImgFast="Fast",kImgGood="Good",kImgBest="Best")} More... | |
TImagePalette | fPalette |
color palette for value -> color conversion More... | |
TPaletteEditor * | fPaletteEditor |
! GUI to edit the color palette More... | |
Bool_t | fPaletteEnabled |
! kTRUE - palette is drawn on the image More... | |
#include <TAttImage.h>
Enumerator | |
---|---|
kImgDefault | |
kImgPoor | |
kImgFast | |
kImgGood | |
kImgBest |
Definition at line 69 of file TAttImage.h.
TAttImage::TAttImage | ( | ) |
TAttImage default constructor.
Calls ResetAttImage to set the attributes to a default state.
Definition at line 524 of file TAttImage.cxx.
TAttImage::TAttImage | ( | EImageQuality | lquality, |
UInt_t | lcompression, | ||
Bool_t | constRatio | ||
) |
TAttImage normal constructor.
Image attributes are taken from the argument list
[in] | lquality | must be one of EImageQuality (kImgDefault is same as kImgGood in the current implementation) |
[in] | lcompression | defines the compression rate of the color data in the image. Speed and memory depends on this rate, but not the image display itself 0: no compression; 100: max compression |
[in] | constRatio | keeps the aspect ratio of the image constant on the screen (in pixel units) |
Definition at line 544 of file TAttImage.cxx.
|
virtual |
TAttImage destructor.
Definition at line 559 of file TAttImage.cxx.
Copy this image attributes to a new attimage.
Definition at line 567 of file TAttImage.cxx.
|
inlinevirtual |
Definition at line 109 of file TAttImage.h.
|
inline |
Definition at line 91 of file TAttImage.h.
|
inline |
Definition at line 92 of file TAttImage.h.
|
inline |
Definition at line 93 of file TAttImage.h.
|
inlinevirtual |
Definition at line 94 of file TAttImage.h.
|
inline |
Definition at line 110 of file TAttImage.h.
Reset this image attributes to default values.
Default values are:
Definition at line 584 of file TAttImage.cxx.
|
virtual |
Save image attributes as C++ statement(s) on output stream, but not the palette.
Definition at line 620 of file TAttImage.cxx.
Set (constRatio = kTRUE) or unset (constRadio = kFALSE) the ratio flag.
The aspect ratio of the image on the screen is constant if the ratio flag is set. That means one image pixel is always a square on the screen independent of the pad size and of the size of the zoomed area.
Definition at line 641 of file TAttImage.cxx.
Definition at line 103 of file TAttImage.h.
|
inlinevirtual |
Definition at line 105 of file TAttImage.h.
|
virtual |
Set a new palette for the image.
If palette == 0 a default rainbow color palette is used.
Reimplemented in TASImage.
Definition at line 650 of file TAttImage.cxx.
Reimplemented in TASImage.
Definition at line 102 of file TAttImage.h.
|
virtual |
Opens a GUI to edit the color palette.
Reimplemented in TASImage.
Definition at line 779 of file TAttImage.cxx.
|
protected |
keep aspect ratio of image on the screen
Definition at line 80 of file TAttImage.h.
|
protected |
compression [0 .. 100] 0: no compression
Definition at line 79 of file TAttImage.h.
|
protected |
OPTION={GetMethod="GetImageQuality";SetMethod="SetImageQuality";Items=(kImgDefault="Default",kImgPoor="Poor",kImgFast="Fast",kImgGood="Good",kImgBest="Best")}
Definition at line 78 of file TAttImage.h.
|
protected |
color palette for value -> color conversion
Definition at line 81 of file TAttImage.h.
|
protected |
! GUI to edit the color palette
Definition at line 82 of file TAttImage.h.
|
protected |
! kTRUE - palette is drawn on the image
Definition at line 83 of file TAttImage.h.