code stringlengths 1 2.01M | repo_name stringlengths 3 62 | path stringlengths 1 267 | language stringclasses 231
values | license stringclasses 13
values | size int64 1 2.01M |
|---|---|---|---|---|---|
<?php
/*Language Format:
Add a new file(.lang.php) with your module name at /phpcms/languages/
translation save at the array:$LANG
*/
//add field
$LANG['formguide'] = '表单向导';
$LANG['input_form_title'] = '请输入表单向导名称!';
$LANG['title_min_3_chars'] = '表单向导至少3个汉字以上';
$LANG['right'] = '输入正确!';
$LAN... | 108wo | phpcms/languages/zh-cn/formguide.lang.php | PHP | asf20 | 6,942 |
<?php
$LANG['email'] = '邮箱';
$LANG['or'] = '或者';
$LANG['nickname'] = '昵称';
$LANG['uid'] = '用户ID';
$LANG['regtime'] = '注册时间';
$LANG['lastlogintime'] = '最后登录';
$LANG['operation'] = '操作';
$LANG['password'] = '密码';
$LANG['cofirmpwd'] = '确认密码';
$LANG['realname'] = '真实姓名';
$LANG['enable_phpsso'] = '需开启PHPSSO';
... | 108wo | phpcms/languages/zh-cn/member.lang.php | PHP | asf20 | 18,041 |
<?php
$LANG['coment_class_php_1'] = '没有获取到正常的数据存储表。';
$LANG['coment_class_php_2'] = '数据存储表不存在,并在尝试创建数据存储表时出现错误,请联系管理员。';
$LANG['coment_class_php_3'] = '写入数据存储表时出错,请联系管理员。';
$LANG['coment_class_php_4'] = '自动创建数据存储表时出错,请联系管理员。';
$LANG['coment_class_php_5'] = '尝试添加评论数据时出错,请联系管理员。';
$LANG['coment_class_php_6'] = '评论没... | 108wo | phpcms/languages/zh-cn/comment.lang.php | PHP | asf20 | 2,609 |
<?php
/*Language Format:
Add a new file(.lang.php) with your module name at /phpcms/languages/
translation save at the array:$LANG
*/
$LANG['announce'] = '公告';
$LANG['announce_manage'] = '公告管理';
$LANG['announce_list'] = '公告列表';
$LANG['announce_add'] = '添加公告';
$LANG['announce_title'] = '公告... | 108wo | phpcms/languages/zh-cn/announce.lang.php | PHP | asf20 | 2,230 |
<?php
/*Language Format:
Add a new file(.lang.php) with your module name at /phpcms/languages/
translation save at the array:$LANG
*/
$LANG['member_manage'] = '管理会员';
$LANG['member_add'] = '添加会员';
$LANG['member_edit'] = '编辑会员';
$LANG['member_verify'] = '审核会员';
$LANG['member_group_manage'] = '会员组管理';
$LANG['me... | 108wo | phpcms/languages/zh-cn/system_menu.lang.php | PHP | asf20 | 19,877 |
<?php
$LANG['the_site_not_release'] = '该站点无发布点';
$LANG['release_point_connect_failure'] = '节点『 {name} 』连接失败';
$LANG['peed_your_server'] = '同步速度视您的服务器,连接到发布点的速度而定。';
$LANG['are_release_ing'] = '正在同步中...';
$LANG['done'] = '[已完成]';
$LANG['sync_agin'] = '再次同步';
$LANG['site'] = '站点';
$LANG['path'] = '路径';
$LANG['ti... | 108wo | phpcms/languages/zh-cn/release.lang.php | PHP | asf20 | 755 |
<?php
$LANG['added_external_data_source'] = '添加外部数据源';
$LANG['configure_the_external_data_source'] = '外部数据源配置';
$LANG['dbsource_name'] = '数据源名';
$LANG['edit_dbsource'] = '编辑数据源';
$LANG['server_address'] = '服务器地址';
$LANG['server_port'] = '服务器端口';
$LANG['password'] = '密码';
$LANG['database'] = '数据库名';
$LANG['dbt... | 108wo | phpcms/languages/zh-cn/dbsource.lang.php | PHP | asf20 | 2,406 |
<?php
$LANG['member_init'] = '管理中心';
$LANG['account_manage'] = '账号管理';
$LANG['favorite'] = '收藏';
$LANG['123'] = '123';
$LANG['pay'] = '在线充值';
$LANG['business_centre'] = '商务中心';
?> | 108wo | phpcms/languages/zh-cn/member_menu.lang.php | PHP | asf20 | 222 |
<?php
$LANG['operation'] = '操作';
$LANG['view'] = '查看';
$LANG['access'] = '访问';
$LANG['upgrade'] = '在线升级';
$LANG['checkfile'] = '文件校验';
$LANG['updatetime'] = '更新日期';
$LANG['updatelist'] = '可升级版本列表';
$LANG['currentversion'] = '当前版本';
$LANG['lastversion'] = '为最新版';
$LANG['covertemplate'] = '覆盖模版?';
$LANG['v... | 108wo | phpcms/languages/zh-cn/upgrade.lang.php | PHP | asf20 | 1,483 |
<?php
$LANG['node_add'] = '添加采集点';
$LANG['nodename'] = '名称';
$LANG['modelname'] = '模型名称';
$LANG['charset'] = '编码';
$LANG['content_num'] = '文章数';
$LANG['operation'] = '操作';
$LANG['adddate'] = '添加时间';
$LANG['lastdate'] = '最后采集时间';
$LANG['sure_delete'] = '您确定要删除吗?';
$LANG['basic_configuration'] = '基本信息';
$LANG[... | 108wo | phpcms/languages/zh-cn/collection.lang.php | PHP | asf20 | 6,854 |
<?php
$LANG['reg_msg'] = '您还的网站还没有申请CNZZ统计,是否现在申请?<br><br><input type="button" onclick="location.href=\'?m=cnzz&c=index&a=public_regcnzz\'" value=" 马 上 开 通 "> <input type="button" onclick="history.back();" value=" 暂 不 开 通 ">';
$LANG['application_fails'] = '申请失败,请稍候再试。';
$LANG['donot_connect_server'] = '无法成功连接cnzz服务器... | 108wo | phpcms/languages/zh-cn/cnzz.lang.php | PHP | asf20 | 475 |
<?php
$LANG['enter_the_cache_input_will_not_be_cached'] = '请输入缓存时间,不输入则不进行缓存。';
$LANG['cache_time_can_only_be_positive'] = '缓存时间只能正数。';
$LANG['that_shows_only_positive_numbers'] = '显示条数只能正数。';
$LANG['num'] = '调用数量';
$LANG['name'] = '名称';
$LANG['should'] = '应该';
$LANG['is_greater... | 108wo | phpcms/languages/zh-cn/tag.lang.php | PHP | asf20 | 2,514 |
<?php
$LANG['send_message'] = '发送短消息';
$LANG['all_send_message'] = '群发短消息';
$LANG['message'] = '短消息';
$LANG['send'] = '发送';
$LANG['sendto'] = '发送到';
$LANG['subject'] = '标题';
$LANG['content'] = '内容';
$LANG['setting'] = '配置';
$LANG['touserid'] = '收件人';
$LANG['fromuserid'] = '发件人';
$LANG['send_tim... | 108wo | phpcms/languages/zh-cn/message.lang.php | PHP | asf20 | 1,557 |
<?php
/*Language Format:
Add a new file(.lang.php) with your module name at /phpcms/languages/
translation save at the array:$LANG
*/
//index
$LANG['admin_site_title'] = 'phpcmsV9 - 后台管理中心';
$LANG['expand_or_contract'] = '展开与收缩';
$LANG['phpcms_title'] = 'PHPCMS V9内容管理系统';
$LANG['official_site'] = '官方网站';
... | 108wo | phpcms/languages/zh-cn/admin.lang.php | PHP | asf20 | 35,268 |
<?php
$LANG['2s_close'] = '<font color="red"><B><span id="secondid">2</span></B> 秒后自动关闭</font>';
$LANG['news'] = '新闻';
$LANG['picture'] = '图片';
$LANG['down'] = '下载';
$LANG['info'] = '信息';
$LANG['string_limit'] = '介于<B>{minlength}</B> 到 <B>{maxlength}</B> 个字符之间';
$LANG['tablename'] = '数据表';
$LANG['field_manage']... | 108wo | phpcms/languages/zh-cn/content.lang.php | PHP | asf20 | 15,268 |
<?php
/*Language Format:
Add a new file(.lang.php) with your module name at /phpcms/languages/
translation save at the array:$LANG
*/
$LANG['no_language'] = '缺少语言包';
$LANG['website_manage'] = 'phpcmsV9 - 后台管理中心';
$LANG['lockscreen'] = '锁屏';
$LANG['submit'] = '提 交';
$LANG['yes'] = '是';
$LANG['no'] = '否';
... | 108wo | phpcms/languages/zh-cn/system.lang.php | PHP | asf20 | 8,721 |
<?php
$LANG['configuration_file_save_to_the'] = '配置保存成功,开始文件统计...';
$LANG['documents_to_file_the_statistics'] = '文件统计完成, 开始文件筛选...';
$LANG['file_through_a_feature_the_function_is'] = '文件筛选完成,进行特征函数过滤...';
$LANG['feature_function_complete_a_code_used_by_filtration'] = '特征函数过滤完成,进行特征代码过滤...';
$LANG['scan_completed']... | 108wo | phpcms/languages/zh-cn/scan.lang.php | PHP | asf20 | 1,486 |
<?php
/*Language Format:
Add a new file(.lang.php) with your module name at /phpcms/languages/
translation save at the array:$LANG
*/
$LANG['special'] = '专题';
$LANG['title_cannot_empty'] = '专题名称不能为空';
$LANG['add_special'] = '添加专题';
$LANG['add_special_success'] = '专题添加成功!';
$LANG['edit_speci... | 108wo | phpcms/languages/zh-cn/special.lang.php | PHP | asf20 | 9,298 |
<?php
$LANG['keyword_manage'] = '';
$LANG['keyword_name'] = '关键词';
$LANG['remove_all_selected'] = '删除选定的敏感词';
?> | 108wo | phpcms/languages/zh-cn/keyword.lang.php | PHP | asf20 | 140 |
<?php
/*Language Format:
Add a new file(.lang.php) with your module name at /phpcms/languages/
translation save at the array:$LANG
*/
$LANG['trade_sn'] = '支付单号';
$LANG['addtime'] = '订单时间';
$LANG['to'] = '至';
$LANG['confirm_pay'] = '确认并支付';
$LANG['usernote'] = '备注';
$LANG['adminnote'] = '管理员操作';
$LANG['user... | 108wo | phpcms/languages/zh-cn/pay.lang.php | PHP | asf20 | 8,552 |
<?php
/*Language Format:
Add a new file(.lang.php) with your module name at /phpcms/languages/
translation save at the array:$LANG
*/
$LANG['plugin_not_exist'] = '该应用不存在或者未开启,请联系站长!';
$LANG['plugin_error_or_not_exist'] = 'Plugin Error:该应用不存在或者应用存在语法错误';
$LANG['plugin_lacks_uninstall_file'] = '缺少卸载文件';
$LANG... | 108wo | phpcms/languages/zh-cn/plugin.lang.php | PHP | asf20 | 3,608 |
<?php
$LANG['add_keylink'] = '添加关联链接';
$LANG['keylink_name'] = '关键词';
$LANG['link_address'] = '联接';
?> | 108wo | phpcms/languages/zh-cn/keylink.lang.php | PHP | asf20 | 137 |
<?php
/*Language Format:
Add a new file(.lang.php) with your module name at /phpcms/languages/
translation save at the array:$LANG
*/
$LANG['poster'] = '广告';
$LANG['setting_updates_successful'] = '配置更新完成!';
$LANG['name_plates_not_empty'] = '版位名称不能为空';
$LANG['plate_width_not_empty'] = '版位的宽度不能为空';
... | 108wo | phpcms/languages/zh-cn/poster.lang.php | PHP | asf20 | 7,907 |
<?php
/*Language Format:
Add a new file(.lang.php) with your module name at /phpcms/languages/
translation save at the array:$LANG
*/
$LANG['wap_del_cofirm'] = '确认删除?';
$LANG['phpcms_friends'] = '手机网友';
$LANG['confirm_delete'] = '确认删除选择的分类吗?';
$LANG['wap_add_site'] = '添加手机站点';
$LANG['parameter_error'] = '参... | 108wo | phpcms/languages/zh-cn/wap.lang.php | PHP | asf20 | 2,320 |
<?php
$LANG['name'] = '名称';
$LANG['not_have_permissions'] = '您没有权限进行此项操作。';
$LANG['block_configuration'] = '碎片配置';
$LANG['display_position'] = '显示位置';
$LANG['code'] = '代码型';
$LANG['table_style'] = '格式化数据型';
$LANG['permission_configuration'] = '权限配置';
$LANG['role'] = '角色';
$LANG['updates'] = '更新内容';
$LANG['blo... | 108wo | phpcms/languages/zh-cn/block.lang.php | PHP | asf20 | 1,750 |
<?php
/*Language Format:
Add a new file(.lang.php) with your module name at /phpcms/languages/
translation save at the array:$LANG
*/
//info_setting.phpcredits
$LANG['addmark'] = '点击标注位置';
$LANG['editmark'] = '修改标注位置';
$LANG['mapmark'] = '地图标注';
$LANG['api_addmark'] = '添加标注';
$LANG['api_resetmap'] = '重置地图... | 108wo | phpcms/languages/zh-cn/map.lang.php | PHP | asf20 | 545 |
<?php
/**
* 获取联动菜单接口
*/
defined('IN_PHPCMS') or exit('No permission resources.');
if(!$_GET['callback'] || !$_GET['act']) showmessage(L('error'));
switch($_GET['act']) {
case 'ajax_getlist':
ajax_getlist();
break;
case 'ajax_getpath':
ajax_getpath($_GET['parentid'],$_GET['keyid'],$_GET['callb... | 108wo | api/get_linkage.php | PHP | asf20 | 2,836 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
$txt = trim($_GET['txt']);
if(extension_loaded('gd') && $txt ) {
header ("Content-type: image/png");
$txt = urldecode(sys_auth($txt, 'DECODE'));
$fontsize = isset($_GET['fontsize']) ? intval($_GET['fontsize']) : 16;
$fontpath = PC_PATH.'libs'.D... | 108wo | api/creatimg.php | PHP | asf20 | 1,985 |
<?php
/**
* 获取关键字接口
*/
defined('IN_PHPCMS') or exit('No permission resources.');
define('API_URL_GET_KEYWORDS', 'http://tool.phpcms.cn/api/get_keywords.php');
$number = intval($_GET['number']);
$data = $_POST['data'];
echo get_keywords($data, $number);
function get_keywords($data, $number = 3) {
$da... | 108wo | api/get_keywords.php | PHP | asf20 | 859 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
$field = trim($_GET['field']);
$modelid = intval($_GET['modelid']);
$data = getcache('model_field_'.$modelid,'model');
$setting = string2array($data[$field]['setting']);
$key = $_GET['api_key'] ? $_GET['api_key'] : $setting['api_key'];
$maptype = $... | 108wo | api/map.php | PHP | asf20 | 11,324 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
/**
* 点击统计
*/
$db = '';
$db = pc_base::load_model('hits_model');
if($_GET['modelid'] && $_GET['id']) {
$model_arr = array();
$model_arr = getcache('model','commons');
$modelid = intval($_GET['modelid']);
$hitsid = 'c-'.$modelid.'-'.intval... | 108wo | api/count.php | PHP | asf20 | 1,928 |
<?php
defined('IN_PHPCMS') or exit('No permission resources.');
$session_storage = 'session_'.pc_base::load_config('system','session_storage');
pc_base::load_sys_class($session_storage);
$checkcode = pc_base::load_sys_class('checkcode');
if (isset($_GET['code_len']) && intval($_GET['code_len'])) $checkcode->cod... | 108wo | api/checkcode.php | PHP | asf20 | 1,374 |
<?php
/*
* 客户端被动接收phpsso服务端通知
* 服务端通知内容:同步登陆、退出,同步积分设置、对换比率,同步添加、删除用户、修改用户密码,测试通信状态
*
*/
defined('IN_PHPCMS') or exit('No permission resources.');
$db = pc_base::load_model('member_model');
$system = pc_base::load_config('system');
define('APPID', $system['phpsso_appid']);
$ps_api_url = $syste... | 108wo | api/phpsso.php | PHP | asf20 | 5,633 |
<?php
/**
* 收藏url,必须登录
* @param url 地址,需urlencode,防止乱码产生
* @param title 标题,需urlencode,防止乱码产生
* @return {1:成功;-1:未登录;-2:缺少参数}
*/
defined('IN_PHPCMS') or exit('No permission resources.');
if(empty($_GET['title']) || empty($_GET['url'])) {
exit('-2');
} else {
$title = $_GET['title'];
$title = urlde... | 108wo | api/add_favorite.php | PHP | asf20 | 1,483 |
<?php
/**
* plugin.php 插件入口
*
* @copyright (C) 2005-2010 PHPCMS
* @license http://www.phpcms.cn/license/
* @lastmodify 2011-04-12
*/
define('PHPCMS_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR);
include PHPCMS_PATH.'phpcms/base.php';
$param = pc_base::load_sys_class('param');
pc_base::load_sy... | 108wo | plugin.php | PHP | asf20 | 3,482 |
<?php
/**
* index.php API 入口
*
* @copyright (C) 2005-2010 PHPCMS
* @license http://www.phpcms.cn/license/
* @lastmodify 2010-7-26
*/
define('PHPCMS_PATH', dirname(__FILE__).DIRECTORY_SEPARATOR);
include PHPCMS_PATH.'phpcms/base.php';
$param = pc_base::load_sys_class('param');
$op = isset($_G... | 108wo | api.php | PHP | asf20 | 595 |
package org.poly2tri.triangulation.point.ardor3d;
import java.util.ArrayList;
import java.util.List;
import org.poly2tri.geometry.polygon.PolygonPoint;
import org.poly2tri.triangulation.TriangulationPoint;
import com.ardor3d.math.Vector3;
public class ArdorVector3PolygonPoint extends PolygonPoint
{
... | 11025063-pizibing | poly2tri-ardor3d/src/main/java/org/poly2tri/triangulation/point/ardor3d/ArdorVector3PolygonPoint.java | Java | bsd | 1,641 |
package org.poly2tri.triangulation.point.ardor3d;
import java.util.ArrayList;
import java.util.List;
import org.poly2tri.triangulation.TriangulationPoint;
import com.ardor3d.math.Vector3;
public class ArdorVector3Point extends TriangulationPoint
{
private final Vector3 _p;
public ArdorVect... | 11025063-pizibing | poly2tri-ardor3d/src/main/java/org/poly2tri/triangulation/point/ardor3d/ArdorVector3Point.java | Java | bsd | 2,416 |
package org.poly2tri.triangulation.tools.ardor3d;
import java.nio.FloatBuffer;
import java.nio.IntBuffer;
import java.util.HashMap;
import java.util.List;
import org.poly2tri.geometry.polygon.Polygon;
import org.poly2tri.geometry.primitives.Point;
import org.poly2tri.transform.coordinate.CoordinateTransform;... | 11025063-pizibing | poly2tri-ardor3d/src/main/java/org/poly2tri/triangulation/tools/ardor3d/ArdorMeshMapper.java | Java | bsd | 15,811 |
package org.poly2tri.polygon.ardor3d;
import java.util.ArrayList;
import org.poly2tri.geometry.polygon.Polygon;
import org.poly2tri.triangulation.point.ardor3d.ArdorVector3Point;
import org.poly2tri.triangulation.point.ardor3d.ArdorVector3PolygonPoint;
import com.ardor3d.math.Vector3;
public class ArdorPo... | 11025063-pizibing | poly2tri-ardor3d/src/main/java/org/poly2tri/polygon/ardor3d/ArdorPolygon.java | Java | bsd | 604 |
package org.poly2tri.examples.ardor3d;
import java.util.ArrayList;
import org.poly2tri.Poly2Tri;
import org.poly2tri.examples.ardor3d.base.P2TSimpleExampleBase;
import org.poly2tri.geometry.polygon.Polygon;
import org.poly2tri.geometry.polygon.PolygonPoint;
import org.poly2tri.triangulation.tools.ardor3d.Ardo... | 11025063-pizibing | poly2tri-examples/src/main/java/org/poly2tri/examples/ardor3d/CDTHoleExample.java | Java | bsd | 2,773 |
package org.poly2tri.examples.ardor3d.base;
import java.net.URISyntaxException;
import org.lwjgl.opengl.Display;
import com.ardor3d.example.ExampleBase;
import com.ardor3d.framework.FrameHandler;
import com.ardor3d.image.Texture;
import com.ardor3d.image.Image.Format;
import com.ardor3d.input.logical.Logic... | 11025063-pizibing | poly2tri-examples/src/main/java/org/poly2tri/examples/ardor3d/base/P2TSimpleExampleBase.java | Java | bsd | 3,237 |
package org.poly2tri.examples.ardor3d.base;
import java.nio.FloatBuffer;
import java.util.List;
import org.poly2tri.geometry.polygon.PolygonSet;
import org.poly2tri.triangulation.TriangulationAlgorithm;
import org.poly2tri.triangulation.TriangulationPoint;
import org.poly2tri.triangulation.TriangulationProces... | 11025063-pizibing | poly2tri-examples/src/main/java/org/poly2tri/examples/ardor3d/base/P2TExampleBase.java | Java | bsd | 9,020 |
package org.poly2tri.examples.ardor3d.misc;
public enum ExampleModels
{
Test ("test.dat",1,0,0,true),
Two ("2.dat",1,0,0,true),
Debug ("debug.dat",1,0,0,false),
Debug2 ("debug2.dat",1,0,0,false),
Bird ("bird.dat",1,0,0,false),
Custom... | 11025063-pizibing | poly2tri-examples/src/main/java/org/poly2tri/examples/ardor3d/misc/ExampleModels.java | Java | bsd | 1,573 |
/**
* Copyright (c) 2008-2009 Ardor Labs, Inc.
*
* This file is part of Ardor3D.
*
* Ardor3D is free software: you can redistribute it and/or modify it
* under the terms of its license which may be found in the accompanying
* LICENSE file or at <http://www.ardor3d.com/LICENSE>.
*/
package org.poly2tri.example... | 11025063-pizibing | poly2tri-examples/src/main/java/org/poly2tri/examples/ardor3d/misc/Triangle.java | Java | bsd | 3,822 |
package org.poly2tri.examples.ardor3d.misc;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Str... | 11025063-pizibing | poly2tri-examples/src/main/java/org/poly2tri/examples/ardor3d/misc/PolygonLoader.java | Java | bsd | 5,967 |
package org.poly2tri.examples.ardor3d.misc;
public enum ExampleSets
{
Example1 ("example1.dat",1,0,0,true),
Example2 ("example2.dat",1,0,0,true),
Example3 ("example3.dat",1,0,0,false),
Example4 ("example4.dat",1,0,0,false);
private final static String m_bas... | 11025063-pizibing | poly2tri-examples/src/main/java/org/poly2tri/examples/ardor3d/misc/ExampleSets.java | Java | bsd | 1,143 |
package org.poly2tri.examples.ardor3d.misc;
import org.poly2tri.triangulation.point.TPoint;
public class MyPoint extends TPoint
{
int index;
public MyPoint( double x, double y )
{
super( x, y );
}
public void setIndex(int i)
{
index = i;
}
... | 11025063-pizibing | poly2tri-examples/src/main/java/org/poly2tri/examples/ardor3d/misc/MyPoint.java | Java | bsd | 667 |
package org.poly2tri.examples.ardor3d.misc;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.FileNotFoundException;
import java.io.FileWriter;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Str... | 11025063-pizibing | poly2tri-examples/src/main/java/org/poly2tri/examples/ardor3d/misc/DataLoader.java | Java | bsd | 8,703 |
/* Poly2Tri
* Copyright (c) 2009-2010, Poly2Tri Contributors
* http://code.google.com/p/poly2tri/
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of sourc... | 11025063-pizibing | poly2tri-examples/src/main/java/org/poly2tri/examples/ardor3d/CDTModelExample.java | Java | bsd | 25,670 |
package org.poly2tri.examples.ardor3d;
import java.io.IOException;
import java.util.ArrayList;
import org.poly2tri.Poly2Tri;
import org.poly2tri.examples.ardor3d.base.P2TSimpleExampleBase;
import org.poly2tri.examples.ardor3d.misc.DataLoader;
import org.poly2tri.examples.ardor3d.misc.ExampleSets;
import org.... | 11025063-pizibing | poly2tri-examples/src/main/java/org/poly2tri/examples/ardor3d/DTUniformDistributionExample.java | Java | bsd | 1,990 |
package org.poly2tri.examples.ardor3d;
import java.util.List;
import org.poly2tri.Poly2Tri;
import org.poly2tri.examples.ardor3d.base.P2TSimpleExampleBase;
import org.poly2tri.triangulation.TriangulationPoint;
import org.poly2tri.triangulation.point.TPoint;
import org.poly2tri.triangulation.sets.ConstrainedPo... | 11025063-pizibing | poly2tri-examples/src/main/java/org/poly2tri/examples/ardor3d/CDTUniformDistributionExample.java | Java | bsd | 1,849 |
package org.poly2tri.examples.ardor3d;
import java.util.ArrayList;
import org.poly2tri.Poly2Tri;
import org.poly2tri.examples.ardor3d.base.P2TSimpleExampleBase;
import org.poly2tri.geometry.polygon.Polygon;
import org.poly2tri.geometry.polygon.PolygonPoint;
import org.poly2tri.triangulation.point.TPoint;
imp... | 11025063-pizibing | poly2tri-examples/src/main/java/org/poly2tri/examples/ardor3d/CDTSteinerPointExample.java | Java | bsd | 3,120 |
package org.poly2tri.examples;
import org.poly2tri.Poly2Tri;
import org.poly2tri.triangulation.sets.PointSet;
import org.poly2tri.triangulation.util.PointGenerator;
public class ProfilingExample
{
public static void main(final String[] args)
throws Exception
{
PointSet ps = new Poi... | 11025063-pizibing | poly2tri-examples/src/main/java/org/poly2tri/examples/ProfilingExample.java | Java | bsd | 620 |
package org.poly2tri.examples.geotools;
import java.io.IOException;
import java.net.URISyntaxException;
import java.net.URL;
import java.util.ArrayList;
import org.geotools.data.FeatureSource;
import org.geotools.data.shapefile.ShapefileDataStore;
import org.geotools.feature.FeatureCollection;
import org.geotools.fea... | 11025063-pizibing | poly2tri-examples-geotools/src/main/java/org/poly2tri/examples/geotools/WorldExample.java | Java | bsd | 14,409 |
package org.poly2tri.geometry.primitives;
public abstract class Point
{
public abstract double getX();
public abstract double getY();
public abstract double getZ();
public abstract float getXf();
public abstract float getYf();
public abstract float getZf();
public abstract... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/geometry/primitives/Point.java | Java | bsd | 853 |
package org.poly2tri.geometry.primitives;
public abstract class Edge<A extends Point>
{
protected A p;
protected A q;
public A getP()
{
return p;
}
public A getQ()
{
return q;
}
}
| 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/geometry/primitives/Edge.java | Java | bsd | 248 |
/* Poly2Tri
* Copyright (c) 2009-2010, Poly2Tri Contributors
* http://code.google.com/p/poly2tri/
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of sourc... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/geometry/polygon/PolygonSet.java | Java | bsd | 2,149 |
package org.poly2tri.geometry.polygon;
import org.poly2tri.triangulation.point.TPoint;
public class PolygonPoint extends TPoint
{
protected PolygonPoint _next;
protected PolygonPoint _previous;
public PolygonPoint( double x, double y )
{
super( x, y );
}
public Poly... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/geometry/polygon/PolygonPoint.java | Java | bsd | 728 |
package org.poly2tri.geometry.polygon;
public class PolygonUtil
{
/**
* TODO
* @param polygon
*/
public static void validate( Polygon polygon )
{
// TODO: implement
// 1. Check for duplicate points
// 2. Check for intersecting sides
}
}
| 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/geometry/polygon/PolygonUtil.java | Java | bsd | 308 |
package org.poly2tri.geometry.polygon;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import org.poly2tri.triangulation.Triangulatable;
import org.poly2tri.triangulation.TriangulationContext;
import org.poly2tri.triangulation.TriangulationMode;
import org.poly2tri.triangulation.T... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/geometry/polygon/Polygon.java | Java | bsd | 7,329 |
package org.poly2tri.triangulation;
public abstract class TriangulationDebugContext
{
protected TriangulationContext<?> _tcx;
public TriangulationDebugContext( TriangulationContext<?> tcx )
{
_tcx = tcx;
}
public abstract void clear();
}
| 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/triangulation/TriangulationDebugContext.java | Java | bsd | 290 |
package org.poly2tri.triangulation;
public enum TriangulationMode
{
UNCONSTRAINED,CONSTRAINED,POLYGON;
}
| 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/triangulation/TriangulationMode.java | Java | bsd | 116 |
/* Poly2Tri
* Copyright (c) 2009-2010, Poly2Tri Contributors
* http://code.google.com/p/poly2tri/
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of source code mu... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/triangulation/point/TPoint.java | Java | bsd | 2,425 |
/* Poly2Tri
* Copyright (c) 2009-2010, Poly2Tri Contributors
* http://code.google.com/p/poly2tri/
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of sourc... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/triangulation/point/FloatBufferPoint.java | Java | bsd | 3,083 |
/* Poly2Tri
* Copyright (c) 2009-2010, Poly2Tri Contributors
* http://code.google.com/p/poly2tri/
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of sourc... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/triangulation/TriangulationContext.java | Java | bsd | 5,244 |
package org.poly2tri.triangulation;
import java.util.List;
import org.poly2tri.triangulation.delaunay.DelaunayTriangle;
public interface Triangulatable
{
/**
* Preparations needed before triangulation start should be handled here
* @param tcx
*/
public void prepareTriangulation( Tr... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/triangulation/Triangulatable.java | Java | bsd | 673 |
/* Poly2Tri
* Copyright (c) 2009-2010, Poly2Tri Contributors
* http://code.google.com/p/poly2tri/
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of sourc... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/triangulation/TriangulationPoint.java | Java | bsd | 3,694 |
/* Poly2Tri
* Copyright (c) 2009-2010, Poly2Tri Contributors
* http://code.google.com/p/poly2tri/
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of source code mu... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/triangulation/delaunay/DelaunayTriangle.java | Java | bsd | 18,530 |
/* Poly2Tri
* Copyright (c) 2009-2010, Poly2Tri Contributors
* http://code.google.com/p/poly2tri/
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of sourc... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/triangulation/delaunay/sweep/AdvancingFrontNode.java | Java | bsd | 2,819 |
package org.poly2tri.triangulation.delaunay.sweep;
import org.poly2tri.triangulation.TriangulationContext;
import org.poly2tri.triangulation.TriangulationDebugContext;
import org.poly2tri.triangulation.TriangulationPoint;
import org.poly2tri.triangulation.delaunay.DelaunayTriangle;
public class DTSweepDebugCon... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/triangulation/delaunay/sweep/DTSweepDebugContext.java | Java | bsd | 3,002 |
package org.poly2tri.triangulation.delaunay.sweep;
import java.util.Comparator;
import org.poly2tri.triangulation.TriangulationPoint;
public class DTSweepPointComparator implements Comparator<TriangulationPoint>
{
public int compare( TriangulationPoint p1, TriangulationPoint p2 )
{
if(p1.getY... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/triangulation/delaunay/sweep/DTSweepPointComparator.java | Java | bsd | 760 |
package org.poly2tri.triangulation.delaunay.sweep;
public class PointOnEdgeException extends RuntimeException
{
/**
*
*/
private static final long serialVersionUID = 1L;
public PointOnEdgeException( String msg )
{
super(msg);
}
}
| 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/triangulation/delaunay/sweep/PointOnEdgeException.java | Java | bsd | 287 |
package org.poly2tri.triangulation.delaunay.sweep;
public class AdvancingFrontIndex<A>
{
double _min,_max;
IndexNode<A> _root;
public AdvancingFrontIndex( double min, double max, int depth )
{
if( depth > 5 ) depth = 5;
_root = createIndex( depth );
}
priv... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/triangulation/delaunay/sweep/AdvancingFrontIndex.java | Java | bsd | 919 |
/* Poly2Tri
* Copyright (c) 2009-2010, Poly2Tri Contributors
* http://code.google.com/p/poly2tri/
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of sourc... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/triangulation/TriangulationAlgorithm.java | Java | bsd | 1,745 |
/* Poly2Tri
* Copyright (c) 2009-2010, Poly2Tri Contributors
* http://code.google.com/p/poly2tri/
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of sourc... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/triangulation/TriangulationProcessEvent.java | Java | bsd | 1,776 |
/* Poly2Tri
* Copyright (c) 2009-2010, Poly2Tri Contributors
* http://code.google.com/p/poly2tri/
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of sourc... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/triangulation/sets/PointSet.java | Java | bsd | 3,309 |
/* Poly2Tri
* Copyright (c) 2009-2010, Poly2Tri Contributors
* http://code.google.com/p/poly2tri/
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of sourc... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/triangulation/util/Tuple2.java | Java | bsd | 1,851 |
/* Poly2Tri
* Copyright (c) 2009-2010, Poly2Tri Contributors
* http://code.google.com/p/poly2tri/
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of sourc... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/triangulation/util/Tuple3.java | Java | bsd | 1,895 |
/* Poly2Tri
* Copyright (c) 2009-2010, Poly2Tri Contributors
* http://code.google.com/p/poly2tri/
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of sourc... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/triangulation/util/PolygonGenerator.java | Java | bsd | 3,982 |
package org.poly2tri.triangulation.util;
import java.util.ArrayList;
import java.util.List;
import org.poly2tri.triangulation.TriangulationPoint;
import org.poly2tri.triangulation.point.TPoint;
public class PointGenerator
{
public static List<TriangulationPoint> uniformDistribution( int n, double scale... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/triangulation/util/PointGenerator.java | Java | bsd | 1,157 |
/* Poly2Tri
* Copyright (c) 2009-2010, Poly2Tri Contributors
* http://code.google.com/p/poly2tri/
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of sourc... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/triangulation/TriangulationProcessListener.java | Java | bsd | 1,832 |
package org.poly2tri.transform.coordinate;
/**
* A transform that aligns the XY plane normal [0,0,1] with any given target normal
*
* http://www.cs.brown.edu/~jfh/papers/Moller-EBA-1999/paper.pdf
*
* @author thahlen@gmail.com
*
*/
public class XYToAnyTransform extends Matrix3Transform
{
/**
... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/transform/coordinate/XYToAnyTransform.java | Java | bsd | 1,615 |
package org.poly2tri.transform.coordinate;
import java.util.List;
import org.poly2tri.geometry.primitives.Point;
public class NoTransform implements CoordinateTransform
{
public void transform( Point p, Point store )
{
store.set( p.getX(), p.getY(), p.getZ() );
}
public void tra... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/transform/coordinate/NoTransform.java | Java | bsd | 429 |
package org.poly2tri.transform.coordinate;
/**
* A transform that aligns given source normal with the XY plane normal [0,0,1]
*
* @author thahlen@gmail.com
*/
public class AnyToXYTransform extends Matrix3Transform
{
/**
* Assumes source normal is normalized
*/
public AnyToXYTransf... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/transform/coordinate/AnyToXYTransform.java | Java | bsd | 1,544 |
package org.poly2tri.transform.coordinate;
import java.util.List;
import org.poly2tri.geometry.primitives.Point;
public abstract class Matrix3Transform implements CoordinateTransform
{
protected double m00,m01,m02,m10,m11,m12,m20,m21,m22;
public void transform( Point p, Point store )
{
... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/transform/coordinate/Matrix3Transform.java | Java | bsd | 1,054 |
package org.poly2tri.transform.coordinate;
import java.util.List;
import org.poly2tri.geometry.primitives.Point;
public abstract interface CoordinateTransform
{
public abstract void transform( Point p, Point store );
public abstract void transform( Point p );
public abstract void transform( Lis... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/transform/coordinate/CoordinateTransform.java | Java | bsd | 351 |
/* Poly2Tri
* Copyright (c) 2009-2010, Poly2Tri Contributors
* http://code.google.com/p/poly2tri/
*
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* * Redistributions of sourc... | 11025063-pizibing | poly2tri-core/src/main/java/org/poly2tri/Poly2Tri.java | Java | bsd | 4,971 |
/***************************************
*
* Android Bluetooth Oscilloscope
* yus - projectproto.blogspot.com
* September 2010
*
***************************************/
package org.projectproto.yuscope;
import android.graphics.Canvas;
import android.view.SurfaceHolder;
public class WaveformPlotThread exten... | 116str-blueosci | AndroidBluetoothOscilloscope/src/org/projectproto/yuscope/WaveformPlotThread.java | Java | asf20 | 873 |
/***************************************
*
* Android Bluetooth Oscilloscope
* yus - projectproto.blogspot.com
* September 2010
*
***************************************/
package org.projectproto.yuscope;
import android.app.Activity;
import android.bluetooth.BluetoothAdapter;
import android.bluetooth.Bluetoot... | 116str-blueosci | AndroidBluetoothOscilloscope/src/org/projectproto/yuscope/BluetoothOscilloscope.java | Java | asf20 | 15,481 |
/***************************************
*
* Android Bluetooth Oscilloscope
* yus - projectproto.blogspot.com
* September 2010
*
***************************************/
package org.projectproto.yuscope;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.UUI... | 116str-blueosci | AndroidBluetoothOscilloscope/src/org/projectproto/yuscope/BluetoothRfcommClient.java | Java | asf20 | 10,507 |
/*
* Copyright (C) 2009 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... | 116str-blueosci | AndroidBluetoothOscilloscope/src/org/projectproto/yuscope/DeviceListActivity.java | Java | asf20 | 7,793 |
/***************************************
*
* Android Bluetooth Oscilloscope
* yus - projectproto.blogspot.com
* September 2010
*
***************************************/
package org.projectproto.yuscope;
import android.content.Context;
import android.graphics.Canvas;
import android.graphics.Color;
import and... | 116str-blueosci | AndroidBluetoothOscilloscope/src/org/projectproto/yuscope/WaveformView.java | Java | asf20 | 3,558 |
#ifndef _TIMER_H_
#define _TIMER_H_
#define FCY 40000000 // 40MIPS
#define SAMPLES_PER_DIV 32
#define PERIOD_5us (unsigned int)(FCY * 5E-6 / SAMPLES_PER_DIV ) // 6
#define PERIOD_10us (unsigned int)(FCY * 10E-6 / SAMPLES_PER_DIV ) // 12
#define PERIOD_20us (unsigned int)(FCY * 20E-6 / SAMPLES_PER_DIV )
... | 116str-blueosci | RemoteDevice/dsPIC Bluetooth Oscilloscope/timer.h | C | asf20 | 1,227 |
#include "p33fxxxx.h"
#include "adc.h"
#include "timer.h"
volatile unsigned int adc_value_1;
volatile unsigned int adc_value_2;
volatile unsigned int raw_data[MAX_SAMPLES];
volatile unsigned int samples_count;
const long VOLT_PER_DIV[]={
SCALE_10mV,
SCALE_20mV,
SCALE_50mV,
SCALE_100mV,
SCALE_200m... | 116str-blueosci | RemoteDevice/dsPIC Bluetooth Oscilloscope/adc.c | C | asf20 | 2,805 |
/************************************
Bluetooth Oscilloscope
yus - projectproto.blogspot.com
September 2010
*************************************/
#include "main.h"
_FOSCSEL(FNOSC_FRC); // Select Internal FRC at POR
_FOSC(FCKSM_CSECMD & OSCIOFNC_OFF); // Enable Clock Switching and Configure
_FICD(ICS_PGD... | 116str-blueosci | RemoteDevice/dsPIC Bluetooth Oscilloscope/main.c | C | asf20 | 3,588 |
#define _SER_C_
#include "p33fxxxx.h"
#include "ser.h"
unsigned char txfifo[SER_BUFFER_SIZE];
volatile unsigned char txiptr, txoptr;
unsigned char rxfifo[SER_BUFFER_SIZE];
volatile unsigned char rxiptr, rxoptr;
unsigned char ser_tmp;
void ser_init(void)
{
//RPINR18bits.U1RXR = 28; //RX -> pin 20 (RP28) ... | 116str-blueosci | RemoteDevice/dsPIC Bluetooth Oscilloscope/ser.c | C | asf20 | 3,132 |
#include "p33fxxxx.h"
#include "timer.h"
volatile unsigned int sampling_period;
const unsigned int PERIODS[]={
PERIOD_5us,
PERIOD_10us,
PERIOD_20us,
PERIOD_50us,
PERIOD_100us,
PERIOD_200us,
PERIOD_500us,
PERIOD_1ms,
PERIOD_2ms,
PERIOD_5ms,
PERIOD_10ms,
PERIOD_20ms,
PERIOD_50ms
};
vo... | 116str-blueosci | RemoteDevice/dsPIC Bluetooth Oscilloscope/timer.c | C | asf20 | 903 |
#include "p33fxxxx.h"
#include "ser.h"
#include "adc.h"
#include "timer.h"
#define MAX_LEVEL 240
#define DATA_START (MAX_LEVEL + 1)
#define DATA_END (MAX_LEVEL + 2)
#define REQ_DATA 0x00
#define ADJ_HORIZONTAL 0x01
#define ADJ_VERTICAL 0x02
#define ADJ_POSITION 0x03
#define CHANNEL1 0x01
#define... | 116str-blueosci | RemoteDevice/dsPIC Bluetooth Oscilloscope/main.h | C | asf20 | 674 |
#ifndef _SER_H_
#define _SER_H_
#define FCY 40000000 // = Fclk/2
#define BAUDRATE 115200 // bps
#define BRGVAL ((FCY/BAUDRATE)/4)-1 // for high-speed mode
/* Valid buffer size value are only power of 2 (ex: 2,4,..,64,128) */
#define SER_BUFFER_SIZE 64
#define SER_FIFO_MASK (SER_BUFFER_SIZE-1)
... | 116str-blueosci | RemoteDevice/dsPIC Bluetooth Oscilloscope/ser.h | C | asf20 | 952 |