summaryrefslogtreecommitdiffstats
path: root/src/bltGrElemLine.C
diff options
context:
space:
mode:
authorjoye <joye>2014-03-12 21:02:47 (GMT)
committerjoye <joye>2014-03-12 21:02:47 (GMT)
commita0a16e9c78def9991b7cf10c4463493b4c7d12e3 (patch)
tree51314f330e861e727fb37d7633711530479b4de9 /src/bltGrElemLine.C
parente945400d5f92a1bb81236f013ccd09a3df4b6c36 (diff)
downloadblt-a0a16e9c78def9991b7cf10c4463493b4c7d12e3.zip
blt-a0a16e9c78def9991b7cf10c4463493b4c7d12e3.tar.gz
blt-a0a16e9c78def9991b7cf10c4463493b4c7d12e3.tar.bz2
*** empty log message ***
Diffstat (limited to 'src/bltGrElemLine.C')
-rw-r--r--src/bltGrElemLine.C17
1 files changed, 10 insertions, 7 deletions
diff --git a/src/bltGrElemLine.C b/src/bltGrElemLine.C
index d40c6c0..a2505e1 100644
--- a/src/bltGrElemLine.C
+++ b/src/bltGrElemLine.C
@@ -43,13 +43,6 @@
#include "bltBitmap.h"
#include "bltConfig.h"
-typedef enum {
- PEN_INCREASING, PEN_DECREASING, PEN_BOTH_DIRECTIONS
-} PenDirection;
-
-/* Lines will be drawn between points regardless of the ordering of the
- * abscissas */
-
#define PointInRegion(e,x,y) (((x) <= (e)->right) && ((x) >= (e)->left) && ((y) <= (e)->bottom) && ((y) >= (e)->top))
#define BROKEN_TRACE(dir,last,next) \
@@ -59,6 +52,16 @@ typedef enum {
#define DRAW_SYMBOL(linePtr) \
(((linePtr)->symbolCounter % (linePtr)->symbolInterval) == 0)
+typedef struct {
+ Point2d *points;
+ int length;
+ int *map;
+} GraphPoints;
+
+typedef enum {
+ PEN_INCREASING, PEN_DECREASING, PEN_BOTH_DIRECTIONS
+} PenDirection;
+
typedef enum {
PEN_SMOOTH_LINEAR, PEN_SMOOTH_STEP, PEN_SMOOTH_NATURAL,
PEN_SMOOTH_QUADRATIC, PEN_SMOOTH_CATROM