ROOT
6.07/01
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 108 of file TAttImage.h.
Public Types | |
enum | EImageQuality { kImgDefault = -1, kImgPoor = 0, kImgFast = 1, kImgGood = 2, kImgBest = 3 } |
Public Member Functions | |
TAttImage () | |
kTRUE - palette is drawn on the image 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... | |
Bool_t | GetConstRatio () const |
UInt_t | GetImageCompression () const |
EImageQuality | GetImageQuality () const |
virtual const TImagePalette & | GetPalette () 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 | SetPaletteEnabled (Bool_t on=kTRUE) |
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 | StartPaletteEditor () |
Opens a GUI to edit the color palette. More... | |
virtual void | EditorClosed () |
Bool_t | IsPaletteEnabled () const |
Protected Attributes | |
EImageQuality | fImageQuality |
UInt_t | fImageCompression |
Bool_t | fConstRatio |
TImagePalette | fPalette |
TPaletteEditor * | fPaletteEditor |
Bool_t | fPaletteEnabled |
GUI to edit the color palette. More... | |
#include <TAttImage.h>
Enumerator | |
---|---|
kImgDefault | |
kImgPoor | |
kImgFast | |
kImgGood | |
kImgBest |
Definition at line 112 of file TAttImage.h.
TAttImage::TAttImage | ( | ) |
kTRUE - palette is drawn on the image
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 152 of file TAttImage.h.
Referenced by TPaletteEditor::CloseWindow().
|
inline |
Definition at line 134 of file TAttImage.h.
Referenced by TASImage::Paint().
|
inline |
Definition at line 135 of file TAttImage.h.
Referenced by TASImage::Bevel(), TASImage::Blur(), TASImage::CreateThumbnail(), TASImage::Crop(), TASImage::DrawText(), TASImage::Flip(), TASImage::Gradient(), TASImage::Gray(), TASImage::Merge(), TASImage::Mirror(), TASImage::Pad(), TASImage::Paint(), TASImage::ReadImage(), TASImage::Scale(), TASImage::SetImage(), TASImage::Slice(), TASImage::Tile(), and TASImage::WriteImage().
|
inline |
Definition at line 136 of file TAttImage.h.
Referenced by TASImage::Bevel(), TASImage::Blur(), TASImage::CreateThumbnail(), TASImage::Crop(), TASImage::DrawText(), TASImage::Flip(), TASImage::Gradient(), TASImage::Gray(), TASImage::Merge(), TASImage::Mirror(), TASImage::Pad(), TASPaletteEditor::PaintPalette::Paint(), TASImage::Paint(), TASImage::Scale(), TASImage::SetImage(), TASImage::SetPalette(), TASImage::Slice(), TASImage::Tile(), and TASImage::WriteImage().
|
inlinevirtual |
Definition at line 137 of file TAttImage.h.
Referenced by TASImage::Paint(), TASImage::SetImage(), and TASImage::SetPalette().
|
inline |
Definition at line 153 of file TAttImage.h.
Reset this image attributes to default values.
Default values are:
Definition at line 584 of file TAttImage.cxx.
Referenced by TAttImage().
|
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.
Referenced by TMVA::draw_activation(), and TMVA::TMVAGlob::plot_logo().
Definition at line 146 of file TAttImage.h.
|
inlinevirtual |
Definition at line 148 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.
Referenced by TASPaletteEditor::InsertNewPalette(), TASPaletteEditor::ProcessMessage(), TASImage::SetImage(), and TASImage::SetPalette().
Reimplemented in TASImage.
Definition at line 145 of file TAttImage.h.
|
virtual |
Opens a GUI to edit the color palette.
Reimplemented in TASImage.
Definition at line 686 of file TAttImage.cxx.
Referenced by TASImage::StartPaletteEditor().
|
protected |
Definition at line 123 of file TAttImage.h.
Referenced by Copy(), GetConstRatio(), TASImage::Paint(), ResetAttImage(), SaveImageAttributes(), SetConstRatio(), and TAttImage().
|
protected |
Definition at line 122 of file TAttImage.h.
Referenced by Copy(), GetImageCompression(), ResetAttImage(), SaveImageAttributes(), SetImageCompression(), and TAttImage().
|
protected |
Definition at line 121 of file TAttImage.h.
Referenced by Copy(), GetImageQuality(), ResetAttImage(), SaveImageAttributes(), SetImageQuality(), and TAttImage().
|
protected |
Definition at line 124 of file TAttImage.h.
Referenced by Copy(), GetPalette(), ResetAttImage(), SetPalette(), and TASImage::Vectorize().
|
protected |
Definition at line 125 of file TAttImage.h.
Referenced by EditorClosed(), StartPaletteEditor(), TAttImage(), and ~TAttImage().
|
protected |
GUI to edit the color palette.
Definition at line 126 of file TAttImage.h.
Referenced by IsPaletteEnabled(), TASImage::Paint(), TASImage::SetDefaults(), TASImage::SetImage(), SetPaletteEnabled(), TASImage::SetPaletteEnabled(), and TAttImage().