oaPathSeg.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaPathSeg.h
00004 //
00005 // This file contains the definition for the oaPathSeg class. The oaPathSeg
00006 // class implements a path segment shape that represents a single, rectangular
00007 // or octolinear part of a route segment on a given layer-purpose pair.
00008 //
00009 // *****************************************************************************
00010 // Except as specified in the OpenAccess terms of use of Cadence or Silicon
00011 // Integration Initiative, this material may not be copied, modified,
00012 // re-published, uploaded, executed, or distributed in any way, in any medium,
00013 // in whole or in part, without prior written permission from Cadence.
00014 //
00015 //                Copyright 2002-2005 Cadence Design Systems, Inc.
00016 //                           All Rights Reserved.
00017 //
00018 //  $Author: icftcm $
00019 //  $Revision: #1 $
00020 //  $Date: 2010/08/09 $
00021 //  $State: Exp $
00022 // *****************************************************************************
00023 // *****************************************************************************
00024 
00025 
00026 
00027 #if !defined(oaPathSeg_P)
00028 #define oaPathSeg_P
00029 
00030 
00031 
00032 // *****************************************************************************
00033 // Nested includes
00034 // *****************************************************************************
00035 #include "oaPointArray.h"
00036 #include "oaShape.h"
00037 #include "oaBlock.h"
00038 #include "oaSegStyle.h"
00039 
00040 
00041 
00042 // *****************************************************************************
00043 // Declare and define types in the OpenAccess namespace.
00044 // *****************************************************************************
00045 BEGIN_OA_NAMESPACE
00046 
00047 
00048 
00049 // *****************************************************************************
00050 // oaPathSeg
00051 // *****************************************************************************
00052 class OA_DESIGN_DLL_API oaPathSeg : public oaShape {
00053 public:
00054     static oaPathSeg        *create(oaBlock             *block,
00055                                     oaLayerNum          layerNum,
00056                                     oaPurposeNum        purposeNum,
00057                                     const oaPoint       &beginPoint,
00058                                     const oaPoint       &endPoint,
00059                                     const oaSegStyle    &style);
00060 
00061     oaRoute                 *getRoute() const;
00062     void                    getPoints(oaPoint   &beginPoint,
00063                                       oaPoint   &endPoint) const;
00064     void                    getStyle(oaSegStyle &style) const;
00065     oaRouteTopology         getRouteTopology() const;
00066     void                    getBoundary(oaPointArray &boundary) const;
00067 
00068     oaBoolean               isOrthogonal() const;
00069     oaBoolean               hasRoute() const;
00070 
00071     void                    setPoints(const oaPoint &beginPoint,
00072                                       const oaPoint &endPoint);
00073     void                    setStyle(const oaSegStyle &style);
00074     void                    setRouteTopology(const oaRouteTopology &topology);
00075 
00076     static void             genBoundary(const oaPoint       &beginPoint,
00077                                         const oaPoint       &endPoint,
00078                                         const oaSegStyle    &style,
00079                                         oaPointArray        &boundary);
00080 };
00081 
00082 
00083 
00084 // *****************************************************************************
00085 // Design Traits.
00086 // *****************************************************************************
00087 template<>
00088 class oaTraits<oaPathSeg> {
00089 public:
00090     typedef oaShapeModTypeEnum  modTypeType;
00091     typedef oaShape             parentType;
00092     enum {dtIndex = oacShapeDataType};
00093     enum {dataTypeEnumVal = oacShapeDataType};
00094     enum {domain = oacBlockDomain};
00095     enum {dbType = oacDesignDBType};
00096     enum {isMultiDomain = false};
00097     enum {isConcrete = true};
00098     enum {objectTypeEnumVal = oacPathSegType};
00099 };
00100 
00101 
00102 
00103 END_OA_NAMESPACE
00104 
00105 #endif

Return to top of page