// 将像素point由point所在视图转换到目标视图view中,返回在目标视图view中的像素值- (CGPoint)convertPoint:(CGPoint)point toView:(UIView *)view;// 将像素point从view中转换到当前视图中,返回在当前视图中的像素值-...
分类:
其他好文 时间:
2015-12-23 00:19:53
阅读次数:
196
[objc]view plaincopy//将像素point由point所在视图转换到目标视图view中,返回在目标视图view中的像素值-(CGPoint)convertPoint:(CGPoint)pointtoView:(UIView*)view;//将像素point从view中转换到当前视图...
分类:
移动开发 时间:
2015-12-21 18:20:46
阅读次数:
167
OpenGl 坐标转换 (转载)1.OpenGL渲染管线 OpenGL渲染管线分为两大部分,模型观测变换(ModelView Transformation)和投影变换(Projection Transformation)。做个比喻,计算机图形开发就像我们照相一样,目的就是把真实的场景在一张照相纸上....
分类:
其他好文 时间:
2015-12-15 21:16:50
阅读次数:
718
瓦片地图-(void) ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ CCNode* node = [self getChildByTag:TileMapNode]; CCTMXTiledMap* tileMap ...
分类:
编程语言 时间:
2015-11-24 16:14:02
阅读次数:
205
Overview Replacement of SetInput() with SetInputData() and SetInputConnection() Removal of GetProducerPort() from vtkDataObject Removal of GetPipelin....
分类:
其他好文 时间:
2015-11-12 06:31:31
阅读次数:
179
1.停止UIView动画的方法:#import [self.view.layer removeAllAnimations];2.block页面传值方法:3.UITableViewCell中cell坐标转换cell相对self.view的定位:CGRect rect=[self.view conver...
分类:
移动开发 时间:
2015-11-11 13:04:44
阅读次数:
294
1.安装文件下载:官网,我还是比较喜欢别人编译好的安装包啊,哈哈。http://www.pointclouds.org/downloads/windows.html2.傻瓜式安装(下面的依赖项都集成进来了)写入环境变量,这个很不错,可选。中间安装了Boost、VTK、Kinect驱动什么的。反正是一...
分类:
其他好文 时间:
2015-10-20 21:18:09
阅读次数:
430
火星坐标转百度坐标function gcj02_to_bd09(lng, lat) { var z = Math.sqrt(lng * lng + lat * lat) + 0.00002 * Math.sin(lat * Math.PI); var theta = Math.atan2...
分类:
Web程序 时间:
2015-09-22 16:29:21
阅读次数:
207
今天看代码看到小坐标,觉得还不错,找了一下资料 使用的头文件是vtkOrientationMarkerWidget.h 具体使用如下,来源http://www.vtk.org/gitweb?p=VTK.git;a=blob;f=Interaction/Widgets/Testing/Cxx/TestOrientat...
分类:
系统相关 时间:
2015-09-15 22:02:52
阅读次数:
349
例子1Controller的view中有一个tableView,tableView的cell上有一个button,现在需要将button的frame转为在Controller的view中的frame,怎么实现呢?CGRect rect = [self.view convertRect:_button...
分类:
其他好文 时间:
2015-09-11 12:17:31
阅读次数:
214