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

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

?? 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];     

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
毛片av一区二区三区| 94色蜜桃网一区二区三区| 欧美成人a∨高清免费观看| 欧美无乱码久久久免费午夜一区| 成人做爰69片免费看网站| 国产精品18久久久久久久网站| 欧美日韩中字一区| 91麻豆精品国产| 精品久久久久香蕉网| 欧美色图12p| 色综合色综合色综合| 亚洲欧美偷拍另类a∨色屁股| 成人免费看黄yyy456| 欧美精品欧美精品系列| 日韩一区二区三区四区| 欧美午夜视频网站| 久久久亚洲高清| 综合色中文字幕| 欧美a级一区二区| 国产91在线|亚洲| 国产在线国偷精品产拍免费yy| 国产大陆亚洲精品国产| 国产乱子轮精品视频| 成人h动漫精品一区二区| 欧美日韩高清在线| 国内精品写真在线观看| 色综合网站在线| 日韩欧美在线网站| 日韩伦理av电影| 日本韩国欧美一区| 亚洲成人一区二区在线观看| 4hu四虎永久在线影院成人| 亚洲午夜久久久久| 99久久精品情趣| 久久综合一区二区| 国产一区二区视频在线| 亚洲精品欧美激情| 欧美丰满少妇xxxxx高潮对白 | 亚洲精品中文字幕乱码三区 | 亚洲欧美另类小说| 久久成人久久爱| 日韩免费高清av| 国产精品综合网| 国产日韩在线不卡| 欧美日韩中文国产| www.av精品| 国内国产精品久久| 日本不卡在线视频| 亚洲最色的网站| 国产精品黄色在线观看| 日韩免费高清电影| 91精品国产一区二区三区香蕉| av资源网一区| 国产一区二区在线免费观看| 日本午夜一区二区| 亚洲电影在线播放| 亚洲欧美日韩中文播放 | 国产一区二区成人久久免费影院| 夜夜嗨av一区二区三区中文字幕| 欧美激情一区在线观看| 精品奇米国产一区二区三区| 色悠悠久久综合| 99久久er热在这里只有精品15| 精品亚洲国内自在自线福利| 日日摸夜夜添夜夜添亚洲女人| 亚洲精品v日韩精品| 国产精品久久久久久久久免费相片 | 亚洲精品国久久99热| 中文字幕精品一区二区三区精品| 欧美r级电影在线观看| 宅男噜噜噜66一区二区66| 91久久精品一区二区三| 色妹子一区二区| 91丝袜高跟美女视频| 成人美女视频在线观看18| 丁香激情综合国产| 国产成人精品aa毛片| 粉嫩av亚洲一区二区图片| 国产高清久久久| 粉嫩av一区二区三区在线播放| 国产一区二区久久| 国产成人久久精品77777最新版本| 国产一区视频导航| 国产一区二区精品久久99| 国产一区999| 成人永久aaa| 99riav久久精品riav| 欧美最新大片在线看| 欧美日本一区二区在线观看| 欧美一区二区三区四区在线观看| 91精品在线观看入口| 久久嫩草精品久久久精品| 国产精品美女久久久久aⅴ | 国产精品三级在线观看| 国产精品网站在线| 中文字幕一区二区三区在线播放 | 欧美成人性战久久| 久久久久久久综合日本| 中文字幕欧美国产| 亚洲激情av在线| 免费成人你懂的| 国产成人午夜99999| 91丨porny丨户外露出| 欧美日韩国产一区| 久久女同互慰一区二区三区| 亚洲天堂网中文字| 天天色 色综合| 国产麻豆一精品一av一免费| 99re视频精品| 欧美变态口味重另类| 成人欧美一区二区三区视频网页| 亚洲一区二区三区激情| 国产真实乱子伦精品视频| 99精品视频在线免费观看| 欧美日本在线看| 中文字幕制服丝袜成人av | 国产精品一区久久久久| 99久久婷婷国产综合精品电影| 欧美午夜电影在线播放| 26uuu成人网一区二区三区| 一区二区三区在线免费| 日韩成人一级大片| 91视频一区二区三区| 日韩情涩欧美日韩视频| 亚洲美女精品一区| 久久超碰97中文字幕| 在线精品视频免费播放| 国产欧美日韩中文久久| 日本中文字幕不卡| 91色婷婷久久久久合中文| 欧美精品一区二区久久久| 亚洲国产精品一区二区www在线| 国产成人午夜99999| 日韩欧美国产一二三区| 亚洲色图欧洲色图婷婷| 福利电影一区二区| 欧美挠脚心视频网站| 亚洲激情中文1区| 国产成人h网站| 亚洲精品一区二区三区福利| 亚洲成人综合在线| 色婷婷综合久久久久中文一区二区| 国产日韩欧美精品在线| 理论电影国产精品| 欧美日韩国产首页在线观看| 中文字幕在线一区二区三区| 国产高清久久久久| 久久久午夜精品| 九九热在线视频观看这里只有精品| 欧美日韩国产首页| 亚洲高清中文字幕| 欧美伊人久久久久久久久影院| 亚洲欧洲www| k8久久久一区二区三区| 蜜桃传媒麻豆第一区在线观看| 色网站国产精品| 亚洲激情欧美激情| 色综合中文字幕国产 | 制服丝袜中文字幕亚洲| 一区二区在线电影| 99久久er热在这里只有精品15| 中文字幕精品—区二区四季| 国产精品1区2区3区在线观看| 久久久久久久久久久久久女国产乱 | 久久久久久久久久电影| 韩国三级在线一区| 精品sm捆绑视频| 国产在线一区二区综合免费视频| 日韩欧美一区电影| 久久精品国产久精国产| 日韩一区二区在线观看视频| 日韩国产一二三区| 日韩一区二区三区在线| 精品一区二区三区在线播放视频 | 国产精品美女一区二区三区 | 成人h动漫精品| 国产精品污污网站在线观看| 99久久精品国产毛片| 亚洲精品视频免费看| 欧美色图免费看| 蜜臀久久99精品久久久画质超高清| 3d动漫精品啪啪一区二区竹菊| 青青青爽久久午夜综合久久午夜| 欧美v国产在线一区二区三区| 麻豆精品国产91久久久久久| 久久久精品综合| 91一区二区在线| 天天色综合成人网| 久久久一区二区| 91小视频在线免费看| 天天色综合成人网| 国产日韩欧美精品一区| 91黄色免费网站| 久久99国产精品久久| 国产精品久久777777| 欧美乱妇23p| 成人午夜免费电影| 亚洲成人在线观看视频| 久久精品人人做人人综合| 99re免费视频精品全部|