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

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

?? oglsim.c

?? CVI例程
?? C
?? 第 1 頁 / 共 2 頁
字號:
//-----------------------------------------------------------------------------// Demonstrates the CVIOGL plot attribute OGLATTR_COPY_ORIGINAL_DATA value // of FALSE to force the control to reference the users plot data when calling// OGLRefreshGraph.//-----------------------------------------------------------------------------//-----------------------------------------------------------------------------// Include necessary headers                                                 //-----------------------------------------------------------------------------#include <cvirte.h>     #include <analysis.h>#include <ansi_c.h>#include <userint.h>#include "cviogl.h"#include "oglsim.h"//-----------------------------------------------------------------------------// Define useful constants//-----------------------------------------------------------------------------#define FUNC_1  2#define FUNC_2  3#define FUNC_3  4#define FUNC_4  5#define PI      3.14159//-----------------------------------------------------------------------------// Define numerics datatype to hold variables describing ploted waveform//-----------------------------------------------------------------------------typedef struct {    double  noiseLevel;    int     function;    double  A;    double  B;    double  dataArray[20][20];} numerics;static numerics myNumerics;       //-----------------------------------------------------------------------------// Define module global variables//-----------------------------------------------------------------------------static int             mainPanel;static int             OGLControlID;static ColorMapEntry   gColorMap[3];static int OGLPlotHandle = 0;//-----------------------------------------------------------------------------// Prototypes//-----------------------------------------------------------------------------int  InitPlot       (void);int  InitOGLControl (void);int  PlotColorScale (void);int  MakeDataArray  (int function, double dataArray[20][20], double A, double B, double noiseLevel);void MakeColorMap   (int lowColor, int medColor, int highColor);//-----------------------------------------------------------------------------// Main//-----------------------------------------------------------------------------int main (int argc, char *argv[]){    int timerEnabled;        // Initialize the RTE if necessary    if (InitCVIRTE (0, argv, 0) == 0)            return -1;                // Load the main program panel    if ((mainPanel = LoadPanel (0, "oglsim.uir", MAINPNL)) < 0)        return -1;            // Setup default timer value    GetCtrlAttribute (mainPanel, MAINPNL_PLOTTIMER, ATTR_ENABLED, &timerEnabled);    SetCtrlVal (mainPanel, MAINPNL_STARTPLOT, timerEnabled);        // Initialize the OGL control    if (InitOGLControl () != 0)        return -1;            // Initialize the main UIR    if (InitPlot () != 0)        return -1;            // Display the program panel and run the user interface    DisplayPanel (mainPanel);    RunUserInterface ();        return 0;}//-----------------------------------------------------------------------------// InitPlot:  Initializes the color scale and sets the default plotting function;//            returns 0 if successful//-----------------------------------------------------------------------------int InitPlot (){    // Make the color map with the default values    MakeColorMap (VAL_BLACK, VAL_BLUE, VAL_RED);        // Plot the color scale next to 3D plot to reflect this color map    if (PlotColorScale() != 0)    {        MessagePopup ("Initialization Error", "Could not initialize color scale.");        return -1;    }    // Set the plotting function to the default value    ChangeFuncCB (mainPanel, 0, EVENT_VAL_CHANGED, 0, 0, 0);        // Set the noise level to the default value    NoiseLevelCB (mainPanel, 0, EVENT_VAL_CHANGED, 0, 0, 0);        // Create the plotdata for the first time, we will use     MakeDataArray (FUNC_1, myNumerics.dataArray,                   myNumerics.A, myNumerics.B,                   myNumerics.noiseLevel);    OGLPlotHandle = OGLPlot3DUniform (mainPanel, OGLControlID,                   myNumerics.dataArray, 20,                   20, OGLVAL_DOUBLE, 1.0, 0.0, 1.0, 0.0);                       // Set the plot attributes    OGLSetPlotColorScheme (mainPanel, OGLControlID, OGLPlotHandle,                           OGLVAL_COLORMAP, gColorMap, 3, VAL_YELLOW, 1,                           NULL, 0, 0);    OGLSetPlotAttribute(mainPanel, OGLControlID,OGLPlotHandle,                        OGLATTR_SURFACE_STYLE,OGLVAL_SMOOTH);    OGLSetPlotAttribute(mainPanel, OGLControlID,OGLPlotHandle,                        OGLATTR_SURFACE_SPECULAR_FACTOR,1.0);    OGLSetPlotAttribute(mainPanel, OGLControlID,OGLPlotHandle,                        OGLATTR_SURFACE_SHININESS,50);    OGLSetPlotAttribute(mainPanel, OGLControlID,OGLPlotHandle,                        OGLATTR_WIRE_STYLE,OGLVAL_NONE);    return 0;}       //-----------------------------------------------------------------------------// InitOGLControl:  Initializes the OGL control attributes;//                  returns 0 if successful//-----------------------------------------------------------------------------int InitOGLControl (void){    // Create the OGL Control from the picture control in the uir    if ((OGLControlID = OGLConvertCtrl (mainPanel, MAINPNL_OGLPORT)) <= 0)        return -1;            // Set up the lighting attributes    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_LIGHTING_ENABLE, OGLVAL_TRUE);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_LIGHT_SELECT, 1);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_LIGHT_ENABLE, 1);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_LIGHT_DISTANCE, 3.0);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_PROJECTION_TYPE,OGLVAL_PERSPECTIVE);        // Set up the Z axis        OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_ZNAME_VISIBLE, OGLVAL_TRUE);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_ZNAME, "Z");    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_ZNAME_COLOR, OGLVAL_YELLOW);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_ZNAME_POINT_SIZE, 17);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_ZLABEL_VISIBLE, 1);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_ZLABEL_POINT_SIZE, 16);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_ZDIVISIONS, 5);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_ZAXIS_SCALING, OGLVAL_MANUAL);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_ZMIN, -10.0);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_ZMAX, 10.0);        // Set up the X axis    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_XNAME, "X");       OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_XNAME_VISIBLE, OGLVAL_TRUE);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_XNAME_POINT_SIZE, 17);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_XNAME_COLOR, OGLVAL_YELLOW);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_XLABEL_POINT_SIZE, 16);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_XLABEL_VISIBLE, OGLVAL_TRUE);        // Set up the Y axis    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_YNAME, "Y");       OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_YNAME_VISIBLE, OGLVAL_TRUE);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_YNAME_POINT_SIZE, 17);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_YNAME_COLOR, OGLVAL_YELLOW);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_YLABEL_VISIBLE, OGLVAL_TRUE);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_YLABEL_POINT_SIZE, 16);        // Set up the grid planes    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_YZ_GRID_VISIBLE, OGLVAL_TRUE);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_YZ_GRID_COLOR, OGLVAL_LT_GRAY);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_XY_GRID_VISIBLE, OGLVAL_TRUE);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_XY_GRID_COLOR, OGLVAL_LT_GRAY);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_XZ_GRID_VISIBLE, OGLVAL_TRUE);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_XZ_GRID_COLOR, OGLVAL_LT_GRAY);        // Set up the plot area    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_PLOTAREA_ZSTART, -1.0);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_PLOTAREA_ZSIZE, 2.0);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_PLOTAREA_XSTART, -1.0);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_PLOTAREA_XSIZE, 2.0);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_PLOTAREA_YSTART, -1.0);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_PLOTAREA_YSIZE, 2.0);        // Set up the default view position    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_VIEW_AUTO_DISTANCE, OGLVAL_FALSE);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_VIEW_DISTANCE, 4.0);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_VIEW_LATITUDE, 66.0);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_VIEW_LONGITUDE, 64.0);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_VIEW_CENTERZ, -0.35);        // Set up the control for Refresh operation (keeping a pointer only)    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_COPY_ORIGINAL_DATA, OGLVAL_FALSE);        // Define user interaction    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_ENABLE_PAN_ZOOM_ROTATE, OGLVAL_TRUE);    OGLSetCtrlAttribute (mainPanel, OGLControlID, OGLATTR_ENABLE_PROPERTY_POPUP,  OGLVAL_TRUE);    return 0;}//-----------------------------------------------------------------------------// MakeColorMap:  Builds the global three-color color map array gColorMap//                with the passed-in colors//-----------------------------------------------------------------------------void MakeColorMap (int lowColor, int medColor, int highColor){    gColorMap[0].dataValue.valDouble = -10.0;    gColorMap[0].color = lowColor;    gColorMap[1].dataValue.valDouble = 0.0;    gColorMap[1].color = medColor;    gColorMap[2].dataValue.valDouble = 10.0;    gColorMap[2].color = highColor;}//-----------------------------------------------------------------------------// PlotColorScale:  Builds a temporary array spanning the range of Z values and //                  performs an interpolated intensity plot to display the scale; //                  returns 0 if successful              //-----------------------------------------------------------------------------int PlotColorScale (void){    double scaleArray[3][2];        // Build an array that utilizes the full Z scale (-10<->10)    scaleArray[0][0] = -10.0;    scaleArray[0][1] = -10.0;    scaleArray[1][0] = 0.0;    scaleArray[1][1] = 0.0;    scaleArray[2][0] = 10.0;    scaleArray[2][1] = 10.0;    // Plot this array on the color scale graph control and return the handle    if (PlotIntensity (mainPanel, MAINPNL_COLORSCALE, scaleArray, 2, 3, VAL_DOUBLE, gColorMap,                       VAL_BLACK, 3, 1, 1) <= 0)        return -1;    return 0;   }//-----------------------------------------------------------------------------// int MakeDataArray (int, double**, double, double, double):  Updates the 2D array of data that//                                                             we will plot later;//                                                             returns 0 if successful//-----------------------------------------------------------------------------int MakeDataArray (int function, double dataArray[20][20], double A, double B, double noiseLevel){    double noiseArray[20];     

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人av在线资源网站| 一区二区高清在线| 亚洲三级久久久| 五月婷婷另类国产| 国产专区综合网| 91欧美激情一区二区三区成人| 欧美日韩国产小视频在线观看| 精品国产乱码久久久久久夜甘婷婷 | 欧美一区在线视频| 国产亚洲视频系列| 亚洲福利一区二区三区| 激情偷乱视频一区二区三区| 91免费观看国产| 欧美电影精品一区二区 | 色综合天天综合网天天狠天天| 3d动漫精品啪啪1区2区免费| 欧美国产激情一区二区三区蜜月| 亚洲影视在线播放| 国产激情精品久久久第一区二区| 在线观看视频一区二区| 欧美精品一区二区三区四区| 一区二区三区欧美日韩| 精品一区二区三区在线播放视频| 91美女视频网站| 久久久久久久久久久久电影| 偷窥少妇高潮呻吟av久久免费| 粉嫩绯色av一区二区在线观看| 在线不卡的av| 亚洲人精品午夜| 国产精品亚洲综合一区在线观看| 在线精品亚洲一区二区不卡| 久久先锋影音av| 热久久国产精品| 欧美中文字幕一二三区视频| 欧美国产1区2区| 国产一区二区调教| 欧美精品视频www在线观看| ...中文天堂在线一区| 蜜桃av一区二区三区| 欧美影视一区二区三区| 欧美韩国日本综合| 国内精品自线一区二区三区视频| 欧美日韩性生活| 亚洲精品欧美在线| 99精品视频在线观看| 国产欧美一区二区在线观看| 免费观看91视频大全| 欧美三级资源在线| 亚洲欧美二区三区| 成人午夜又粗又硬又大| 亚洲精品一线二线三线| 蜜臀久久99精品久久久久宅男| 欧美亚男人的天堂| 亚洲综合视频在线| 色爱区综合激月婷婷| 国产成+人+日韩+欧美+亚洲| 欧美日韩免费一区二区三区 | 色偷偷88欧美精品久久久| 久久亚洲私人国产精品va媚药| 日韩精品一级二级| 在线不卡一区二区| 亚洲成a人v欧美综合天堂| 91久久免费观看| 亚洲欧美激情插| 一本到高清视频免费精品| 亚洲欧美日韩国产一区二区三区 | 亚洲男人的天堂在线观看| 成人美女在线观看| 国产精品色哟哟| 成人ar影院免费观看视频| 欧美激情在线一区二区三区| 国产精品一二三四区| 国产日韩欧美一区二区三区乱码| 国产在线国偷精品免费看| 久久久久久久久久久电影| 国产风韵犹存在线视精品| 国产欧美日本一区二区三区| 成人午夜碰碰视频| 亚洲欧美综合网| 91福利精品视频| 午夜一区二区三区视频| 欧美精品一卡二卡| 捆绑紧缚一区二区三区视频| 久久综合一区二区| 国产丶欧美丶日本不卡视频| 国产日产欧美一区| 一本色道久久综合狠狠躁的推荐 | 欧美精品久久久久久久久老牛影院| 亚洲一区在线观看免费 | 国精品**一区二区三区在线蜜桃| 26uuu成人网一区二区三区| 国产成人av电影| 最新国产成人在线观看| 欧美三级三级三级| 免费人成精品欧美精品| 久久一留热品黄| 99精品久久只有精品| 亚洲主播在线观看| 欧美成人一区二区三区| 国产91精品精华液一区二区三区| 国产精品精品国产色婷婷| 色乱码一区二区三区88| 奇米一区二区三区av| 久久久亚洲欧洲日产国码αv| 成人av一区二区三区| 一区二区三区欧美日| 欧美大胆人体bbbb| 不卡在线视频中文字幕| 亚洲风情在线资源站| 欧美mv和日韩mv的网站| 91在线视频播放地址| 日日夜夜精品视频天天综合网| 26uuu国产日韩综合| 日本高清视频一区二区| 日本va欧美va精品| 国产精品毛片久久久久久| 欧洲精品视频在线观看| 国内精品自线一区二区三区视频| 成人欧美一区二区三区小说| 69av一区二区三区| 国产99久久久久久免费看农村| 亚洲一区免费观看| 久久先锋影音av鲁色资源| 欧美综合一区二区三区| 国产传媒久久文化传媒| 亚洲高清在线视频| 日本一区免费视频| 欧美一区二区三区在线电影| 成人av动漫网站| 青草国产精品久久久久久| 日韩毛片视频在线看| 日韩美女在线视频 | 日韩av电影天堂| 中文字幕制服丝袜成人av| 欧美一区永久视频免费观看| 94-欧美-setu| 国产成人在线电影| 日本美女一区二区三区| 成人免费在线视频| 精品久久五月天| 欧美日韩国产中文| 91亚洲精品久久久蜜桃| 狠狠色狠狠色综合日日91app| 亚洲午夜国产一区99re久久| 国产日韩亚洲欧美综合| 91精品国产综合久久久久久漫画| 91影院在线观看| 国产成人精品影院| 久久er精品视频| 无码av中文一区二区三区桃花岛| 国产精品久久久久aaaa| 久久久精品影视| 欧美xxxxxxxxx| 制服丝袜一区二区三区| 91精彩视频在线观看| 成人精品亚洲人成在线| 国产美女主播视频一区| 日本欧美一区二区三区乱码| 一区二区三区在线免费播放| 国产精品色呦呦| 国产欧美日韩精品一区| 久久你懂得1024| 337p日本欧洲亚洲大胆精品| 日韩精品一区二区三区四区视频 | 麻豆91精品91久久久的内涵| 午夜精品久久一牛影视| 一级日本不卡的影视| 亚洲日本va午夜在线电影| 国产精品成人免费| 国产精品丝袜久久久久久app| 久久久久久久精| 久久精品夜夜夜夜久久| 久久只精品国产| 国产亚洲一区二区三区| 国产亚洲欧美日韩日本| 久久久亚洲精华液精华液精华液 | 成人性生交大片免费看在线播放| 国产精品一区二区男女羞羞无遮挡 | 色菇凉天天综合网| 99免费精品在线观看| 99麻豆久久久国产精品免费优播| 成人福利视频在线| 成人av电影免费在线播放| 99免费精品在线| 色域天天综合网| 欧美在线观看你懂的| 欧美日韩综合在线| 国产a视频精品免费观看| 国产91丝袜在线播放0| gogo大胆日本视频一区| 一本色道久久综合狠狠躁的推荐| 在线观看视频欧美| 555夜色666亚洲国产免| 麻豆91在线看| 奇米在线7777在线精品| 日本va欧美va欧美va精品| 精品国精品国产| 国产精品三级电影| 亚洲精品伦理在线| 亚洲一区二区三区中文字幕在线|