VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
networkElement.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 2001 MaK Technologies, Inc.
3 ** All rights reserved.
4 *********************************************************************/
5 /*********************************************************************
6 ** $RCSfile: netwrkElemnt.h,v $ $Revision: 1.15 $ $State: Exp $
7 *********************************************************************/
8 #ifndef networkElement_H_
9 #define networkElement_H_
10 
11 //
12 // \file netwrkElemnt.h
13 // \brief This file contains the DtNetworkElement class declaration and related functionality.
14 //
15 
16 #include "gdb/gdbDefines.h"
17 #include <stdio.h>
18 #include <vlutil/vlNetTypes.h>
19 
20 class DtSpecification;
21 class DtVectorNetwork;
22 
23 
24 // The DtFeatureType enum represents the valid feature types for any DtSpecification for
25 // a vector network element. The values were originally defined in the DFAD
26 // standard, and have been used as defined here.
27 typedef enum
28 {
33 
34 
39 {
40 public:
41 
42  // default constructor
44 
45  // destructor
46  virtual ~DtNetworkElement();
47 
48  // Relying on the compiler generated copy constructor and assignment operators
49  // copy constructor
50 // DtNetworkElement(const DtNetworkElement& orig);
51  // assignment operator
52 // DtNetworkElement& operator=(const DtNetworkElement& orig);
53 
54  // get/set array index
55  virtual unsigned int arrayIndex() const;
56  virtual void setArrayIndex(unsigned int val);
57 
58  // find out whether this element is part of a valid network
59  virtual bool networked() const;
60 
61  // get specification
62  virtual const DtSpecification& specification() const = 0;
63 
64  // get/set remove state
65  virtual bool isRemoved() const;
66  virtual bool isNotRemoved() const;
67  virtual void setAsRemoved(bool onOff);
68 
69  // void index value
70  static unsigned int voidIndex();
71 
72 protected:
73 
75  unsigned int myArrayIndex;
76  static const unsigned int theVoidIndex;
77 };
78 
79 
80 // \return A boolean indicating whether or not the specified networkElement
81 // is a point feature or not.
82 bool DtIsPointFeature(const DtNetworkElement& networkElement);
83 
84 // \return A boolean indicating whether or not the specified networkElement
85 // is a linear feature or not.
86 bool DtIsLinearFeature(const DtNetworkElement& networkElement);
87 
88 // \return A boolean indicating whether or not the specified networkElement
89 // is an areal feature or not.
90 bool DtIsArealFeature(const DtNetworkElement& networkElement);
91 
92 
93 
94 #endif

Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)