/usr/include/ncarg/hlu/Workstation.h is in libncarg-dev 6.4.0-9.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 | /*
* $Id: Workstation.h,v 1.39.2.1 2010-03-17 20:47:07 brownrig Exp $
*/
/************************************************************************
* *
* Copyright (C) 1992 *
* University Corporation for Atmospheric Research *
* All Rights Reserved *
* *
************************************************************************/
/*
* File: Workstation.h
*
* Author: Ethan Alpert
* National Center for Atmospheric Research
* PO 3000, Boulder, Colorado
*
* Date: Wed Sep 9 09:51:36 MDT 1992
*
* Description: Main workstation class from which all GKS workstations
* are subclassed. This main class manages the children
* of the workstation, a color map, the workstation ID,
* and the workstation type.
*/
#ifndef _NWorkstation_h
#define _NWorkstation_h
#include <ncarg/hlu/Base.h>
#include <ncarg/hlu/GraphicStyle.h>
#define NhlwkMAX_COLORS (256)
/*
* Public Workstation Resources are defined here.
*/
#define NhlNwkColorMap "wkColorMap"
#define NhlCwkColorMap "WkColorMap"
#define NhlNwkColorMapLen "wkColorMapLen"
#define NhlCwkColorMapLen "WkColorMapLen"
#define NhlNwkBackgroundOpacityF "wkBackgroundOpacityF"
#define NhlCBackgroundOpacityF "BackgroundOpacityF"
#define NhlNwkBackgroundColor "wkBackgroundColor"
#define NhlCBackgroundColor "BackgroundColor"
#define NhlNwkForegroundColor "wkForegroundColor"
#define NhlCForegroundColor "ForegroundColor"
#define NhlNwkVSWidthDevUnits "wkVSWidthDevUnits"
#define NhlCwkVSWidthDevUnits "WkVSWidthDevUnits"
#define NhlNwkViews "wkViews"
#define NhlCwkViews "WkViews"
#define NhlNwkTopLevelViews "wkTopLevelViews"
#define NhlCwkTopLevelViews "WkTopLevelViews"
#define NhlNwkAntiAlias "wkAntiAlias"
#define NhlCwkAntiAlias "WkAntiAlias"
/*
* Public resources for setting Line and Marker attributes for
* Public Polyline interface.
*/
#define NhlNwkDashPattern "wkDashPattern"
#define NhlCwkDashPattern "WkDashPattern"
#define NhlNwkLineDashSegLenF "wkLineDashSegLenF"
#define NhlCwkLineDashSegLenF "WkLineDashSegLenF"
#define NhlNwkLineColor "wkLineColor"
#define NhlCwkLineColor "WkLineColor"
#define NhlNwkLineOpacityF "wkLineOpacityF"
#define NhlCwkLineOpacityF "WkLineOpacityF"
#define NhlNwkLineThicknessF "wkLineThicknessF"
#define NhlCwkLineThicknessF "WkLineThicknessF"
#define NhlNwkLineLabel "wkLineLabel"
#define NhlCwkLineLabel "WkLineLabel"
#define NhlNwkLineLabelFont "wkLineLabelFont"
#define NhlCwkLineLabelFont "WkLineLabelFont"
#define NhlNwkLineLabelFontColor "wkLineLabelFontColor"
#define NhlCwkLineLabelFontColor "WkLineLabelFontColor"
#define NhlNwkLineLabelFontHeightF "wkLineLabelFontHeightF"
#define NhlCwkLineLabelFontHeightF "WkLineLabelFontHeightF"
#define NhlNwkLineLabelFontAspectF "wkLineLabelFontAspectF"
#define NhlCwkLineLabelFontAspectF "WkLineLabelFontAspectF"
#define NhlNwkLineLabelFontThicknessF "wkLineLabelFontThicknessF"
#define NhlCwkLineLabelFontThicknessF "WkLineLabelFontThicknessF"
#define NhlNwkLineLabelFontQuality "wkLineLabelFontQuality"
#define NhlCwkLineLabelFontQuality "WkLineLabelFontQuality"
#define NhlNwkLineLabelConstantSpacingF "wkLineLabelConstantSpacingF"
#define NhlCwkLineLabelConstantSpacingF "WkLineLabelConstantSpacingF"
#define NhlNwkLineLabelFuncCode "wkLineLabelFuncCode"
#define NhlCwkLineLabelFuncCode "WkLineLabelFuncCode"
#define NhlNwkMarkerIndex "wkMarkerIndex"
#define NhlCwkMarkerIndex "WkMarkerIndex"
#define NhlNwkMarkerColor "wkMarkerColor"
#define NhlCwkMarkerColor "WkMarkerColor"
#define NhlNwkMarkerOpacityF "wkMarkerOpacityF"
#define NhlCwkMarkerOpacityF "WkMarkerOpacityF"
#define NhlNwkMarkerSizeF "wkMarkerSizeF"
#define NhlCwkMarkerSizeF "WkMarkerSizeF"
#define NhlNwkMarkerThicknessF "wkMarkerThicknessF"
#define NhlCwkMarkerThicknessF "WkMarkerThicknessF"
/*
* GetValues ONLY resources
*/
#define NhlNwkDashTableLength "wkDashTableLength"
#define NhlCwkDashTableLength "WkDashTableLength"
#define NhlNwkFillTableLength "wkFillTableLength"
#define NhlCwkFillTableLength "WkFillTableLength"
#define NhlNwkMarkerTableLength "wkMarkerTableLength"
#define NhlCwkMarkerTableLength "WkMarkerTableLength"
#define NhlNwkGksWorkId "wkGksWorkId"
#define NhlCwkGksWorkId "WkGksWorkId"
#define NhlNwkDefGraphicStyleId "wkDefGraphicStyleId"
#define NhlCwkDefGraphicStyleId "WkDefGraphicStyleId"
/* Dash pattern stuff */
typedef int NhlDashIndexFullEnum;
#define NhlTDashIndexFullEnum "DashIndexFullEnum"
#define NhlTDashIndexFullEnumGenArray "DashIndexFullEnumGenArray"
#define NhlUNSPECIFIEDLINE -1
typedef int NhlDashIndex;
#define NhlTDashIndex "DashIndex"
#define NhlTDashIndexGenArray "DashIndexGenArray"
#define NhlSOLIDLINE 0
/* Color stuff */
typedef int NhlColorIndexFullEnum;
#define NhlTColorIndexFullEnum "ColorIndexFullEnum"
#define NhlTColorIndexFullEnumGenArray "ColorIndexFullEnumGenArray"
#define NhlUNSPECIFIEDCOLOR -2
typedef int NhlColorIndex;
#define NhlTColorIndex "ColorIndex"
#define NhlTColorIndexGenArray "ColorIndexGenArray"
#define NhlBACKGROUND 0
#define NhlFOREGROUND 1
#define NhlTRANSPARENT -1
#define NhlNULLCOLOR -1
#define NhlTColorDefinitionGenArray "ColorDefinitionGenArray"
typedef float NhlColor[3];
/* Fill stuff */
typedef int NhlFillIndexFullEnum;
#define NhlTFillIndexFullEnum "FillIndexFullEnum"
#define NhlTFillIndexFullEnumGenArray "FillIndexFullEnumGenArray"
#define NhlUNSPECIFIEDFILL -2
typedef int NhlFillIndex;
#define NhlTFillIndex "FillIndex"
#define NhlTFillIndexGenArray "FillIndexGenArray"
#define NhlHOLLOWFILL -1
#define NhlNULLFILL -1
#define NhlSOLIDFILL 0
#define NhlWK_INITIAL_FILL_BUFSIZE 128
/* Workstation marker stuff */
typedef int NhlMarkerIndex;
#define NhlTMarkerIndex "MarkerIndex"
#define NhlTMarkerIndexGenArray "MarkerIndexGenArray"
#define NhlWK_DEF_MARKER 3
typedef float NhlMarkerTableParams[4];
#define NhlTMarkLineMode "MarkLineMode"
#define NhlTMarkLineModeGenArray "MarkLineModeGenArray"
typedef enum _NhlMarkLineMode{
NhlLINES = 0,
NhlMARKERS = 1,
NhlMARKLINES = 2
} NhlMarkLineMode;
/* font/text stuff */
typedef enum {NhlHIGH,NhlMEDIUM,NhlLOW,NhlWORKSTATION} NhlFontQuality;
typedef enum {NhlDOWN,NhlACROSS} NhlTextDirection;
#define NhlTFontQuality "FontQuality"
#define NhlTTextDirection "TextDirection"
/* antialiasing control */
#define NhlTAntiAlias "AntiAlias"
typedef enum {
NhlANTIALIAS_OFF,
NhlANTIALIAS_ON,
NhlANTIALIAS_TEXTONLY
} NhlwkAntiAlias;
typedef enum {
NhlTEXT_ANTIALIAS_MODE,
NhlNON_TEXT_ANTIALIAS_MODE
} NhlAntiAliasMode;
/*
* Common/shared resources for PostScript (PS) and Portable
* Document Format (PDF) workstation types.
*/
#define NhlTVisualType "VisualType"
typedef enum _NhlVisualType {
NhlCOLOR = 0,
NhlMONOCHROME = 3
} NhlVisualType;
#define NhlTWorkOrientation "WorkOrientation"
typedef enum _NhlWorkOrientation {
NhlPORTRAIT = 0,
NhlLANDSCAPE = 6
} NhlWorkOrientation;
#define NhlTColorModel "ColorModel"
typedef enum _NhlColorModel {
NhlCMYK = 0,
NhlRGB = 1
} NhlColorModel;
#define NhlNwkVisualType "wkVisualType"
#define NhlCwkVisualType "WkVisualType"
#define NhlNwkOrientation "wkOrientation"
#define NhlCwkOrientation "WkOrientation"
#define NhlNwkFullBackground "wkFullBackground"
#define NhlCwkFullBackground "WkFullBackground"
#define NhlNwkDeviceLowerX "wkDeviceLowerX"
#define NhlCwkDeviceLowerX "WkDeviceLowerX"
#define NhlNwkDeviceLowerY "wkDeviceLowerY"
#define NhlCwkDeviceLowerY "WkDeviceLowerY"
#define NhlNwkDeviceUpperX "wkDeviceUpperX"
#define NhlCwkDeviceUpperX "WkDeviceUpperX"
#define NhlNwkDeviceUpperY "wkDeviceUpperY"
#define NhlCwkDeviceUpperY "WkDeviceUpperY"
#define NhlNwkColorModel "wkColorModel"
#define NhlCwkColorModel "WkColorModel"
#define NhlNwkSuppressBackground "wkSuppressBackground"
#define NhlCwkSuppressBackground "WkSuppressBackground"
#define NhlNwkSuppressBBInfo "wkSuppressBBInfo"
#define NhlCwkSuppressBBInfo "WkSuppressBBInfo"
/* Resources shared by the PS, PDF, and cairo-based document workstations */
#define NhlNwkPaperWidthF "wkPaperWidthF"
#define NhlCwkPaperWidthF "WkPaperWidthF"
#define NhlNwkPaperHeightF "wkPaperHeightF"
#define NhlCwkPaperHeightF "WkPaperHeightF"
#define NhlNwkPaperSize "wkPaperSize"
#define NhlCwkPaperSize "WkPaperSize"
/* Resources shared by the XWorkstation and Cairo-based ImageWorkstation */
#define NhlNwkWidth "wkWidth"
#define NhlCwkWidth "WkWidth"
#define NhlNwkHeight "wkHeight"
#define NhlCwkHeight "WkHeight"
/*
* Public access functions to support Workstation Class
*/
extern NhlErrorTypes NhlUpdateWorkstation(
#if NhlNeedProto
int workid /* workid of workstation to update */
#endif
);
extern NhlErrorTypes NhlClearWorkstation(
#if NhlNeedProto
int workid /* workid of workstation to clear */
#endif
);
extern NhlErrorTypes NhlFrame(
#if NhlNeedProto
int /*wid*/
#endif
);
extern NhlErrorTypes NhlSetColor(
#if NhlNeedProto
int /* pid */,
NhlColorIndex /* ci */,
float /* red */,
float /* green */,
float /* blue */
#endif
);
extern NhlErrorTypes NhlFreeColor(
#if NhlNeedProto
int /* pid */,
NhlColorIndex /* ci */
#endif
);
/*
* Returns the actual hlu ci used - values less then 0 indicate
* an error.
*/
extern NhlColorIndex NhlGetColor(
#if NhlNeedProto
int pid,
NhlColorIndex ci,
float *red,
float *green,
float *blue
#endif
);
extern NhlColorIndex NhlNewColor(
#if NhlNeedProto
int /* pid*/,
float /* red */,
float /* green */,
float /* blue */
#endif
);
extern int NhlGetGksCi(
#if NhlNeedProto
int /* pid */,
NhlColorIndex /* ci */
#endif
);
extern int NhlGetNamedColorIndex(
#if NhlNeedProto
int pid,
Const char *name
#endif
);
extern NhlBoolean NhlIsAllocatedColor(
#if NhlNeedProto
int /* pid */,
NhlColorIndex /* ci */
#endif
);
extern int NhlNewMarker(
#if NhlNeedProto
int instance,
char *marker_string,
int font,
float x_off,
float y_off,
float aspect_adj,
float size_adj,
float angle
#endif
);
extern NhlErrorTypes NhlSetMarker(
#if NhlNeedProto
int instance,
int index,
char *marker_string,
int font,
float x_off,
float y_off,
float aspect_adj,
float size_adj,
float angle
#endif
);
extern int NhlNewDashPattern(
#if NhlNeedProto
int wid,
char *dash_string
#endif
);
extern NhlErrorTypes NhlSetDashPattern(
#if NhlNeedProto
int instance,
int index,
char *dash_string
#endif
);
extern NhlBoolean NhlIsWorkstation(
#if NhlNeedProto
int pid
#endif
);
extern NhlClass NhlworkstationClass;
/*
* Palette declarations
*/
/*
* New Types
*/
#define NhlTColorMap "ColorMap"
/*
* Global API
*/
extern int NhlPalGetDefined(
#if NhlNeedProto
NhlClass wc,
NhlString **names
#endif
);
extern NhlErrorTypes NhlPalGetColormap(
#if NhlNeedProto
NhlClass wc,
NhlString name,
NhlColor **map,
int *len
#endif
);
extern NhlErrorTypes NhlPalSetColormap(
#if NhlNeedProto
NhlClass wc,
NhlString name,
NhlColor *map,
int len
#endif
);
extern NhlErrorTypes NhlPalLoadColormapFiles(
#if NhlNeedProto
NhlClass lc,
NhlBoolean suppress_path_message
#endif
);
#endif /* _NWorkstation_h */
|