|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectanar.Parametric
anar.Pts
anar.Camera
public class Camera

New Camera. Based on two points (target and camera position). Could be moved like other objects. (Transform, Translate ....)
| Field Summary | |
|---|---|
float |
damp
|
static float |
defaultMinimalDistanceIsOver
|
Param |
FOV
|
static PApplet |
p5
|
Param |
rx
|
Param |
rz
|
Param |
sc
|
| Fields inherited from class anar.Pts |
|---|
globalRender, meta, ptList, render |
| Constructor Summary | |
|---|---|
Camera(Camera c)
|
|
Camera(float cameraX,
float cameraY,
float cameraZ,
float targetX,
float targetY,
float targetZ)
|
|
Camera(Pt camera)
|
|
Camera(Pt camera,
Pt target)
|
|
Camera(Pt camera,
Pt target,
Pt horizon)
|
|
| Method Summary | |
|---|---|
void |
feed()
|
Pt |
getCamera()
|
Pt |
getTarget()
|
boolean |
isFovInTransition()
Test is FOV is in transition. |
boolean |
isOver(XYZ pt)
Test if the mouse is over this coordinate. |
boolean |
isOver(XYZ pt,
float dist)
Test if the mouse is over this coordinate. |
void |
match(Camera newCamera)
|
Vertex |
onScreen(XYZ p)
Projection of a 3D point on the 2D screen. |
void |
orientedDrawBegin()
|
void |
orientedDrawBegin(XYZ q)
Orient the Z axis facing the camera and translate. |
void |
orientedDrawEnd()
|
void |
ortho()
|
void |
screenDrawBegin()
|
void |
screenDrawEnd()
|
void |
setCamera(float x,
float y,
float z)
|
void |
setCamera(Pt camera)
Set camera, not tested yet. |
void |
setCamera(PtABS camera)
|
void |
setHorizon(float x,
float y,
float z)
|
void |
setHorizon(PtABS camera)
|
void |
setTarget(float x,
float y,
float z)
|
void |
setTarget(Pt target)
Set target, not tested yet. |
void |
setTarget(PtABS target)
|
static void |
text(java.lang.String str,
XYZ position)
|
static void |
text3D(java.lang.String str,
XYZ position)
|
java.lang.String |
toPovRay()
|
java.lang.String |
toRadiance()
|
void |
unortho()
|
float |
zNear()
|
| Methods inherited from class anar.Pts |
|---|
add, add, add, add, add, add, add, add, addPointsFrom, apply, area, area, bound, boundCenter, color, color, color, color, color, copy, discretization, draw, drawPoints, flip, get, getPt, inLine, iterator, length, numOfPts, orphaned, pt, ptEnd, ptEnd, ptMod, ptOnCurve, remove, remove, render, render, reverse, rotateX, rotateX, rotateY, rotateY, rotateZ, rotateZ, scale, scale, scale, scale, scale, scale, scale, scale, scaleX, scaleX, scaleY, scaleY, scaleZ, scaleZ, set, set, setMeta, size, stroke, stroke, stroke, stroke, stroke, tag, tag, toANSYS, toAutocad, toMegaPOVLink, toObjExporter, toObjExporter, toPovRayAsArray, toPovRayAsCylinder, toRadianceAsCylinder, toRhino, toRhinoAsObject, toSketchUp, toString, translate, translate, translate, translate, translate, translate, translateX, translateX, translateY, translateY, translateZ, translateZ |
| Methods inherited from class anar.Parametric |
|---|
child, getMeta, getPrimitive, parent, parent, parentList, parentList, parentList, parentListGraphViz, parentListGraphViz, parentListRecursive, parentListRecursiveGraphViz, parentToString, parentToStringRecursive, parentToStringRecursive, primitiveToString, replaceParent, replaceParent, replicate, tag |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static PApplet p5
public Param sc
public Param rx
public Param rz
public Param FOV
public static float defaultMinimalDistanceIsOver
public float damp
| Constructor Detail |
|---|
public Camera(float cameraX,
float cameraY,
float cameraZ,
float targetX,
float targetY,
float targetZ)
public Camera(Pt camera)
public Camera(Pt camera,
Pt target)
public Camera(Pt camera,
Pt target,
Pt horizon)
public Camera(Camera c)
| Method Detail |
|---|
public void setCamera(Pt camera)
camera - the camera to setpublic Pt getCamera()
public void setTarget(Pt target)
target - the target to setpublic Pt getTarget()
public java.lang.String toPovRay()
public java.lang.String toRadiance()
public float zNear()
public Vertex onScreen(XYZ p)
p -
public boolean isOver(XYZ pt)
pt -
public boolean isOver(XYZ pt,
float dist)
pt -
public void feed()
public void match(Camera newCamera)
newCamera -
public void setTarget(float x,
float y,
float z)
public void setTarget(PtABS target)
public void setCamera(float x,
float y,
float z)
public void setCamera(PtABS camera)
public void setHorizon(float x,
float y,
float z)
public void setHorizon(PtABS camera)
public void ortho()
public void unortho()
public boolean isFovInTransition()
public void screenDrawBegin()
public void screenDrawEnd()
public void orientedDrawBegin(XYZ q)
q - - Translation to pointpublic void orientedDrawBegin()
public void orientedDrawEnd()
public static void text3D(java.lang.String str,
XYZ position)
public static void text(java.lang.String str,
XYZ position)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||