/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/ |
FilterCurvesRepresentation.java | 6 import com.android.gallery3d.filtershow.ui.Spline; 14 private Spline[] mSplines = new Spline[4]; 44 Spline[] spline = new Spline[4]; local 45 for (int i = 0; i < spline.length; i++) { 46 Spline sp = representation.mSplines[i]; 48 spline[i] = new Spline(sp) 66 Spline spline = new Spline(); local [all...] |
ImageFilterCurves.java | 21 import com.android.gallery3d.filtershow.ui.Spline; 45 Spline spline = mParameters.getSpline(curveIndex); local 46 if (spline == null) { 49 float[] curve = spline.getAppliedCurve(); 57 if (!mParameters.getSpline(Spline.RGB).isOriginal()) { 59 populateArray(rgbGradient, Spline.RGB); 65 if (!mParameters.getSpline(Spline.RED).isOriginal()) { 67 populateArray(redGradient, Spline.RED); 70 if (!mParameters.getSpline(Spline.GREEN).isOriginal()) 94 Spline spline = new Spline(); local [all...] |
/external/eigen/unsupported/test/ |
splines.cpp | 15 // force the compilation of all spline functions... 16 template class Spline<double, 2, Dynamic>; 17 template class Spline<double, 3, Dynamic>; 19 template class Spline<double, 2, 2>; 20 template class Spline<double, 2, 3>; 21 template class Spline<double, 2, 4>; 22 template class Spline<double, 2, 5>; 24 template class Spline<float, 2, Dynamic>; 25 template class Spline<float, 3, Dynamic>; 27 template class Spline<float, 3, 2> 95 Spline3d spline = spline3d(); local 132 Spline3d spline = spline3d(); local 159 Spline2d spline = closed_spline2d(); local 210 const Spline2d spline = SplineFitting<Spline2d>::Interpolate(points,3); local 222 const Spline2d spline = SplineFitting<Spline2d>::Interpolate(points,3,chord_lengths); local [all...] |
/external/eigen/unsupported/Eigen/src/Splines/ |
SplineFwd.h | 17 template <typename Scalar, int Dim, int Degree = Dynamic> class Spline; 23 * \brief Compile-time attributes of the Spline class for Dynamic degree. 26 struct SplineTraits< Spline<_Scalar, _Dim, _Degree>, Dynamic > 28 typedef _Scalar Scalar; /*!< The spline curve's scalar type. */ 29 enum { Dimension = _Dim /*!< The spline curve's dimension. */ }; 30 enum { Degree = _Degree /*!< The spline curve's degree. */ }; 32 enum { OrderAtCompileTime = _Degree==Dynamic ? Dynamic : _Degree+1 /*!< The spline curve's order at compile-time. */ }; 33 enum { NumOfDerivativesAtCompileTime = OrderAtCompileTime /*!< The number of derivatives defined for the current spline. */ }; 41 /** \brief The data type used to store the spline's derivative values. */ 44 /** \brief The point type the spline is representing. * [all...] |
Spline.h | 19 * \class Spline class 20 * \brief A class representing multi-dimensional spline curves. 23 * point of the B-spline is associated with a basis function 35 class Spline 38 typedef _Scalar Scalar; /*!< The spline curve's scalar type. */ 39 enum { Dimension = _Dim /*!< The spline curve's dimension. */ }; 40 enum { Degree = _Degree /*!< The spline curve's degree. */ }; 42 /** \brief The point type the spline is representing. */ 43 typedef typename SplineTraits<Spline>::PointType PointType; 46 typedef typename SplineTraits<Spline>::KnotVectorType KnotVectorType [all...] |
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ui/ |
ImageCurves.java | 56 private int mCurrentCurveIndex = Spline.RGB; 162 private Spline getSpline(int index) { 199 if (mCurrentCurveIndex == Spline.RGB || mCurrentCurveIndex == Spline.RED) { 202 if (mCurrentCurveIndex == Spline.RGB || mCurrentCurveIndex == Spline.GREEN) { 205 if (mCurrentCurveIndex == Spline.RGB || mCurrentCurveIndex == Spline.BLUE) { 209 if (mCurrentCurveIndex == Spline.RGB) { 211 Spline spline = getSpline(i) local 230 Spline spline = getSpline(mCurrentCurveIndex); local 307 Spline spline = getSpline(mCurrentCurveIndex); local [all...] |
Spline.java | 29 public class Spline { 39 private static final String LOGTAG = "Spline"; 44 public Spline() { 48 public Spline(Spline spline) { 50 for (int i = 0; i < spline.mPoints.size(); i++) { 51 ControlPoint p = spline.mPoints.elementAt(i); 54 if (spline.mCurrentControlPoint == p) { 76 case Spline.RED 412 Spline spline = new Spline(); local [all...] |
/frameworks/base/core/java/android/util/ |
Spline.java | 20 * Performs spline interpolation given a set of control points. 23 public final class Spline { 28 private Spline(float[] x, float[] y, float[] m) { 35 * Creates a monotone cubic spline from a given set of control points. 37 * The spline is guaranteed to pass through each control point exactly. 41 * This function uses the Fritsch-Carlson method for computing the spline parameters. 52 public static Spline createMonotoneCubicSpline(float[] x, float[] y) { 99 return new Spline(x, y, m); 104 * Clamps X to the domain of the spline. 123 // We know this will be within the spline due to the boundary tests [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/cinematic/ |
MotionPath.java | 39 import com.jme3.math.Spline; 40 import com.jme3.math.Spline.SplineType; 62 private Spline spline = new Spline(); field in class:MotionPath 109 for (Iterator<Vector3f> it = spline.getControlPoints().iterator(); it.hasNext();) { 116 switch (spline.getType()) { 137 Geometry lineGeometry = new Geometry("line", new Curve(spline, 0)); 147 Geometry lineGeometry = new Geometry("line", new Curve(spline, 10)); 155 oc.write(spline, "spline", null) [all...] |
/external/jmonkeyengine/engine/src/core/com/jme3/scene/shape/ |
Curve.java | 34 import com.jme3.math.Spline; 42 * A <code>Curve</code> is a visual, line-based representation of a {@link Spline}. 43 * The underlying Spline will be sampled N times where N is the number of 51 private Spline spline; field in class:Curve 62 * Use a CatmullRom spline model that does not cycle. 68 this(new Spline(Spline.SplineType.CatmullRom, controlPoints, 10, false), nbSubSegments); 72 * Create a curve mesh from a Spline 74 * @param spline the spline to us [all...] |
Surface.java | 5 import com.jme3.math.Spline.SplineType;
|
/external/jmonkeyengine/engine/src/core/com/jme3/math/ |
Spline.java | 17 public class Spline implements Savable { 27 private List<Float> knots; //knots of NURBS spline 28 private float[] weights; //weights of NURBS spline 29 private int basisFunctionDegree; //degree of NURBS spline basis function (computed automatically) 37 public Spline() { 41 * Create a spline 42 * @param splineType the type of the spline @see {SplineType} 43 * @param controlPoints an array of vector to use as control points of the spline 52 * @param curveTension the tension of the spline 53 * @param cycle true if the spline cycle [all...] |
CurveAndSurfaceMath.java | 3 import com.jme3.math.Spline.SplineType;
23 * the nurbs spline definition
27 public static void interpolateNurbs(float u, Spline nurbSpline, Vector3f store) {
29 throw new IllegalArgumentException("Given spline is not of a NURB type!");
|
/external/jmonkeyengine/engine/src/blender/com/jme3/scene/plugins/blender/curves/ |
CurvesHelper.java | 5 import com.jme3.math.Spline.SplineType;
145 Spline bevelSpline = new Spline(SplineType.Bezier, conrtolPoints, 0, false);
150 Spline bevelSpline = new Spline(SplineType.Linear, new Vector3f[]{
240 Spline spline = new Spline(SplineType.Bezier, controlPoints, 0, false);
local 241 Curve curve = new Curve(spline, resolution);
325 Spline nurbSpline = new Spline(controlPoints.get(0), knots[0]); 560 Spline spline = new Spline(SplineType.Bezier, controlPoints, 0, false); local [all...] |
/frameworks/base/services/java/com/android/server/power/ |
DisplayPowerController.java | 41 import android.util.Spline; 208 // The auto-brightness spline adjustment. 210 private Spline mScreenAutoBrightnessSpline; 422 private static Spline createAutoBrightnessSpline(int[] lux, int[] brightness) { 433 Spline spline = Spline.createMonotoneCubicSpline(x, y); local 435 Slog.d(TAG, "Auto-brightness spline: " + spline); 437 Slog.d(TAG, String.format(" %7.1f: %7.1f", v, spline.interpolate(v))) [all...] |
/external/jmonkeyengine/engine/src/test/jme3test/animation/ |
TestCameraMotionPath.java | 47 import com.jme3.math.Spline.SplineType;
|
TestMotionPath.java | 48 import com.jme3.math.Spline.SplineType;
|
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/ |
FilterShowActivity.java | 73 import com.android.gallery3d.filtershow.ui.Spline; 337 Spline.setCurveHandle(curveHandle, curveHandleSize); 338 Spline.setCurveWidth((int) getPixelsFromDip(3)); [all...] |