亚洲欧美第一页_禁久久精品乱码_粉嫩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一区二区三区免费野_久草精品视频
色999日韩国产欧美一区二区| 亚洲三级小视频| 欧美一区二区三区日韩| 欧美性猛交xxxx黑人交| 在线区一区二视频| 在线观看91精品国产入口| 91麻豆产精品久久久久久| 不卡一卡二卡三乱码免费网站| 国产一区二区视频在线播放| 精品在线观看视频| 韩国av一区二区| 激情综合网av| 国产激情91久久精品导航| 国产91丝袜在线播放九色| 国产高清精品在线| 成人午夜碰碰视频| 99re这里只有精品首页| 色综合久久久久久久久| 91成人免费电影| 欧美色手机在线观看| 91麻豆精品国产91久久久久 | 日韩区在线观看| 日韩美女天天操| 久久久久国产一区二区三区四区 | 久久久久久久久岛国免费| 久久九九久久九九| 国产女人aaa级久久久级| 欧美激情在线一区二区三区| 国产精品三级久久久久三级| 亚洲人成在线播放网站岛国| 亚洲国产精品精华液网站| 日韩 欧美一区二区三区| 狠狠色丁香久久婷婷综| 99久久综合色| 欧美日韩免费观看一区二区三区| 91精品国产一区二区| 欧美电影免费观看高清完整版在| 久久久综合精品| 亚洲免费在线播放| 视频一区国产视频| 久久99国产精品尤物| av资源站一区| 欧美三级韩国三级日本三斤| 欧美精品一区二区久久久 | 国产精品一区专区| 99视频精品全部免费在线| 欧美私模裸体表演在线观看| 精品国精品国产尤物美女| 椎名由奈av一区二区三区| 午夜精品福利在线| 国产精品亚洲第一| 欧美日韩情趣电影| 国产日韩影视精品| 午夜精品久久久久久久久久久| 激情综合色播五月| 91国偷自产一区二区三区观看 | 国产欧美精品国产国产专区| 亚洲欧美日韩电影| 精品亚洲国内自在自线福利| 色综合咪咪久久| 精品国产乱码久久久久久久| 亚洲女女做受ⅹxx高潮| 精品一区二区三区视频在线观看| 91视频观看免费| 欧美精品一区二区三区视频| 亚洲在线观看免费视频| 国产a级毛片一区| 欧美一区二区在线观看| 亚洲视频中文字幕| 久久99精品国产| 欧美疯狂性受xxxxx喷水图片| 中文字幕精品综合| 国产又黄又大久久| 欧美伦理电影网| 日韩一区在线看| 国产激情一区二区三区四区| 欧美电影影音先锋| 亚洲黄色性网站| 不卡一卡二卡三乱码免费网站 | 美腿丝袜亚洲综合| 在线免费av一区| 国产精品第四页| 国产精品一区一区| 日韩一区二区三区高清免费看看| 亚洲国产精品视频| 日本道免费精品一区二区三区| 国产女人18水真多18精品一级做| 麻豆久久一区二区| 欧美精品一二三四| 亚洲成av人在线观看| 欧美最新大片在线看| 亚洲男女毛片无遮挡| 本田岬高潮一区二区三区| 国产调教视频一区| 国产精品 欧美精品| 久久综合狠狠综合| 黑人精品欧美一区二区蜜桃| 日韩三级.com| 麻豆一区二区三| 欧美不卡一区二区三区| 欧美aaa在线| 日韩欧美中文一区二区| 日本va欧美va瓶| 日韩一区二区三区视频在线| 免播放器亚洲一区| 欧美一区二区三区免费在线看 | 色哟哟国产精品免费观看| 亚洲天堂精品视频| 91丝袜高跟美女视频| 亚洲欧美色图小说| 欧美在线三级电影| 亚洲va韩国va欧美va| 51精品久久久久久久蜜臀| 日韩精品免费视频人成| 日韩亚洲欧美成人一区| 久久精品av麻豆的观看方式| 日韩欧美国产成人一区二区| 久久不见久久见免费视频7| 精品久久久久99| 国产福利一区在线| 国产精品久久久久四虎| 91麻豆免费看| 亚洲va欧美va人人爽午夜| 欧美一卡在线观看| 国产尤物一区二区在线| 国产精品全国免费观看高清| 91丝袜呻吟高潮美腿白嫩在线观看| 一区二区三区精品| 欧美日韩精品欧美日韩精品一 | 国产成人午夜99999| 中文字幕在线观看不卡视频| 一本在线高清不卡dvd| 亚欧色一区w666天堂| 欧美一区二区三区性视频| 国内久久精品视频| 国产精品国产三级国产普通话三级| 99re成人在线| 丝袜a∨在线一区二区三区不卡| 欧美大度的电影原声| 成人av电影免费观看| 五月婷婷激情综合| 久久久精品国产免大香伊| 91国偷自产一区二区三区观看| 免费在线观看不卡| 国产精品乱码一区二三区小蝌蚪| 在线一区二区三区四区五区| 日本v片在线高清不卡在线观看| 中文字幕精品三区| 欧美精品日韩一本| 国产精品亚洲人在线观看| 亚洲一区二区三区四区不卡| 精品少妇一区二区三区视频免付费| 成人黄色av网站在线| 五月天丁香久久| 中文字幕av资源一区| 欧美人动与zoxxxx乱| 懂色av中文一区二区三区| 亚洲高清中文字幕| 国产精品系列在线| 欧美一区二区在线不卡| 91一区二区在线观看| 国内精品国产三级国产a久久| 亚洲精品亚洲人成人网| 亚洲精品一线二线三线| 91国内精品野花午夜精品 | 欧美一区二区三区思思人| av电影一区二区| 免费成人美女在线观看.| 亚洲美女电影在线| 久久久99久久| 777奇米四色成人影色区| 91日韩在线专区| 国产一区二区三区在线看麻豆| 亚洲成人av中文| 亚洲人成伊人成综合网小说| 精品电影一区二区| 欧美三级日本三级少妇99| 99re8在线精品视频免费播放| 韩国午夜理伦三级不卡影院| 天天亚洲美女在线视频| 亚洲久本草在线中文字幕| 欧美国产精品久久| 日韩一区二区精品葵司在线| 欧美自拍偷拍午夜视频| 成人黄色在线视频| 国产精品一区二区果冻传媒| 日韩成人免费看| 亚洲一二三四在线观看| 综合久久久久久| 国产精品视频一二三| 久久久久久麻豆| 精品对白一区国产伦| 欧美一区二区三区电影| 国产人久久人人人人爽| 8x福利精品第一导航| 欧美三级电影在线看| 在线观看亚洲成人| 日本精品视频一区二区三区| 91视频国产观看| 91老师片黄在线观看|