|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jmol.g3d.Graphics3D
public final class Graphics3D
Provides high-level graphics primitives for 3D visualization.
A pure software implementation of a 3D graphics engine. No hardware required. Depending upon what you are rendering ... some people say it is pretty fast.
Field Summary | |
---|---|
static short |
AQUA
|
static short |
BLACK
|
static short |
BLUE
|
static java.awt.Color |
COLOR_GOLD
|
static java.awt.Color |
COLOR_HOTPINK
|
static java.awt.Color |
COLOR_TEAL
|
static int[] |
colorArgbs
|
static java.lang.String[] |
colorNames
|
static short |
CYAN
|
static byte |
ENDCAPS_FLAT
|
static byte |
ENDCAPS_NONE
|
static byte |
ENDCAPS_OPEN
|
static byte |
ENDCAPS_SPHERICAL
|
static short |
FUCHSIA
|
static int |
GEODESIC_START_NEIGHBOR_COUNT
|
static int |
GEODESIC_START_VERTEX_COUNT
|
static short |
GOLD
|
static short |
GRAY
|
static short |
GREEN
|
static int |
HIGHEST_GEODESIC_LEVEL
|
static short |
HOTPINK
|
static byte |
intensitySpecularSurfaceLimit
|
static short |
LIGHTGRAY
|
static short |
LIME
|
static short |
MAGENTA
|
static short |
MAROON
|
static short |
NAVY
|
static short |
NULL_COLIX
|
static short |
OLIVE
|
static short |
OPAQUE
|
static short |
ORANGE
|
static short |
PINK
|
static short |
PURPLE
|
static short |
RED
|
static byte |
shadeLast
|
static byte |
shadeMax
|
static byte |
shadeNormal
|
static short |
SILVER
|
static short |
SPECIAL_COLIX_MAX
|
static short |
TEAL
|
static short |
TRANSLUCENT
|
static short |
UNRECOGNIZED
|
static short |
WHITE
|
static short |
YELLOW
|
Constructor Summary | |
---|---|
Graphics3D(java.awt.Component awtComponent)
Allocates a g3d object |
Method Summary | |
---|---|
void |
applyBlueOrGreenAnaglyph(boolean blueChannel)
|
void |
applyCyanAnaglyph()
|
void |
beginRendering(java.awt.Rectangle rectClip,
javax.vecmath.Matrix3f rotationMatrix,
boolean antialiasThisFrame)
|
static int |
calcIntensity(float x,
float y,
float z)
|
int |
calcIntensityScreen(javax.vecmath.Point3f screenA,
javax.vecmath.Point3f screenB,
javax.vecmath.Point3f screenC)
|
void |
calcNormalizedNormal(javax.vecmath.Point3f pointA,
javax.vecmath.Point3f pointB,
javax.vecmath.Point3f pointC,
javax.vecmath.Vector3f vNormNorm)
|
void |
calcSurfaceShade(short colix,
long xyzdA,
long xyzdB,
long xyzdC)
|
void |
calcSurfaceShade(short colix,
javax.vecmath.Point3i screenA,
javax.vecmath.Point3i screenB,
javax.vecmath.Point3i screenC)
|
void |
changeColixArgb(short id,
int argb)
|
void |
drawCircleCentered(short colix,
int diameter,
int x,
int y,
int z)
draws a circle of the specified color at the specified location |
void |
drawCircleCentered(short colix,
long xyzd)
draws a circle of the specified color at the specified location |
void |
drawDashedLine(int run,
int rise,
int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
|
void |
drawDashedLine(short colix,
int run,
int rise,
int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
|
void |
drawDashedLine(short colix,
int run,
int rise,
javax.vecmath.Point3i pointA,
javax.vecmath.Point3i pointB)
|
void |
drawDashedLine(short colix1,
short colix2,
int run,
int rise,
int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
|
void |
drawDottedLine(short colix,
int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
|
void |
drawDottedLine(short colix,
javax.vecmath.Point3i pointA,
javax.vecmath.Point3i pointB)
|
void |
drawfillTriangle(short colix,
int xA,
int yA,
int zA,
int xB,
int yB,
int zB,
int xC,
int yC,
int zC)
|
void |
drawHermite(boolean fill,
boolean border,
short colix,
int tension,
javax.vecmath.Point3i s0,
javax.vecmath.Point3i s1,
javax.vecmath.Point3i s2,
javax.vecmath.Point3i s3,
javax.vecmath.Point3i s4,
javax.vecmath.Point3i s5,
javax.vecmath.Point3i s6,
javax.vecmath.Point3i s7)
|
void |
drawHermite(short colix,
int tension,
javax.vecmath.Point3i s0,
javax.vecmath.Point3i s1,
javax.vecmath.Point3i s2,
javax.vecmath.Point3i s3)
|
void |
drawImage(java.awt.Image image,
int x,
int y,
int z)
draws a flat image whose upper left corner is at x,y,z |
void |
drawLine(int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
|
void |
drawLine(javax.vecmath.Point3i pointA,
javax.vecmath.Point3i pointB)
|
void |
drawLine(short colix,
int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
|
void |
drawLine(short colix,
long xyzdA,
long xyzdB)
|
void |
drawLine(short colix,
javax.vecmath.Point3i pointA,
javax.vecmath.Point3i pointB)
|
void |
drawLine(short colix1,
short colix2,
int x1,
int y1,
int z1,
int x2,
int y2,
int z2)
|
void |
drawPixel(int x,
int y,
int z)
|
void |
drawPixel(javax.vecmath.Point3i point)
|
void |
drawPixel(javax.vecmath.Point3i point,
int normix)
|
void |
drawPolygon4(int[] ax,
int[] ay,
int[] az)
|
void |
drawQuadrilateral(short colix,
javax.vecmath.Point3i screenA,
javax.vecmath.Point3i screenB,
javax.vecmath.Point3i screenC,
javax.vecmath.Point3i screenD)
|
void |
drawRect(short colix,
int x,
int y,
int z,
int width,
int height)
draws a rectangle |
void |
drawRectNoSlab(short colix,
int x,
int y,
int z,
int width,
int height)
draws a rectangle while ignoring slab/depth clipping could be useful for UI work |
void |
drawString(java.lang.String str,
Font3D font3d,
short colix,
int xBaseline,
int yBaseline,
int z)
draws the specified string in the current font. |
void |
drawString(java.lang.String str,
Font3D font3d,
short colix,
short bgcolix,
int xBaseline,
int yBaseline,
int z)
draws the specified string in the current font. |
void |
drawString(java.lang.String str,
short colix,
int xBaseline,
int yBaseline,
int z)
draws the specified string in the current font. |
void |
drawStringNoSlab(java.lang.String str,
Font3D font3d,
short colix,
short bgcolix,
int xBaseline,
int yBaseline,
int z)
|
void |
drawTriangle(short colix,
int xA,
int yA,
int zA,
int xB,
int yB,
int zB,
int xC,
int yC,
int zC)
|
void |
drawTriangle(short colix,
long xyzdA,
long xyzdB,
long xyzdC)
|
void |
drawTriangle(short colix,
javax.vecmath.Point3i screenA,
javax.vecmath.Point3i screenB,
javax.vecmath.Point3i screenC)
|
void |
endRendering()
|
void |
fillCircleCentered(short colixFill,
int diameter,
int x,
int y,
int z)
fills a solid circle |
void |
fillCone(short colix,
byte endcap,
int diameter,
int xBase,
int yBase,
int zBase,
int xTip,
int yTip,
int zTip)
|
void |
fillCone(short colix,
byte endcap,
int diameter,
javax.vecmath.Point3i screenBase,
javax.vecmath.Point3i screenTip)
|
void |
fillCylinder(short colix,
byte endcaps,
int diameter,
int xA,
int yA,
int zA,
int xB,
int yB,
int zB)
|
void |
fillCylinder(short colix,
byte endcaps,
int diameter,
javax.vecmath.Point3i screenA,
javax.vecmath.Point3i screenB)
|
void |
fillCylinder(short colixA,
short colixB,
byte endcaps,
int diameter,
int xA,
int yA,
int zA,
int xB,
int yB,
int zB)
|
void |
fillHermite(short colix,
int tension,
int diameterBeg,
int diameterMid,
int diameterEnd,
javax.vecmath.Point3i s0,
javax.vecmath.Point3i s1,
javax.vecmath.Point3i s2,
javax.vecmath.Point3i s3)
|
void |
fillQuadrilateral(javax.vecmath.Point3i screenA,
short colixA,
short normixA,
javax.vecmath.Point3i screenB,
short colixB,
short normixB,
javax.vecmath.Point3i screenC,
short colixC,
short normixC,
javax.vecmath.Point3i screenD,
short colixD,
short normixD)
|
void |
fillQuadrilateral(short colix,
javax.vecmath.Point3f screenA,
javax.vecmath.Point3f screenB,
javax.vecmath.Point3f screenC,
javax.vecmath.Point3f screenD)
|
void |
fillQuadrilateral(short colix,
javax.vecmath.Point3i screenA,
javax.vecmath.Point3i screenB,
javax.vecmath.Point3i screenC,
javax.vecmath.Point3i screenD)
|
void |
fillQuadrilateral(short colix,
javax.vecmath.Point3i screenA,
short normixA,
javax.vecmath.Point3i screenB,
short normixB,
javax.vecmath.Point3i screenC,
short normixC,
javax.vecmath.Point3i screenD,
short normixD)
|
void |
fillRect(short colix,
int x,
int y,
int z,
int widthFill,
int heightFill)
|
void |
fillScreenedCircleCentered(short colixFill,
int diameter,
int x,
int y,
int z)
draws a screened circle ... every other dot is turned on |
void |
fillSphereCentered(short colix,
int diameter,
int x,
int y,
int z)
fills a solid sphere |
void |
fillSphereCentered(short colix,
int diameter,
javax.vecmath.Point3f center)
fills a solid sphere |
void |
fillSphereCentered(short colix,
int diameter,
javax.vecmath.Point3i center)
fills a solid sphere |
void |
fillSphereCentered(short colix,
long xyzd)
fills a solid sphere |
void |
fillTriangle(javax.vecmath.Point3f screenA,
javax.vecmath.Point3f screenB,
javax.vecmath.Point3f screenC)
|
void |
fillTriangle(javax.vecmath.Point3i screenA,
javax.vecmath.Point3i screenB,
javax.vecmath.Point3i screenC)
|
void |
fillTriangle(javax.vecmath.Point3i screenA,
short colixA,
short normixA,
javax.vecmath.Point3i screenB,
short colixB,
short normixB,
javax.vecmath.Point3i screenC,
short colixC,
short normixC)
|
void |
fillTriangle(short colix,
boolean translucent,
int xA,
int yA,
int zA,
int xB,
int yB,
int zB,
int xC,
int yC,
int zC)
|
void |
fillTriangle(short colix,
long xyzdA,
long xyzdB,
long xyzdC)
|
void |
fillTriangle(short colix,
javax.vecmath.Point3f screenA,
javax.vecmath.Point3f screenB,
javax.vecmath.Point3f screenC)
|
void |
fillTriangle(short colix,
javax.vecmath.Point3i screenA,
javax.vecmath.Point3i screenB,
javax.vecmath.Point3i screenC)
|
void |
fillTriangle(short colix,
javax.vecmath.Point3i screenA,
short normixA,
javax.vecmath.Point3i screenB,
short normixB,
javax.vecmath.Point3i screenC,
short normixC)
|
void |
fillTriangle(short colix,
short normix,
long xyzdA,
long xyzdB,
long xyzdC)
|
void |
flushShadesAndImageCaches()
|
boolean |
fullSceneAntialiasRendering()
is full scene / oversampling antialiasing in effect |
short |
get2SidedNormix(javax.vecmath.Vector3f vector)
|
static int |
getArgbFromString(java.lang.String strColor)
|
short |
getChangableColix(short id,
int argb)
|
static short |
getChangableColixIndex(short colix)
|
short |
getClosestVisibleGeodesicVertexIndex(javax.vecmath.Vector3f vector,
int[] visibilityBitmap,
int level)
|
static short |
getColix(java.awt.Color color)
|
static short |
getColix(int argb)
|
static short |
getColix(java.lang.Object obj)
|
static short |
getColix(java.lang.String colorName)
|
int |
getColixArgb(short colix)
|
short |
getColixBackgroundContrast()
black or white, whichever contrasts more with the current background |
short |
getColixMix(short colixA,
short colixB)
|
java.awt.Color |
getColor(short colix)
|
static java.awt.Color |
getColorFromString(java.lang.String strColor)
|
Font3D |
getFont3D(int fontSize)
|
Font3D |
getFont3D(java.lang.String fontFace,
int fontSize)
|
Font3D |
getFont3D(java.lang.String fontFace,
java.lang.String fontStyle,
int fontSize)
|
Font3D |
getFont3DCurrent()
|
byte |
getFontFid(int fontSize)
|
byte |
getFontFid(java.lang.String fontFace,
int fontSize)
|
byte |
getFontFid(java.lang.String fontFace,
java.lang.String fontStyle,
int fontSize)
|
byte |
getFontFidCurrent()
|
java.awt.FontMetrics |
getFontMetrics()
|
int |
getGeodesicFaceCount(int level)
|
short[] |
getGeodesicFaceNormixes(int level)
|
short[] |
getGeodesicFaceVertexes(int level)
|
short[] |
getGeodesicNeighborVertexes(int level)
|
int |
getGeodesicVertexCount(int level)
|
javax.vecmath.Vector3f[] |
getGeodesicVertexVectors()
|
short |
getInverseNormix(short normix)
|
short |
getInverseNormix(javax.vecmath.Vector3f vector)
|
short |
getNormix(javax.vecmath.Vector3f vector)
|
short |
getNormix(javax.vecmath.Vector3f vector,
int geodesicLevel)
|
static short |
getOpaqueColix(short colix)
|
int |
getRenderHeight()
|
int |
getRenderWidth()
|
java.awt.Image |
getScreenImage()
|
int[] |
getShades(short colix)
|
boolean |
getSpecular()
|
javax.vecmath.Vector3f[] |
getTransformedVertexVectors()
|
static short |
getTranslucentColix(short colix)
|
static short |
getTranslucentColix(short colix,
boolean translucent)
|
int |
getWindowHeight()
gets g3d height |
int |
getWindowWidth()
gets g3d width |
boolean |
hasContent()
|
static short |
inheritColix(short myColix,
short parentColix)
|
static short |
inheritColix(short myColix,
short parentColix,
short grandParentColix)
|
static boolean |
isColixTranslucent(short colix)
|
boolean |
isDirectedTowardsCamera(short normix)
|
boolean |
isNeighborVertex(short vertex1,
short vertex2,
int level)
|
void |
plotPoints(int count,
short colix,
byte[] intensities,
int[] coordinates)
|
void |
plotPoints(short colix,
int count,
int[] coordinates)
|
void |
releaseScreenImage()
|
void |
setAmbientPercent(int ambientPercent)
|
void |
setBackground(short colix)
sets background color using colix color index |
void |
setColix(short colix)
sets current color from colix color index |
void |
setColixIntensity(short colix,
int intensity)
|
void |
setDiffusePercent(int diffusePercent)
|
void |
setFont(byte fid)
|
void |
setFont(Font3D font3d)
|
void |
setFontOfSize(int fontsize)
|
void |
setGreyscaleMode(boolean greyscaleMode)
controls greyscale rendering |
void |
setIntensity(int intensity)
|
void |
setLightsourceZ(float dist)
|
void |
setSize(java.awt.Dimension dim,
boolean enableFullSceneAntialiasing)
sets the image size |
void |
setSlabAndDepthValues(int slabValue,
int depthValue)
clipping from the front and the back the plane is defined as a percentage from the back of the image to the front For slab values: 100 means 100% is shown 75 means the back 75% is shown 50 means the back half is shown 0 means that nothing is shown for depth values: 0 means 100% is shown 25 means the back 25% is not shown 50 means the back half is not shown 100 means that nothing is shown |
void |
setSpecular(boolean specular)
|
void |
setSpecularPercent(int specularPercent)
|
void |
setSpecularPower(int specularPower)
|
static short |
setTranslucent(short colix,
boolean isTranslucent)
|
void |
snapshotAnaglyphChannelBytes()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int HIGHEST_GEODESIC_LEVEL
public static final byte ENDCAPS_NONE
public static final byte ENDCAPS_OPEN
public static final byte ENDCAPS_FLAT
public static final byte ENDCAPS_SPHERICAL
public static final short NULL_COLIX
public static final short TRANSLUCENT
public static final short OPAQUE
public static final short UNRECOGNIZED
public static final short SPECIAL_COLIX_MAX
public static final short BLACK
public static final short ORANGE
public static final short PINK
public static final short BLUE
public static final short WHITE
public static final short AQUA
public static final short CYAN
public static final short RED
public static final short GREEN
public static final short GRAY
public static final short SILVER
public static final short LIGHTGRAY
public static final short LIME
public static final short MAROON
public static final short NAVY
public static final short OLIVE
public static final short PURPLE
public static final short TEAL
public static final short MAGENTA
public static final short FUCHSIA
public static final short YELLOW
public static final short HOTPINK
public static final short GOLD
public static final java.awt.Color COLOR_GOLD
public static final java.awt.Color COLOR_HOTPINK
public static final java.awt.Color COLOR_TEAL
public static final byte shadeMax
public static final byte shadeLast
public static final byte shadeNormal
public static final byte intensitySpecularSurfaceLimit
public static final java.lang.String[] colorNames
public static final int[] colorArgbs
public static final int GEODESIC_START_VERTEX_COUNT
public static final int GEODESIC_START_NEIGHBOR_COUNT
Constructor Detail |
---|
public Graphics3D(java.awt.Component awtComponent)
awtComponent
- the java.awt.Component where the image will be drawnMethod Detail |
---|
public void setSize(java.awt.Dimension dim, boolean enableFullSceneAntialiasing)
dim
- java.awt.Dimension with width and heightenableFullSceneAntialiasing
- currently not in productionpublic boolean fullSceneAntialiasRendering()
public int getWindowWidth()
public int getWindowHeight()
public int getRenderWidth()
public int getRenderHeight()
public void setBackground(short colix)
colix
- a color index represented as a shortColix
public short getColixBackgroundContrast()
public void setGreyscaleMode(boolean greyscaleMode)
greyscaleMode
- Flag for greyscale renderingpublic void setSlabAndDepthValues(int slabValue, int depthValue)
the plane is defined as a percentage from the back of the image to the front
For slab values:
for depth values:
slabValue
- front clipping percentage [0,100]depthValue
- rear clipping percentage [0,100]public boolean hasContent()
public void setColix(short colix)
colix
- the color indexpublic void setColixIntensity(short colix, int intensity)
public void setIntensity(int intensity)
public void drawImage(java.awt.Image image, int x, int y, int z)
image
- the imagex
- xy
- yz
- zpublic void drawCircleCentered(short colix, long xyzd)
colix
- the color indexxyzd
- a long holding x, y, z, and dpublic void drawCircleCentered(short colix, int diameter, int x, int y, int z)
colix
- the color indexdiameter
- pixel diameterx
- center xy
- center yz
- center zpublic void fillScreenedCircleCentered(short colixFill, int diameter, int x, int y, int z)
colixFill
- the color indexdiameter
- the pixel diameterx
- center xy
- center yz
- center zpublic void fillCircleCentered(short colixFill, int diameter, int x, int y, int z)
colixFill
- the color indexdiameter
- the pixel diameterx
- center xy
- center yz
- center zpublic void fillSphereCentered(short colix, long xyzd)
colix
- the color indexxyzd
- x,y,z,diameterpublic void fillSphereCentered(short colix, int diameter, int x, int y, int z)
colix
- the color indexdiameter
- pixel countx
- center xy
- center yz
- center zpublic void fillSphereCentered(short colix, int diameter, javax.vecmath.Point3i center)
colix
- the color indexdiameter
- pixel countcenter
- javax.vecmath.Point3i defining the centerpublic void fillSphereCentered(short colix, int diameter, javax.vecmath.Point3f center)
colix
- the color indexdiameter
- pixel countcenter
- a javax.vecmath.Point3f ... floats are casted to intspublic void drawRect(short colix, int x, int y, int z, int width, int height)
colix
- the color indexx
- upper left xy
- upper left yz
- upper left zwidth
- pixel countheight
- pixel countpublic void drawRectNoSlab(short colix, int x, int y, int z, int width, int height)
could be useful for UI work
colix
- the color indexx
- upper left xy
- upper left yz
- upper left zwidth
- pixel countheight
- pixel countpublic void drawString(java.lang.String str, short colix, int xBaseline, int yBaseline, int z)
str
- the stringcolix
- the color indexxBaseline
- baseline xyBaseline
- baseline yz
- baseline zpublic void drawString(java.lang.String str, Font3D font3d, short colix, int xBaseline, int yBaseline, int z)
str
- the Stringfont3d
- the Font3Dcolix
- the color indexxBaseline
- baseline xyBaseline
- baseline yz
- baseline zpublic void drawString(java.lang.String str, Font3D font3d, short colix, short bgcolix, int xBaseline, int yBaseline, int z)
str
- the Stringfont3d
- the Font3Dcolix
- the color indexbgcolix
- the color index of the backgroundxBaseline
- baseline xyBaseline
- baseline yz
- baseline zpublic void drawStringNoSlab(java.lang.String str, Font3D font3d, short colix, short bgcolix, int xBaseline, int yBaseline, int z)
public void setFontOfSize(int fontsize)
public void setFont(byte fid)
public void setFont(Font3D font3d)
public Font3D getFont3DCurrent()
public byte getFontFidCurrent()
public java.awt.FontMetrics getFontMetrics()
public void beginRendering(java.awt.Rectangle rectClip, javax.vecmath.Matrix3f rotationMatrix, boolean antialiasThisFrame)
public void endRendering()
public void snapshotAnaglyphChannelBytes()
public void applyBlueOrGreenAnaglyph(boolean blueChannel)
public void applyCyanAnaglyph()
public java.awt.Image getScreenImage()
public void releaseScreenImage()
public void drawDashedLine(short colix, int run, int rise, int x1, int y1, int z1, int x2, int y2, int z2)
public void drawDottedLine(short colix, int x1, int y1, int z1, int x2, int y2, int z2)
public void drawDashedLine(short colix1, short colix2, int run, int rise, int x1, int y1, int z1, int x2, int y2, int z2)
public void drawLine(javax.vecmath.Point3i pointA, javax.vecmath.Point3i pointB)
public void drawLine(short colix, javax.vecmath.Point3i pointA, javax.vecmath.Point3i pointB)
public void drawLine(short colix, long xyzdA, long xyzdB)
public void drawDottedLine(short colix, javax.vecmath.Point3i pointA, javax.vecmath.Point3i pointB)
public void drawDashedLine(short colix, int run, int rise, javax.vecmath.Point3i pointA, javax.vecmath.Point3i pointB)
public void drawDashedLine(int run, int rise, int x1, int y1, int z1, int x2, int y2, int z2)
public void drawLine(int x1, int y1, int z1, int x2, int y2, int z2)
public void drawLine(short colix, int x1, int y1, int z1, int x2, int y2, int z2)
public void drawLine(short colix1, short colix2, int x1, int y1, int z1, int x2, int y2, int z2)
public void drawPolygon4(int[] ax, int[] ay, int[] az)
public void fillQuadrilateral(short colix, javax.vecmath.Point3f screenA, javax.vecmath.Point3f screenB, javax.vecmath.Point3f screenC, javax.vecmath.Point3f screenD)
public void fillTriangle(short colix, javax.vecmath.Point3i screenA, short normixA, javax.vecmath.Point3i screenB, short normixB, javax.vecmath.Point3i screenC, short normixC)
public void fillTriangle(javax.vecmath.Point3i screenA, short colixA, short normixA, javax.vecmath.Point3i screenB, short colixB, short normixB, javax.vecmath.Point3i screenC, short colixC, short normixC)
public void fillTriangle(short colix, javax.vecmath.Point3i screenA, javax.vecmath.Point3i screenB, javax.vecmath.Point3i screenC)
public void fillTriangle(short colix, long xyzdA, long xyzdB, long xyzdC)
public void fillTriangle(short colix, short normix, long xyzdA, long xyzdB, long xyzdC)
public void fillTriangle(short colix, javax.vecmath.Point3f screenA, javax.vecmath.Point3f screenB, javax.vecmath.Point3f screenC)
public void fillQuadrilateral(short colix, javax.vecmath.Point3i screenA, javax.vecmath.Point3i screenB, javax.vecmath.Point3i screenC, javax.vecmath.Point3i screenD)
public void fillQuadrilateral(short colix, javax.vecmath.Point3i screenA, short normixA, javax.vecmath.Point3i screenB, short normixB, javax.vecmath.Point3i screenC, short normixC, javax.vecmath.Point3i screenD, short normixD)
public void fillQuadrilateral(javax.vecmath.Point3i screenA, short colixA, short normixA, javax.vecmath.Point3i screenB, short colixB, short normixB, javax.vecmath.Point3i screenC, short colixC, short normixC, javax.vecmath.Point3i screenD, short colixD, short normixD)
public void fillTriangle(javax.vecmath.Point3i screenA, javax.vecmath.Point3i screenB, javax.vecmath.Point3i screenC)
public void fillTriangle(javax.vecmath.Point3f screenA, javax.vecmath.Point3f screenB, javax.vecmath.Point3f screenC)
public void calcSurfaceShade(short colix, long xyzdA, long xyzdB, long xyzdC)
public void calcSurfaceShade(short colix, javax.vecmath.Point3i screenA, javax.vecmath.Point3i screenB, javax.vecmath.Point3i screenC)
public void drawfillTriangle(short colix, int xA, int yA, int zA, int xB, int yB, int zB, int xC, int yC, int zC)
public void fillTriangle(short colix, boolean translucent, int xA, int yA, int zA, int xB, int yB, int zB, int xC, int yC, int zC)
public void drawTriangle(short colix, int xA, int yA, int zA, int xB, int yB, int zB, int xC, int yC, int zC)
public void drawTriangle(short colix, long xyzdA, long xyzdB, long xyzdC)
public void drawTriangle(short colix, javax.vecmath.Point3i screenA, javax.vecmath.Point3i screenB, javax.vecmath.Point3i screenC)
public void drawQuadrilateral(short colix, javax.vecmath.Point3i screenA, javax.vecmath.Point3i screenB, javax.vecmath.Point3i screenC, javax.vecmath.Point3i screenD)
public void fillCylinder(short colixA, short colixB, byte endcaps, int diameter, int xA, int yA, int zA, int xB, int yB, int zB)
public void fillCylinder(short colix, byte endcaps, int diameter, int xA, int yA, int zA, int xB, int yB, int zB)
public void fillCylinder(short colix, byte endcaps, int diameter, javax.vecmath.Point3i screenA, javax.vecmath.Point3i screenB)
public void fillCone(short colix, byte endcap, int diameter, int xBase, int yBase, int zBase, int xTip, int yTip, int zTip)
public void fillCone(short colix, byte endcap, int diameter, javax.vecmath.Point3i screenBase, javax.vecmath.Point3i screenTip)
public void fillHermite(short colix, int tension, int diameterBeg, int diameterMid, int diameterEnd, javax.vecmath.Point3i s0, javax.vecmath.Point3i s1, javax.vecmath.Point3i s2, javax.vecmath.Point3i s3)
public void drawHermite(short colix, int tension, javax.vecmath.Point3i s0, javax.vecmath.Point3i s1, javax.vecmath.Point3i s2, javax.vecmath.Point3i s3)
public void drawHermite(boolean fill, boolean border, short colix, int tension, javax.vecmath.Point3i s0, javax.vecmath.Point3i s1, javax.vecmath.Point3i s2, javax.vecmath.Point3i s3, javax.vecmath.Point3i s4, javax.vecmath.Point3i s5, javax.vecmath.Point3i s6, javax.vecmath.Point3i s7)
public void fillRect(short colix, int x, int y, int z, int widthFill, int heightFill)
public void drawPixel(javax.vecmath.Point3i point)
public void drawPixel(int x, int y, int z)
public void drawPixel(javax.vecmath.Point3i point, int normix)
public void plotPoints(short colix, int count, int[] coordinates)
public void plotPoints(int count, short colix, byte[] intensities, int[] coordinates)
public int getColixArgb(short colix)
public int[] getShades(short colix)
public static final short getChangableColixIndex(short colix)
public static final boolean isColixTranslucent(short colix)
public static final short getTranslucentColix(short colix, boolean translucent)
public static final short getTranslucentColix(short colix)
public static final short getOpaqueColix(short colix)
public static final short getColix(int argb)
public static final short getColix(java.awt.Color color)
public final short getColixMix(short colixA, short colixB)
public static final short setTranslucent(short colix, boolean isTranslucent)
public static final short getColix(java.lang.String colorName)
public static final short getColix(java.lang.Object obj)
public static final short inheritColix(short myColix, short parentColix)
public static final short inheritColix(short myColix, short parentColix, short grandParentColix)
public java.awt.Color getColor(short colix)
public short getChangableColix(short id, int argb)
public void changeColixArgb(short id, int argb)
public void flushShadesAndImageCaches()
public void setSpecular(boolean specular)
public boolean getSpecular()
public void setSpecularPower(int specularPower)
public void setAmbientPercent(int ambientPercent)
public void setDiffusePercent(int diffusePercent)
public void setSpecularPercent(int specularPercent)
public void setLightsourceZ(float dist)
public int calcIntensityScreen(javax.vecmath.Point3f screenA, javax.vecmath.Point3f screenB, javax.vecmath.Point3f screenC)
public static int calcIntensity(float x, float y, float z)
public Font3D getFont3D(int fontSize)
public Font3D getFont3D(java.lang.String fontFace, int fontSize)
public Font3D getFont3D(java.lang.String fontFace, java.lang.String fontStyle, int fontSize)
public byte getFontFid(int fontSize)
public byte getFontFid(java.lang.String fontFace, int fontSize)
public byte getFontFid(java.lang.String fontFace, java.lang.String fontStyle, int fontSize)
public static int getArgbFromString(java.lang.String strColor)
public static java.awt.Color getColorFromString(java.lang.String strColor)
public void calcNormalizedNormal(javax.vecmath.Point3f pointA, javax.vecmath.Point3f pointB, javax.vecmath.Point3f pointC, javax.vecmath.Vector3f vNormNorm)
public short getNormix(javax.vecmath.Vector3f vector)
public short getNormix(javax.vecmath.Vector3f vector, int geodesicLevel)
public short getInverseNormix(javax.vecmath.Vector3f vector)
public short getInverseNormix(short normix)
public short get2SidedNormix(javax.vecmath.Vector3f vector)
public boolean isDirectedTowardsCamera(short normix)
public short getClosestVisibleGeodesicVertexIndex(javax.vecmath.Vector3f vector, int[] visibilityBitmap, int level)
public boolean isNeighborVertex(short vertex1, short vertex2, int level)
public javax.vecmath.Vector3f[] getGeodesicVertexVectors()
public int getGeodesicVertexCount(int level)
public javax.vecmath.Vector3f[] getTransformedVertexVectors()
public int getGeodesicFaceCount(int level)
public short[] getGeodesicFaceVertexes(int level)
public short[] getGeodesicFaceNormixes(int level)
public short[] getGeodesicNeighborVertexes(int level)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |