/usr/include/ncarg/hlu/TransformP.h is in libncarg-dev 6.1.2-7.
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 | /*
* $Id: TransformP.h,v 1.26 2003-09-10 21:29:59 dbrown Exp $
*/
/************************************************************************
* *
* Copyright (C) 1992 *
* University Corporation for Atmospheric Research *
* All Rights Reserved *
* *
************************************************************************/
/*
* File: TransformP.h
*
* Author: Ethan Alpert
* National Center for Atmospheric Research
* PO 3000, Boulder, Colorado
*
* Date: Fri Oct 2 15:01:59 MDT 1992
*
* Description: Provides generic hooks for plot classes to assign
* functions that compute the forward and backward
* data transformations to support point-n-click
* features.
*/
#ifndef _NTRANSFORMP_h
#define _NTRANSFORMP_h
#include <ncarg/hlu/ViewP.h>
#include <ncarg/hlu/PlotManagerI.h>
#include <ncarg/hlu/LogLinTransObj.h>
#include <ncarg/hlu/IrregularTransObj.h>
#include <ncarg/hlu/TransObjI.h>
#include <ncarg/hlu/Transform.h>
#include <ncarg/hlu/TransformI.h>
#define NhlNtfOverlayObject ".tfOverlayObject"
#define NhlCtfOverlayObject ".TfOverlayObject"
#define NhlNtfOverlayTrans ".tfOverlayTrans"
#define NhlCtfOverlayTrans ".TfOverlayTrans"
#define NhlNtfOverlayStatus ".tfOverlayStatus"
#define NhlCtfOverlayStatus ".TfOverlayStatus"
#define NhlNtfBaseXF ".tfBaseXF"
#define NhlCtfBaseXF ".TfBaseXF"
#define NhlNtfBaseYF ".tfBaseYF"
#define NhlCtfBaseYF ".TfBaseYF"
#define NhlNtfBaseWidthF ".tfBaseWidthF"
#define NhlCtfBaseWidthF ".TfBaseWidthF"
#define NhlNtfBaseHeightF ".tfBaseHeightF"
#define NhlCtfBaseHeightF ".TfBaseHeightF"
/*
* The Transform superclass marks resources as set when appropriate, but
* leaves it to the subclasses to restore the ..._set flags to False
* according to their own needs.
*/
typedef struct NhlTransformLayerPart {
/* Public resource fields */
NhlBoolean plot_manager_on;
NhlOverlayMode do_ndc_overlay;
NhlBoolean line_interpolation_on;
NhlGenArray poly_draw_list;
NhlDrawOrder poly_draw_order;
NhlBoolean x_min_set;
float x_min;
NhlBoolean x_max_set;
float x_max;
NhlBoolean x_axis_type_set;
NhlAxisType x_axis_type;
NhlBoolean x_log_set;
NhlBoolean x_log;
NhlBoolean x_reverse_set;
NhlBoolean x_reverse;
NhlBoolean y_min_set;
float y_min;
NhlBoolean y_max_set;
float y_max;
NhlBoolean y_axis_type_set;
NhlAxisType y_axis_type;
NhlBoolean y_log_set;
NhlBoolean y_log;
NhlBoolean y_reverse_set;
NhlBoolean y_reverse;
NhlBoolean grid_type_set;
NhlGridType grid_type;
/* Private resource fields, set only by the overlay manager */
NhlLayer overlay_trans_obj;
NhlLayer overlay_object;
NhltfOverlayStatus overlay_status;
float bx, by, bw, bh; /* base viewport */
/*
* Private fields for members of the Transform class
* All transform classes supporting overlays should fill in
* the first field. The data fields should be filled in by
* all classes that accept data objects.
*/
NhlLayer trans_obj;
float data_xstart; /* start may be > than end */
float data_xend;
float data_ystart;
float data_yend;
NhlBoolean sticky_x_min_set;
NhlBoolean sticky_x_max_set;
NhlBoolean sticky_y_min_set;
NhlBoolean sticky_y_max_set;
_NhlCBList overlaystatuscb;
NhlBoolean poly_clip_on;
} NhlTransformLayerPart;
typedef struct _NhlTransformLayerRec {
NhlBaseLayerPart base;
NhlViewLayerPart view;
NhlTransformLayerPart trans;
} NhlTransformLayerRec;
typedef NhlErrorTypes (*NhlTransFunction)(
#ifdef NhlNeedProto
NhlLayer /* plot */,
float* /* x */,
float* /* y */,
int /* n */,
float* /* xout */,
float* /* yout */,
float* /*xmissing*/,
float* /*ymissing*/,
int * /*status*/,
float * /*out_of_range*/
#endif
);
typedef enum _NhltfOverlayCapability {
_tfNotOverlayCapable,
_tfOverlayBaseOnly,
_tfOverlayMemberOnly,
_tfOverlayBaseOrMember
} NhltfOverlayCapability;
typedef NhlErrorTypes (*NhlTransPolyFunc)(
#ifdef NhlNeedProto
NhlLayer /* plot */,
float* /* x */,
float* /* y */,
int /* n */
#endif
);
#define NhlInheritTransFunc ((NhlTransFunction)_NhlInherit)
#define NhlInheritPolyTransFunc ((NhlTransPolyFunc)_NhlInherit)
typedef struct NhlTransformClassPart{
NhltfOverlayCapability overlay_capability;
NhlTransFunction data_to_ndc;
NhlTransFunction ndc_to_data;
NhlTransPolyFunc data_polyline;
NhlTransPolyFunc ndc_polyline;
NhlTransPolyFunc data_polygon;
NhlTransPolyFunc ndc_polygon;
NhlTransPolyFunc data_polymarker;
NhlTransPolyFunc ndc_polymarker;
} NhlTransformClassPart;
typedef struct _NhlTransformClassRec{
NhlBaseClassPart base_class;
NhlViewClassPart view_class;
NhlTransformClassPart trans_class;
} NhlTransformClassRec;
typedef struct _NhlTransformClassRec *NhlTransformClass;
typedef struct _NhlTransformLayerRec *NhlTransformLayer;
extern NhlTransformClassRec NhltransformClassRec;
/*
* Private class functions
*/
extern NhlErrorTypes _NhltfDrawSegment(
#if NhlNeedProto
NhlLayer plot,
NhlLayer trobj,
NhlTransDat *transdat,
NhlString entry_name
#endif
);
extern NhlErrorTypes _NhltfInitSegment(
#if NhlNeedProto
NhlLayer plot,
NhlLayer trobj,
NhlTransDat **transdat,
NhlString entry_name
#endif
);
extern NhlErrorTypes _NhltfCheckCoordBounds(
#if NhlNeedProto
NhlTransformLayer new,
NhlTransformLayer old,
NhlString entry_name
#endif
);
#endif /* _NTRANSFORMP_h */
|