cz.cuni.jagrlib
Interface Template

All Known Implementing Classes:
AdaptiveJitteringSynthesizer, AdditiveNoise, AlphaGenerator, AlphaMatrix, AlphaWorker, AmbientLightSource, AnimationWorker, AntCity, AntCityWorker, ArithmeticCodec, AudioFilter, AudioFilterWorker, AudioReplay, AWTWindow, BezierCurve, BezierRegular, BezierWorker, BlueScreen, BrepSolid, BrepSolidDirectory, BrepToImage, BufferedBitStream, ClusterDotDither, ClusterDotDither.RectangleLevelSet, ClusterDotDither.RoundLevelSet, ClusterDotDither.RoundSquareLevelSet, Colormap332, Colormaps, ColorReduce, ColorReduceRound, ColorReduceWorker, CompressedFormatBW, CompressedFormatGray, CompressedFormatOrder, CompressedFormatPal, CompressedFormatRGB, CompressedFormatTransform, CompressionWorker, Cone, CornellBox, CSG2BrepImpl, Cube, Cylinder, DataMatrix, DCT, DeadZoneQuantizer, DefaultBlockQuantizer, DefaultBrepFileFormat, DefaultDiscreteTransform, DefaultFileFormat, DefaultFunctionR2ToR2, DefaultGeometrySearch, DefaultGraphicsViewer, DefaultImageFunction, DefaultImageSynthesizer, DefaultInputListener, DefaultIntFunction, DefaultLightSource, DefaultRasterFileFormat, DefaultRasterGraphics, DefaultRealFunction, DefaultRender3D, DefaultSolid, DefaultValueTransferFunction, Deformations, DepthOfFieldCamera, DepthSort, DrawAxes, DrawAxesGL, DynamicCSGScene, EffectBlur, EffectPixelize, Ellipse, EllipseWorker, EulerBrep, EulerWorker, FaceRenderFlat, FeatureDeformation, Features, FeatureWarpingWorker, Filter1DNotch, FloodFillPoint, FloodFillWorker, FractalCircles, FractalCompressionQtree, FunctionSamples, GIFFileFormat, GLBrepRender, GlobalIlluminationWorker, GLWindow, GLWorker, GraphR2ToR, GridRenderWorker, HDRFileFormat, HDRImage, HDRMap, HuffmanCodec, CheckerTexture, ImageCompare, ImageCompositionWorker, ImageCompressionWorker, ImageCompute, ImageConvert, ImageCrop, ImageFilterWorker, ImageKDTree, ImagePredictor, ImageTransition, ImageTransition.CutoffTransition, ImageTransition.LinearTransition, ImageTransition.RampField, ImageTransition.RandomField, ImageTransition.SigmaTransition, InteractiveProjection, IntervalArray, JavaBitStream, JavaText, JFIFFileFormat, JitteringSynthesizer, JPEGQuantizer, LineAntialias, LineAntialiasSimple, LineAntiWorker, LinearQuantizer, LineBresenham, LineClipAntiWorker, LineClipping, LineClipWorker, LineWorker, LineWorkerStar, Lissajous, LZWCodec, Mandelbrot, MeshCompressionRLE, MonteCarloFF, MouseFrame, OBJFileFormat, OrderedDither, OrderSerpentine, OrderSFC, OverwriteClassificator, PFMFileFormat, PhongModel, Piece, Plane, PNGFileFormat, PolygonClip, PolygonClipWorker, PolygonFill, PolygonFillAnti, PolygonFillAntiWorker, PolygonFillWorker, PolygonScanline, PolylineAntialias, PolylineAntiWorker, ProjectionWorker, Radiosity, RadiosityEquations, RankFilter, RasterImage, RasterImagePreview, RayCasting, RayTracing, RectangleLightSource, RegPiece, Render3DWorker, RenderDepthBuffer, RenderPainter, RenderWireframe, Revolution, SampleColormap, SampleRasterSearch, SampleRenderWorker, Search2DWorker, SFCDither, SimpleGLGraphics, SimpleNoise, SimpleSLEDataStore, SimpleSynthesizer, SLEProgressive, SLERelaxation, SolidColorBrush, SolidColorPen, SolidSpecimen, Sphere, SpotTexture, StarFlare, StaticCamera, StaticCSGScene, StaticPointLightSource, StraightRoulette, SuperShootGather, Test3DScene, TestGamma, TestImageFunctions, TestImageLaser, TextureFunctions, TextWorker, TriangleWarpingWorker, TriMeshDeformation, TriMeshEditor, UniformGrid, VEFDS, WarpEngine, WarpingSpecimen, WarpingWorker, WAVFileFormatMapped, XTransitionList, ZigZagCodec, ZLIBCodec

public interface Template

Template for Piece class - abstract specimen for data-flow node.

Instances of Template object are used as nodes in graph of execution while instances of Channel object are connecting them as graph edges.

Since:
0.23
Version:
0.26 $Rev: 758 $ $Date: 2008-05-19 02:06:25 +0200 (po, 19 V 2008) $ $Author: Tomas $
See Also:
Template.java

Field Summary
static int ALL_PLUGS
          Connect all plugs (for Piece.setTemplateDynamic(cz.cuni.jagrlib.Template, int)).
static String C_1D
          category string: 1D
static String C_2D
          category string: 2D
static String C_3D
          category string: 3D
static String C_ALPHA
          category string: alpha
static String C_BINARY
          category string: binary
static String C_BREP
          category string: brep
static String C_CAMERA
          category string: camera
static String C_CIRCLE
          category string: circle
static String C_CLIP
          category string: clip
static String C_COMPRESSION
          category string: compression
static String C_CURVE
          category string: line
static String C_DATA
          category string: data
static String C_DRAW
          category string: draw
static String C_EDITOR
          category string: editor
static String C_ELLIPSE
          category string: ellipse
static String C_FILL
          category string: fill
static String C_FILTER
          category string: filter
static String C_FLOAT
          category string: float
static String C_FUNCTION
          category string: function
static String C_IMAGE
          category string: image
static String C_INTEGER
          category string: integer
static String C_IO
          category string: io
static String C_LIGHT
          category string: light
static String C_LINE
          category string: line
static String C_METRIC
          category string: metric
static String C_POLYGON
          category string: polygon
static String C_PROJECTION
          category string: projection
static String C_RADIOSITY
          category string: radiosity
static String C_RASTER
          category string: raster
static String C_RENDER
          category string: render
static String C_SAMPLE
          category string: sample
static String C_SCENE
          category string: scene
static String C_SET
          category string: set
static String C_SOLID
          category string: solid
static String C_TEXT
          category string: text
static String C_TRANSFORM
          category string: transform
static String C_VECTOR
          category string: vector
static String C_VIEWER
          category string: viewer
static String C_WORKER
          category string: worker
static String CAT_EMPTY
          Undefined category name.
static String EMPTY
          Generic string initializer.
static String IFACE
          Interface prefix = "cz.cuni.jagrlib.iface.".
static String JAGRLIB
          Base JaGrLib package.
static String JAGRLIB2
          Base JaGrLib package with trailing dot.
static int MANIPULATOR_COMBO
          List-box manipulator (for integer values only).
static int MANIPULATOR_CUSTOM
          Custom manipulator specified by its class name.
static int MANIPULATOR_DEFAULT
          Default manipulator (single edit line, checkbox, ..).
static int MANIPULATOR_MULTILINE
          Multi-line text area (for strings only).
static String PL_ALPHAMASK
          Alpha-mask Plug identifier.
static String PL_BITMASK
          Bit-mask Plug identifier.
static String PL_CODEC
          Codec Plug identifier.
static String PL_COLORMAP
          Colormap Plug identifier.
static String PL_COMPARE
          Compare Plug identifier.
static String PL_DATA
          Data Plug identifier.
static String PL_DIRECT
          Direct Plug identifier.
static String PL_EDITOR
          Editor Plug identifier.
static String PL_FILTER
          Filter Plug identifier.
static String PL_FUNCTION
          Function Plug identifier.
static String PL_IMAGE
          Raster image Plug identifier.
static String PL_IMPORT
          Import Plug identifier.
static String PL_INPUT
          Generic input Plug identifier.
static String PL_INTERSECTION
          Intersectable Plug identifier.
static String PL_LIGHTSOURCE
          Light-source Plug identifier.
static String PL_ORDER
          Order Plug identifier.
static String PL_OUTPUT
          Generic output Plug identifier.
static String PL_PALETTE
          Palette Plug identifier.
static String PL_PROPERTY
          Property Plug identifier.
static String PL_QUANTIZER
          Quantizer Plug identifier.
static String PL_RASTER
          Raster image Plug identifier.
static String PL_RENDER
          Render Plug identifier.
static String PL_STREAM
          [Bit-]stream Plug identifier.
static String PL_TRANSFORM
          Transform Plug identifier.
static String PL_TRIGGER
          Trigger Plug identifier.
static String PL_WINDOW
          Window Plug identifier.
static String TYPE_BOOLEAN
           
static String TYPE_DOUBLE
           
static String TYPE_FLOAT
           
static String TYPE_INTEGER
           
static String TYPE_LONG
           
static String TYPE_OBJECT
           
static String TYPE_STRING
           
 
Method Summary
 void newInputPlug(String key, String _inputInterface)
          Connects a new input Plug.
 void newOptOutputPlug(String key, String _outputInterface)
          Connects a new optional output Plug.
 void newOutputPlug(String key, String _outputInterface)
          Connects a new output Plug.
 void newPlug(String key, boolean _mandatory, boolean _multi, boolean _cloneable, String _inputInterface, String _outputInterface)
          Connects a new Plug.
 void propBegin(String name, String type, String descr, boolean visual)
          Starts definition of single property.
 void propBounds(Object min, Object max)
          Minimum and maximum allowed values (for comparable types only, non-mandatory).
 void propDefault(Object value)
          Default value (non-mandatory).
 void propEnd()
          Finishes definition of the property.
 void propEnum(String label, Object value, String descr)
          Adds next enum label (for list-box GUI).
 void propManipulator(int manipulatorType)
          Sets visual manipulator for GUI editing of the property.
 void propManipulator(String className)
          Sets visual manipulator for GUI editing of the property.
 void setRegStrings(String _name, String _template, String _category, String _description)
          Sets registration strings for the module.
 

Field Detail

JAGRLIB

static final String JAGRLIB
Base JaGrLib package.

See Also:
Constant Field Values

JAGRLIB2

static final String JAGRLIB2
Base JaGrLib package with trailing dot.

See Also:
Constant Field Values

IFACE

static final String IFACE
Interface prefix = "cz.cuni.jagrlib.iface.".

See Also:
Constant Field Values

EMPTY

static final String EMPTY
Generic string initializer.

See Also:
Constant Field Values

ALL_PLUGS

static final int ALL_PLUGS
Connect all plugs (for Piece.setTemplateDynamic(cz.cuni.jagrlib.Template, int)).

See Also:
Constant Field Values

PL_INPUT

static final String PL_INPUT
Generic input Plug identifier.

See Also:
Constant Field Values

PL_OUTPUT

static final String PL_OUTPUT
Generic output Plug identifier.

See Also:
Constant Field Values

PL_WINDOW

static final String PL_WINDOW
Window Plug identifier.

See Also:
Constant Field Values

PL_BITMASK

static final String PL_BITMASK
Bit-mask Plug identifier.

See Also:
Constant Field Values

PL_ALPHAMASK

static final String PL_ALPHAMASK
Alpha-mask Plug identifier.

See Also:
Constant Field Values

PL_TRIGGER

static final String PL_TRIGGER
Trigger Plug identifier.

See Also:
Constant Field Values

PL_PROPERTY

static final String PL_PROPERTY
Property Plug identifier.

See Also:
Constant Field Values

PL_DIRECT

static final String PL_DIRECT
Direct Plug identifier.

See Also:
Constant Field Values

PL_RASTER

static final String PL_RASTER
Raster image Plug identifier.

See Also:
Constant Field Values

PL_IMAGE

static final String PL_IMAGE
Raster image Plug identifier.

See Also:
Constant Field Values

PL_PALETTE

static final String PL_PALETTE
Palette Plug identifier.

See Also:
Constant Field Values

PL_COLORMAP

static final String PL_COLORMAP
Colormap Plug identifier.

See Also:
Constant Field Values

PL_COMPARE

static final String PL_COMPARE
Compare Plug identifier.

See Also:
Constant Field Values

PL_EDITOR

static final String PL_EDITOR
Editor Plug identifier.

See Also:
Constant Field Values

PL_ORDER

static final String PL_ORDER
Order Plug identifier.

See Also:
Constant Field Values

PL_DATA

static final String PL_DATA
Data Plug identifier.

See Also:
Constant Field Values

PL_FILTER

static final String PL_FILTER
Filter Plug identifier.

See Also:
Constant Field Values

PL_INTERSECTION

static final String PL_INTERSECTION
Intersectable Plug identifier.

See Also:
Constant Field Values

PL_STREAM

static final String PL_STREAM
[Bit-]stream Plug identifier.

See Also:
Constant Field Values

PL_FUNCTION

static final String PL_FUNCTION
Function Plug identifier.

See Also:
Constant Field Values

PL_LIGHTSOURCE

static final String PL_LIGHTSOURCE
Light-source Plug identifier.

See Also:
Constant Field Values

PL_TRANSFORM

static final String PL_TRANSFORM
Transform Plug identifier.

See Also:
Constant Field Values

PL_QUANTIZER

static final String PL_QUANTIZER
Quantizer Plug identifier.

See Also:
Constant Field Values

PL_CODEC

static final String PL_CODEC
Codec Plug identifier.

See Also:
Constant Field Values

PL_IMPORT

static final String PL_IMPORT
Import Plug identifier.

See Also:
Constant Field Values

PL_RENDER

static final String PL_RENDER
Render Plug identifier.

See Also:
Constant Field Values

CAT_EMPTY

static final String CAT_EMPTY
Undefined category name.

See Also:
Constant Field Values

C_WORKER

static final String C_WORKER
category string: worker

See Also:
Constant Field Values

C_1D

static final String C_1D
category string: 1D

See Also:
Constant Field Values

C_2D

static final String C_2D
category string: 2D

See Also:
Constant Field Values

C_3D

static final String C_3D
category string: 3D

See Also:
Constant Field Values

C_IO

static final String C_IO
category string: io

See Also:
Constant Field Values

C_DRAW

static final String C_DRAW
category string: draw

See Also:
Constant Field Values

C_CLIP

static final String C_CLIP
category string: clip

See Also:
Constant Field Values

C_DATA

static final String C_DATA
category string: data

See Also:
Constant Field Values

C_LINE

static final String C_LINE
category string: line

See Also:
Constant Field Values

C_FILL

static final String C_FILL
category string: fill

See Also:
Constant Field Values

C_CIRCLE

static final String C_CIRCLE
category string: circle

See Also:
Constant Field Values

C_ELLIPSE

static final String C_ELLIPSE
category string: ellipse

See Also:
Constant Field Values

C_CURVE

static final String C_CURVE
category string: line

See Also:
Constant Field Values

C_POLYGON

static final String C_POLYGON
category string: polygon

See Also:
Constant Field Values

C_TEXT

static final String C_TEXT
category string: text

See Also:
Constant Field Values

C_IMAGE

static final String C_IMAGE
category string: image

See Also:
Constant Field Values

C_FILTER

static final String C_FILTER
category string: filter

See Also:
Constant Field Values

C_SAMPLE

static final String C_SAMPLE
category string: sample

See Also:
Constant Field Values

C_INTEGER

static final String C_INTEGER
category string: integer

See Also:
Constant Field Values

C_FLOAT

static final String C_FLOAT
category string: float

See Also:
Constant Field Values

C_RASTER

static final String C_RASTER
category string: raster

See Also:
Constant Field Values

C_VECTOR

static final String C_VECTOR
category string: vector

See Also:
Constant Field Values

C_BREP

static final String C_BREP
category string: brep

See Also:
Constant Field Values

C_SET

static final String C_SET
category string: set

See Also:
Constant Field Values

C_FUNCTION

static final String C_FUNCTION
category string: function

See Also:
Constant Field Values

C_TRANSFORM

static final String C_TRANSFORM
category string: transform

See Also:
Constant Field Values

C_PROJECTION

static final String C_PROJECTION
category string: projection

See Also:
Constant Field Values

C_METRIC

static final String C_METRIC
category string: metric

See Also:
Constant Field Values

C_RENDER

static final String C_RENDER
category string: render

See Also:
Constant Field Values

C_RADIOSITY

static final String C_RADIOSITY
category string: radiosity

See Also:
Constant Field Values

C_ALPHA

static final String C_ALPHA
category string: alpha

See Also:
Constant Field Values

C_SCENE

static final String C_SCENE
category string: scene

See Also:
Constant Field Values

C_SOLID

static final String C_SOLID
category string: solid

See Also:
Constant Field Values

C_CAMERA

static final String C_CAMERA
category string: camera

See Also:
Constant Field Values

C_LIGHT

static final String C_LIGHT
category string: light

See Also:
Constant Field Values

C_VIEWER

static final String C_VIEWER
category string: viewer

See Also:
Constant Field Values

C_BINARY

static final String C_BINARY
category string: binary

See Also:
Constant Field Values

C_COMPRESSION

static final String C_COMPRESSION
category string: compression

See Also:
Constant Field Values

C_EDITOR

static final String C_EDITOR
category string: editor

See Also:
Constant Field Values

TYPE_INTEGER

static final String TYPE_INTEGER
See Also:
Constant Field Values

TYPE_LONG

static final String TYPE_LONG
See Also:
Constant Field Values

TYPE_STRING

static final String TYPE_STRING
See Also:
Constant Field Values

TYPE_DOUBLE

static final String TYPE_DOUBLE
See Also:
Constant Field Values

TYPE_FLOAT

static final String TYPE_FLOAT
See Also:
Constant Field Values

TYPE_BOOLEAN

static final String TYPE_BOOLEAN
See Also:
Constant Field Values

TYPE_OBJECT

static final String TYPE_OBJECT
See Also:
Constant Field Values

MANIPULATOR_DEFAULT

static final int MANIPULATOR_DEFAULT
Default manipulator (single edit line, checkbox, ..).

See Also:
Constant Field Values

MANIPULATOR_CUSTOM

static final int MANIPULATOR_CUSTOM
Custom manipulator specified by its class name.

See Also:
Constant Field Values

MANIPULATOR_COMBO

static final int MANIPULATOR_COMBO
List-box manipulator (for integer values only).

See Also:
Constant Field Values

MANIPULATOR_MULTILINE

static final int MANIPULATOR_MULTILINE
Multi-line text area (for strings only).

See Also:
Constant Field Values
Method Detail

newPlug

void newPlug(String key,
             boolean _mandatory,
             boolean _multi,
             boolean _cloneable,
             String _inputInterface,
             String _outputInterface)
Connects a new Plug. General routine.

Parameters:
key - New plug's key.
_mandatory - Is that plug mandatory (has to be connected)?
_multi - Can that plug be used in multi-channels?
_cloneable - Is that plug "cloneable" (=generic)? If yes, ordinal numbers (starting from 0) will be appended to its name.
_inputInterface - Fully qualified identifier of input (implemented) interface.
_outputInterface - Fully qualified identifier of output (required) interface.

newInputPlug

void newInputPlug(String key,
                  String _inputInterface)
Connects a new input Plug. Common-use routine: creates optional, non-cloneable, multi plug.

Parameters:
key - New plug's key.
_inputInterface - Fully qualified identifier of input (implemented) interface.

newOutputPlug

void newOutputPlug(String key,
                   String _outputInterface)
Connects a new output Plug. Common-use routine: creates mandatory, non-cloneable, multi plug.

Parameters:
key - New plug's key.
_outputInterface - Fully qualified identifier of output (required) interface.

newOptOutputPlug

void newOptOutputPlug(String key,
                      String _outputInterface)
Connects a new optional output Plug. Common-use routine: creates optional, non-cloneable, multi plug.

Parameters:
key - New plug's key.
_outputInterface - Fully qualified identifier of output (required) interface.

setRegStrings

void setRegStrings(String _name,
                   String _template,
                   String _category,
                   String _description)
Sets registration strings for the module.


propBegin

void propBegin(String name,
               String type,
               String descr,
               boolean visual)
Starts definition of single property.

Parameters:
name - String identifier (unique inside one module class).
type - Value type - full Java class identifier.
descr - Brief textual description (for human eyes only).
visual - Should be this property represented visually in GUI?
See Also:
propEnd()

propDefault

void propDefault(Object value)
Default value (non-mandatory).


propBounds

void propBounds(Object min,
                Object max)
Minimum and maximum allowed values (for comparable types only, non-mandatory).


propManipulator

void propManipulator(int manipulatorType)
Sets visual manipulator for GUI editing of the property. For predefined manipulators.


propManipulator

void propManipulator(String className)
Sets visual manipulator for GUI editing of the property. For user-defined manipulators.

Parameters:
className - Class name (either fully-qualified or local in package cz.cuni.jagrlib.gui).

propEnum

void propEnum(String label,
              Object value,
              String descr)
Adds next enum label (for list-box GUI).

Parameters:
label - Textual label to appear in the listbox.
value - Associated property value (real-value).
descr - Optional item's description (for human eyes only).

propEnd

void propEnd()
Finishes definition of the property. Every property-definition segment started by propBegin(java.lang.String, java.lang.String, java.lang.String, boolean) must be properly closed by propEnd().

See Also:
propBegin(java.lang.String, java.lang.String, java.lang.String, boolean)