• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* -*-C-*-
2  ********************************************************************************
3  *
4  * File:        hideedge.h  (Formerly hideedge.h)
5  * Description:
6  * Author:       Mark Seaman, SW Productivity
7  * Created:      Fri Oct 16 14:37:00 1987
8  * Modified:     Tue Apr 30 12:49:57 1991 (Mark Seaman) marks@hpgrlt
9  * Language:     C
10  * Package:      N/A
11  * Status:       Reusable Software Component
12  *
13  * (c) Copyright 1987, Hewlett-Packard Company.
14  ** Licensed under the Apache License, Version 2.0 (the "License");
15  ** you may not use this file except in compliance with the License.
16  ** You may obtain a copy of the License at
17  ** http://www.apache.org/licenses/LICENSE-2.0
18  ** Unless required by applicable law or agreed to in writing, software
19  ** distributed under the License is distributed on an "AS IS" BASIS,
20  ** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
21  ** See the License for the specific language governing permissions and
22  ** limitations under the License.
23  *
24  ********************************************************************************
25  */
26 
27 #ifndef HIDEEDGE_H
28 #define HIDEEDGE_H
29 
30 /*
31 ----------------------------------------------------------------------
32               I n c l u d e s
33 ----------------------------------------------------------------------
34 */
35 
36 #include "general.h"
37 
38 /*
39 ----------------------------------------------------------------------
40               M a c r o s
41 ----------------------------------------------------------------------
42 */
43 
44 /**********************************************************************
45  * is_hidden_edge
46  *
47  * Check to see if this edge is a hidden edge.  This will prohibit
48  * feature extraction and display functions on this edge.  The
49  * argument should be of type (EDGEPT*).
50  **********************************************************************/
51 
52 #define is_hidden_edge(edge)  \
53 /*(hidden_edges &&*/ (edge->flags[0])     /*) */
54 
55 /**********************************************************************
56  * hide_edge
57  *
58  * Make this edge a hidden edge.  This will prohibit feature extraction
59  * and display functions on this edge.  The argument should be of type
60  * (EDGEPT*).
61  **********************************************************************/
62 
63 #define hide_edge(edge)  \
64 /*if (hidden_edges)*/ edge->flags[0] = TRUE
65 
66 /**********************************************************************
67  * reveal_edge
68  *
69  * Make this edge a unhidden edge.  This will prohibit feature extraction
70  * and display functions on this edge.  The argument should be of type
71  * (EDGEPT*).
72  **********************************************************************/
73 
74 #define reveal_edge(edge)  \
75 /*if (hidden_edges)*/ edge->flags[0] = FALSE
76 #endif
77