gCAD3D 2.35
xa_ped.c File Reference

PointEditor. More...

#include <math.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
#include <ctype.h>
#include "../ut/ut_geo.h"
#include "../ut/ut_txt.h"
#include "../ut/ut_txfil.h"
#include "../ut/ut_txTab.h"
#include "../ut/ut_memTab.h"
#include "../ut/ut_cast.h"
#include "../ut/ut_os.h"
#include "../gui/gui__.h"
#include "../db/ut_DB.h"
#include "../ut/func_types.h"
#include "../gr/ut_GL.h"
#include "../xa/xa_ed_mem.h"
#include "../xa/xa_mem.h"
#include "../xa/xa_ui.h"
#include "../xa/xa_msg.h"
#include "../xa/xa_sele.h"

Macros

#define TRUE   1
 
#define FALSE   0
 
#define PED_SYM_COL   5
 
#define PED_SYM_ID   SYM_TRI_B
 

Functions

static MemTab (ObjSRC)
 
int PED_key_CB (int key)
 
int PED_sel_CB (int src, long dl_ind)
 
int PED_msg__ ()
 
int PED_mousemove_CB (int dx, int dy)
 
int PED_upd_stop ()
 
Point PED_newPos__ ()
 
int PED_points (int mode, int ii)
 
MemObj PED_win__ (MemObj *parent, void *data)
 
int PED_win_act ()
 
int PED_CB1 (MemObj *mo, void **data)
 
int PED_off_CB (MemObj *mo, void **data)
 
int PED_len_CB (MemObj *mo, void **data)
 
int PED_link_CB (MemObj *mo, void **data)
 
int PED_get_ptab ()
 
int PED_dump_atab ()
 
int PED_dump_ptab ()
 
int PED_get_ato (int *iNr, int **atyp, double **atab)
 
int PED_get_src (char *cBuf, int bufSiz)
 
int PED_wri_src (char *cBuf)
 
int PED_rea_src (char *cBuf, int bufSiz)
 
int PED_exit ()
 
int PED_save__ ()
 
int PED_src_mod (char *cBuf)
 
int PED_src_del (char *cBuf)
 
int PED_src_ins (char *cBuf, int bufSiz)
 
int PED_compare (long pti, Point *ptNew)
 
int PED_get_tabInd (int ipt)
 
int PED_restore3 ()
 
int PED_dep_sav ()
 
int PED_mod_dep_draw__ ()
 
int PED_mod_dep_draw_l (int lNr, long dli, char *src)
 
int PED_get_offObj ()
 
int PED_del__ ()
 
int PED_ins_pt (Point *pt1)
 
int PED_lock ()
 
int PED_unlock ()
 
int PED_test__ ()
 

Variables

int WC_sur_ind
 Der Index auf die ActiveConstrPlane. More...
 
Plane WC_sur_act
 the active construction-plane More...
 
Mat_4x3 WC_sur_mat
 
Mat_4x3 WC_sur_imat
 inverse TrMat of ActiveConstrPlane More...
 
MemObj UIw_Box_TB
 
char * APT_defTxt
 
static MemObj PEDtb =GUI_OBJ_NEW
 
static int actTyp
 
static long actDbi
 
static void * actObj
 
static PointactPta =NULL
 
static PointactPtp
 
static Point actCurPos
 
static Point actInsPt
 
static long actPti
 
static int actPtn
 
static int actInd
 
static long actDli
 
static long dynPti
 
static int * PED_atyp
 
static double * PED_atab
 
static int PED_anr = 0
 
static int PED_mode =-1
 
static int PED_stat =0
 
static int PED_changed =0
 
static Plane PED_offObj
 
static int PED_offTyp
 
static double PED_offLen = 0.
 
static MemObj PED_w_off
 
static MemObj PED_w_len
 
static MemObj PED_f_mod
 
static MemObj PED_f0
 
static MemObj PED_f_sc
 
static MemObj PED_wa [4]
 

Detailed Description

PointEditor.

=====================================================
List_functions_start:
PED_init decode obj; init toolbar
PED_win__ create Toolbar
PED_win_act activate/deactivate Insert/Delete
PED_lock lock mainMenu; unlock Save|cancel
PED_unlock unlock mainMenu; lock Save|cancel
PED_CB1 callbacks
PED_points temppoint-functions
PED_save__ save (modify src & write -> tempfile)
PED_exit insert new code, redraw all
PED_restore1 overwrite DB-points UNUSED
PED_restore2 get sourceline, execute .. UNUSED
PED_restore3 update model starting with line lNr
PED_src_mod compare all points; modify points
PED_src_del delete point actInd in srcLine
PED_src_ins insert point in srcLine
PED_compare compare points - create new one
PED_replace replace or skip point in ObjSRC UNUSED
PED_get_ato get & decode the sourceObj
PED_get_src get the sourceObj from tempfile
PED_get_ptab get all points of actObj into actPta
PED_get_tabInd get index into PED_atab from pointNr actInd
PED_wri_src save sourceLine -> tempfile
PED_rea_src read file into memstring
PED_get_offObj get offsetObject (Plane or Vector) out of PED_w_off
PED_del__ delete point actInd
PED_ins_pt get segmentnr where to insert point & save point
PED_sel_CB userselection callback
PED_mousemove_CB callback mousemovement
PED_off_CB cb of entry PED_w_off
PED_upd_stop exit update proc
PED_newPos__ project cursorPosition onto offsetvector
List_functions_end:
=====================================================
see also
UI_WinTra__ alter modelPositionEditor

Macro Definition Documentation

#define TRUE   1
#define FALSE   0
#define PED_SYM_COL   5
#define PED_SYM_ID   SYM_TRI_B

Function Documentation

static MemTab ( ObjSRC  )
static
int PED_key_CB ( int  key)
int PED_sel_CB ( int  src,
long  dl_ind 
)
int PED_msg__ ( )
int PED_mousemove_CB ( int  dx,
int  dy 
)
int PED_upd_stop ( )
Point PED_newPos__ ( )
int PED_points ( int  mode,
int  ii 
)
MemObj PED_win__ ( MemObj parent,
void *  data 
)
int PED_win_act ( )
int PED_CB1 ( MemObj mo,
void **  data 
)
int PED_off_CB ( MemObj mo,
void **  data 
)
int PED_len_CB ( MemObj mo,
void **  data 
)
int PED_link_CB ( MemObj mo,
void **  data 
)
int PED_get_ptab ( )
int PED_dump_atab ( )
int PED_dump_ptab ( )
int PED_get_ato ( int *  iNr,
int **  atyp,
double **  atab 
)
int PED_get_src ( char *  cBuf,
int  bufSiz 
)
int PED_wri_src ( char *  cBuf)
int PED_rea_src ( char *  cBuf,
int  bufSiz 
)
int PED_exit ( )
int PED_save__ ( )
int PED_src_mod ( char *  cBuf)
int PED_src_del ( char *  cBuf)
int PED_src_ins ( char *  cBuf,
int  bufSiz 
)
int PED_compare ( long  pti,
Point ptNew 
)
int PED_get_tabInd ( int  ipt)
int PED_restore3 ( )
int PED_dep_sav ( )
int PED_mod_dep_draw__ ( )
int PED_mod_dep_draw_l ( int  lNr,
long  dli,
char *  src 
)
int PED_get_offObj ( )
int PED_del__ ( )
int PED_ins_pt ( Point pt1)
int PED_lock ( )
int PED_unlock ( )
int PED_test__ ( )

Variable Documentation

int WC_sur_ind

Der Index auf die ActiveConstrPlane.

Plane WC_sur_act

the active construction-plane

Mat_4x3 WC_sur_mat

TrMat of ActiveConstrPlane only if (WC_sur_ind > 0)

Mat_4x3 WC_sur_imat

inverse TrMat of ActiveConstrPlane

MemObj UIw_Box_TB
char* APT_defTxt
MemObj PEDtb =GUI_OBJ_NEW
static
int actTyp
static
long actDbi
static
void* actObj
static
Point* actPta =NULL
static
Point* actPtp
static
Point actCurPos
static
Point actInsPt
static
long actPti
static
int actPtn
static
int actInd
static
long actDli
static
long dynPti
static
int* PED_atyp
static
double* PED_atab
static
int PED_anr = 0
static
int PED_mode =-1
static
int PED_stat =0
static
int PED_changed =0
static
Plane PED_offObj
static
int PED_offTyp
static
double PED_offLen = 0.
static
MemObj PED_w_off
static
MemObj PED_w_len
static
MemObj PED_f_mod
static
MemObj PED_f0
static
MemObj PED_f_sc
static
MemObj PED_wa[4]
static