![]() |
VR-Forces 4.0.4 Class Documentation
|
00001 /******************************************************************************* 00002 ** Copyright (c) 2008 MAK Technologies, Inc. 00003 ** All rights reserved. 00004 *******************************************************************************/ 00005 /******************************************************************************* 00006 ** $RCSfile: netwrkSegHelper.h,v $ $Revision: 1.2 $ $State: Exp $ 00007 *******************************************************************************/ 00008 // \file netwrkSegHelper.h 00009 // \brief Contains the DtNetworkSegmentHelper class declaration which wraps a 00010 // DtNetworkSegment. This is a convenience class that allows the setting 00011 // of a Chord rather than depending on a DtNetworkEdge to define the segment 00012 00013 #ifndef netwrkSegHelper_H_ 00014 #define netwrkSegHelper_H_ 00015 00016 #include "gdb/gdbDefines.h" 00017 #include <vlutil/vlConfig.h> 00018 #include "geometry/chord.h" 00019 #include "gdb/netwrkSeg.h" 00020 #include <vlutil/vlString.h> 00021 00022 // 00023 // DtNetworkSegmentHelper represents a section of a network that is approximated 00024 // by a line segment. 00025 class DT_DLL_gdb DtNetworkSegmentHelper : public DtNetworkSegment 00026 { 00027 public: 00028 00029 // default constructor 00030 DtNetworkSegmentHelper(); 00031 00032 // destructor 00033 virtual ~DtNetworkSegmentHelper(); 00034 00035 // copy constructor 00036 DtNetworkSegmentHelper(const DtNetworkSegmentHelper& orig); 00037 00038 // assignment operator 00039 DtNetworkSegmentHelper& operator=(const DtNetworkSegmentHelper& orig); 00040 00041 // get/set chord 00042 virtual const DtChord chord() const; 00043 virtual void setChord(const DtChord& chord); 00044 00045 virtual DtString type(); 00046 00047 // first and last endpoint, as traversing forward 00048 virtual DtPoint endpoint0() const; 00049 virtual DtPoint endpoint1() const; 00050 00051 protected: 00052 00053 DtChord myChord; 00054 }; 00055 00056 #endif