oaFrameInst.h

Go to the documentation of this file.
00001 // *****************************************************************************
00002 // *****************************************************************************
00003 // oaFrameInst.h
00004 //
00005 // This file contains the definition for the oaFrameInst class and its public
00006 // supporting classes. 
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 2003-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(oaFrameInst_P)
00027 #define oaFrameInst_P
00028 
00029 
00030 
00031 // *****************************************************************************
00032 // Nested includes
00033 // *****************************************************************************
00034 #include "oaTransform.h"
00035 #include "oaFrame.h"
00036 #include "oaReticle.h"
00037 
00038 
00039 
00040 // *****************************************************************************
00041 // Declare and define types in the OpenAccess namespace.
00042 // *****************************************************************************
00043 BEGIN_OA_NAMESPACE
00044 
00045 
00046 
00047 // *****************************************************************************
00048 // oaFrameInst
00049 // *****************************************************************************
00050 class OA_WAFER_DLL_API oaFrameInst : public oaWaferObject {
00051 public:
00052     static oaFrameInst      *create(oaReticle           *reticle,
00053                                     oaFrame             *master,
00054                                     const oaString      &name,
00055                                     oaFloat             mag,
00056                                     const oaTransform   &xform);
00057     static oaFrameInst      *create(oaFrame             *frame,
00058                                     oaFrame             *master,
00059                                     const oaString      &name,
00060                                     oaFloat             mag,
00061                                     const oaTransform   &xform);
00062 
00063     void                    destroy();
00064 
00065     static oaFrameInst      *find(const oaWafer     *wafer,
00066                                   const oaString    &name);
00067 
00068     void                    getName(oaString &name) const;
00069     oaFrame                 *getMaster() const;
00070     oaFloat                 getMag() const;
00071     void                    getOrigin(oaPoint &origin) const;
00072     oaOrient                getOrient() const;
00073     void                    getTransform(oaTransform &xform) const;
00074     oaWaferObject           *getOwner() const;
00075 
00076     void                    setName(const oaString &name);
00077     void                    setOrigin(const oaPoint &origin);
00078     void                    setOrient(oaOrient orient);
00079     void                    setTransform(const oaTransform &xform);
00080     void                    setMag(oaFloat mag);
00081 
00082     enum {dtIndex = oacFrameInstWaferDataType};
00083 };
00084 
00085 
00086 
00087 // *****************************************************************************
00088 // Wafer traits.
00089 // *****************************************************************************
00090 template<>
00091 class oaTraits<oaFrameInst> {
00092 public:
00093     typedef oaWaferObject           parentType;
00094     typedef oaFrameInstModTypeEnum  modTypeType;
00095     enum {dbType = oacWaferDBType};
00096     enum {domain = oacNoDomain};
00097     enum {isMultiDomain = false};
00098     enum {dtIndex = oacFrameInstWaferDataType};
00099     enum {isConcrete = true};
00100     enum {objectTypeEnumVal = oacFrameInstType};
00101     enum {dataTypeEnumVal = oacFrameInstWaferDataType};
00102 };
00103 
00104 
00105 
00106 END_OA_NAMESPACE
00107 
00108 #endif

Return to top of page