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

? 歡迎來(lái)到蟲(chóng)蟲(chóng)下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲(chóng)蟲(chóng)下載站

?? liver_tree_template.cpp

?? vc++為集成開(kāi)發(fā)環(huán)境
?? CPP
?? 第 1 頁(yè) / 共 2 頁(yè)
字號(hào):


/*=============================================================================
   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 <enter the name of your function> ( 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 */ 






?? 快捷鍵說(shuō)明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
在线不卡的av| 狠狠色综合播放一区二区| 亚洲乱码一区二区三区在线观看| 久久久久久97三级| 国产亚洲精品bt天堂精选| 久久亚洲免费视频| 久久久久久久性| 国产精品欧美一区二区三区| 国产精品电影一区二区| 亚洲精品中文字幕在线观看| 亚洲精品视频免费看| 一区二区三区精密机械公司| 亚洲成人久久影院| 久久精品久久精品| 国产毛片一区二区| 丁香六月综合激情| 91在线观看下载| 欧美在线你懂得| 在线不卡中文字幕| 26uuu欧美| 国产精品护士白丝一区av| 亚洲摸摸操操av| 亚洲国产sm捆绑调教视频| 日本午夜一本久久久综合| 黄色资源网久久资源365| 国产黄色91视频| 色婷婷综合五月| 欧美高清dvd| 久久久三级国产网站| 最新欧美精品一区二区三区| 一区二区三区欧美亚洲| 免费观看日韩电影| 国产超碰在线一区| 91精彩视频在线观看| 欧美一区二区三区白人| 欧美极品aⅴ影院| 亚洲高清一区二区三区| 久久91精品国产91久久小草| 成人av影院在线| 欧美日韩视频不卡| 国产亚洲一区二区在线观看| 亚洲九九爱视频| 另类欧美日韩国产在线| 99久久99久久免费精品蜜臀| 欧美性xxxxxx少妇| 久久综合九色综合欧美亚洲| 18欧美亚洲精品| 日韩电影在线一区| 99麻豆久久久国产精品免费 | 在线一区二区三区| 欧美一区二区久久久| 国产精品色一区二区三区| 婷婷久久综合九色国产成人| 国产成人午夜精品影院观看视频| 色诱视频网站一区| 26uuu久久天堂性欧美| 一区二区在线免费观看| 国产在线精品一区在线观看麻豆| 在线国产电影不卡| 欧美韩日一区二区三区| 天天色 色综合| 91在线丨porny丨国产| 精品国产乱码久久久久久免费| 综合电影一区二区三区| 国产一区二区在线看| 欧美日韩午夜精品| 亚洲柠檬福利资源导航| 激情五月激情综合网| 欧美亚洲国产一区在线观看网站| 久久精品男人的天堂| 麻豆久久一区二区| 欧美午夜精品久久久久久超碰| 中文字幕欧美国产| 精品一区二区三区免费视频| 欧美三级乱人伦电影| 中文字幕中文乱码欧美一区二区| 国产一区二三区| 欧美一区二区福利视频| 亚洲电影一区二区| 在线观看一区不卡| 亚洲图片你懂的| 国产成人av一区二区| 日韩午夜精品视频| 亚洲高清视频在线| 色狠狠av一区二区三区| 国产精品你懂的| 夫妻av一区二区| 欧美精品一区二区不卡| 久久se精品一区精品二区| 欧美人牲a欧美精品| 亚洲一区在线观看视频| 日本高清不卡在线观看| **欧美大码日韩| 92国产精品观看| 亚洲视频中文字幕| 不卡电影一区二区三区| 中文字幕av一区二区三区免费看| 九色综合国产一区二区三区| 日韩一卡二卡三卡| 蓝色福利精品导航| 日韩欧美一级在线播放| 另类小说图片综合网| 日韩欧美在线1卡| 美女在线观看视频一区二区| 欧美一区二区三区四区久久| 首页亚洲欧美制服丝腿| 69久久99精品久久久久婷婷| 日韩国产欧美在线观看| 在线综合视频播放| 美女爽到高潮91| 日韩欧美国产精品| 国产美女久久久久| 国产精品色眯眯| 99久久久国产精品| 自拍偷拍欧美激情| 欧美性感一区二区三区| 石原莉奈在线亚洲三区| 日韩欧美一区二区免费| 国产精品影视天天线| 久久精品日韩一区二区三区| 波多野结衣中文字幕一区 | 日日摸夜夜添夜夜添精品视频 | 亚洲天堂久久久久久久| 91免费在线播放| 亚洲一区二区在线观看视频| 91精品久久久久久蜜臀| 精品在线视频一区| 日本一区二区免费在线观看视频 | 久久99精品一区二区三区三区| 精品欧美久久久| 成人免费高清在线观看| 国产精品自拍三区| 久久久久久久久99精品| 9191成人精品久久| 美国十次了思思久久精品导航| 26uuu成人网一区二区三区| 大美女一区二区三区| 亚洲影院久久精品| 日韩欧美一级精品久久| a4yy欧美一区二区三区| 午夜影视日本亚洲欧洲精品| 精品久久久久久久久久久久包黑料| 懂色一区二区三区免费观看| 亚洲综合免费观看高清完整版在线| 7777精品伊人久久久大香线蕉的 | 欧美最新大片在线看| 日韩电影在线观看网站| 欧美国产精品v| 欧美日韩视频在线观看一区二区三区| 极品少妇xxxx精品少妇偷拍 | 成人性生交大片| 欧美怡红院视频| 奇米亚洲午夜久久精品| 久久久影院官网| 91黄色免费观看| 激情综合五月婷婷| 亚洲欧美二区三区| 日韩欧美国产一二三区| 99久久99精品久久久久久| 亚洲成av人片在www色猫咪| 久久久无码精品亚洲日韩按摩| 91国偷自产一区二区三区成为亚洲经典| 日韩va亚洲va欧美va久久| 中文字幕一区二区三区四区不卡 | 久久久99精品免费观看不卡| 91久久精品午夜一区二区| 国产一区欧美一区| 日韩精品一卡二卡三卡四卡无卡| 国产精品天美传媒| 9191成人精品久久| 色综合天天性综合| 国内精品久久久久影院薰衣草| 亚洲午夜一区二区三区| 国产精品国产三级国产专播品爱网 | 欧美色图免费看| 丰满少妇久久久久久久| 日本欧美韩国一区三区| 亚洲欧洲av色图| 久久精品国产在热久久| 亚洲精品少妇30p| 久久亚洲私人国产精品va媚药| 7777精品伊人久久久大香线蕉超级流畅| 99re这里只有精品视频首页| 国产一区二区三区高清播放| 日本欧美大码aⅴ在线播放| 一区二区三区在线播放| 中文字幕在线观看不卡| 国产日韩亚洲欧美综合| 欧美变态凌虐bdsm| 欧美精品 日韩| 欧美精品乱码久久久久久按摩| 色综合久久九月婷婷色综合| 成人av资源网站| 成人av在线资源网| 成人性生交大片免费看中文| 国产丶欧美丶日本不卡视频| 国产精品系列在线观看| 国产成人免费视频精品含羞草妖精 | 一区二区三区不卡视频| 亚洲精品自拍动漫在线|