TImage attributes.
Image attributes are:
This class is used (in general by secondary inheritance) by some other classes (image display).
Definition at line 59 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. | |
TAttImage (EImageQuality lquality, UInt_t lcompression, Bool_t constRatio) | |
TAttImage normal constructor. | |
virtual | ~TAttImage () |
TAttImage destructor. | |
void | Copy (TAttImage &attline) const |
Copy this image attributes to a new attimage. | |
virtual void | EditorClosed () |
Bool_t | GetConstRatio () const |
UInt_t | GetImageCompression () const |
EImageQuality | GetImageQuality () const |
virtual const TImagePalette & | GetPalette () const |
virtual TClass * | IsA () const |
Bool_t | IsPaletteEnabled () const |
virtual void | ResetAttImage (Option_t *option="") |
Reset this image attributes to default values. | |
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. | |
virtual void | SetConstRatio (Bool_t constRatio=kTRUE) |
Set (constRatio = kTRUE) or unset (constRadio = kFALSE) the ratio flag. | |
virtual void | SetImageCompression (UInt_t lcompression) |
virtual void | SetImageQuality (EImageQuality lquality) |
virtual void | SetPalette (const TImagePalette *palette) |
Set a new palette for the image. | |
virtual void | SetPaletteEnabled (Bool_t on=kTRUE) |
virtual void | StartPaletteEditor () |
Opens a GUI to edit the color palette. | |
virtual void | Streamer (TBuffer &) |
void | StreamerNVirtual (TBuffer &ClassDef_StreamerNVirtual_b) |
Static Public Member Functions | |
static TClass * | Class () |
static const char * | Class_Name () |
static constexpr Version_t | Class_Version () |
static const char * | DeclFileName () |
Protected Attributes | |
Bool_t | fConstRatio {kFALSE} |
keep aspect ratio of image on the screen | |
UInt_t | fImageCompression {0} |
compression [0 .. 100] 0: no compression | |
EImageQuality | fImageQuality {kImgDefault} |
OPTION={GetMethod="GetImageQuality";SetMethod="SetImageQuality";Items=(kImgDefault="Default",kImgPoor="Poor",kImgFast="Fast",kImgGood="Good",kImgBest="Best")} | |
TImagePalette | fPalette |
color palette for value -> color conversion | |
TPaletteEditor * | fPaletteEditor {nullptr} |
! GUI to edit the color palette | |
Bool_t | fPaletteEnabled {kFALSE} |
! kTRUE - palette is drawn on the image | |
#include <TAttImage.h>
Enumerator | |
---|---|
kImgDefault | |
kImgPoor | |
kImgFast | |
kImgGood | |
kImgBest |
Definition at line 63 of file TAttImage.h.
TAttImage::TAttImage | ( | ) |
TAttImage default constructor.
Calls ResetAttImage to set the attributes to a default state.
Definition at line 515 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 535 of file TAttImage.cxx.
|
virtual |
TAttImage destructor.
Definition at line 550 of file TAttImage.cxx.
|
static |
|
inlinestaticconstexpr |
Definition at line 106 of file TAttImage.h.
void TAttImage::Copy | ( | TAttImage & | attline | ) | const |
Copy this image attributes to a new attimage.
Definition at line 558 of file TAttImage.cxx.
|
inlinestatic |
Definition at line 106 of file TAttImage.h.
|
inlinevirtual |
Definition at line 103 of file TAttImage.h.
|
inline |
Definition at line 85 of file TAttImage.h.
|
inline |
Definition at line 86 of file TAttImage.h.
|
inline |
Definition at line 87 of file TAttImage.h.
|
inlinevirtual |
Definition at line 88 of file TAttImage.h.
|
inlinevirtual |
Reimplemented in TASImage, and TImage.
Definition at line 106 of file TAttImage.h.
|
inline |
Definition at line 104 of file TAttImage.h.
|
virtual |
Reset this image attributes to default values.
Default values are:
Definition at line 575 of file TAttImage.cxx.
|
virtual |
Save image attributes as C++ statement(s) on output stream, but not the palette.
Definition at line 611 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 632 of file TAttImage.cxx.
|
inlinevirtual |
Definition at line 97 of file TAttImage.h.
|
inlinevirtual |
Definition at line 99 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 641 of file TAttImage.cxx.
Reimplemented in TASImage.
Definition at line 96 of file TAttImage.h.
|
virtual |
Opens a GUI to edit the color palette.
Reimplemented in TASImage.
Definition at line 771 of file TAttImage.cxx.
|
inline |
Definition at line 106 of file TAttImage.h.
keep aspect ratio of image on the screen
Definition at line 74 of file TAttImage.h.
|
protected |
compression [0 .. 100] 0: no compression
Definition at line 73 of file TAttImage.h.
|
protected |
OPTION={GetMethod="GetImageQuality";SetMethod="SetImageQuality";Items=(kImgDefault="Default",kImgPoor="Poor",kImgFast="Fast",kImgGood="Good",kImgBest="Best")}
Definition at line 72 of file TAttImage.h.
|
protected |
color palette for value -> color conversion
Definition at line 75 of file TAttImage.h.
|
protected |
! GUI to edit the color palette
Definition at line 76 of file TAttImage.h.
! kTRUE - palette is drawn on the image
Definition at line 77 of file TAttImage.h.