亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? liver_tree_template.cpp

?? vc++為集成開發環境
?? CPP
?? 第 1 頁 / 共 2 頁
字號:


/*=============================================================================
   WARNING!!  This file is overwritten by the UIStyler each time the Styler 
   file is saved.
  
  
        Filename:  liver_tree_template.c
  
        This file was generated by the NX User Interface Styler
        Created by: nora
        Version: NX 3
              Date: 11-04- 5
              Time: 10:39
  
   This template file is overwritten each time the UIStyler dialog is
   saved.  Any modifications to this file will be lost.
==============================================================================*/
 


/*==============================================================================
   Purpose:  This TEMPLATE file contains C source and static structures to      
   guide you in the construction of your NX Open application dialog.            
   The generation of your dialog file (.dlg extension) is the first step towards
   dialog construction within Unigraphics.  You must now create a UGOpen        
   application that utilizes this file (.dlg).                                  
                                                                                
   The information in this file provides you with the following:                
                                                                                
   1.  Help on the use of the functions, UF_MB_add_styler_actions and           
       UF_STYLER_create_dialog in your NX Open application.  These functions    
       will load and display your UIStyler dialog in Unigraphics.               
                                                                                
       An example of the function, UF_MB_add_styler_actions to associate your   
       dialog to the menubar is shown below (Search on Example 1).              
                                                                                
       An example of a invoking a dialog from a callback utilizing              
       UF_STYLER_create_dialog is also shown below (Search for Example 2).      
                                                                                
       An example of a user exit utilizing UF_STYLER_create_dialog is also      
       shown below (Search for Example 3).                                      
                                                                                
   2.  The callback structure: --- LIVER_TREE_cbs ---               
       This structure is VERY important if you have callbacks associated with   
       your dialog.  It correlates the dialog items in your dialog with the     
       callback functions you must supply.  You should not modify this          
       structure since it MUST match up to the information stored in your       
       dialog file (.dlg).  Any attempt to do so will cause an error while      
       constructing your dialog.   If you wish to modify the association of     
       your callbacks to your dialog, please reload your dialog file (.dlg) into
       the UIStyler and regenerate your files.                                  
       You do not need to be concerned about this structure, simply pass it as  
       an argument to the function, UF_STYLER_create_dialog along with your     
       dialog file (.dlg).
       
       Example 1 displays the actual call you may make for this particular      
       dialog.                                                                  
                                                                                
   3.  The empty callback functions (stubs) associated with your dialog items   
       have also been placed in this file.  These empty functions have been     
       created simply to start you along with your coding requirements.         
       The function name, argument list and possible return values have already 
       been provided for you.                                                   
                                                                                
NOTE:  Each callback must be wrappered with the functions UF_initialize()       
       and UF_terminate().                                                      
                                                                                
==============================================================================*/



/* These include files are needed for the following template code.            */
#include <stdio.h> 
#include <uf.h>
#include <uf_defs.h>
#include <uf_exit.h>
#include <uf_ui.h>
#include <uf_styler.h>
#include <uf_mb.h> 
#include "liver_tree.h"

#include<iostream>
#include<ctime>
#include "math.h"

#include <stdlib.h>
#define N_MAX 38
#define M 20
#define eta 3.6
#define pi  3.1415926



using namespace std;


#include <uf_part.h>
#include <uf_udobj.h>
#include <uf_curve.h>
#include <uf_assem.h>
#include <uf_part.h>
#include <uf_modl.h>
#include <uf_disp.h>
#include <uf_object_types.h>
#include <uf_undo.h>
#include <uf_obj.h>
#include <uf_sket.h>
#include <uf_trns.h>
#include <uf_CSYS.h>     
#include <uf_mtx.h>      
#include <uf_vec.h>		
#include <uf_layer.h>

/* The following definition defines the number of callback entries */
/* in the callback structure:                                      */
/* UF_STYLER_callback_info_t LIVER_TREE_cbs */
#define LIVER_TREE_CB_COUNT ( 5 + 1 ) /* Add 1 for the terminator */
 
/*--------------------------------------------------------------------------
The following structure defines the callback entries used by the       
styler file.  This structure MUST be passed into the user function,    
UF_STYLER_create_dialog along with LIVER_TREE_CB_COUNT.                       
--------------------------------------------------------------------------*/
static UF_STYLER_callback_info_t LIVER_TREE_cbs[LIVER_TREE_CB_COUNT] = 
{
 {UF_STYLER_DIALOG_INDEX, UF_STYLER_CONSTRUCTOR_CB  , 0, LIVER_TREE_constructor},
 {UF_STYLER_DIALOG_INDEX, UF_STYLER_DESTRUCTOR_CB   , 0, LIVER_TREE_destructor},
 {UF_STYLER_DIALOG_INDEX, UF_STYLER_OK_CB           , 0, LIVER_TREE_ok},
 {UF_STYLER_DIALOG_INDEX, UF_STYLER_CANCEL_CB       , 0, LIVER_TREE_cancel},
 {LIVER_TREE_FORM       , UF_STYLER_ACTIVATE_CB     , 0, LIVER_TREE_FORM_cb},
 {UF_STYLER_NULL_OBJECT, UF_STYLER_NO_CB, 0, 0 }
};



/*--------------------------------------------------------------------------
UF_MB_styler_actions_t contains 4 fields.  These are defined as follows:
 
Field 1 : the name of your dialog that you wish to display.
Field 2 : any client data you wish to pass to your callbacks.
Field 3 : your callback structure.
Field 4 : flag to inform menubar of your dialog location.  This flag MUST  
          match the resource set in your dialog!  Do NOT ASSUME that changing 
          this field will update the location of your dialog.  Please use the 
          UIStyler to indicate the position of your dialog.
--------------------------------------------------------------------------*/
static UF_MB_styler_actions_t actions[] = {
    { "liver_tree.dlg",  NULL,   LIVER_TREE_cbs,  UF_MB_STYLER_IS_NOT_TOP },
    { NULL,  NULL,  NULL,  0 } /* This is a NULL terminated list */
};








/*---------------- MENUBAR HOOKUP HELP Example -------------------
To launch this dialog from a Unigraphics menubar, you must follow 
the steps below.
1)  Add the following lines to your MenuScript file in order to 
    associate a menu bar button with your dialog.  In this     
    example, a cascade menu will be created and will be        
    located just before the Help button on the main menubar.   
    The button, LIVER_TREE_BTN is set up to launch your dialog and 
    will be positioned as the first button on your pulldown menu.
    If you wish to add the button to an existing cascade, simply 
    add the 3 lines between MENU LAUNCH_CASCADE and END_OF_MENU  
    to your menuscript file.  
    
    The MenuScript file requires an extension of ".men".
    Make sure that you add the extension to the file and place  
    the file in your startup directory:
      $UGII_USER_DIR/startup or 
      $UGII_SITE_DIR/startup or 
      $UGII_VENDOR_DIR/startup directory


    Move the contents between the dashed lines to your Menuscript file.
!   ----------------------------------------------------------------
    VERSION 120

    EDIT UG_GATEWAY_MAIN_MENUBAR

    BEFORE UG_HELP
      CASCADE_BUTTON UISTYLER_DLG_CASCADE_BTN
      LABEL Dialog Launcher
    END_OF_BEFORE
 
    MENU UISTYLER_DLG_CASCADE_BTN
      BUTTON LIVER_TREE_BTN
      LABEL Display liver_tree dialog
      ACTIONS liver_tree.dlg
    END_OF_MENU
!   ---------------------------------------------------------------


2) Issue a call to the function, UF_MB_add_styler_actions from the ufsta
   user exit as shown below.  To use this call, remove the conditional 
   definitions:  #ifdef MENUBAR_COMMENTED_OUT 
                 #endif MENUBAR_COMMENTED_OUT 
   
   The static structure, actions, will allow you to associate ALL of your
   dialogs and callback functions to the  menubar at once.  For example, if you 
   wish to have 10 dialogs associated to 10 different buttons on the menubar,
   you may enter each dialog and callback list into the actions structure. Make
   sure that you have created a corresponding button in your MenuScript file.
   
   You may also have separate shared libraries, each with a ufsta user exit
   for each individual dialog.


3) Place your compiled and linked ufsta user function in 
   $UGII_USER_DIR/startup or   
   $UGII_SITE_DIR/startup or 
   $UGII_VENDOR_DIR/startup directory.     
 
   NOTE:  The user function must contain the proper extension .so, .sl or .dll 
   to make ensure that it is recognized by the MenuScript.  If it does not
   have the proper extension, it will NOT be recognized by MenuScript.    


   The action name you have provided in your MenuScript must correspond to
   to the dialog name provided in the action structure.  This MUST match inorder
   to bind your dlg file to your MenuScript button.                            


4) Copy your UIStyler dialog file to the proper directory.
   All dialog files (.dlg) must be located in 
      $UGII_USER_DIR/application or 
      $UGII_SITE_DIR/application or 
      $UGII_VENDOR_DIR/application directory




------------------------------------------------------------*/
#ifdef MENUBAR_COMMENTED_OUT
extern void ufsta (char *param, int *retcode, int rlen)
{
    int  error_code;
 
    if ( (UF_initialize()) != 0) 
          return;
                                                 
    if ( (error_code = UF_MB_add_styler_actions ( actions ) ) != 0 )
    {
          char fail_message[133];
          
          UF_get_fail_message(error_code, fail_message);
          printf ( "%s\n", fail_message ); 
    }
                                                 
    UF_terminate();                             
    return;
}
#endif /*MENUBAR_COMMENTED_OUT*/





/*-------DIALOG CREATION FROM A CALLBACK HELP Example ----------
If you wish to have this dialog displayed from the callback of 
another UIStyler dialog, you should:                           

1) Make sure that the callback of your UIStyler dialog is 
   designated as a dialog building callback.              
2) Remove the conditional definitions:
   #ifdef DISPLAY_FROM_CALLBACK 
   #endif DISPLAY_FROM_CALLBACK
3) Your callback should issue a call to this function.
4) You should also add the funcitonal prototype to your header file 
   (liver_tree.h) and ensure that the file is properly included.

All dialog files must be located in 
      $UGII_USER_DIR/application or 
      $UGII_SITE_DIR/application or 
      $UGII_VENDOR_DIR/application directory
--------------------------------------------------------------*/


//#ifdef DISPLAY_FROM_CALLBACK
extern int ufusr( int *response )
{
    int  error_code = 0;
 
    if ( ( error_code = UF_initialize() ) != 0 ) 
           return (0) ;

    if ( ( error_code = UF_STYLER_create_dialog ( "liver_tree.dlg",
           LIVER_TREE_cbs,      /* Callbacks from dialog */
           LIVER_TREE_CB_COUNT, /* number of callbacks*/
           NULL,        /* This is your client data */
           response ) ) != 0 )
    {
          char fail_message[133];

          /* Get the user function fail message based on the fail code.*/
          UF_get_fail_message(error_code, fail_message);
          UF_UI_set_status (fail_message);
          printf ( "%s\n", fail_message ); 
    }


    UF_terminate();                             
    return (error_code);
}
//#endif /* DISPLAY_FROM_CALLBACK */ 




/*-------DIALOG CREATION FROM A USER EXIT HELP Example --------
To create this dialog from a user exit, you must invoke a     
call to the NX Open API, UF_STYLER_create_dialog.  An example 
is shown below.                                               

All dialog files must be located in 
      $UGII_USER_DIR/application or 
      $UGII_SITE_DIR/application or 
      $UGII_VENDOR_DIR/application directory

1) Remove the conditional definitions:
   #ifdef DISPLAY_FROM_USER_EXIT 
   #endif DISPLAY_FROM_USER_EXIT 
2) Add a user exit to the function name below, for example, ufusr.
3) Consider how your shared library will be unloaded.  Take a look
   at the generated function ufusr_ask_unload.
--------------------------------------------------------------*/

//#ifdef DISPLAY_FROM_USER_EXIT
extern void ufsta (char *param, int *retcode, int rlen)
{
    int  response   = 0;
    int  error_code = 0;
 
    if ( ( UF_initialize() ) != 0 ) 
           return;

    if ( ( error_code = UF_STYLER_create_dialog ( "liver_tree.dlg",
           LIVER_TREE_cbs,      /* Callbacks from dialog */
           LIVER_TREE_CB_COUNT, /* number of callbacks*/
           NULL,        /* This is your client data */
           &response ) ) != 0 )
    {
          char fail_message[133];

          /* Get the user function fail message based on the fail code.*/
          UF_get_fail_message(error_code, fail_message);
          UF_UI_set_status (fail_message);
          printf ( "%s\n", fail_message ); 
    }


    UF_terminate();                             
    return;
}




/*--------------------------------------------------------------------------
This function specifies how a shared image is unloaded from memory          
within Unigraphics. This function gives you the capability to unload an     
internal NX Open application or user  exit from Unigraphics.  You can       
specify any one of the three constants as a return value to determine       
the type of unload to perform:  immediately after user function             
execution, via an unload selection dialog, or when Unigraphics terminates   
terminates.  If you choose UF_UNLOAD_SEL_DIALOG, then you have the          
option to unload your image by selecting  File->Utilities->Unload Shared    
Image. 

NOTE:  A program which associates NX Open applications with the menubar     
MUST NOT use this option since it will UNLOAD your NX Open application image
--------
from the menubar.
--------------------------------------------------------------------------*/

extern int ufusr_ask_unload (void)
{
     /* unload immediately after application exits*/
     return ( UF_UNLOAD_IMMEDIATELY );

     /*via the unload selection dialog... */
     /*return ( UF_UNLOAD_SEL_DIALOG );   */
     /*when UG terminates...              */
     /*return ( UF_UNLOAD_UG_TERMINATE ); */
}



/*--------------------------------------------------------------------------
You have the option of coding the cleanup routine to perform any housekeeping
chores that may need to be performed.  If you code the cleanup routine, it is
automatically called by Unigraphics.
--------------------------------------------------------------------------*/
extern void ufusr_cleanup (void)
{
    return;
}
//#endif /* DISPLAY_FROM_USER_EXIT */ 






/*-------------------------------------------------------------------------*/
/*---------------------- UIStyler Callback Functions ----------------------*/
/*-------------------------------------------------------------------------*/

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品久久久久久久浪潮网站| 99国内精品久久| 欧美丰满美乳xxx高潮www| 亚洲专区一二三| 欧美日韩一区二区三区在线看| 亚洲精品视频免费观看| 欧美日本在线观看| 美日韩一区二区三区| 久久亚洲一区二区三区四区| 国产尤物一区二区| 久久久影院官网| av激情综合网| 午夜影院久久久| 亚洲精品在线网站| 91小视频在线观看| 午夜视频在线观看一区二区| 日韩三级在线观看| 国产91丝袜在线18| 一区二区三区蜜桃网| 欧美一卡在线观看| 成人手机在线视频| 亚洲成人黄色影院| 国产亚洲欧美日韩日本| 日本二三区不卡| 国产乱码一区二区三区| 国产精品天美传媒沈樵| 欧美日本视频在线| 国产精品1区二区.| 亚洲国产综合视频在线观看| 久久久亚洲高清| 日本国产一区二区| 国产麻豆精品在线| 亚洲国产成人高清精品| www亚洲一区| 欧美久久久影院| 国产成人午夜电影网| 亚洲成a天堂v人片| 国产欧美一区二区三区鸳鸯浴 | 欧美xxx久久| www.亚洲色图.com| 美女视频网站久久| 亚洲精选在线视频| 欧美精品一区二区蜜臀亚洲| 欧洲视频一区二区| 国产精品一区二区91| 亚洲一区在线免费观看| 亚洲国产高清在线| 日韩欧美123| 欧美三级午夜理伦三级中视频| 国产乱码精品一区二区三区av | 青青草精品视频| 亚洲国产一二三| 中文字幕亚洲欧美在线不卡| 日韩免费性生活视频播放| 欧美无人高清视频在线观看| av高清久久久| 成人三级在线视频| 国产一区二区91| 日韩国产欧美在线观看| 亚洲综合色在线| 综合色天天鬼久久鬼色| 国产精品网站一区| 国产女同互慰高潮91漫画| 欧美r级在线观看| 欧美一区在线视频| 欧美午夜精品久久久| 91香蕉国产在线观看软件| 国产成人av电影在线播放| 狠狠网亚洲精品| 免费高清不卡av| 日韩制服丝袜av| 午夜久久久久久| 亚洲一区二区三区爽爽爽爽爽| 亚洲人一二三区| 亚洲婷婷综合久久一本伊一区 | 亚洲女同ⅹxx女同tv| 国产精品另类一区| 国产精品色婷婷| 欧美激情中文字幕一区二区| 国产精品午夜免费| 亚洲婷婷综合色高清在线| 国产精品激情偷乱一区二区∴| 国产精品久久久久久久久图文区| 国产欧美一区视频| 中文字幕日本不卡| 玉米视频成人免费看| 亚洲综合在线免费观看| 亚洲成人免费在线| 老司机午夜精品| 国产精品一区二区久久精品爱涩| 国产伦精品一区二区三区视频青涩 | 久久精品欧美日韩| 国产网站一区二区| 国产精品国产自产拍高清av | 欧美激情在线看| 亚洲欧洲成人自拍| 亚洲精品成a人| 亚洲成人1区2区| 韩国欧美国产一区| 成人午夜视频在线| 欧美色综合久久| 日韩欧美你懂的| 中文字幕乱码亚洲精品一区 | 午夜精品福利一区二区三区蜜桃| 午夜精品久久久久影视| 麻豆精品久久精品色综合| 韩国精品主播一区二区在线观看 | 国产风韵犹存在线视精品| 99精品视频一区| 6080yy午夜一二三区久久| 精品国产免费久久| 亚洲色图在线看| 日韩电影在线观看一区| 国产激情偷乱视频一区二区三区| 91免费版pro下载短视频| 69精品人人人人| 国产精品久久国产精麻豆99网站| 亚洲国产精品一区二区www| 奇米一区二区三区| 国产.精品.日韩.另类.中文.在线.播放| 成人av网址在线| 欧美一三区三区四区免费在线看 | 日韩一级大片在线观看| 国产精品成人免费在线| 五月天激情综合网| 成人免费三级在线| 日韩一区二区三免费高清| 最新成人av在线| 一区二区三区色| 国产精品1区二区.| 欧美一级精品在线| 亚洲黄一区二区三区| 国产精品亚洲第一区在线暖暖韩国| 精品视频免费在线| 国产精品人成在线观看免费| 日韩激情视频在线观看| 99精品久久只有精品| 久久久www成人免费毛片麻豆| 亚洲黄色尤物视频| av午夜精品一区二区三区| 欧美电影免费观看高清完整版在线 | 欧美日韩久久不卡| 亚洲欧洲www| 国产成都精品91一区二区三| 91精品国产综合久久蜜臀| 亚洲色图丝袜美腿| 国产一区二区三区久久悠悠色av | 精品一区二区免费看| 欧美在线观看视频一区二区| 中文字幕乱码亚洲精品一区| 久久99最新地址| 欧美一级一级性生活免费录像| 有坂深雪av一区二区精品| 成人免费视频一区| 国产亚洲自拍一区| 国产一区二区三区在线观看精品| 91精品国产综合久久久蜜臀粉嫩| 亚洲精品国产无天堂网2021| 成人在线综合网| 国产欧美一区二区精品仙草咪| 麻豆freexxxx性91精品| 3d成人h动漫网站入口| 亚洲观看高清完整版在线观看| 91亚洲精品久久久蜜桃网站| 国产精品人妖ts系列视频 | 色婷婷av一区二区三区大白胸| 国产欧美日韩另类视频免费观看| 激情另类小说区图片区视频区| 欧美一区二区三区视频免费播放| 一区二区三区av电影| 日本乱人伦一区| 一区二区三区在线免费观看 | 国产精品 日产精品 欧美精品| 精品国产sm最大网站免费看| 日本视频一区二区| 欧美电影免费观看高清完整版在线观看| 日本三级亚洲精品| 26uuu精品一区二区| 国产盗摄一区二区| 中文字幕一区二区日韩精品绯色| 成人av在线播放网站| 亚洲日本电影在线| 欧美性三三影院| 免费日韩伦理电影| 精品国产乱码91久久久久久网站| 国产精品资源网| 亚洲色图欧美偷拍| 欧美在线三级电影| 老司机午夜精品| 中文字幕一区二区三区在线播放| 色婷婷国产精品综合在线观看| 午夜私人影院久久久久| 精品美女被调教视频大全网站| 国产成人啪免费观看软件| 亚洲三级免费电影| 欧美浪妇xxxx高跟鞋交| 国产一区二区三区四区五区入口| 国产精品久久看| 在线综合视频播放| 成人涩涩免费视频|