-class lon_label : public instr_item {
- private:
- const char *pformat;
- const char *pre_str;
- const char *post_str;
- fgLabelJust justify;
- int fontSize;
- int blink;
- char format_buffer[80];
-
- public:
- lon_label( int x,
- int y,
- UINT width,
- UINT height,
- FLTFNPTR data_source,
- const char *label_format,
- const char *pre_label_string,
- const char *post_label_string,
- float scale_data,
- UINT options,
- fgLabelJust justification,
- int font_size,
- int blinking,
- bool working);
+//
+// fgRunway_instr This class is responsible for rendering the active runway
+// in the hud (if visible).
+class runway_instr : public instr_item {
+private:
+ void boundPoint(const sgdVec3& v, sgdVec3& m);
+ bool boundOutsidePoints(sgdVec3& v, sgdVec3& m);
+ bool drawLine(const sgdVec3& a1, const sgdVec3& a2,
+ const sgdVec3& p1, const sgdVec3& p2);
+ void drawArrow();
+ FGRunway* get_active_runway();
+ void get_rwy_points(sgdVec3 *points);
+ void setLineWidth(void);
+
+ sgdVec3 points3d[6], points2d[6];
+ double mm[16],pm[16], arrowScale, arrowRad, lnScale;
+ double scaleDist, default_pitch, default_heading;
+ GLint view[4];
+ FGRunway* runway;
+ FGViewer* cockpit_view;
+ unsigned short stippleOut, stippleCen;
+ bool drawIA, drawIAAlways;
+ RECT location;
+ POINT center;