/usr/include/ncarg/hlu/ViewP.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 | /*
* $Id: ViewP.h,v 1.16 2006-07-14 17:24:32 dbrown Exp $
*/
/************************************************************************
* *
* Copyright (C) 1992 *
* University Corporation for Atmospheric Research *
* All Rights Reserved *
* *
************************************************************************/
/*
* File: ViewP.h
*
* Author: Ethan Alpert
* National Center for Atmospheric Research
* PO 3000, Boulder, Colorado
*
* Date: Tue Sep 1 10:01:24 MDT 1992
*
* Description: Private header file for NhlViewClass. Contains
* NhlSegTransList typedef for storing output from the
* Segments utility.
*/
#ifndef _NVIEWP_h
#define _NVIEWP_h
#include <ncarg/hlu/BaseP.h>
#include <ncarg/hlu/ViewI.h>
#include <ncarg/hlu/Workstation.h>
#include <ncarg/hlu/Segments.h>
typedef struct _NhlSegTransListNode {
float seg_trans[6];
struct _NhlTransDat *seg_trans_dat;
struct _NhlSegTransListNode *next;
} NhlSegTransListNode, *NhlSegTransList;
typedef struct _NhlLayerList{
struct _NhlLayerRec *layer;
struct _NhlLayerList *next;
} NhlLayerListNode, *NhlLayerList;
/*
* private resource used by Overlay to set the Overlay id
* for a View object
*/
#define NhlNvpOverlayId ".vpOverlayId"
#define NhlCvpOverlayId ".VpOverlayId"
typedef struct _NhlViewLayerPart {
/* User accessible resource fields */
NhlBoolean on;
float x,y;
float width,height;
NhlBoolean keep_aspect;
NhlBoolean use_segments;
int annomanager_id;
NhlBoolean clip_on;
/* Private fields (set only through _NhlSetAnnoView) */
int overlay_id;
/* Internal private fields */
_NhlCBList annostatuscb;
NhlBoolean x_set;
NhlBoolean y_set;
NhlBoolean width_set;
NhlBoolean height_set;
NhlSegTransList plot_segments_list;
NhlLayerList children;
int segment_wksid;
/*
* Created at initialize this transformation data is used to compute an
* Intermediate transformation matrix that describes the movement needs to be generated. It is
* used to transform the x,y,width and height fields of all of the
* children. The children then compute their own private transformation
* matrix.
*/
NhlTransDat *thetrans_children;
/*
* this is an intermediate transformation matrix
*/
float trans_children[6];
float aspect;
/* Export Values */
float fr,fl,fb,ft;
/* import Values */
float ur,ul,ub,ut; /* these are user coordinate values they are
set by the plot level of the HLU */
} NhlViewLayerPart;
typedef struct _NhlViewLayerRec {
NhlBaseLayerPart base;
NhlViewLayerPart view;
} NhlViewLayerRec;
typedef struct _NhlViewClassPart {
int segment_workstation;
NhlErrorTypes (*get_bb)();
} NhlViewClassPart;
typedef struct _NhlViewClassRec {
NhlBaseClassPart base_class;
NhlViewClassPart view_class;
} NhlViewClassRec;
extern NhlViewClassRec NhlviewClassRec;
#define NhlDEFAULT_SEG_WKS 2
#define NhlDEFAULT_CONNECTION_ID 1
#define NhlDEFAULT_SEG_WKS_TYPE 3
extern void _NhlAddViewChildLayer(
#if NhlNeedProto
NhlLayer /* instance */,
NhlLayer /* child */
#endif
);
extern void _NhlDeleteViewChildLayer(
#if NhlNeedProto
NhlLayer /* instance */,
NhlLayer /* child */
#endif
);
extern NhlTransDat *_NhlNewViewSegment(
#if NhlNeedProto
NhlLayer /* instance */
#endif
);
extern void _NhlDeleteViewSegment(
#if NhlNeedProto
NhlLayer, /* instance */
NhlTransDat* /*trandat */
#endif
);
extern NhlErrorTypes _NhlResetViewSegment(
#if NhlNeedProto
NhlLayer, /* instance */
NhlTransDat */* segdat */
#endif
);
extern void _NhlAddBBInfo(
#if NhlNeedProto
float, /*t */
float, /*b */
float, /*r */
float, /*l */
NhlBoundingBox* /*thebox*/
#endif
);
extern void _NhlInternalSetView(
#if NhlNeedProto
NhlViewLayer /* theview */,
float /* x */,
float /* y */,
float /* width */,
float /* height */,
int /* keep_asp */
#endif
);
extern NhlErrorTypes _NhlGetBB(
#if NhlNeedProto
NhlLayer instance,
NhlBoundingBox* /* thebox */
#endif
);
extern NhlErrorTypes _NhlSetAnnoView(
#if NhlNeedProto
NhlViewLayer view,
int overlay_id,
int annomanager_id
#endif
);
#define NHL_DEFAULT_VIEW_WIDTH .6
#define NHL_DEFAULT_VIEW_HEIGHT .6
#define NHL_DEFAULT_VIEW_X .2
#define NHL_DEFAULT_VIEW_Y .8
#define NHL_DEFAULT_VIEW_WIDTH_STR ".6"
#define NHL_DEFAULT_VIEW_HEIGHT_STR ".6"
#define NHL_DEFAULT_VIEW_X_STR ".2"
#define NHL_DEFAULT_VIEW_Y_STR ".8"
#define _NhlViewOn(l) (((NhlViewLayer)l)->view.on)
#define _NhlViewOffScreen(l) ( \
((NhlViewLayer)l)->view.fr <= 0.0 || \
((NhlViewLayer)l)->view.fl >= 1.0 || \
((NhlViewLayer)l)->view.ft <= 0.0 || \
((NhlViewLayer)l)->view.fb >= 1.0 )
#endif /*_NVIEWP_h*/
|