• 大小: 263KB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2021-06-17
  • 语言: 其他
  • 标签: 绘图  

资源简介

通第三方绘图框架 TKit 和 pop 绘制对应的半圆图形,通过Slider改变其对应的进度值!

资源截图

代码片段和文件信息

/*
 * Copyright (C) 2005 2006 Apple Computer Inc.  All rights reserved.
 * Copyright (C) 2009 Torch Mobile Inc.
 *
 * Redistribution and use in source and binary forms with or without
 * modification are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER INC. ‘‘AS IS‘‘ AND ANY
 * EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER INC. OR
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL
 * EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING BUT NOT LIMITED TO
 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE DATA OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
 * OF LIABILITY WHETHER IN CONTRACT STRICT LIABILITY OR TORT
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 * OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 */

#include “TransformationMatrix.h“

#include 

#include “FloatConversion.h“

inline double deg2rad(double d)  { return d * M_PI / 180.0; }
inline double rad2deg(double r)  { return r * 180.0 / M_PI; }
inline double deg2grad(double d) { return d * 400.0 / 360.0; }
inline double grad2deg(double g) { return g * 360.0 / 400.0; }
inline double turn2deg(double t) { return t * 360.0; }
inline double deg2turn(double d) { return d / 360.0; }
inline double rad2grad(double r) { return r * 200.0 / M_PI; }
inline double grad2rad(double g) { return g * M_PI / 200.0; }

//using namespace std;

namespace WebCore {
  
  //
  // Supporting Math Functions
  //
  // This is a set of function from various places (attributed inline) to do things like
  // inversion and decomposition of a 4x4 matrix. They are used throughout the code
  //
  
  //
  // Adapted from Matrix Inversion by Richard Carling Graphics Gems .
  
  // EULA: The Graphics Gems code is copyright-protected. In other words you cannot claim the text of the code
  // as your own and resell it. Using the code is permitted in any program product or library non-commercial
  // or commercial. Giving credit is not required though is a nice gesture. The code comes as-is and if there
  // are any flaws or problems with any Gems code nobody involved with Gems - authors editors publishers or
  // webmasters - are to be held responsible. Basically don‘t be a jerk and remember that anything free comes
  // with no guarantee.
  
  // A clarification about the storage of 

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2016-01-14 09:15  TestProgress\
     文件        6148  2016-01-14 09:15  TestProgress\.DS_Store
     目录           0  2016-05-27 15:52  __MACOSX\
     目录           0  2016-05-27 15:52  __MACOSX\TestProgress\
     文件         120  2016-01-14 09:15  __MACOSX\TestProgress\._.DS_Store
     目录           0  2016-05-27 15:52  TestProgress\.git\
     文件          15  2016-01-13 20:21  TestProgress\.git\COMMIT_EDITMSG
     文件         137  2016-01-13 20:21  TestProgress\.git\config
     文件          73  2016-01-13 20:21  TestProgress\.git\description
     文件          23  2016-01-13 20:21  TestProgress\.git\HEAD
     目录           0  2016-01-13 20:21  TestProgress\.git\hooks\
     文件         177  2016-01-13 20:21  TestProgress\.git\hooks\README.sample
     文件        2238  2016-05-27 15:48  TestProgress\.git\index
     目录           0  2016-01-13 20:21  TestProgress\.git\info\
     文件          40  2016-01-13 20:21  TestProgress\.git\info\exclude
     目录           0  2016-05-27 15:52  __MACOSX\TestProgress\.git\
     目录           0  2016-05-27 15:52  __MACOSX\TestProgress\.git\info\
     文件         171  2016-01-13 20:21  __MACOSX\TestProgress\.git\info\._exclude
     目录           0  2016-01-13 20:21  TestProgress\.git\logs\
     文件         163  2016-01-13 20:21  TestProgress\.git\logs\HEAD
     目录           0  2016-01-13 20:21  TestProgress\.git\logs\refs\
     目录           0  2016-01-13 20:21  TestProgress\.git\logs\refs\heads\
     文件         163  2016-01-13 20:21  TestProgress\.git\logs\refs\heads\master
     目录           0  2016-01-14 09:28  TestProgress\.git\objects\
     目录           0  2016-01-14 09:28  TestProgress\.git\objects\09\
     文件        1748  2016-01-14 09:28  TestProgress\.git\objects\09\7e713e6cd081f3c5475b7f71f3b499cd7329c7
     目录           0  2016-01-13 20:21  TestProgress\.git\objects\0b\
     文件          69  2016-01-13 20:21  TestProgress\.git\objects\0b\c3fb48f4dd03932c8941fbf2d929e764c9b4c5
     目录           0  2016-01-13 20:21  TestProgress\.git\objects\11\
     文件         161  2016-01-13 20:21  TestProgress\.git\objects\11\8c98f7461bf98b2bc7e061150d8021121ad277
     目录           0  2016-01-13 20:21  TestProgress\.git\objects\1f\
............此处省略340个文件信息

评论

共有 条评论