VEGA实用编程手册
Vega结构类
VGTYPE_CHAN VGTYPE_MOTION
VGTYPE_WINDOW VGTYPE_GFX
VGTYPE_OBSERV VGTYPE_ENV
VGTYPE_SCENE VGTYPE_ISECTOR
VGTYPE_SYSTEM VGTYPE_VOL
VGTYPE_OBJECT VGTYPE_LIGHT
VGTYPE_DBM VGTYPE_FOG
VGTYPE_PLAYER VGTYPE_ENVFX
VGTYPE_IODEV VGTYPE_POS
VGTYPE_TFLOD
VGTYPE_PART
VGTYPE_DATASET
VGTYPE_CLASSDEF
VGTYPE_CTAB
VGTYPE_DLIST
VGTYPE_IOMAP
VGTYPE_MCODE
VGTYPE_LIST
函数命明规则
vgNewXXX
vgFindXXX
vgGetXXX
vgGetNumXXX
vgNewXXXCopy
vgSrcAssoc(source, association);
‘vg’ is our product code
‘Src’ is the placeholder of the source instance
‘Assoc’ is the placeholder of the Association to be made
Example
/*declare variables*/
vgChannel *channel;
vgWindow *window;
/*get a pointer to the existing instance created thru the ADF*/
channel=vgGetChan(0);
window=vgGetWin(0);
/*associate the window with the channel*/
vgChanWin(channel, window);
vgAddSrcAssoc(source, association);
‘vg’(I think you’ve got it now)
‘Add’ is the action adding another association to our source
‘Src’ is the placeholder of the source instance
‘Assoc’ is the placeholder of the Association to be added
Example
/*declare variables*/
vgChannel *channel;
vgObserver *observer;
/*get a pointer to the existing instance created thru the ADF*/
channel=vgGetChan(0);
observer=vgGetObserv(0);
/*add the observer to the channel*/
vgAddObervChan(observer, channel);
vgRemSrcAssoc(source, association);
‘Rem’ is the action: removing an association from our source
‘Src’ is the placeholder of the source instance
‘Assoc’ is the placeholder of the Association to be removed
Example
/*declare variables*/
vgChannel *channel;
vgObserver *observer;
/*get a pointer to the existing instance in ADF*/
channel=vgGetChan(0);
observer=vgGetObserv(0);
/*remove the channel from the observer*/
vgRemObservChan(observerl, channel);
vgGetSrcAssoc(source, index);
‘Get’ is the action: getting the handle of an association to our source.
‘Src’ is the placeholder of t
vega实用编程手册 来自淘豆网m.daumloan.com转载请标明出处.