www.pudn.com > ThermoGroup-SDK.rar > MagDevice.html, change:2014-12-12,size:3753b


<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title>文档</title>
    <link type="text/css" rel="stylesheet" href="..\assets/css/bootstrap.css"/>
	<link type="text/css" rel="stylesheet" href="..\assets/css/prettify.css"/>
    <style>
      body {
        padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
      }
    </style>
    <link type="text/css" rel="stylesheet" href="..\assets/css/bootstrap-responsive.css"/>
    
  </head>
<body>

  <div class="navbar navbar-inverse navbar-fixed-top">
    <div class="navbar-inner">
      <div class="container">
        <button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        <a class="brand" href="../index.html">目录</a>
        <div class="nav-collapse collapse">
          <ul class="nav">
          </ul>
        </div><!--/.nav-collapse -->
      </div>
    </div>
  </div>

  <div class="container">
    <a name="magdevice_"></a><h1>MagDevice类<a class="anchorlink" href="#magdevice_"></a></h1>
<hr>
<a name="__"></a><h3>说明<a class="anchorlink" href="#__"></a></h3>
<ul class="list">
<li>一个<code>MagDevice</code>对象代表一台红外热像仪</li>
</ul>
<hr>
<a name="________"></a><h3>成员方法分类详解<a class="anchorlink" href="#________"></a></h3>
<ul class="list">
<li><a href="MagDevice_link.html">连接与收听</a></li>
<li><a href="MagDevice_control.html">热像仪控制</a></li>
<li><a href="MagDevice_img.html">图像传输和输出</a></li>
<li><a href="MagDevice_temperature.html">测温</a></li>
</ul>
<hr>
<a name="__final__"></a><h3>静态final成员<a class="anchorlink" href="#__final__"></a></h3>
<pre class="prettyprint">package com.magnity;

public class MagDevice {
    // ....

    // 调色板类型
    public static final int Gray0to255=0;      //白热
    public static final int Gray255to0=1;      //黑热
    public static final int IronBow=2;         //铁红
    public static final int RainBow=3;         //彩虹
    public static final int GlowBow=4;         //琥珀
    public static final int Autumn=5;          //金秋
    public static final int Winter=6;          //寒冬
    public static final int HotMetal=7;        //热金属
    public static final int Jet=8;             //喷射
    public static final int RedSaturation=9;   //红饱和
    public static final int HighContrast=10;   //高对比度

    // 图像传输类型
    public static final int STREAM_TEMPERATURE = 2;
    public static final int STREAM_VIDEO = 4;
    public static final int STREAM_HYBRID = STREAM_TEMPERATURE | STREAM_VIDEO;

    public static final int MAX_RECT_ROI_NUM = 4;  // 最大ROI数

    // ....
}</pre>
<hr>
<a name="magplaycallback__"></a><h3>MagPlayCallback接口<a class="anchorlink" href="#magplaycallback__"></a></h3>
<pre class="prettyprint">package com.magnity;

public class MagDevice {
    // ....

    public interface MagPlayCallback {
        void process(int[] rgb, int[] colorbar);
    }

    // ....
}</pre>
<ul class="list">
<li>在图像传输过程中, SDK每收到一帧图像都会调用<code>process()</code>方法, 用户可以通过定义此方法来实现显示图像功能.</li>
</ul>

  </div>

  <script type="text/javascript" src="..\assets/js/jquery.min.js"></script>
  <script type="text/javascript" src="..\assets/js/bootstrap.min.js"></script>
  <script type="text/javascript" src="..\assets/js/prettify.js"></script>
  <script type="text/javascript" src="..\assets/js/runner.js"></script>
</body>
</html>