1 |
758 |
jeremybenn |
|
2 |
|
|
// DO NOT EDIT THIS FILE - it is machine generated -*- c++ -*-
|
3 |
|
|
|
4 |
|
|
#ifndef __java_awt_geom_CubicCurve2D__
|
5 |
|
|
#define __java_awt_geom_CubicCurve2D__
|
6 |
|
|
|
7 |
|
|
#pragma interface
|
8 |
|
|
|
9 |
|
|
#include <java/lang/Object.h>
|
10 |
|
|
#include <gcj/array.h>
|
11 |
|
|
|
12 |
|
|
extern "Java"
|
13 |
|
|
{
|
14 |
|
|
namespace java
|
15 |
|
|
{
|
16 |
|
|
namespace awt
|
17 |
|
|
{
|
18 |
|
|
class Rectangle;
|
19 |
|
|
namespace geom
|
20 |
|
|
{
|
21 |
|
|
class AffineTransform;
|
22 |
|
|
class CubicCurve2D;
|
23 |
|
|
class PathIterator;
|
24 |
|
|
class Point2D;
|
25 |
|
|
class Rectangle2D;
|
26 |
|
|
}
|
27 |
|
|
}
|
28 |
|
|
}
|
29 |
|
|
}
|
30 |
|
|
|
31 |
|
|
class java::awt::geom::CubicCurve2D : public ::java::lang::Object
|
32 |
|
|
{
|
33 |
|
|
|
34 |
|
|
public: // actually protected
|
35 |
|
|
CubicCurve2D();
|
36 |
|
|
public:
|
37 |
|
|
virtual jdouble getX1() = 0;
|
38 |
|
|
virtual jdouble getY1() = 0;
|
39 |
|
|
virtual ::java::awt::geom::Point2D * getP1() = 0;
|
40 |
|
|
virtual jdouble getCtrlX1() = 0;
|
41 |
|
|
virtual jdouble getCtrlY1() = 0;
|
42 |
|
|
virtual ::java::awt::geom::Point2D * getCtrlP1() = 0;
|
43 |
|
|
virtual jdouble getCtrlX2() = 0;
|
44 |
|
|
virtual jdouble getCtrlY2() = 0;
|
45 |
|
|
virtual ::java::awt::geom::Point2D * getCtrlP2() = 0;
|
46 |
|
|
virtual jdouble getX2() = 0;
|
47 |
|
|
virtual jdouble getY2() = 0;
|
48 |
|
|
virtual ::java::awt::geom::Point2D * getP2() = 0;
|
49 |
|
|
virtual void setCurve(jdouble, jdouble, jdouble, jdouble, jdouble, jdouble, jdouble, jdouble) = 0;
|
50 |
|
|
virtual void setCurve(JArray< jdouble > *, jint);
|
51 |
|
|
virtual void setCurve(::java::awt::geom::Point2D *, ::java::awt::geom::Point2D *, ::java::awt::geom::Point2D *, ::java::awt::geom::Point2D *);
|
52 |
|
|
virtual void setCurve(JArray< ::java::awt::geom::Point2D * > *, jint);
|
53 |
|
|
virtual void setCurve(::java::awt::geom::CubicCurve2D *);
|
54 |
|
|
static jdouble getFlatnessSq(jdouble, jdouble, jdouble, jdouble, jdouble, jdouble, jdouble, jdouble);
|
55 |
|
|
static jdouble getFlatness(jdouble, jdouble, jdouble, jdouble, jdouble, jdouble, jdouble, jdouble);
|
56 |
|
|
static jdouble getFlatnessSq(JArray< jdouble > *, jint);
|
57 |
|
|
static jdouble getFlatness(JArray< jdouble > *, jint);
|
58 |
|
|
virtual jdouble getFlatnessSq();
|
59 |
|
|
virtual jdouble getFlatness();
|
60 |
|
|
virtual void subdivide(::java::awt::geom::CubicCurve2D *, ::java::awt::geom::CubicCurve2D *);
|
61 |
|
|
static void subdivide(::java::awt::geom::CubicCurve2D *, ::java::awt::geom::CubicCurve2D *, ::java::awt::geom::CubicCurve2D *);
|
62 |
|
|
static void subdivide(JArray< jdouble > *, jint, JArray< jdouble > *, jint, JArray< jdouble > *, jint);
|
63 |
|
|
static jint solveCubic(JArray< jdouble > *);
|
64 |
|
|
static jint solveCubic(JArray< jdouble > *, JArray< jdouble > *);
|
65 |
|
|
virtual jboolean contains(jdouble, jdouble);
|
66 |
|
|
virtual jboolean contains(::java::awt::geom::Point2D *);
|
67 |
|
|
virtual jboolean intersects(jdouble, jdouble, jdouble, jdouble);
|
68 |
|
|
virtual jboolean intersects(::java::awt::geom::Rectangle2D *);
|
69 |
|
|
virtual jboolean contains(jdouble, jdouble, jdouble, jdouble);
|
70 |
|
|
virtual jboolean contains(::java::awt::geom::Rectangle2D *);
|
71 |
|
|
virtual ::java::awt::Rectangle * getBounds();
|
72 |
|
|
virtual ::java::awt::geom::PathIterator * getPathIterator(::java::awt::geom::AffineTransform *);
|
73 |
|
|
virtual ::java::awt::geom::PathIterator * getPathIterator(::java::awt::geom::AffineTransform *, jdouble);
|
74 |
|
|
virtual ::java::lang::Object * clone();
|
75 |
|
|
private:
|
76 |
|
|
jint getAxisIntersections(jdouble, jdouble, jboolean, jdouble);
|
77 |
|
|
public:
|
78 |
|
|
virtual ::java::awt::geom::Rectangle2D * getBounds2D() = 0;
|
79 |
|
|
private:
|
80 |
|
|
static jdouble BIG_VALUE;
|
81 |
|
|
static jdouble EPSILON;
|
82 |
|
|
public:
|
83 |
|
|
static ::java::lang::Class class$;
|
84 |
|
|
};
|
85 |
|
|
|
86 |
|
|
#endif // __java_awt_geom_CubicCurve2D__
|