ut_gr.c File Reference


Detailed Description

Grafic: create, display objects; GR_.

_Disp_     display temporary object (no diplayListrecord)
_Crea      display & create diplayListrecord
_Draw      display obj (with existing diplayListrecord)

=====================================================
Liste_Funktionen_Beginn:

GR_Disp_message
GR_tmpDisp_ln
GR_Disp_txi           disp integer-chars
GR_Disp_txi2          Testdisplay integer at 2D-point
GR_Disp_tx2
GR_Disp_tx
GR_Disp_pt            disp 3D-point
GR_Disp_pt2           disp 2D-point
GR_Disp_4db           disp 2D-Box from 4 doubles
GR_Disp_pTab          disp 3D-points
GR_Disp_p2Tab         disp 2D-points
GR_Disp_vc2           disp 2D-vector at 2D-point
GR_Disp_vc            disp 3D-vector at 3D-point
GR_Disp_ln2           disp 2D-line from 2 2D-points
GR_Disp_ln            disp 3D-line
GR_Disp_ln1           disp line between 2 points
GR_Disp_ac
GR_Disp_ell
GR_Disp_pol           disp. polygon = GR_Disp_plg
GR_Disp_cv3p2         Display boundary of triangle from 3 2D-points
GR_Disp_triv          disp. normalVector of triangle
GR_Disp_tria          disp. boundary of triangle
GR_Disp_tris          disp. surface of triangle
GR_Disp_su3p2         disp. surface of 3 2D-points
GR_Disp_su3pt         disp. surface of 3 points
GR_Disp_cv
GR_Disp_cv2
GR_Disp_pln
GR_Disp_axis
GR_Disp_fan           disp. triangleStrip             <<<  Aendern !!!!
GR_Disp_bez
GR_Disp_bsp           Testdisplay  BSP-Curve
GR_Disp_box
GR_Disp_spu
GR_Disp_spu1
GR_Disp_sur
GR_Disp_sru
GR_Disp_sbsp
GR_Disp_dbo           tempDisp obj from typ+dbInd
GR_Disp_ost           tempDisp obj from typ+struct

GR_Draw_spu
GR_DrawSup

GR_CrePoint
GR_DrawPoint
GR_CreLine
GR_DrawLine
GR_CreCirc
GR_DrawCirc
GR_CrePoly
GR_DrawPoly
GR_DrawCurv
GR_DrawCvPol
GR_DrawCvEll
GR_DrawCvPpsp3              
GR_DrawCvBSp
GR_DrawCvRBSp
GR_DrawCvCCV
GR_DrawCvCCV2

GR_CreTxtA
GR_DrawTxtA
GR_CreTxtG
GR_DrawTxtG
GR_DrawDimen

GR_CreDitto2
GR_DrawDitto2
GR_DrawModel

GR_DrawPlane
GR_DrawSur

GR_CreFan
GR_DrawFan
GR_CreTriaFan            In: punkte rund um eine Flaeche
GR_DrawTriaFan 
GR_DrawStrip
GR_CreTriaStrip
GR_DrawTriaStrip
GR_CrePrism              In: zwei Punkteketten
GR_DrawPrism 
GR_CreCyl                In: 2 Punkte 2 Radien        
GR_DrawCyl             Cyl und Cone
GR_CreTorSeg             In: 2 Circs         
GR_DrawTorSeg
GR_CreDisk               In: innerer Rad u ausserer rad fuer Kreisring       
GR_DrawDisk

GR_CreSolSph
GR_CreSolCon
GR_CreSolTor
GR_CreSol__

Liste_Funktionen_Ende:
=====================================================

#include "../xa/MS_Def0.h"
#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "../ut/ut_geo.h"
#include "../ut/ut_txt.h"
#include "../ut/ut_umem.h"
#include "../ut/ut_memTab.h"
#include "../db/ut_DB.h"
#include "../gr/ut_GL.h"
#include "../gr/ut_DL.h"
#include "../gr/ut_gr.h"
#include "../gr/ut_UI.h"
#include "../xa/xa.h"
#include "../xa/xa_mem.h"

Functions

 typedef_MemTab (Point)
void GR_InitNewAtt (int mode, long Ind)
void GR_Init1 ()
void GR_CreTxtA (long *ind, int attInd, Point *pt1, char *txt)
void GR_DrawTxtA (long *ind, int attInd, Point *pt1, char *txt)
void GR_CreTxtG (long *ind, int attInd, Point *pt1, double size, double ang, char *txt)
void GR_DrawDimen (long *ind, int attInd, Dimen *dim1)
void GR_DrawTxtG (long *ind, int attInd, Point *pt1, float size, float ang, char *txt)
void GR_CrePoint (long *ind, int attInd, Point *pt1)
void GR_DrawPoint (long *ind, int attInd, Point *pt1)
void GR_CrePoly (long *ind, int attInd, int ianz, Point *ptarr)
void GR_DrawPoly (long *ind, int attInd, int ianz, Point *ptarr)
void GR_CreDitto2 (long *ind, Point *pt, double az, char mir, Ditto *di)
void GR_DrawDitto2 (long *ind, Point *pt, double az, char mir, Ditto *di)
void GR_CreLine (long *ind, int attInd, Line *ln1)
void GR_CreCirc (long *ind, int attInd, Circ *ci1)
int GR_DrawPlane (long *ind, int attInd, Plane *pl1)
void GR_CreTriaFan (long *ind, int attInd, Point *pc, int anz, Point *pa1)
void GR_DrawTriaFan (long *ind, int attInd, Point *pc, int anz, Point *pa1)
void GR_CreTriaStrip (long *ind, int attInd, int ptUNr, int ptVNr, Point *pa)
int GR_DrawTriaStrip (long *ind, int attInd, int ptUNr, int ptVNr, Point *pa, int newS)
void GR_CrePrism (long *ind, int attInd, int anz, Point *pa1, Point *pa2)
void GR_DrawPrism (long *ind, int attInd, int anz, Point *pa1, Point *pa2)
int GR_CreSolSph (long *ind, int att, Sphere *sp1)
int GR_CreSolCon (long *ind, int att, Conus *co1)
int GR_CreSolTor (long *ind, int att, Torus *to1)
int GR_CreSol__ (long *ind, int attInd, ObjGX *db1)
void GR_CreCyl (long *ind, int attInd, Point *pt1, Point *pt2, double rd1, double rd2)
void GR_CreTorSeg (long *ind, int attInd, Circ *ci1, Circ *ci2)
void GR_DrawLine (long *ind, int attInd, Line *ln1)
void GR_DrawCirc (long *ind, int attInd, Circ *cii)
int GR_DrawCurv (long *ind, int att, ObjGX *cv1, double zval)
void GR_CreDisk (long *ind, int attInd, Point *pc, Vector *vz, double rd1, double rd2)
void GR_DrawDisk (long *ind, int attInd, Point *pc, Vector *vz, double rd1, double rd2)
void GR_DrawCyl (long *ind, int attInd, Point *pt1, Point *pt2, double rd1, double rd2)
int GR_DrawSurPtab (int att, long apt_ind)
int GR_DrawSur (ObjGX *oxi, int att, long apt_ind)
void GR_DrawModel (long db_ind, int att, ModelRef *mdr)
void GR_DrawTorSeg (long *ind, int attInd, Circ *ci1, Circ *ci2)
int GR_DrawCvClot (long *ind, int att, CurvClot *cl1)
int GR_DrawCvEll (long *ind, int att, CurvElli *el1)
int GR_DrawCvCCV (long *ind, int att, ObjGX *cv1)
int GR_DrawCvCCV2 (long *ind, int att, ObjGX *cv1)
int GR_DrawCvPol (long *ind, int attInd, CurvPoly *plg1)
void GR_DrawCvBSp (long *ind, int attInd, CurvBSpl *cv1, double zval)
int GR_DrawCvRBSp (long *ind, int attInd, CurvRBSpl *cv1, double zval)
void GR_DrawCvPpsp3 (long *ind, int attInd, ObjGX *cv1, double zval)
void CAD_Init (int mode)
long CAD_sol_add (long ID1, long ID2)
long CAD_sol_update (long ID1)
int GR_chgSet (char *setName)
int GR_getGroup (long *stkID, char buf[])
int GR_getGroupID (long *elID, long *stkID, long *ind)
int GR_Delete (long ind)
int GR_tmpDisp_ln (Line *ln, int att)
int GR_Disp_message (int mode)
int GR_Disp_txi (Point *pt1, int ii, int att)
int GR_Disp_txi2 (Point2 *pt1, int ii, int att)
int GR_Disp_tx2 (Point2 *p2, char *txt, int att)
int GR_Disp_tx (Point *pt1, char *txt, int att)
int GR_Disp_pt (Point *pt1, int typ, int att)
int GR_Disp_pt2 (Point2 *pt1, int typ, int att)
int GR_Disp_4db (double x1, double x2, double y1, double y2, int att)
int GR_Disp_pTab (int ptNr, Point *pTab, int typ, int att)
int GR_Disp_p2Tab (int ptNr, Point2 *p2Tab, int typ, int att)
int GR_Disp_vc2 (Vector2 *vc1, Point2 *pt1, int att, int mode)
int GR_Disp_vc (Vector *vc1, Point *pt1, int att, int mode)
int GR_Disp_ln2 (Point2 *p1, Point2 *p2, int att)
int GR_Disp_ln (Line *ln1, int att)
int GR_Disp_ln1 (Point *p1, Point *p2, int att)
int GR_Disp_ac (Circ *ci1, int att)
int GR_Disp_ell (CurvElli *el1, int att)
int GR_Disp_pol (CurvPoly *pol, int att)
int GR_Disp_triv (Triangle *tr, int att, int tNr, int ipNr)
int GR_Disp_cv3p2 (Point2 *p1, Point2 *p2, Point2 *p3, int att)
int GR_Disp_tria (Triangle *tria, int att)
int GR_Disp_su3p2 (Point2 *p21, Point2 *p22, Point2 *p23, int att)
int GR_Disp_su3pt (Point *p1, Point *p2, Point *p3, int att)
int GR_Disp_tris (Triangle *tria, int att)
int GR_Disp_cv (Point *pta, int ptnr, int att)
int GR_Disp_cv2 (Point2 *pta, int ptnr, int att)
int GR_Disp_pln (Plane *pl1, int att)
int GR_Disp_axis (Plane *pl1, int att, int typ)
int GR_Disp_fan (Point *ps, Point *pa1, Point *pa2, int pNr, int att)
int GR_Disp_bez (CurvBez *bez, int att, Memspc *workSeg)
int GR_Disp_bsp (CurvBSpl *bspl, int att, Memspc *workSeg)
int GR_Disp_box (Point *p1, Point *p2, int att)
int GR_Disp_spu (int pNr, Point *pTab, int att)
int GR_Disp_spu1 (int pNr, Point *pTab, int att)
int GR_Draw_spu (long *ind, int att, int pNr, Point *pTab)
int GR_Disp_sur (ObjGX *oxi, int att)
int GR_Disp_sru (ObjGX *oxi, int att)
int GR_Disp_sbsp (int ptUNr, int ptVNr, Point *pTab, int att)
int GR_Disp_dbo (int typ, long dbi, int att, Memspc *tmpSeg)
int GR_Disp_ost (void *sObj, int oTyp, Memspc *memSeg, int att)
int GR_DrawSup (int pNr, Point *pa, int iCon)
int GR_CreFan (long *ind, int att, Point *pt1, int ptNr, Point *pa, int typ)
int GR_DrawFan (Point *pt1, int ptAnz, Point *pa1, int typ, int newS)
int GR_DrawStrip (Point *pa1, Point *pa2, int ptAnz, int newS)
void GR_DrawFtab (Point *pTab, Fac3 *fTab, int fNr, int styl)

Variables

int WC_modnr
 the Nr of the active submodel; -1 = main.
int WC_mod_stat
 -1=primary Model is active;
AP_STAT AP_stat
 progress of Start
int APT_3d_mode
int APT_2d_to_3d_mode
Mat_4x3 APT_2d_to_3d_Mat
Plane APT_2d_to_3d_Pln
int APT_dispSOL
PointGLT_pta
long GLT_pta_SIZ
int TSU_mode
ColRGB GL_actCol
long objInd = 0
static int DispMode = 1
 0=Aus, 1=Ein.


Function Documentation

typedef_MemTab ( Point   ) 

void GR_InitNewAtt ( int  mode,
long  Ind 
)

void GR_Init1 (  ) 

void GR_CreTxtA ( long *  ind,
int  attInd,
Point pt1,
char *  txt 
)

    att am besten Typ_Att_Symb.
    Position links unten.

void GR_DrawTxtA ( long *  ind,
int  attInd,
Point pt1,
char *  txt 
)

    att am besten Typ_Att_Symb.
    Position links unten.

void GR_CreTxtG ( long *  ind,
int  attInd,
Point pt1,
double  size,
double  ang,
char *  txt 
)

    att am besten 0.
    Position links unten.

void GR_DrawDimen ( long *  ind,
int  attInd,
Dimen dim1 
)

void GR_DrawTxtG ( long *  ind,
int  attInd,
Point pt1,
float  size,
float  ang,
char *  txt 
)

    attInd dzt 0
    Position links unten.

void GR_CrePoint ( long *  ind,
int  attInd,
Point pt1 
)

    ind > 0: store obj in DB
    ind = 0: store dynamic obj in DB.
    ind < 0: do not store obj in DB.

void GR_DrawPoint ( long *  ind,
int  attInd,
Point pt1 
)

Erzeugung eines 3D-Punktes.

void GR_CrePoly ( long *  ind,
int  attInd,
int  ianz,
Point ptarr 
)

void GR_DrawPoly ( long *  ind,
int  attInd,
int  ianz,
Point ptarr 
)

Erzeugung eines 3D-Polygon

void GR_CreDitto2 ( long *  ind,
Point pt,
double  az,
char  mir,
Ditto di 
)

void GR_DrawDitto2 ( long *  ind,
Point pt,
double  az,
char  mir,
Ditto di 
)

Erzeugung 3D-Ditto

void GR_CreLine ( long *  ind,
int  attInd,
Line ln1 
)

void GR_CreCirc ( long *  ind,
int  attInd,
Circ ci1 
)

int GR_DrawPlane ( long *  ind,
int  attInd,
Plane pl1 
)

SYM_SQUARE= normale Plane; SYM_PLANE= gelb (activ)

void GR_CreTriaFan ( long *  ind,
int  attInd,
Point pc,
int  anz,
Point pa1 
)

GR_CreTriaFan ein od mehrere Dreiecke mit gemeinsamem Pkt.

void GR_DrawTriaFan ( long *  ind,
int  attInd,
Point pc,
int  anz,
Point pa1 
)

Attr f faces sind 4,5 od 6

void GR_CreTriaStrip ( long *  ind,
int  attInd,
int  ptUNr,
int  ptVNr,
Point pa 
)

int GR_DrawTriaStrip ( long *  ind,
int  attInd,
int  ptUNr,
int  ptVNr,
Point pa,
int  newS 
)

    used fuer unbegrenzte B-SplineSurface
    Attr f faces sind 4,5 od 6   

void GR_CrePrism ( long *  ind,
int  attInd,
int  anz,
Point pa1,
Point pa2 
)

void GR_DrawPrism ( long *  ind,
int  attInd,
int  anz,
Point pa1,
Point pa2 
)

int GR_CreSolSph ( long *  ind,
int  att,
Sphere sp1 
)

att == ColRGB !

int GR_CreSolCon ( long *  ind,
int  att,
Conus co1 
)

int GR_CreSolTor ( long *  ind,
int  att,
Torus to1 
)

int GR_CreSol__ ( long *  ind,
int  attInd,
ObjGX db1 
)

void GR_CreCyl ( long *  ind,
int  attInd,
Point pt1,
Point pt2,
double  rd1,
double  rd2 
)

void GR_CreTorSeg ( long *  ind,
int  attInd,
Circ ci1,
Circ ci2 
)

void GR_DrawLine ( long *  ind,
int  attInd,
Line ln1 
)

Erzeugung einer 3D-Line

void GR_DrawCirc ( long *  ind,
int  attInd,
Circ cii 
)

int GR_DrawCurv ( long *  ind,
int  att,
ObjGX cv1,
double  zval 
)

void GR_CreDisk ( long *  ind,
int  attInd,
Point pc,
Vector vz,
double  rd1,
double  rd2 
)

Erzeugung einer Disk; rd1 = innerer Rad, rd2 = ausserer rad.

void GR_DrawDisk ( long *  ind,
int  attInd,
Point pc,
Vector vz,
double  rd1,
double  rd2 
)

Erzeugung einer Disk; rd1 = innerer Rad, rd2 = ausserer rad.

void GR_DrawCyl ( long *  ind,
int  attInd,
Point pt1,
Point pt2,
double  rd1,
double  rd2 
)

      Erzeugung eines Zylinders / Konus   (Cyl / Cone)
    See also GL_draw_cone GL_Disp_face GL_DrawFan
             GL_DrawLStrip GL_DrawStrip1 GL_DrawStrip2 GL_DrawRCone

int GR_DrawSurPtab ( int  att,
long  apt_ind 
)

int GR_DrawSur ( ObjGX oxi,
int  att,
long  apt_ind 
)

void GR_DrawModel ( long  db_ind,
int  att,
ModelRef mdr 
)

void GR_DrawTorSeg ( long *  ind,
int  attInd,
Circ ci1,
Circ ci2 
)

    ci1 ist die Hauptdrehachse, ci2 das Profil.
    Am Anfangspunkt von ci1 sitzt ci2.
    Nun am Endpunkt von ci1 auch einen ebensolchen Kreis ci3 generieren.
    Nun die ersten 2 Punkte auf ci2 und ci3 durch ein Kreispolygon parallel
      zu ci1 verbinden und als RSur ausgeben.
    Dann die naechsten 2 Punkte usw.

int GR_DrawCvClot ( long *  ind,
int  att,
CurvClot cl1 
)

int GR_DrawCvEll ( long *  ind,
int  att,
CurvElli el1 
)

int GR_DrawCvCCV ( long *  ind,
int  att,
ObjGX cv1 
)

int GR_DrawCvCCV2 ( long *  ind,
int  att,
ObjGX cv1 
)

int GR_DrawCvPol ( long *  ind,
int  attInd,
CurvPoly plg1 
)

void GR_DrawCvBSp ( long *  ind,
int  attInd,
CurvBSpl cv1,
double  zval 
)

int GR_DrawCvRBSp ( long *  ind,
int  attInd,
CurvRBSpl cv1,
double  zval 
)

void GR_DrawCvPpsp3 ( long *  ind,
int  attInd,
ObjGX cv1,
double  zval 
)

void CAD_Init ( int  mode  ) 

long CAD_sol_add ( long  ID1,
long  ID2 
)

long CAD_sol_update ( long  ID1  ) 

int GR_chgSet ( char *  setName  ) 

int GR_getGroup ( long *  stkID,
char  buf[] 
)

int GR_getGroupID ( long *  elID,
long *  stkID,
long *  ind 
)

int GR_Delete ( long  ind  ) 

int GR_tmpDisp_ln ( Line ln,
int  att 
)

int GR_Disp_message ( int  mode  ) 

    Display messages with GR_Disp_xxx or not.
    0=OFF=Aus, 1=ON=Ein.

int GR_Disp_txi ( Point pt1,
int  ii,
int  att 
)

    Testdisplay integer
    att: see GR_Disp_tx
    ACHTUNG: zeigt manchmal letzes obj nicht an -- whats that ???

int GR_Disp_txi2 ( Point2 pt1,
int  ii,
int  att 
)

    GR_Disp_txi2       Testdisplay integer at 2D-point
    att: see GR_Disp_tx

int GR_Disp_tx2 ( Point2 p2,
char *  txt,
int  att 
)

    Testdisplay Text
    att: see GR_Disp_tx

int GR_Disp_tx ( Point pt1,
char *  txt,
int  att 
)

    Testdisplay Text
    att: see GR_Disp_pt

int GR_Disp_pt ( Point pt1,
int  typ,
int  att 
)

    Testdisplay 3D-Point
    typ: SYM_STAR_S (Sternderl) SYM_TRI_S (Dreieck) SYM_TRI_B (Viereck)
    att: 0=black, 2=red 3=green 4=blue 5=yellow  8=white

see also GR_Disp_pTab

int GR_Disp_pt2 ( Point2 pt1,
int  typ,
int  att 
)

    Testdisplay 2D-Point als Symbol
    typ: SYM_STAR_S (Sternderl) SYM_TRI_S (Dreieck) SYM_TRI_B (Viereck)
    att: 1=sw, 2=rot 4=bl

int GR_Disp_4db ( double  x1,
double  x2,
double  y1,
double  y2,
int  att 
)

    make 2D-Box from 4 doubles
    att: GR_Disp_ln2

int GR_Disp_pTab ( int  ptNr,
Point pTab,
int  typ,
int  att 
)

    Testdisplay Points als kleines 3-Eck
    typ: SYM_STAR_S (Sternderl) SYM_TRI_S (Dreieck) SYM_TRI_B (grosses Viereck)
    att: 1=sw, 2=rot 3=gruen 4=bl
    draw polygon with GR_Disp_cv

int GR_Disp_p2Tab ( int  ptNr,
Point2 p2Tab,
int  typ,
int  att 
)

    Testdisplay Points als kleines 3-Eck
    typ: SYM_STAR_S (Sternderl) SYM_TRI_S (Dreieck) SYM_TRI_B (grosses Viereck)
    att: see GR_Disp_ln2

int GR_Disp_vc2 ( Vector2 vc1,
Point2 pt1,
int  att,
int  mode 
)

    Testdisplay 2D-Vector
    att: see GR_Disp_ln2
    mode = 0: immer gleich lang ("normiert")
    mode = 1: genaue Groesse des Vec darstellen.

int GR_Disp_vc ( Vector vc1,
Point pt1,
int  att,
int  mode 
)

    Testdisplay 3D-Vector in Position pt1.
    pt1 == NULL:   im ScreenCenter darstellen.
    att: 0,1=sw, 2=strichliert, 3=strichPunkt 5=gelb 7=blau 8=grün dick
         9=rot dick  11=sw dick 12=rot dick strichl.
    mode = 0: immer gleich lang ("normiert")
    mode = 1: genaue Groesse des Vec darstellen.

int GR_Disp_ln2 ( Point2 p1,
Point2 p2,
int  att 
)

    att: 0=1=Black
         2=Black-Dash
         3=black-Dashdot
         4=rosa
         5=Blue-Dash-Th2
         6=lightGray
         7=Blue
         8=Green-Th3
         9=Red-Th3
                   Th2 = 2 pixels thick       Th3 = 3 pixels thick

int GR_Disp_ln ( Line ln1,
int  att 
)

att see GR_Disp_ln2

int GR_Disp_ln1 ( Point p1,
Point p2,
int  att 
)

att see GR_Disp_ln2

int GR_Disp_ac ( Circ ci1,
int  att 
)

att see GR_Disp_vc

int GR_Disp_ell ( CurvElli el1,
int  att 
)

    Testdisplay Ellipse
    att see GR_Disp_ln2

int GR_Disp_pol ( CurvPoly pol,
int  att 
)

    Testdisplay Polygon
    att see GR_Disp_ln2

int GR_Disp_triv ( Triangle tr,
int  att,
int  tNr,
int  ipNr 
)

    Testdisplay Triangle-Normalvektor & number of triangle
    att   see GR_Disp_ln2
    tNr   Display Integer in gravity-centerPoint if (tNr >= 0; -1 = none)
    ipNr  1 = display pointNumbers (0/1/2); -1=not
   
    see also GR_Disp_tria GR_Disp_tris

int GR_Disp_cv3p2 ( Point2 p1,
Point2 p2,
Point2 p3,
int  att 
)

    GR_Disp_cv3p2         Display boundary of triangle from 3 2D-points
    att: GR_Disp_ln2
    
    see also GR_Disp_triv GR_Disp_tris

int GR_Disp_tria ( Triangle tria,
int  att 
)

    Display RandCurve of triangle
    att: GR_Disp_ln2
   
    see also GR_Disp_triv GR_Disp_tris

int GR_Disp_su3p2 ( Point2 p21,
Point2 p22,
Point2 p23,
int  att 
)

    GR_Disp_su3p2         disp. surface of 3 2D-points
    att: see GR_Disp_spu

int GR_Disp_su3pt ( Point p1,
Point p2,
Point p3,
int  att 
)

    GR_Disp_su3pt         disp. surface of 3 points
    att: see GR_Disp_spu

int GR_Disp_tris ( Triangle tria,
int  att 
)

    Display Surface of triangle
    att: see GR_Disp_spu
   
    see also GR_Disp_triv GR_Disp_tria

int GR_Disp_cv ( Point pta,
int  ptnr,
int  att 
)

    Testdisplay Polygon
    att: GR_Disp_ln2

int GR_Disp_cv2 ( Point2 pta,
int  ptnr,
int  att 
)

    Testdisplay 2D-Polygon
    att: GR_Disp_ln2

int GR_Disp_pln ( Plane pl1,
int  att 
)

    GR_DrawPlane
    GR_Disp_pln (&pln1, 2);
    att see GR_Disp_vc

int GR_Disp_axis ( Plane pl1,
int  att,
int  typ 
)

    display axisSystem with x,y,z-characters
    typ: 1=Plane; 2=Axis; 4=Plane+Axis+Chars
    GR_Disp_axis (&pln1, 2);
    att see GR_Disp_vc
    see APT_disp_SymV1 (SYM_AXIS,   1, &pln1.po, 1.);

int GR_Disp_fan ( Point ps,
Point pa1,
Point pa2,
int  pNr,
int  att 
)

    Testdisplay Dreiecksflaechen; 
    att: see GR_Disp_spu
    pNr: Anzahl Punkte der Arrays pa1 und pa2.
    Minimum: 1 Dreicke; pNr=1.
   
    Beispiel: pNr=3.
                   a23
                 /  |
              a22  /|
            / /|  / |
         a21 / | /  |
        / |/   |/   |
      ps--a11--a12--a13

int GR_Disp_bez ( CurvBez bez,
int  att,
Memspc workSeg 
)

    Testdisplay  Bezier-Curve
    att: 2=rot, voll, dick

int GR_Disp_bsp ( CurvBSpl bspl,
int  att,
Memspc workSeg 
)

    Testdisplay  BSP-Curve
    att: 2=rot, voll, dick

int GR_Disp_box ( Point p1,
Point p2,
int  att 
)

    GR_Disp_box         disp boundingBox
    att see GR_Disp_vc
   
         s3---7---s2
        /|        /|
      11 |       8 |
      /  10     /  4
      x--|--9---x  |
      |  s4---1-|--s1        s1 = Startpt of polygon1 ..
     12  /      6  /
      | 2       | 5
      |/        |/
      x----3----x

int GR_Disp_spu ( int  pNr,
Point pTab,
int  att 
)

    display nicht gelochte planare Flaeche
    att: 5,7=blau, 8=gruen, 9,12=rot
         6=hellgrau, 10=hellblau

int GR_Disp_spu1 ( int  pNr,
Point pTab,
int  att 
)

Display planare Contour. Jedoch mit GLT_spp_ statt GLT_spu_

int GR_Draw_spu ( long *  ind,
int  att,
int  pNr,
Point pTab 
)

    display nicht gelochte planare Flaeche
    att: see GR_Disp_spu

int GR_Disp_sur ( ObjGX oxi,
int  att 
)

    Tesselate / Display Flaeche
    Testdisplay  Ruled-Surf
    att: 2=rot, voll, dick

int GR_Disp_sru ( ObjGX oxi,
int  att 
)

    Tesselate / Display ungetrimmte/ungelochte Ruled Flaeche
    Testdisplay  Ruled-Surf
    att: 2=rot, voll, dick

int GR_Disp_sbsp ( int  ptUNr,
int  ptVNr,
Point pTab,
int  att 
)

    Testdisplay  BSP-Surf; nur Kontrollpunkte - nix dazwischen !!!
    att: 2=rot, voll, dick

int GR_Disp_dbo ( int  typ,
long  dbi,
int  att,
Memspc tmpSeg 
)

    GR_Disp_dbo           tempDisp obj from typ+dbInd
    see UTO_obj_Disp__ UT3D_cbsp_dbo

int GR_Disp_ost ( void *  sObj,
int  oTyp,
Memspc memSeg,
int  att 
)

    GR_Disp_ost     tempDisp obj from typ+struct
    Input:
      sObj     data, struct; eg. (Point*)
      oTyp     type of sObj; eg. Typ_PT
   
    see UTO_obj_Disp__ UTO_obj_Disp_Sur

int GR_DrawSup ( int  pNr,
Point pa,
int  iCon 
)

    draw planare surface
    Input:
      iCon      1=Konvex; -1=Konkav

int GR_CreFan ( long *  ind,
int  att,
Point pt1,
int  ptNr,
Point pa,
int  typ 
)

    typ: 0 = planarer Fan; 1 = nicht planarer Fan
    do always start a new surface.

int GR_DrawFan ( Point pt1,
int  ptAnz,
Point pa1,
int  typ,
int  newS 
)

    typ: 0 = planarer Fan; 1 = nicht planarer Fan
    newS:  0=do not start new surface; else start new Surf with this type

int GR_DrawStrip ( Point pa1,
Point pa2,
int  ptAnz,
int  newS 
)

    newS:  0 = do not start new surface
    newS:  1 = start new surface

void GR_DrawFtab ( Point pTab,
Fac3 fTab,
int  fNr,
int  styl 
)

    newS:  0 = do not start new surface
    newS:  1 = start new surface


Variable Documentation

int WC_modnr

the Nr of the active submodel; -1 = main.

-1=primary Model is active;

progress of Start

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

   1 starting
   2 voll initialisert.
  65 Batch, else interaktiv.

int TSU_mode

long objInd = 0

int DispMode = 1 [static]

0=Aus, 1=Ein.


Generated on Sat May 30 09:31:55 2009 for gCAD3D by  doxygen 1.5.6