1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269
|
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Thu Sep 25 20:23:36 MET DST 1997 -->
<a name="_top_"></a>
<title>
Class iicm.vrml.vrwave.ViewCamera
</title>
</head>
<body background="vrwavebg.gif">
<pre>
<a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-iicm.vrml.vrwave.html">This Package</a> <a href="iicm.vrml.vrwave.VRwave.html#_top_">Previous</a> <a href="Package-iicm.vrml.vrwave.html">Next</a> <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
Class iicm.vrml.vrwave.ViewCamera
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
|
+----<a href="iicm.utils3d.Camera.html#_top_">iicm.utils3d.Camera</a>
|
+----iicm.vrml.vrwave.ViewCamera
</pre>
<hr>
<dl>
<dt> public class <b>ViewCamera</b>
<dt> extends <a href="iicm.utils3d.Camera.html#_top_">Camera</a>
</dl>
ViewCamera - VRML viewpoint (Camera)
Copyright (c) 1997 IICM
<hr>
<a name="index"></a>
<h2>
<img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
<dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#ViewCamera()"><b>ViewCamera</b></a>()
<dd>
</dl>
<h2>
<img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#approachNormal(float[], float[], float)"><b>approachNormal</b></a>(float[], float[], float)
<dd> approach target normal vector by a faction of k
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#approachPosition(float[], float, float)"><b>approachPosition</b></a>(float[], float, float)
<dd> approach target position by a fraction of k
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#clear()"><b>clear</b></a>()
<dd> clear Viewpoint stack.
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#getFarClip()"><b>getFarClip</b></a>()
<dd> get far clipping plane (yon)
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#getNearClip()"><b>getNearClip</b></a>()
<dd> get near clipping plane (hither)
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#initialViewpoint(iicm.vrml.pw.Viewpoint)"><b>initialViewpoint</b></a>(Viewpoint)
<dd> set the initial viewpoint.
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#printValues(java.io.PrintStream)"><b>printValues</b></a>(PrintStream)
<dd> print camera values
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#reset()"><b>reset</b></a>()
<dd> reset to initial (relative) view
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#rotateXYcenter(float, float, float[])"><b>rotateXYcenter</b></a>(float, float, float[])
<dd> rotate horicontally/vertically.
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#setCamera(float)"><b>setCamera</b></a>(float)
<dd> set camera via GE3D
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#setFarClip(float)"><b>setFarClip</b></a>(float)
<dd>
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#setNearClip(float)"><b>setNearClip</b></a>(float)
<dd>
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#transformPointVCS(float[])"><b>transformPointVCS</b></a>(float[])
<dd> transform point into Viewpoint coordinate system.
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#transformVectorVCS(float[])"><b>transformVectorVCS</b></a>(float[])
<dd> transform vector into Viewpoint coordinate system.
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#viewingRay(float, float, float)"><b>viewingRay</b></a>(float, float, float)
<dd> get a viewing ray (for picking).
</dl>
<a name="constructors"></a>
<h2>
<img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="ViewCamera"></a>
<a name="ViewCamera()"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>ViewCamera</b>
<pre>
public ViewCamera()
</pre>
<a name="methods"></a>
<h2>
<img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="clear()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="clear"><b>clear</b></a>
<pre>
public void clear()
</pre>
<dl>
<dd> clear Viewpoint stack.
Does not change the relative view
<dl>
<dt> <b>See Also:</b>
<dd> <a href="#reset">reset</a>
</dl>
</dl>
<a name="reset()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="reset"><b>reset</b></a>
<pre>
public void reset()
</pre>
<dl>
<dd> reset to initial (relative) view
<dl>
<dt> <b>Overrides:</b>
<dd> <a href="iicm.utils3d.Camera.html#reset()">reset</a> in class <a href="iicm.utils3d.Camera.html#_top_">Camera</a>
</dl>
</dl>
<a name="getNearClip()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getNearClip"><b>getNearClip</b></a>
<pre>
public float getNearClip()
</pre>
<dl>
<dd> get near clipping plane (hither)
</dl>
<a name="getFarClip()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getFarClip"><b>getFarClip</b></a>
<pre>
public float getFarClip()
</pre>
<dl>
<dd> get far clipping plane (yon)
</dl>
<a name="setNearClip(float)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setNearClip"><b>setNearClip</b></a>
<pre>
public void setNearClip(float hither)
</pre>
<a name="setFarClip(float)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setFarClip"><b>setFarClip</b></a>
<pre>
public void setFarClip(float yon)
</pre>
<a name="setCamera(float)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setCamera"><b>setCamera</b></a>
<pre>
public void setCamera(float winaspect)
</pre>
<dl>
<dd> set camera via GE3D
</dl>
<a name="initialViewpoint(iicm.vrml.pw.Viewpoint)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="initialViewpoint"><b>initialViewpoint</b></a>
<pre>
public void initialViewpoint(<a href="iicm.vrml.pw.Viewpoint.html#_top_">Viewpoint</a> vp)
</pre>
<dl>
<dd> set the initial viewpoint.
has no effect when there is already a viewpoint bound
</dl>
<a name="transformPointVCS(float[])"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="transformPointVCS"><b>transformPointVCS</b></a>
<pre>
protected float[] transformPointVCS(float point[])
</pre>
<dl>
<dd> transform point into Viewpoint coordinate system.
i.e. into the coordinate system the Camera is defined in.
<dl>
<dt> <b>Returns:</b>
<dd> unchanged point if there is no Viewpoint bound
</dl>
</dl>
<a name="transformVectorVCS(float[])"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="transformVectorVCS"><b>transformVectorVCS</b></a>
<pre>
protected float[] transformVectorVCS(float vector[])
</pre>
<dl>
<dd> transform vector into Viewpoint coordinate system.
like transformPointVCS, but consider orientation only.
</dl>
<a name="rotateXYcenter(float, float, float[])"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="rotateXYcenter"><b>rotateXYcenter</b></a>
<pre>
public void rotateXYcenter(float l2r,
float t2b,
float center[])
</pre>
<dl>
<dd> rotate horicontally/vertically.
center transformed by current Viewpoint
<dl>
<dt> <b>Overrides:</b>
<dd> <a href="iicm.utils3d.Camera.html#rotateXYcenter(float, float, float[])">rotateXYcenter</a> in class <a href="iicm.utils3d.Camera.html#_top_">Camera</a>
</dl>
</dl>
<a name="approachPosition(float[], float, float)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="approachPosition"><b>approachPosition</b></a>
<pre>
public void approachPosition(float poi[],
float ktran,
float hither)
</pre>
<dl>
<dd> approach target position by a fraction of k
<dl>
<dt> <b>Overrides:</b>
<dd> <a href="iicm.utils3d.Camera.html#approachPosition(float[], float, float)">approachPosition</a> in class <a href="iicm.utils3d.Camera.html#_top_">Camera</a>
</dl>
</dl>
<a name="approachNormal(float[], float[], float)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="approachNormal"><b>approachNormal</b></a>
<pre>
public void approachNormal(float poi[],
float normal[],
float krot)
</pre>
<dl>
<dd> approach target normal vector by a faction of k
<dl>
<dt> <b>Overrides:</b>
<dd> <a href="iicm.utils3d.Camera.html#approachNormal(float[], float[], float)">approachNormal</a> in class <a href="iicm.utils3d.Camera.html#_top_">Camera</a>
</dl>
</dl>
<a name="viewingRay(float, float, float)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="viewingRay"><b>viewingRay</b></a>
<pre>
public <a href="iicm.utils3d.Ray.html#_top_">Ray</a> viewingRay(float fx,
float fy,
float winaspect)
</pre>
<dl>
<dd> get a viewing ray (for picking).
</dl>
<a name="printValues(java.io.PrintStream)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="printValues"><b>printValues</b></a>
<pre>
public void printValues(<a href="java.io.PrintStream.html#_top_">PrintStream</a> os)
</pre>
<dl>
<dd> print camera values
<dl>
<dt> <b>Overrides:</b>
<dd> <a href="iicm.utils3d.Camera.html#printValues(java.io.PrintStream)">printValues</a> in class <a href="iicm.utils3d.Camera.html#_top_">Camera</a>
</dl>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-iicm.vrml.vrwave.html">This Package</a> <a href="iicm.vrml.vrwave.VRwave.html#_top_">Previous</a> <a href="Package-iicm.vrml.vrwave.html">Next</a> <a href="AllNames.html">Index</a></pre>
</body>
</html>
|