App
|
Třída pro reprezentaci vrstvy, která zapouzdřuje bodovou úpravu pomocí LUT. More...
Public Member Functions | |
LUTLayer (Image owner, int id) throws UnsupportedBitmapException, BitmapAllocationException | |
Defaultní konstruktor, vytvoří vrstvu, která neprovádí nic - mapuje 1:1. | |
LUTLayer (Image owner, Element i, ImageFile f) | |
synchronized int | dispose () |
LUT | getLut () |
Vrací LUT. | |
int | applyTo (NBitmap dst) |
Aplikuje vrstvu na danou bitmapu. | |
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. | |
int | applyTo (NBitmap dst, Rect srcRect, int srcOrigX, int srcOrigY, NBitmap forcedMask) |
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. | |
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. | |
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 |
LUTLayer (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 | |
LUT | lut = null |
LUT tabulka s daty vrstvy, vytváří ji odvozené třídy. | |
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á. | |
Třída pro reprezentaci vrstvy, která zapouzdřuje bodovou úpravu pomocí LUT.
Definition at line 23 of file LUTLayer.java.
|
inlineprotected |
Definition at line 43 of file LUTLayer.java.
|
inline |
Defaultní konstruktor, vytvoří vrstvu, která neprovádí nic - mapuje 1:1.
owner | |
id |
Definition at line 55 of file LUTLayer.java.
Definition at line 59 of file LUTLayer.java.
|
inlineprotectedinherited |
Definition at line 181 of file Layer.java.
|
inlinevirtual |
Aplikuje vrstvu na danou bitmapu.
dst |
Implements mhr.appcore.image.layers.Layer.
Definition at line 97 of file LUTLayer.java.
|
inlinevirtual |
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 |
Implements mhr.appcore.image.layers.Layer.
Definition at line 112 of file LUTLayer.java.
|
inlinevirtual |
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 |
Implements mhr.appcore.image.layers.Layer.
Definition at line 127 of file LUTLayer.java.
|
inlineinherited |
|
inline |
|
pure virtualinherited |
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.
|
inlineinherited |
Definition at line 236 of file Layer.java.
|
protectedpure virtualinherited |
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 38 of file LUTLayer.java.
|
inlineinherited |
|
inlineinherited |
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.
|
inlineinherited |
|
inlineinherited |
|
inline |
|
inlineinherited |
Vrací masku vrstvy.
forceCreate | Parametr, jestli se má maska vytvořit, pokud neexistuje. |
UnsupportedBitmapException | |
BitmapAllocationException |
Definition at line 347 of file Layer.java.
|
inlineinherited |
|
pure virtualinherited |
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.
|
inlineinherited |
|
inlineprotectedinherited |
Inicializuje masku vrstvy, pokud ještě neexistuje, bude vytvořena.
UnsupportedBitmapException | |
BitmapAllocationException |
Definition at line 174 of file Layer.java.
|
inlineinherited |
Vrací true, pokud je maska vrstvy aktivní.
IllegalStateException |
Definition at line 359 of file Layer.java.
|
inlineinherited |
|
inlineprotectedinherited |
Definition at line 196 of file Layer.java.
|
inlineprotectedinherited |
Definition at line 200 of file Layer.java.
|
inlineinherited |
Definition at line 207 of file Layer.java.
|
inlineinherited |
Zapne/vypne masku. Pokud maska zatím neexistuje, bude vytvořena.
maskActive |
UnsupportedBitmapException | |
BitmapAllocationException |
Definition at line 375 of file Layer.java.
|
inlineinherited |
Nastavuje průhlednost vrstvy z intervalu 0..1.
opacity |
Definition at line 335 of file Layer.java.
|
inlineinherited |
|
pure virtualinherited |
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.
|
inlineinherited |
Vrstva nastaví paramtry v info tak, že ji budou reprezentovat.
info |
Definition at line 388 of file Layer.java.
|
protectedpure virtualinherited |
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.
|
protectedinherited |
Barevná hloubka vrstvy, měla by odpovídat barevné hloubce obrazu...
Definition at line 52 of file Layer.java.
|
protectedinherited |
Šířka vrstvy v pixelech.
Definition at line 54 of file Layer.java.
|
protectedinherited |
Id vrstvy, unikátní v rámci obrazu.
Definition at line 50 of file Layer.java.
|
protected |
LUT tabulka s daty vrstvy, vytváří ji odvozené třídy.
Definition at line 31 of file LUTLayer.java.
|
protectedinherited |
Maska vrstvy, vytvoří se až při prvním použití.
Definition at line 66 of file Layer.java.
|
protectedinherited |
Informace o tom, jestli je maska zapnutá.
Definition at line 67 of file Layer.java.
|
protectedinherited |
Dodatečná alpha z intervalu 0..1.
Definition at line 55 of file Layer.java.
|
staticinherited |
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.
|
staticinherited |
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.
|
protectedinherited |
Obraz, který vlastní vrstvu.
Definition at line 51 of file Layer.java.
|
protectedinherited |
Viditelnost vrstvy.
Definition at line 56 of file Layer.java.
|
protectedinherited |
Výška vrstvy v pixelech.
Definition at line 53 of file Layer.java.