nl.kun.Engine3D
Class DataStream
java.lang.Object
|
+--nl.kun.Engine3D.TVector3D
|
+--nl.kun.Engine3D.TCoordSys3D
|
+--nl.kun.Engine3D.TEntity3D
|
+--nl.kun.Engine3D.TEntityList3D
|
+--nl.kun.Engine3D.DataStream
- class DataStream
- extends TEntityList3D
Datastream class which contains all data for one stream and is able to draw it to the canvas.
Datapoints in the stream are connected by lines. Used by the Oscilloscope and not intended for the user.
Constructor Summary |
(package private) |
DataStream(double _maxX,
double _minY,
double _maxY,
java.awt.Color _cl)
Constructor. |
Method Summary |
void |
addMeas(double _dx,
double _y,
double _z)
Adds a measurement to this datastream.
you can enter a y and z value belonging to a measurement a time dx farther in time. |
void |
delAllMeas()
Delete all meassurements from the datastream list. |
double |
Depth(TCamera3D _cam)
This routine prerenders the objects and calculates the distances from the object to the camera (depth).
|
void |
Draw(TCamera3D _cam,
Viewport _Viewport)
Draws the vissible parts of this object onto the viewport, as if it where projecting itself on a camera. |
void |
setBoundaries(double _maxX,
double _minY,
double _maxY)
(Re)sets the limits of the oscilloscope in physical coordinates |
Methods inherited from class nl.kun.Engine3D.TVector3D |
Angle,
Double2String,
Double2String,
Modulus,
Modulus,
Negate,
Negate,
Normalize,
Normalize,
NulVec,
StdXaxis,
StdYaxis,
StdZaxis,
String2Double,
VAdd,
VCrossProduct,
VCrossProduct,
VDotProduct,
Vector3D,
VPerpendicular,
VPerpendicular,
VScalarProduct,
VScalarProduct,
VScalarProduct,
VSubstract,
VSubstract |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
DataStream
DataStream(double _maxX,
double _minY,
double _maxY,
java.awt.Color _cl)
- Constructor.
- Parameters:
_maxX
- Maximum X value to display in the oscilloscope / datastream_minY
- Minimum Y value to display in the oscilloscope / datastream_maxY
- Maximum Y value to display in the oscilloscope / datastream_color
- Color of the object.
setBoundaries
public void setBoundaries(double _maxX,
double _minY,
double _maxY)
- (Re)sets the limits of the oscilloscope in physical coordinates
- Parameters:
_maxX
- Maximum X value to display in the oscilloscope_minY
- Minimum Y value to display in the oscilloscope_maxY
- Maximum Y value to display in the oscilloscope
delAllMeas
public void delAllMeas()
- Delete all meassurements from the datastream list.
addMeas
public void addMeas(double _dx,
double _y,
double _z)
- Adds a measurement to this datastream.
you can enter a y and z value belonging to a measurement a time dx farther in time.
- Parameters:
_dx
- The amount of x the meassurement is away from the last measurement_y
- The y value of the meassurement_z
- The z value of the meassurement
Draw
public void Draw(TCamera3D _cam,
Viewport _Viewport)
- Description copied from class: TEntity3D
- Draws the vissible parts of this object onto the viewport, as if it where projecting itself on a camera.
- Overrides:
- Draw in class TEntityList3D
- Tags copied from class: TEntity3D
- Parameters:
_cam
- The camera._Viewport
- Viewport object. This viewport object handles clipping
and transformation of real world coordinates to screen coordinates.
It does the real drawing on the screen.- See Also:
TCamera3D
,
Viewport
Depth
public double Depth(TCamera3D _cam)
- Description copied from class: TEntity3D
- This routine prerenders the objects and calculates the distances from the object to the camera (depth).
If more than one 3D object is inside this object, it returns the average depth. This depth can be used by a
a parent
TEntityList3D
object to sort all TEntity3D
's
according to depth.
- Overrides:
- Depth in class TEntityList3D
- Tags copied from class: TEntity3D
- Parameters:
_cam
- The camera.