home *** CD-ROM | disk | FTP | other *** search
/ Chip 1997 January / Chip_1997-01_cd.bin / ms95 / disk22 / dir04 / f011840.re_ / f011840.re
Text File  |  1996-04-02  |  6KB  |  217 lines

  1. /*----------------------------------------------------------------------+
  2. |                                    |
  3. | Copyright (c) 1985-93;  Bentley Systems, Inc., All rights reserved.    |
  4. |                                    |
  5. | "MicroStation", "MDL", and "MicroCSL" are trademarks of Bentley    |
  6. |  Systems, Inc.                            |
  7. |                                    |
  8. |  Limited permission is hereby granted to reproduce and modify this    |
  9. |  copyrighted material provided that the resulting code is used only     |
  10. |  in conjunction with Bentley Systems products under the terms of the    |
  11. |  license agreement provided therein, and that this notice is retained    |
  12. |  in its entirety in any such reproduction or modification.        |
  13. |                                    |
  14. +----------------------------------------------------------------------*/
  15. /*----------------------------------------------------------------------+
  16. |                                    |
  17. |   $Workfile:   mscell.fdf  $
  18. |   $Revision:   6.1  $
  19. |          $Date:   11 Oct 1995 09:14:16  $
  20. |                                    |
  21. +----------------------------------------------------------------------*/
  22. #if !defined (__mscellFDF__)
  23. #define __mscellFDF__
  24.  
  25. /*----------------------------------------------------------------------+
  26. |                                    |
  27. |   Header File Dependencies                        |
  28. |                                    |
  29. +----------------------------------------------------------------------*/
  30.  
  31. #if !defined (__dloadlibH__)
  32. #include "dloadlib.h"
  33. #endif
  34.  
  35. #if !defined (__mdlH__)
  36. #include "mdl.h"
  37. #endif
  38.  
  39. #if !defined (__mselemsH__)
  40. #include "mselems.h"
  41. #endif
  42.  
  43. /*======================================================================+
  44. |                                    |
  45. |   Function Definitions                        |
  46. |                                    |
  47. +======================================================================*/
  48.  
  49. ULong    mdlCell_addLibDescr
  50. (
  51. MSElementDescr    *cellDP
  52. );
  53.  
  54. ULong    mdlCell_addLibElement
  55. (
  56. Cell_2d        *element
  57. );
  58.  
  59. int mdlCell_attachLibrary
  60. (
  61. char    *filename,        /* <= name of cell library opened */
  62. char    *inputname,        /* => input name */
  63. char    *defname,        /* => additional place to look */
  64. int    fromkeyin        /* => TRUE if we should retain path from keyin */
  65. );
  66.  
  67. ULong    mdlCell_begin
  68. (
  69. char        *cellName,    /* => cell name or NULL    */
  70. Dpoint3d    *origin,    /* => origin of cell */
  71. short        *attributes,    /* => pointer to attribute buffer */
  72. int        pointCell    /* => non-zero if point cell    */
  73. );
  74.  
  75. int    mdlCell_create
  76. (
  77. MSElement    *out,
  78. char        *cellName,    /* => cell name or NULL    */
  79. Dpoint3d    *origin,    /* => origin of cell */
  80. int        pointCell    /* => non-zero if point cell    */
  81. );
  82.  
  83. ULong    mdlCell_createFromFence
  84. (
  85. char        *cellName,        /* => cell name */
  86. char        *descr,        /* => description */
  87. Dpoint3d    *rOrigin,    /* => origin of cell */
  88. int        cellType        /* => cell type */
  89. );
  90.  
  91. void    mdlCell_createLibraryHeader
  92. (
  93. Cell_Lib_Hdr    *hdr,            /* <= location of buffer */
  94. char        *cellName,        /* => name of cell */
  95. char        *descr,            /* => description of cell */
  96. int        type            /* => cell type */
  97. );
  98.  
  99. int    mdlCell_deleteInLibrary
  100. (
  101. char    *cellName
  102. );
  103.  
  104. int mdlCell_end
  105. (
  106. ULong    hdrPos            /*  => position of cell's header. */
  107. );
  108.  
  109. int    mdlCell_existsInLibrary
  110. (
  111. char    *cellName
  112. );
  113.  
  114. int    mdlCell_extract
  115. (
  116. Dpoint3d    *origin,    /* <= origin in MDL coordinates */
  117. Dpoint3d    *shape,        /* <= bounding shape, (8 Dpoint3d's) */
  118. RotMatrix    *rMatrix,    /* <= rotation matrix */
  119. Dpoint3d    *scale,        /* <= scale vector */
  120. char        *cellName,    /* <= cell name (ascii) */
  121. MSElement    *cell        /* => cell element */
  122. );
  123.  
  124. int     mdlCell_fixLevels
  125. (
  126. MSElementDescr    *elemDscr,
  127. int        relativeMode,
  128. int        baseLevel
  129. );
  130.  
  131. int    mdlCell_generateLibIndex
  132. (
  133. int    messages
  134. );
  135.  
  136. int    mdlCell_getElmDscr
  137. (
  138. MSElementDescr    **cellDscrPP,        /* => ptr to ptr to element descr   */
  139. MSElementDescr    **txtNodeDscrPP,    /* => ptr-ptr to empty txnode descr */
  140. ULong        cellFilePos,        /* => file position of cell in lib  */
  141. Dpoint3d    *rOrigin,        /* => origin of cell            */
  142. Dpoint3d    *scale,            /* => scale factors            */
  143. RotMatrix    *rotMatrix,        /* => rotation matrix for cell        */
  144. short        *attributes,        /* => attrb data to append to hdr   */
  145. int        ggroup,            /* => graphic group number        */
  146. int        sharedFlag,
  147. char        *cellName        /* => name of cell            */
  148. );
  149.  
  150. int    mdlCell_getFilePosition
  151. (
  152. ULong    *filePos,    /* <= position in cell library of cell */
  153. char    *name,        /* => name of cell ASCII */
  154. long    *indexPos,    /* <= OPTIONAL, position in index file */
  155. int     searchAll    /* => search libs in MS_CELLLIST */
  156. );
  157.  
  158. ULong mdlCell_getFilePosInLibrary
  159. (
  160. char    *cellName
  161. );
  162.  
  163. boolean    mdlCell_isPointCell
  164. (
  165. MSElement    *hdr
  166. );
  167.  
  168. ULong    mdlCell_placeCell
  169. (
  170. ULong        cellFilePos,  /* => file position of cell in lib         */
  171. Dpoint3d    *rOrigin,     /* => origin of cell            */
  172. Dpoint3d    *scale,          /* => scale factors            */
  173. RotMatrix    *rotMatrix,   /* => rotation matrix for cell        */
  174. short        *attributes,  /* => attrb data to append to hdr         */
  175. int        ggroup,          /* => graphic group number                 */
  176. int        relativeMode, /* => relative to baseLevel                 */
  177. int        baseLevel,    /* => used for pnt cells, rel cell         */
  178. int        sharedFlag,   /* => 0=no shared, 1=shared, 2=use tcb     */
  179. char        *cellName     /* => name of cell, [for shared cells]     */
  180. );
  181.  
  182. int    mdlCell_rename
  183. (
  184. char    *newName,
  185. char    *oldName
  186. );
  187.  
  188. int    mdlCell_rewriteLibElement
  189. (
  190. MSElement    *element,
  191. ULong        filePos
  192. );
  193.  
  194. void    mdlCell_setRange
  195. (
  196. MSElementDescr    *cellDP
  197. );
  198.  
  199. void    mdlCell_setOriginAndRange
  200. (
  201. MSElementDescr    *cellDP
  202. );
  203.  
  204. long mdlChain_begin
  205. (
  206. short    *attributes
  207. );
  208.  
  209. int mdlChain_end
  210. (
  211. ULong    hdrPos,        /*  => position of complex element's header. */
  212. int    complexType    /*  => CMPLX_SHAPE_ELM, CMPLX_STRING_ELM */
  213. );
  214.  
  215.  
  216. #endif
  217.