jre
登录
|
jre/8
netscape
org
launcher
javafx
com
sun
webkit
media
glass
org
image
java_cup
security
openpisces
source
imageio
prism
javafx
webkit
media
sg
prism
NGCamera.java
NGSphere.java
NGImageView.java
NodePath.java
NGPolyline.java
NGSubScene.java
NGRegion.java
NGCircle.java
NGShape.java
NGAmbientLight.java
NGCanvas.java
NGCylinder.java
NGBox.java
NGPath.java
EffectFilter.java
web
NGShape3D.java
ShapeEvaluator.java
NGGroup.java
CacheFilter.java
NGExternalNode.java
DirtyHint.java
NGDefaultCamera.java
NGLine.java
NGPolygon.java
NodeEffectInput.java
EffectUtil.java
NGLightBase.java
NGText.java
NGQuadCurve.java
NGPerspectiveCamera.java
NGTriangleMesh.java
NGPointLight.java
NGParallelCamera.java
MediaFrameTracker.java
NGMeshView.java
NGPhongMaterial.java
NGSVGPath.java
GrowableDataBuffer.java
NGRectangle.java
NGArc.java
RegionImageCache.java
NGEllipse.java
NGNode.java
NGCubicCurve.java
robot
perf
menu
property
image
charts
UnmodifiableArrayList.java
css
binding
tk
stage
application
util
font
beans
animation
PlatformUtil.java
runtime
text
geometry
embed
iio
effect
collections
scene
logging
fxml
jmx
geom
cursor
event
print
naming
scenario
javadoc
jmx
corba
pisces
java
swing
javax
java
NGCamera.java
清空
类结构
/* * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.javafx.sg.prism; import com.sun.javafx.geom.
PickRay
; import com.sun.javafx.geom.
Vec3d
; import com.sun.javafx.geom.transform.
Affine3D
; import com.sun.javafx.geom.transform.
GeneralTransform3D
; import com.sun.prism.
Graphics
; /** * TODO: 3D - Need documentation */ public abstract class
NGCamera
extends
NGNode
{ public static final
NGCamera
INSTANCE
= new
NGDefaultCamera
(); protected
Affine3D
worldTransform
= new
Affine3D
(); // Viewport -- note that, except in the case of GeneralCamera, this will // be set to the size of the panel. protected double
viewWidth
= 1.0; protected double
viewHeight
= 1.0; protected double
zNear
= 0.1; protected double
zFar
= 100.0; // Camera position in world coord. private
Vec3d
worldPosition
= new
Vec3d
(); protected
GeneralTransform3D
projViewTx
= new
GeneralTransform3D
(); @
Override
protected void
doRender
(
Graphics
g
) { } @
Override
protected void
renderContent
(
Graphics
g
) { } @
Override
protected boolean
hasOverlappingContents
() { return false; } public void
setNearClip
(float
nearClip
) { this.
zNear
=
nearClip
; } public double
getNearClip
() { return
zNear
; } public void
setFarClip
(float
farClip
) { this.
zFar
=
farClip
; } public double
getFarClip
() { return
zFar
; } public void
setViewWidth
(double
viewWidth
) { this.
viewWidth
=
viewWidth
; } public double
getViewWidth
() { return
viewWidth
; } public void
setViewHeight
(double
viewHeight
) { this.
viewHeight
=
viewHeight
; } public double
getViewHeight
() { return
viewHeight
; } public void
setProjViewTransform
(
GeneralTransform3D
projViewTx
) { this.
projViewTx
.
set
(
projViewTx
); } public void
setPosition
(
Vec3d
position
) {
worldPosition
.
set
(
position
); } public void
setWorldTransform
(
Affine3D
localToWorldTx
) {
worldTransform
.
setTransform
(
localToWorldTx
); } public
GeneralTransform3D
getProjViewTx
(
GeneralTransform3D
tx
) { if (
tx
== null) {
tx
= new
GeneralTransform3D
(); } return
tx
.
set
(
projViewTx
); } public
Vec3d
getPositionInWorld
(
Vec3d
pos
) { if (
pos
== null) {
pos
= new
Vec3d
(); }
pos
.
set
(
worldPosition
); return
pos
; } @
Override
public void
release
() { // TODO: 3D - Need to release native resources // System.err.println("NGCamera: Need to release native resources"); } // public abstract void validate(final int w, final int h); public abstract
PickRay
computePickRay
(float
x
, float
y
,
PickRay
pickRay
); }
查找资源
Jre/Lib
输入类名或文件名
类结构窗口