|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object camera3d.VcObject camera3d.VcHelper camera3d.VcLaser camera3d.VcLaserArray
A laser array for structured lighting simulation.
Field Summary |
Fields inherited from class camera3d.VcObject |
transformationMode |
Constructor Summary | |
VcLaserArray()
Creates a LaserArray with the following configuration: 2 beams in X direction 2 beams in Y direction 1.0 meter between beams in X direction 1.0 meter between beams in Y direction |
|
VcLaserArray(int xBeams,
int yBeams,
double xDelta,
double yDelta)
Constructor |
|
VcLaserArray(int xBeams,
int yBeams,
double xDelta,
double yDelta,
camera3d.VcLaserTracer tracer,
javax.media.j3d.Shape3D targetGizmo)
Constructor |
Method Summary | |
double |
getBlue()
|
boolean |
getEnable()
Returns a flag indicating whether target position is being updated. |
double |
getGreen()
|
javax.swing.Icon |
getIcon()
Returns the Icon associated with the laser array. |
java.lang.String |
getInfo()
|
static int |
getInstanceCounter()
Returns the number of objects instatiated so far. |
double |
getMinimumDistance()
Returns minimum distance allowed between laser beams (both in X and Y directions). |
double |
getMinimumScale(double minimumSize)
Returns minimum scale applied to laser beams. |
double |
getRed()
|
double |
getTargetScale()
|
int |
getXBeams()
|
double |
getXDelta()
|
int |
getYBeams()
|
double |
getYDelta()
|
void |
initialize()
Method from VcLaser interface. |
void |
setBranchGroup(javax.media.j3d.BranchGroup bg)
|
void |
setColor(javax.vecmath.Color3f color)
Sets the color of the target gizmo. |
void |
setColor(double red,
double green,
double blue)
Sets the color of the target gizmo. |
void |
setColor(float red,
float green,
float blue)
Sets the color of the target gizmo |
void |
setEnable(boolean enable)
Method from VcLaserTracer interface. |
void |
setGrid(int xBeams,
int yBeams,
double xDelta,
double yDelta)
Changes the current grid for this laser array. |
void |
setIcon(javax.swing.Icon arrayIcon)
Sets the Icon associated with the laser array. |
void |
setMinimumDistance(double minimumDistance)
Sets minimum distance allowed between laser beams (both in X and Y directions). |
void |
setMinimumScale(double minimumScale)
Sets minimum scale that can be applied to laser beams. |
void |
setRadius(float radius)
Sets the radius of the target gizmo. |
void |
setTargetScale(double scale)
|
void |
trace()
Method from VcLaser interface |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VcLaserArray()
public VcLaserArray(int xBeams, int yBeams, double xDelta, double yDelta)
xBeams
- Number of beams in X directionyBeams
- Number of beams in Y directionxDelta
- Distance between beams in X directionyDelta
- Distance between beams in Y directionpublic VcLaserArray(int xBeams, int yBeams, double xDelta, double yDelta, camera3d.VcLaserTracer tracer, javax.media.j3d.Shape3D targetGizmo)
xBeams
- Number of beams in X directionyBeams
- Number of beams in Y directionxDelta
- Distance between beams in X directionyDelta
- Distance between beams in Y directiontracer
- Object responsible for updating the position of the beamstargetGizmo
- Gizmo to be shown where the beam hits an objectMethod Detail |
public void setBranchGroup(javax.media.j3d.BranchGroup bg)
public void trace()
public void setColor(float red, float green, float blue)
public void setColor(double red, double green, double blue)
red
- value of Red component (between 0.0 and 1.0).green
- value of Green component (between 0.0 and 1.0).blue
- value of Blue component (between 0.0 and 1.0).public void setColor(javax.vecmath.Color3f color)
color
- new color to be usedpublic void setRadius(float radius)
public void setTargetScale(double scale)
public double getTargetScale()
public double getRed()
public double getGreen()
public double getBlue()
public void setMinimumDistance(double minimumDistance)
minimumDistance
- new value of parameterpublic double getMinimumDistance()
public void setMinimumScale(double minimumScale)
minimumScale
- new value of parameter.public double getMinimumScale(double minimumSize)
public void setGrid(int xBeams, int yBeams, double xDelta, double yDelta)
xBeams
- number of beams in X direction.yBeams
- number of beams in Y direction.xDelta
- distance between beams in X directionyDelta
- distance between beams in Y directionpublic int getXBeams()
public int getYBeams()
public double getXDelta()
public double getYDelta()
public static int getInstanceCounter()
public java.lang.String getInfo()
getInfo
in class VcObject
public void initialize()
public void setEnable(boolean enable)
setEnable
in interface camera3d.VcLaserTracer
enable
- true if position should be updated, false otherwise.public boolean getEnable()
getEnable
in interface camera3d.VcLaserTracer
public javax.swing.Icon getIcon()
getIcon
in class VcObject
public void setIcon(javax.swing.Icon arrayIcon)
setIcon
in class VcObject
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |