java.lang.Object
ch.laoe.clip.AObject
ch.laoe.operation.AOperation
ch.laoe.operation.AOSegmentGenerator
- public class AOSegmentGenerator
- extends AOperation
This file is part of LAoE.
LAoE is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published
by the Free Software Foundation; either version 2 of the License,
or (at your option) any later version.
LAoE is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with LAoE; if not, write to the Free Software Foundation,
Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Class: AOSegmentGenerator
Autor: olivier gäumann, neuchâtel (switzerland)
JDK: 1.3
Desctription: generate linear segments, works without
selections!!!
History:
Date: Description: Autor:
26.07.00 erster Entwurf oli4
03.08.00 neuer Stil oli4
17.03.01 first use in a plugin oli4
27.04.01 based on Toolkit oli4
12.08.01 single-point mode oli4
01.12.01 add envelope operation oli4
21.01.02 selection-dependent and -independent mode oli4
|
Constructor Summary |
AOSegmentGenerator(float[] x,
float[] y,
int order,
int operation,
boolean selectionIndependent)
x,y: point definitions of the segments
order: interpolation order |
SINGLE_POINTS
public static final int SINGLE_POINTS
- interpolation order
- See Also:
- Constant Field Values
ORDER_0
public static final int ORDER_0
- See Also:
- Constant Field Values
ORDER_1
public static final int ORDER_1
- See Also:
- Constant Field Values
ORDER_2
public static final int ORDER_2
- See Also:
- Constant Field Values
ORDER_3
public static final int ORDER_3
- See Also:
- Constant Field Values
SPLINE
public static final int SPLINE
- See Also:
- Constant Field Values
order
private int order
REPLACE_OPERATION
public static final int REPLACE_OPERATION
- operation on samples
- See Also:
- Constant Field Values
ENVELOPE_OPERATION
public static final int ENVELOPE_OPERATION
- See Also:
- Constant Field Values
operation
private int operation
x
private float[] x
y
private float[] y
selectionIndependent
private boolean selectionIndependent
AOSegmentGenerator
public AOSegmentGenerator(float[] x,
float[] y,
int order,
int operation,
boolean selectionIndependent)
- x,y: point definitions of the segments
order: interpolation order
operate
public void operate(ch.laoe.clip.AChannelSelection ch1)
- performs the segments generation
- Overrides:
operate in class AOperation