oaLine.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaLine.h
00004 //
00005 // This file contains the definition for the oaLine class. This class implements
00006 // a line shape.
00007 //
00008 // *****************************************************************************
00009 // Except as specified in the OpenAccess terms of use of Cadence or Silicon
00010 // Integration Initiative, this material may not be copied, modified,
00011 // re-published, uploaded, executed, or distributed in any way, in any medium,
00012 // in whole or in part, without prior written permission from Cadence.
00013 //
00014 //                Copyright 2002-2005 Cadence Design Systems, Inc.
00015 //                           All Rights Reserved.
00016 //
00017 //  $Author: icftcm $
00018 //  $Revision: #1 $
00019 //  $Date: 2010/08/09 $
00020 //  $State: Exp $
00021 // *****************************************************************************
00022 // *****************************************************************************
00023 
00024 
00025 
00026 #if !defined(oaLine_P)
00027 #define oaLine_P
00028 
00029 
00030 
00031 // *****************************************************************************
00032 // Nested includes
00033 // *****************************************************************************
00034 #include "oaPointArray.h"
00035 #include "oaShape.h"
00036 #include "oaBlock.h"
00037 
00038 
00039 
00040 // *****************************************************************************
00041 // Declare and define types in the OpenAccess namespace.
00042 // *****************************************************************************
00043 BEGIN_OA_NAMESPACE
00044 
00045 
00046 
00047 // *****************************************************************************
00048 // oaLine
00049 // *****************************************************************************
00050 class OA_DESIGN_DLL_API oaLine : public oaShape {
00051 public:
00052     static oaLine           *create(oaBlock             *block,
00053                                     oaLayerNum          layerNum,
00054                                     oaPurposeNum        purposeNum,
00055                                     const oaPointArray  &points);
00056 
00057     oaUInt4                 getNumPoints() const;
00058     void                    getPoints(oaPointArray &points) const;
00059 
00060     void                    setPoints(const oaPointArray &points);
00061 };
00062 
00063 
00064 
00065 // *****************************************************************************
00066 // Design Traits.
00067 // *****************************************************************************
00068 template<>
00069 class oaTraits<oaLine> {
00070 public:
00071     typedef oaShapeModTypeEnum  modTypeType;
00072     typedef oaShape             parentType;
00073     enum {dtIndex = oacShapeDataType};
00074     enum {dataTypeEnumVal = oacShapeDataType};
00075     enum {domain = oacBlockDomain};
00076     enum {dbType = oacDesignDBType};
00077     enum {isMultiDomain = false};
00078     enum {isConcrete = true};
00079     enum {objectTypeEnumVal = oacLineType};
00080 };
00081 
00082 
00083 
00084 END_OA_NAMESPACE
00085 
00086 #endif

Return to top of page