更新注释 重构名称为CameraUpdate

pull/72/head
ChenX 6 years ago
parent 32be8edd09
commit b8be58814d

@ -3,6 +3,17 @@ import { Vector2, Vector3 } from "three";
export class Matrix2
{
private el = [1, 0, 0, 1];
/**
*
*
* @param {number} n11 x1 i.x
* @param {number} n12 y1 i.y
* @param {number} n21 x2 j.x
* @param {number} n22 y2 j.y
* @returns
* @memberof Matrix2
*/
set(n11: number, n12: number, n21: number, n22: number)
{
let te = this.el;

@ -12,7 +12,7 @@ import { Orbit } from '../Geometry/Orbit';
* @export
* @class ViewCameraManage
*/
export class CameraControl
export class CameraUpdate
{
private m_CurCamera: THREE.Camera;
private m_CameraArray: Map<any, THREE.Camera> = new Map<any, THREE.Camera>();

@ -1,7 +1,6 @@
import * as THREE from 'three';
import { app } from '../ApplicationServices/Application';
import { CameraControl } from './CameraControl';
import { CameraUpdate } from './CameraUpdate';
export class PreViewer
{
@ -11,7 +10,7 @@ export class PreViewer
//场景
private m_Scene = new THREE.Scene();
//相机控制
protected m_Camera: CameraControl;
protected m_Camera: CameraUpdate;
//线材质
m_LineMaterial: THREE.LineBasicMaterial = new THREE.LineBasicMaterial({ color: 0xffffff });
m_SnapMaterial: THREE.LineBasicMaterial = new THREE.LineBasicMaterial({ color: 0x008B00 });
@ -97,7 +96,7 @@ export class PreViewer
//-------------------------初始化代码-------------------------
private InitCamera()
{
this.m_Camera = new CameraControl();
this.m_Camera = new CameraUpdate();
this.m_Camera.ViewHeight = 1;
this.m_Camera.SetSize(1, 1);
this.m_Camera.Update();

@ -1,17 +1,15 @@
import * as THREE from 'three';
import { Vector3 } from 'three';
import * as xaop from 'xaop';
import { end } from 'xaop';
import { db } from '../ApplicationServices/Application';
import { Database } from '../DatabaseServices/Database';
import { Entity } from '../DatabaseServices/Entity';
import { cZeroVec, GetBox, GetBoxArr } from '../Geometry/GeUtils';
import { PlaneExt } from '../Geometry/Plane';
import { CameraControl } from './CameraControl';
import { CameraUpdate } from './CameraUpdate';
import { RenderType } from './Enum';
import { GripScene } from './GripScene';
import { PreViewer } from './PreViewer';
import { Vector3 } from 'three';
//导入其他js模块
require("three-CopyShader");
@ -29,7 +27,7 @@ export class Viewer
{
m_bNeedUpdate: boolean = true;
//相机类
m_CameraCtrl: CameraControl = new CameraControl();
m_CameraCtrl: CameraUpdate = new CameraUpdate();
//变换控制
m_LookTarget: THREE.Vector3 = new THREE.Vector3();

Loading…
Cancel
Save