|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.media.j3d.IndexedObject
javax.media.j3d.SceneGraphObjectRetained
javax.media.j3d.NodeComponentRetained
javax.media.j3d.GeometryRetained
javax.media.j3d.RasterRetained
class RasterRetained
A Retained Raster.
Field Summary | |
---|---|
private int |
clipMode
|
(package private) DepthComponentRetained |
depthComponent
|
private int |
height
|
(package private) ImageComponent2DRetained |
image
|
private Point3f |
position
|
(package private) Texture2DRetained |
texture
|
(package private) int |
type
Raster type |
private int |
width
|
private int |
xDstOffset
|
private int |
xSrcOffset
|
private int |
yDstOffset
|
private int |
ySrcOffset
|
Fields inherited from class javax.media.j3d.NodeComponentRetained |
---|
changedFrequent, compChanged, duplicateOnCloneTree, mirror, refCnt, refCount, users |
Fields inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
DONT_MERGE, inBackgroundGroup, inSetLive, MERGE, MERGE_DONE, mergeFlag, onUpdateList, source |
Fields inherited from class javax.media.j3d.IndexedObject |
---|
listIdx |
Constructor Summary | |
---|---|
RasterRetained()
|
Method Summary | |
---|---|
(package private) void |
clearLive(int refCount)
|
private void |
clipImage(Canvas3D canvas,
RenderAtom ra,
Point2d winCoord,
Point2i srcOffset)
Clips the image against the window. |
(package private) void |
computeBoundingBox()
|
private void |
computeObjCoord(Canvas3D canvas,
Point2d winCoord,
Point3d objCoord,
Transform3D localToImagePlate)
|
private Point3d |
computeWinCoord(Canvas3D canvas,
RenderAtom ra,
Point2d winCoord,
Point3d objCoord,
Transform3D localToImagePlate)
|
(package private) void |
execute(Canvas3D cv,
RenderAtom ra,
boolean isNonUniformScale,
boolean updateAlpha,
float alpha,
int screen,
boolean ignoreVertexColors)
|
(package private) int |
getClassType()
|
(package private) int |
getClipMode()
Retrieves the current clipping mode of this raster object. |
(package private) DepthComponent |
getDepthComponent()
Retrieves the current depth image object. |
(package private) void |
getDstOffset(java.awt.Point dstOffset)
Retrieves the current destination pixel offset. |
(package private) ImageComponent2D |
getImage()
Retrieves the current pixel array object. |
(package private) void |
getPosition(Point3f pos)
Retrieves the Raster's position |
(package private) void |
getSize(java.awt.Dimension size)
Gets the size of the array of pixels to be copied. |
(package private) void |
getSrcOffset(java.awt.Point srcOffset)
Retrieves the current source pixel offset. |
(package private) int |
getType()
Retrieves the current type of this raster object, one of: RASTER_COLOR, RASTER_DEPTH, or RASTER_COLOR_DEPTH. |
(package private) void |
handleFrequencyChange(int bit)
|
(package private) void |
initImage(ImageComponent2D img)
Initializes the raster image to the specified image. |
(package private) boolean |
intersect(Bounds targetBound)
|
(package private) boolean |
intersect(PickShape pickShape,
PickInfo pickInfo,
int flags,
Point3d iPnt,
GeometryRetained geom,
int geomIndex)
|
(package private) boolean |
intersect(Point3d[] pnts)
|
(package private) boolean |
intersect(Transform3D thisLocalToVworld,
Bounds targetBound)
|
(package private) boolean |
intersect(Transform3D thisToOtherVworld,
GeometryRetained geom)
|
(package private) boolean |
intersect(Transform3D thisLocalToVworld,
Transform3D otherLocalToVworld,
GeometryRetained geom)
|
private boolean |
isRasterClipPositionInside(Point3d clipCoord)
|
(package private) void |
notifyImageComponentImageChanged(ImageComponentRetained image,
ImageComponentUpdateInfo value)
|
private void |
sendChangedMessage(int threads,
java.lang.Object arg1,
java.lang.Object arg2)
|
(package private) void |
setClipMode(int clipMode)
Sets the clipping mode of this raster object. |
(package private) void |
setDepthComponent(DepthComponent depthComponent)
Sets the depth image used to copy pixels to/from a Canvas3D. |
(package private) void |
setDstOffset(int xDstOffset,
int yDstOffset)
Sets the destination pixel offset of the upper-left corner of the rendered image relative to the transformed position. |
(package private) void |
setImage(ImageComponent2D img)
Sets the pixel array used to copy pixels to/from a Canvas3D. |
(package private) void |
setLive(boolean inBackgroundGroup,
int refCount)
|
(package private) void |
setPosition(Point3f pos)
Set the Raster position |
(package private) void |
setSize(int width,
int height)
Sets the number of pixels to be copied from the pixel array. |
(package private) void |
setSrcOffset(int xSrcOffset,
int ySrcOffset)
Sets the offset within the source array of pixels at which to start copying. |
(package private) void |
setType(int type)
Sets the type of this raster object to one of: RASTER_COLOR, RASTER_DEPTH, or RASTER_COLOR_DEPTH. |
(package private) void |
update()
|
Methods inherited from class javax.media.j3d.GeometryRetained |
---|
addUser, canBeInDisplayList, computeCentroid, decrComputeGeoBounds, doSetLive, getVertexFormat, incrComputeGeoBounds, isEquivalenceClass, removeUser, storeInterestData, updateObject |
Methods inherited from class javax.media.j3d.NodeComponentRetained |
---|
addAMirrorUser, addUser, clone, copyMirrorUsers, createMirrorObject, decRefCnt, getDuplicateOnCloneTree, getInImmCtx, incRefCnt, initMirrorObject, notifyUsers, removeAMirrorUser, removeMirrorUsers, removeUser, set, setDuplicateOnCloneTree, setFrequencyChangeMask, setInImmCtx, updateMirrorObject |
Methods inherited from class javax.media.j3d.SceneGraphObjectRetained |
---|
clearLive, clearLive, compile, doSetLive, doSetLive, getSource, getVirtualUniverse, isInSetLive, isStatic, markAsLive, merge, mergeTransform, setCompiled, setLive, setLive, setSource, traverse |
Methods inherited from class javax.media.j3d.IndexedObject |
---|
getIdxUsed, incIdxUsed |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
int type
private int clipMode
private Point3f position
private int xSrcOffset
private int ySrcOffset
private int width
private int height
private int xDstOffset
private int yDstOffset
ImageComponent2DRetained image
Texture2DRetained texture
DepthComponentRetained depthComponent
Constructor Detail |
---|
RasterRetained()
Method Detail |
---|
final void setPosition(Point3f pos)
position
- new raster positionfinal void getPosition(Point3f pos)
position
- the variable to receive the position vectorfinal void setType(int type)
type
- the new type of this rasterfinal int getType()
final void setClipMode(int clipMode)
clipMode
- the new clipping mode of this raster,
one of: CLIP_POSITION or CLIP_IMAGE. The default mode
is CLIP_POSITION.final int getClipMode()
final void setSrcOffset(int xSrcOffset, int ySrcOffset)
xSrcOffset
- the x offset within the source array of pixels
at which to start copyingySrcOffset
- the y offset within the source array of pixels
at which to start copyingfinal void getSrcOffset(java.awt.Point srcOffset)
srcOffset
- the object that will receive the source offsetfinal void setSize(int width, int height)
width
- the number of columns in the array of pixels to copyheight
- the number of rows in the array of pixels to copyfinal void getSize(java.awt.Dimension size)
size
- the new sizefinal void setDstOffset(int xDstOffset, int yDstOffset)
xDstOffset
- the x coordinate of the new offsetyDstOffset
- the y coordinate of the new offsetfinal void getDstOffset(java.awt.Point dstOffset)
dstOffset
- the object that will receive the destination offsetfinal void initImage(ImageComponent2D img)
image
- new ImageCompoent2D object used as the raster imagefinal void setImage(ImageComponent2D img)
image
- the ImageComponent2D object containing the
color datafinal ImageComponent2D getImage()
final void setDepthComponent(DepthComponent depthComponent)
depthImage
- the DepthComponent object containing the
depth (z-buffer) datafinal DepthComponent getDepthComponent()
void setLive(boolean inBackgroundGroup, int refCount)
setLive
in class GeometryRetained
void clearLive(int refCount)
clearLive
in class NodeComponentRetained
void computeBoundingBox()
computeBoundingBox
in class GeometryRetained
void update()
update
in class GeometryRetained
private void sendChangedMessage(int threads, java.lang.Object arg1, java.lang.Object arg2)
void execute(Canvas3D cv, RenderAtom ra, boolean isNonUniformScale, boolean updateAlpha, float alpha, int screen, boolean ignoreVertexColors)
execute
in class GeometryRetained
private void clipImage(Canvas3D canvas, RenderAtom ra, Point2d winCoord, Point2i srcOffset)
private boolean isRasterClipPositionInside(Point3d clipCoord)
private void computeObjCoord(Canvas3D canvas, Point2d winCoord, Point3d objCoord, Transform3D localToImagePlate)
private Point3d computeWinCoord(Canvas3D canvas, RenderAtom ra, Point2d winCoord, Point3d objCoord, Transform3D localToImagePlate)
int getClassType()
getClassType
in class GeometryRetained
void notifyImageComponentImageChanged(ImageComponentRetained image, ImageComponentUpdateInfo value)
boolean intersect(PickShape pickShape, PickInfo pickInfo, int flags, Point3d iPnt, GeometryRetained geom, int geomIndex)
intersect
in class GeometryRetained
boolean intersect(Bounds targetBound)
intersect
in class GeometryRetained
boolean intersect(Point3d[] pnts)
intersect
in class GeometryRetained
boolean intersect(Transform3D thisToOtherVworld, GeometryRetained geom)
intersect
in class GeometryRetained
boolean intersect(Transform3D thisLocalToVworld, Transform3D otherLocalToVworld, GeometryRetained geom)
intersect
in class GeometryRetained
boolean intersect(Transform3D thisLocalToVworld, Bounds targetBound)
intersect
in class GeometryRetained
void handleFrequencyChange(int bit)
handleFrequencyChange
in class SceneGraphObjectRetained
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |