ut_gtypes.c File Reference

typChar, typ, name(typ,index), .. More...

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
#include "../ut/ut_geo.h"
#include "../ut/ut_txt.h"
#include "../db/ut_DB.h"
#include "../ut/ut_gtypes.h"
#include "../xa/xa_sele.h"

Functions

int APT_decode_obj (int *defTyp, long *defInd, char *txtIn)
int AP_oid_dbo (char *oid, int typ, long dbi, long dli)
int AP_name_typInd (char *buf, int typ, long ind)
char * AP_src_typ__ (int typ)
char * AP_src_typMod (int typ)
int DB_Typ_Char (char *auxBuf)
int DB_2DTyp_3DTyp (int typIn)
int AP_typ_typChar (char typChar)
char AP_typChar_typ (int typ)
int AP_typ_2_bastyp (int typ)
int AP_typ_FncNam (char *fncNam, int sLen)
int AP_typ_srcExpr (char *expr, char **pNxt)
int AP_cmp_typ (int typ1, int typ2)
int UTO_ck_oTyp (int typ)
int UTO_ck_typTyp (int typ)
int UTO_ck_curvLimTyp (int typ)
int UTO_ck_curvForm (int typ)
int UTO_ck_surfTyp (ObjGX *oxi)

Variables

static char * TypTxtTab0 []
static char * TypTxtTab20 []
static char * TypTxtTab50 []
static char * TypTxtTab80 []
static char * TypTxtTab90 []
static char * TypTxtTab110 []
static char * TypTxtTab120 []
static char * TypTxtTab130 []
static char * TypTxtTab150 []
static char * TypTxtTab170 []
static char * TypTxtTab190 []
static char * TypTxtTab200 []
static char * TypTxtTab210 []
static char * TypTxtTab220 []
static char * TypTxtTab230 []
static char * TypTxtTab250 []
static char * TypTxtTab260 []
static char * TypTxtTab270 []
static char * TypTxtTab1000 []
static char * TypTxtTab1020 []
static char * TypTxtTab1100 []
static char * Fc1TxtTab []
static int Fc1TypTab []
static char * FcmTxtTab []
char * ObjCodTab []
static char * GL2Dtxt1 [] = {" CW","REV"," CX","CTRL","PERP","PARL"}
static char * GL2Dtxt2 [] = {" V+"," V-","VC+","VC-","NXT","PRV"}
static char * GL2Dtxt3 [] = {"LIST"}

Detailed Description

typChar, typ, name(typ,index), ..


Function Documentation

int APT_decode_obj ( int *  defTyp,
long *  defInd,
char *  txtIn 
)
int AP_oid_dbo ( char *  oid,
int  typ,
long  dbi,
long  dli 
)

    AP_oid_dbo          make name from typ and DB-index  (all types)
    Input:
      dli       -1 for unknown; used only for applicationObjects
   
    see also AP_name_typInd AP_typ_2_bastyp AP_cre_defHdr

int AP_name_typInd ( char *  buf,
int  typ,
long  ind 
)

    AP_name_typInd      make name from typ and DB-Index  (visible object types)
    see also AP_oid_dbo AP_typ_2_bastyp AP_cre_defHdr

char* AP_src_typ__ ( int  typ  ) 

get objTypTxt from typ

char* AP_src_typMod ( int  typ  ) 

    get modifier-text from (modifier)typ
    typ must be modifier (test with TYP_IS_MOD)

int DB_Typ_Char ( char *  auxBuf  ) 

    Text > int-3D-Typ
    give typ(int) from text "PT" --> Typ_PT

int DB_2DTyp_3DTyp ( int  typIn  ) 

    DB_2DTyp_3DTyp     give 2D-Typ of 3D-Typ
      RetCod: 0=Error else 2d-type

int AP_typ_typChar ( char  typChar  ) 

    AP_typ_typChar     make typ from typChar  ("P" -> Typ_PT)
    Error: returns Typ_Error

char AP_typChar_typ ( int  typ  ) 

    AP_typChar_typ      make typChar from typ  (Typ_PT -> 'P')
    Error: returns '-'

int AP_typ_2_bastyp ( int  typ  ) 

    give basictyp from typ;
    makes Typ_SURRU -> Typ_SUR   or Typ_CVBSP -> Typ_CV.
    
    siehe AP_name_typInd AP_cmp_typ

int AP_typ_FncNam ( char *  fncNam,
int  sLen 
)
int AP_typ_srcExpr ( char *  expr,
char **  pNxt 
)
int AP_cmp_typ ( int  typ1,
int  typ2 
)

    check if types identical;
    RC = 0 = ident;
    
    see AP_typ_2_bastyp

int UTO_ck_oTyp ( int  typ  ) 

    UTO_ck_oTyp           check object-typ (struct or object)
      typ              must be a basictype; see AP_typ_2_bastyp
    0 = data-struct    (Point, Line, Circ, Vector)
    1 = complex object (ObjGX, Curve or Surf or GTXT)

int UTO_ck_typTyp ( int  typ  ) 

    UTO_ck_typTyp     check if typ=curve (Typ_lFig) or surface (Typ_SUR)
    Retcod = Typ_lFig    from LN|AC|CV     (L/C/S)
             Typ_SUR     from PLN|SUR|SOL  (R/A/B)

int UTO_ck_curvLimTyp ( int  typ  ) 

    UTO_ck_curvLimTyp              check if CurveLimits are Points or parameters
    RetCode:
      0   die CurveLimits basieren auf Points  (LN, AC, CVELL usw)
      1   die CurveLimits basieren auf Parameters (CVPOL, CVBSP)

int UTO_ck_curvForm ( int  typ  ) 

    UTO_ck_curvForm           check if objTyp is ObjGX or other typ
    Output:
      RetCode:   Typ_ObjGX (for Typ_CVPOL,Typ_CVBSP,Typ_CVELL ..)
                 else typ

int UTO_ck_surfTyp ( ObjGX oxi  ) 

    UTO_ck_surfTyp          returns surfSubTyp
    Input:
     oxi      su_tab-record
    Output:
     retCod   Typ_SURTPS|Typ_SURBSP|Typ_SURRU|Typ_SURRV ..
    
    see also SUR_ck_typ
    see GR_DrawSur TSU_DrawSurT_


Variable Documentation

char* TypTxtTab0[] [static]
Initial value:
{


  "Error",  "Var",    "PT",     "LN",     "CI",        
  "AC",     "Vec",    "CV",     "CvPlg",  "CvPsp3",
  "CvBsp",  "CvRBsp", "CvCcv",  "CvEll",  "CvBez",     
  "CvRBez", "Clot",   "SymRef", "CvLnTab","Vertex"}
char* TypTxtTab20[] [static]
Initial value:
{
  "lFig",   "EdgLn",  "PT2",    "LN2",    "AC2",       
  "CI2",    "VC2",    "CV2",    "CvPlg2", "CvPsp2",
  "CvBsp2", "CvRBsp2","CvCcv2", "CvEll2", "CvBez2",    
  "SymRef2"}
char* TypTxtTab50[] [static]
Initial value:
{
  "SUR",    "SurCir", "SurStr", "SurRU",  "SurRV",     
  "SurBsp", "SurRBsp","SurPLN", "SurCon", "SurTor",
  "PLN",    "",       "SurTps", "SurMsh", "SurPtab",   
  "SurHat", "SurFac3","SurFacQ","SurTri", "",
  "SurTess","SurGLp",  "SurGLl"}
char* TypTxtTab80[] [static]
Initial value:
{
  "SOL",    "Sphere", "Conus",  "Torus",  "Prism",     
  ""}
char* TypTxtTab90[] [static]
Initial value:
{
  "Note",   "TxtA",   "TxtG",   "Dimen",  "Dim3",      
  "Tag",    "SymBmp", "SymVec", "------", "------",
  "Texture","TEXB",   "TEXR"}
char* TypTxtTab110[] [static]
Initial value:
{
  "TmpPT",  "TmpLN",  "------", "TmpVC",  "TmpSym",    
  "TmpTRI", "TmpPLN", "EyePT",  "Box",    "------"}
char* TypTxtTab120[] [static]
Initial value:
{
  "Part",   "Grp",    "ModBas", "Model",  "Mockup",    
  "Dit",    "Joint"}
char* TypTxtTab130[] [static]
Initial value:
{   
  "Val",    "ValX",   "ValY",   "ValZ",   "DistX",     
  "DistY",  "DistZ",  "Angle",  "Radius", "Dist",
  "------", "------", "------", "------", "------",    
  "------", "------", "------", "------", "------"}
char* TypTxtTab150[] [static]
Initial value:
{   
  "Typ",    "Subtyp", "cmdSub", "Address","Size",      
  "Index",  "Name",   "Color",  "LnTyp",  "Thick",
  "G_Att",  "Activ",  "Layer",  "AppObj", "AppDat",    
  "Tool",   "------", "------", "------", "------"}
char* TypTxtTab170[] [static]
Initial value:
{   
  "Data",   "Int1",   "Int2",   "Int4",   "Float4",    
  "Float8", "poly--", "poly1-", "poly3-", "polyD3",
  "------", "Mat3x2", "Mat3x3", "Mat4x3", "Mat4x4"}
char* TypTxtTab190[] [static]
Initial value:
{   
  "Text",   "String", "StrDel", "StrDel1","------",    
  "FilNam", "CtlgPart","------","------", "------"}
char* TypTxtTab200[] [static]
Initial value:
{   
  "Memspc", "MemTab", "ObjRange","ObjSRC","ObjGX",     
  "------", "------", "------", "------", "------"}
char* TypTxtTab210[] [static]
Initial value:
{   
  "Tra",    "TraTra", "TraRot", "TraMat", "------"}
char* TypTxtTab220[] [static]
Initial value:
{   
  "OpeEQ",  "OpeNE",  "OpeLT",  "OpeGT",  "OpeGE",     
  "OpeLE",  "OpeAND", "OpeOR",  "Ope---", "Ope---"}
char* TypTxtTab230[] [static]
Initial value:
{   
  "Mod",    "ModCoo", "ModCWC", "ModREV", "ModCX",     
  "ModCTRL","ModPERP","ModPARL","ModAux", "Mod---",
  "Mod---", "Mod---", "Mod---", "Mod---", "Mod---",    
  "ModCCW", "ModCW",  "ModIN",  "ModOUT", "Mod---"}
char* TypTxtTab250[] [static]
Initial value:
{   
  "MsBtL",  "MsBrM",  "MsBtR",  "MsBt2L", "------",    
  "------", "------", "------", "------", "------"}
char* TypTxtTab260[] [static]
Initial value:
{   
  "FuInit", "FuInit1","FuMod",  "FuAdd",  "FuDel",     
  "FuEnd",  "FuExit", "Fu----", "Fu----", "Fu----"}
char* TypTxtTab270[] [static]
Initial value:
{   
  "ALL",    "Done",   "NULL",   "Last",   "------",    
  "------", "------", "------", "------", "------",
  "SIZ"}
char* TypTxtTab1000[] [static]
Initial value:
{   
  "goGeom", "goPrim", "goGeo1", "goGeo2", "goGeo3",    
  "goGeo4", "goGeo5", "goSUSU", "goGeo6", "goGeo7",
  "goGeo8", "goAxis", "go----", "go----", "go----"}
char* TypTxtTab1020[] [static]
Initial value:
{   
  "FncVAR1","FncVAR2","FncVC1", "FncVC2", "FncNxt",    
  "FncPrv", "FncDirx","Fnc---", "Fnc---", "Fnc---"}
char* TypTxtTab1100[] [static]
Initial value:
{   
  "ValSymTyp","StrDir1","Obj0", "------",  "------"}
char* Fc1TxtTab[] [static]
Initial value:
 {

  "VAL",         "ANG",         "RAD",         "MOD",         "NEW",         
  ""}
int Fc1TypTab[] [static]
char* FcmTxtTab[] [static]
Initial value:
 {

  "SQRT",        "SIN",         "COS",         "TAN",         "ASIN",
  "ACOS",        "ATAN",        "ABS",         "FIX",         "RND",
  ""}
char* ObjCodTab[]
Initial value:
 {

  "ON",          "OFF",         "IN",          "OUT",         "ARC",
  "HI",          "LO",          "MA",          "TAG",         "PERP",

  "CCW",         "CW",          "ELL",         "IMG",         "CCV2",
  "POL2",        "POL",         "PSP3",        "BSP",         "CCV",

  "RCIR",        "RSTRIP",      "SRU",         "HAT",         "SRV",
  "PRISM",       "SPH",         "CON",         "TOR",         "CYL",

  "CUT",         "REV",         "POCK",        "LE",          "RI",
  "DIM",         "DIMA",        "LDR",         "SKWC",        "FSUB",

  "PRJ",         "TRA",         "ROT",         "MIR",         "TXA",
  "DIMD",        "DIMR",        "DIM3",        "REC",         "INT",

  "RADI",        "RADC",        "RBSP",        "ARC1",         "CTRL",
  "LDRP",        "LDRC",        "LDRS",        "CTLG",         "ISO",

  "FW",          "CX",          "PTAB",        "MSH",          "CLOT",
  "TNG",         "IMP",         "BSP1",        "PARL",         ""}
char* GL2Dtxt1[] = {" CW","REV"," CX","CTRL","PERP","PARL"} [static]
char* GL2Dtxt2[] = {" V+"," V-","VC+","VC-","NXT","PRV"} [static]
char* GL2Dtxt3[] = {"LIST"} [static]
Generated on Fri Apr 6 09:40:09 2012 for gCAD3D by  doxygen 1.6.3