lsetup.h Source File

Main Page Class Hierarchy Compound List File List Compound Members

# lsetup.h

    00001
    00002
    00003 /*
    00004 Program SETUP.H
    00005 Purpose Holds setup information about each layer
    00006 Programmers     R. Spekreijse
    00007 Last Update     22-12-1995
    00008 */
    00009
    00010 #ifndef LSETUP_H
    00011 #define LSETUP_H
    00012
    00013 #ifdef __GNUG__
    00014 #pragma interface
    00015 #endif
    00016
    00017 #define MAX_LAYERS 200
    00018
    00019 #include <stdlib.h>
    00020 #include <stdio.h>
    00021
    00022 #include "layerinf.h"
    00023 #include "misc.h"
    00024 #include "gdserr.h"
    00025
    00029 class Setup
    00030 {
    00031         public:
    00032                 Setup();
    00033                 ~Setup();
    00034
    00035                 char*   Get_Name(int layernumber);
    00036                 int             Get_Number(const char* name);
    00037                 long            Get_BorderColor(int layernumber);
    00038                 long            Get_FillColor(int layernumber);
    00039                 bool    Get_Visible(int layernumber);
    00040                 bool    Get_Selectable(int layernumber);
    00041                 int             Get_Brush(int layernumber);
    00042                 bool    Get_Available(int layernumber);
    00043                 int             Get_Order(int layernumber);
    00044                 bool  Get_Read(int layernumber);
    00045                 int             Get_GdsInMapping(int layernumber);
    00046                 int             Get_GdsOutMapping(int layernumber);
    00047
    00048                 void            Set_Name(int layernumber, const char* name);
    00049                 void            Set_BorderColor(int layernumber, unsigned char R, unsigned char G, unsigned char B);
    00050                 void            Set_BorderColor(int layernumber, long color = 0);
    00051                 void            Set_FillColor(int layernumber, unsigned char R, unsigned char G, unsigned char B);
    00052                 void            Set_FillColor(int layernumber, long color = 0x00FFFFFFl);
    00053                 void            Set_Visible(int layernumber, bool = true);
    00054                 void            Set_Selectable(int layernumber, bool = true);
    00055                 void            Set_Brush(int layernumber, int brush = 1);
    00056                 void            Set_Available(int layernumber, bool = true);
    00057                 void            Set_Order(int layernumber, int status);
    00058                 void            Set_Read(int layernumber, bool = true);
    00059                 void            Set_GdsInMapping(int layernumber,int layer);
    00060                 void            Set_GdsOutMapping(int layernumber,int layer);
    00061
    00062
    00064                 void                            Set_All_Layers_Visible();
    00066                 void                            Set_All_Layers_Invisible();
    00067
    00069                 void                            Set_All_Layers_ReadOn();
    00071                 void                            Set_All_Layers_ReadOff();
    00072
    00074                 void                            Set_All_Layers_Selectable();
    00076                 void                            Set_All_Layers_NotSelectable();
    00077
    00078                 Setup&                  operator=(const Setup&);
    00079                 int                             operator==(const Setup&) const;
    00080                 int                             operator!=(const Setup&) const;
    00081
    00083                 bool    Get_UpdateAvailableLayers(){return m_update_available_layers;};
    00084                 void            Set_UpdateAvailableLayers(bool value){m_update_available_layers=value;};
    00085
    00086         protected:
    00087
    00088                 bool                                                    m_update_available_layers;
    00089
    00091                 LayerInfo*              _layers[MAX_LAYERS];
    00092 };
    00093
    00094
    00095 #endif
    00096
    00097

lsetup.h Source File -- Thu Nov 28 21:24:56 2002 -- 28 Nov 2002 -- 1.2.18 -- -- . -- Main Page