33 #ifndef _DIRECTEDLINE_H
34 #define _DIRECTEDLINE_H
36 #include "definitions.h"
37 #include "sampledLine.h"
39 enum {INCREASING, DECREASING};
71 Real* getVertex(Int i);
72 Int get_npoints() {
return sline->get_npoints();}
78 short getDirection(){
return direction;}
79 void putDirection(
short dir) {direction = dir;}
90 void deletePolygonList();
91 void deleteSinglePolygon();
93 void deleteSinglePolygonWithSline();
94 void deletePolygonListWithSline();
115 Int numEdgesAllPolygons();
127 void printAllPolygons();
128 void writeAllPolygons(
char* filename);
135 Int toArraySinglePolygon(
directedLine** array, Int index);
136 directedLine** toArrayAllPolygons(Int& total_num_edges);
151 void setRootBit() {rootBit = 1;}
152 void resetRootBit() {rootBit = 0;}
167 extern Int compV2InY(Real A[2], Real B[2]);
168 extern Int compV2InX(Real A[2], Real B[2]);