App
|
Abstraktná třída definující obecné vlastnosti vrstvy. More...
Classes | |
class | FileConstants |
Public Member Functions | |
Layer (Image owner, int id) | |
Defaultní konstruktor. | |
Layer (Image owner, Element i, ImageFile f) | |
int | dispose () |
Provede uvolnění prostředků zabraných vrstvou. | |
abstract Layer | duplicate (int newId) |
void | resizeTo (int nWidth, int nHeight, InterpolatorType iType, double force) throws BitmapAllocationException |
void | cropTo (Rect r) |
void | fillLayerElement (Document d, ImageFile f, Element e) |
abstract LayerType | getType () |
Vrací typ vrstvy. | |
int | getExtraMargin () |
Vrací velikost okraje, který odpovídá okolí vrstvy, ze kterého vrstva při své aplikaci bere data. | |
int | getId () |
Vrací id vrstvy. | |
Depth | getDepth () |
Vrací bitovou hloubku vrstvy. | |
int | getWidth () |
Vrací šířku vrstvy v px. | |
int | getHeight () |
Vrací výšku vrstvy v px. | |
boolean | isVisible () |
Vrací viditelnost vrstvy. | |
void | setVisible (boolean visible) |
nastavuje viditelnost vrstvy. | |
double | getOpacity () |
Vrací průhlednost vrstvy. | |
void | setOpacity (double opacity) |
Nastavuje průhlednost vrstvy z intervalu 0..1. | |
NBitmap | getMask (boolean forceCreate) throws UnsupportedBitmapException, BitmapAllocationException |
Vrací masku vrstvy. | |
boolean | isMaskActive () throws IllegalStateException |
Vrací true, pokud je maska vrstvy aktivní. | |
void | setMaskActive (boolean maskActive) throws UnsupportedBitmapException, BitmapAllocationException |
Zapne/vypne masku. Pokud maska zatím neexistuje, bude vytvořena. | |
void | updateInfo (LayerPDInfo info) |
Vrstva nastaví paramtry v info tak, že ji budou reprezentovat. | |
abstract void | updateFromSpecificPresentation (LayerPDInfo presentation) |
Odvozená třída v této metodě upraví svoje specifická data tak, aby odpovídala reprezentaci. | |
abstract int | applyTo (NBitmap dst) |
Aplikuje vrstvu na danou bitmapu. | |
abstract int | applyTo (NBitmap dst, Rect srcRect, int srcOrigX, int srcOrigY) |
Aplikuje výřez z vrstvy určený obdélníkem srcRect na odpovídající oblast bitmapy s počátkem v srcOrig. | |
abstract int | applyTo (NBitmap dst, Rect srcRect, int srcOrigX, int srcOrigY, NBitmap mask) |
Aplikuje výřezz vrstvy určený obdélníkem srcRect na odpovídající oblast bitmapy s počátkem v srcOrig. Pokud vrstva vyžaduje použití masky, použije se jako náhrada maska mask. | |
Static Public Attributes | |
static final double | opacityAsFull = 0.9999 |
Maximální hodnota opacity, která se ještě aplikuje, vyšší je považované za 1 a volá se optimalizovaná funkce. | |
static final double | opacityAsNone = 0.0001 |
Minimální hodnota opacity, která se ještě aplikuje, nižší je považované za 0 a vrstva se neaplikuje. | |
Protected Member Functions | |
void | finalize () throws Throwable |
Layer (Layer l, int newId) | |
void | initMask () throws UnsupportedBitmapException, BitmapAllocationException |
Inicializuje masku vrstvy, pokud ještě neexistuje, bude vytvořena. | |
void | appendLeafElement (Document d, Element parent, String eName, String eContetnt) |
abstract void | updateSpecificData (LayerPDInfo info) |
Odvozená třída musí v této metodě inicializovat specifická data své reprezentace tak, aby jí odpovídaly. | |
abstract void | fillSpecificElement (Document d, ImageFile f, Element e) |
void | onCrop (Rect r) |
void | onResize (int nWidth, int nHeight, InterpolatorType iType, double force) |
Protected Attributes | |
int | id |
Id vrstvy, unikátní v rámci obrazu. | |
Image | owner |
Obraz, který vlastní vrstvu. | |
Depth | depth |
Barevná hloubka vrstvy, měla by odpovídat barevné hloubce obrazu... | |
int | width |
Výška vrstvy v pixelech. | |
int | height |
Šířka vrstvy v pixelech. | |
double | opacity = 1 |
Dodatečná alpha z intervalu 0..1. | |
boolean | visible = true |
Viditelnost vrstvy. | |
NBitmap | mask = null |
Maska vrstvy, vytvoří se až při prvním použití. | |
boolean | maskActive = false |
Informace o tom, jestli je maska zapnutá. | |
Abstraktná třída definující obecné vlastnosti vrstvy.
Definition at line 28 of file Layer.java.
|
inlineprotected |
Definition at line 79 of file Layer.java.
|
inline |
Defaultní konstruktor.
Defaultní konstruktor. Konstruktor, se stejnou signaturou musí implementovat všechny odvozené třídy a musí být schopen vytvořit vrstvu s defaultními parametry. Vrstva s defaultními parametry musí být neutrální, tedy její aplikací se nesmí změnit obraz.
owner | |
id |
Definition at line 102 of file Layer.java.
Definition at line 110 of file Layer.java.
|
inlineprotected |
Definition at line 181 of file Layer.java.
|
pure virtual |
Aplikuje vrstvu na danou bitmapu.
dst |
Implemented in mhr.appcore.image.layers.RasterLayer, mhr.appcore.image.layers.ColorLayer, mhr.appcore.image.layers.lut.LUTLayer, and mhr.appcore.image.layers.filter.FilterLayer.
|
pure virtual |
Aplikuje výřez z vrstvy určený obdélníkem srcRect na odpovídající oblast bitmapy s počátkem v srcOrig.
dst | |
srcRect | |
srcOrigX | |
srcOrigY |
Implemented in mhr.appcore.image.layers.RasterLayer, mhr.appcore.image.layers.ColorLayer, mhr.appcore.image.layers.lut.LUTLayer, and mhr.appcore.image.layers.filter.FilterLayer.
|
pure virtual |
Aplikuje výřezz vrstvy určený obdélníkem srcRect na odpovídající oblast bitmapy s počátkem v srcOrig. Pokud vrstva vyžaduje použití masky, použije se jako náhrada maska mask.
dst | |
srcRect | |
srcOrigX | |
srcOrigY | |
mask |
Implemented in mhr.appcore.image.layers.RasterLayer, mhr.appcore.image.layers.ColorLayer, mhr.appcore.image.layers.filter.FilterLayer, and mhr.appcore.image.layers.lut.LUTLayer.
|
inline |
|
inline |
|
pure virtual |
Implemented in mhr.appcore.image.layers.RasterLayer, mhr.appcore.image.layers.ColorLayer, mhr.appcore.image.layers.lut.CurvesLUTLayer, mhr.appcore.image.layers.filter.GaussianBlurFilterLayer, mhr.appcore.image.layers.filter.GaussianSharpenFilterLayer, mhr.appcore.image.layers.lut.GammaLUTLayer, mhr.appcore.image.layers.filter.DifferenceOfGaussianSharpenFilterLayer, mhr.appcore.image.layers.filter.LaplacianOfGaussianSharpenFilterLayer, mhr.appcore.image.layers.lut.BrightnessLUTLayer, mhr.appcore.image.layers.filter.LaplaceSharpenFilterLayer, and mhr.appcore.image.layers.lut.ContrastLUTLayer.
|
inline |
Definition at line 236 of file Layer.java.
|
protectedpure virtual |
Implemented in mhr.appcore.image.layers.lut.CurvesLUTLayer, mhr.appcore.image.layers.RasterLayer, mhr.appcore.image.layers.filter.DifferenceOfGaussianSharpenFilterLayer, mhr.appcore.image.layers.filter.LaplacianOfGaussianSharpenFilterLayer, mhr.appcore.image.layers.filter.GaussianBlurFilterLayer, mhr.appcore.image.layers.filter.GaussianSharpenFilterLayer, mhr.appcore.image.layers.lut.BrightnessLUTLayer, mhr.appcore.image.layers.filter.LaplaceSharpenFilterLayer, mhr.appcore.image.layers.ColorLayer, mhr.appcore.image.layers.lut.ContrastLUTLayer, and mhr.appcore.image.layers.lut.GammaLUTLayer.
|
inlineprotected |
Definition at line 74 of file Layer.java.
|
inline |
|
inline |
Vrací velikost okraje, který odpovídá okolí vrstvy, ze kterého vrstva při své aplikaci bere data.
Definition at line 271 of file Layer.java.
|
inline |
|
inline |
|
inline |
Vrací masku vrstvy.
forceCreate | Parametr, jestli se má maska vytvořit, pokud neexistuje. |
UnsupportedBitmapException | |
BitmapAllocationException |
Definition at line 347 of file Layer.java.
|
inline |
|
pure virtual |
Vrací typ vrstvy.
Implemented in mhr.appcore.image.layers.lut.CurvesLUTLayer, mhr.appcore.image.layers.RasterLayer, mhr.appcore.image.layers.filter.DifferenceOfGaussianSharpenFilterLayer, mhr.appcore.image.layers.filter.LaplacianOfGaussianSharpenFilterLayer, mhr.appcore.image.layers.lut.BrightnessLUTLayer, mhr.appcore.image.layers.filter.LaplaceSharpenFilterLayer, mhr.appcore.image.layers.filter.GaussianBlurFilterLayer, mhr.appcore.image.layers.filter.GaussianSharpenFilterLayer, mhr.appcore.image.layers.lut.ContrastLUTLayer, mhr.appcore.image.layers.ColorLayer, and mhr.appcore.image.layers.lut.GammaLUTLayer.
|
inline |
|
inlineprotected |
Inicializuje masku vrstvy, pokud ještě neexistuje, bude vytvořena.
UnsupportedBitmapException | |
BitmapAllocationException |
Definition at line 174 of file Layer.java.
|
inline |
Vrací true, pokud je maska vrstvy aktivní.
IllegalStateException |
Definition at line 359 of file Layer.java.
|
inline |
|
inlineprotected |
Definition at line 196 of file Layer.java.
|
inlineprotected |
Definition at line 200 of file Layer.java.
|
inline |
Definition at line 207 of file Layer.java.
|
inline |
Zapne/vypne masku. Pokud maska zatím neexistuje, bude vytvořena.
maskActive |
UnsupportedBitmapException | |
BitmapAllocationException |
Definition at line 375 of file Layer.java.
|
inline |
Nastavuje průhlednost vrstvy z intervalu 0..1.
opacity |
Definition at line 335 of file Layer.java.
|
inline |
|
pure virtual |
Odvozená třída v této metodě upraví svoje specifická data tak, aby odpovídala reprezentaci.
presentation |
Implemented in mhr.appcore.image.layers.RasterLayer, mhr.appcore.image.layers.ColorLayer, mhr.appcore.image.layers.lut.CurvesLUTLayer, mhr.appcore.image.layers.filter.DifferenceOfGaussianSharpenFilterLayer, mhr.appcore.image.layers.filter.LaplacianOfGaussianSharpenFilterLayer, mhr.appcore.image.layers.filter.GaussianBlurFilterLayer, mhr.appcore.image.layers.filter.GaussianSharpenFilterLayer, mhr.appcore.image.layers.lut.BrightnessLUTLayer, mhr.appcore.image.layers.filter.LaplaceSharpenFilterLayer, mhr.appcore.image.layers.lut.ContrastLUTLayer, and mhr.appcore.image.layers.lut.GammaLUTLayer.
|
inline |
Vrstva nastaví paramtry v info tak, že ji budou reprezentovat.
info |
Definition at line 388 of file Layer.java.
|
protectedpure virtual |
Odvozená třída musí v této metodě inicializovat specifická data své reprezentace tak, aby jí odpovídaly.
info |
Implemented in mhr.appcore.image.layers.RasterLayer, mhr.appcore.image.layers.ColorLayer, mhr.appcore.image.layers.lut.CurvesLUTLayer, mhr.appcore.image.layers.filter.DifferenceOfGaussianSharpenFilterLayer, mhr.appcore.image.layers.filter.LaplacianOfGaussianSharpenFilterLayer, mhr.appcore.image.layers.filter.GaussianSharpenFilterLayer, mhr.appcore.image.layers.lut.BrightnessLUTLayer, mhr.appcore.image.layers.filter.LaplaceSharpenFilterLayer, mhr.appcore.image.layers.filter.GaussianBlurFilterLayer, mhr.appcore.image.layers.lut.ContrastLUTLayer, and mhr.appcore.image.layers.lut.GammaLUTLayer.
|
protected |
Barevná hloubka vrstvy, měla by odpovídat barevné hloubce obrazu...
Definition at line 52 of file Layer.java.
|
protected |
Šířka vrstvy v pixelech.
Definition at line 54 of file Layer.java.
|
protected |
Id vrstvy, unikátní v rámci obrazu.
Definition at line 50 of file Layer.java.
|
protected |
Maska vrstvy, vytvoří se až při prvním použití.
Definition at line 66 of file Layer.java.
|
protected |
Informace o tom, jestli je maska zapnutá.
Definition at line 67 of file Layer.java.
|
protected |
Dodatečná alpha z intervalu 0..1.
Definition at line 55 of file Layer.java.
|
static |
Maximální hodnota opacity, která se ještě aplikuje, vyšší je považované za 1 a volá se optimalizovaná funkce.
Hodnota je více než dostačující pro 8bit. alphu, ale už plně nevystihuje rozlišovací schopnost 16bit. alphy.Macímální hodnota opacity, který se ještě aplikuje, vyžší je považované za 1
Definition at line 64 of file Layer.java.
|
static |
Minimální hodnota opacity, která se ještě aplikuje, nižší je považované za 0 a vrstva se neaplikuje.
Definition at line 65 of file Layer.java.
|
protected |
Obraz, který vlastní vrstvu.
Definition at line 51 of file Layer.java.
|
protected |
Viditelnost vrstvy.
Definition at line 56 of file Layer.java.
|
protected |
Výška vrstvy v pixelech.
Definition at line 53 of file Layer.java.