|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectunc.cdva.graphics.models.RightTriangle
public class RightTriangle
This class lets you draw a right triangle on the screen with a length label above the horizontal side and an angle label between that side and the hypothenuse of the triangle
Constructor Summary | |
---|---|
RightTriangle(javax.vecmath.Vector3f[] vertices,
java.lang.String[] labels)
Intialize a triangle object using vertices defining the base triangle and labels (distance and angle) |
Method Summary | |
---|---|
Object3D |
clone()
Clone the object (copy all the attributes) |
java.lang.String |
getAngle()
|
javax.vecmath.Vector3f |
getAngleVertex()
|
java.lang.String |
getDistance()
|
javax.vecmath.Vector3f |
getDistanceVertex()
|
javax.vecmath.Vector3f |
getQuestionMarkVertex()
|
javax.vecmath.Vector3f |
getVertex1()
|
javax.vecmath.Vector3f |
getVertex2()
|
javax.vecmath.Vector3f |
getVertex3()
|
javax.vecmath.Vector3f |
getVertex4()
|
javax.vecmath.Vector3f |
getVertex5()
|
boolean |
isCached()
|
void |
render(javax.media.opengl.GL gl)
Render an object. |
void |
setAngle(java.lang.String angle)
|
void |
setAngleVertex(javax.vecmath.Vector3f angleVertex)
|
void |
setCached(boolean cached)
|
void |
setDistance(java.lang.String distance)
|
void |
setDistanceVertex(javax.vecmath.Vector3f distanceVertex)
|
void |
setQuestionMarkVertex(javax.vecmath.Vector3f questionMarkVertex)
|
void |
setVertex1(javax.vecmath.Vector3f vertex1)
|
void |
setVertex2(javax.vecmath.Vector3f vertex2)
|
void |
setVertex3(javax.vecmath.Vector3f vertex3)
|
void |
setVertex4(javax.vecmath.Vector3f vertex4)
|
void |
setVertex5(javax.vecmath.Vector3f vertex5)
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RightTriangle(javax.vecmath.Vector3f[] vertices, java.lang.String[] labels)
vertices
- vertices of the trianglelabels
- distance and angle labelMethod Detail |
---|
public void render(javax.media.opengl.GL gl)
Object3D
render
in interface Object3D
gl
- gl contextObject3D.render(javax.media.opengl.GL)
public java.lang.String getAngle()
public javax.vecmath.Vector3f getAngleVertex()
public boolean isCached()
public java.lang.String getDistance()
public javax.vecmath.Vector3f getDistanceVertex()
public javax.vecmath.Vector3f getQuestionMarkVertex()
public javax.vecmath.Vector3f getVertex1()
public javax.vecmath.Vector3f getVertex2()
public javax.vecmath.Vector3f getVertex3()
public javax.vecmath.Vector3f getVertex4()
public javax.vecmath.Vector3f getVertex5()
public void setAngle(java.lang.String angle)
angle
- the angle to setpublic void setAngleVertex(javax.vecmath.Vector3f angleVertex)
angleVertex
- the angleVertex to setpublic void setCached(boolean cached)
cached
- the cached to setpublic void setDistance(java.lang.String distance)
distance
- the distance to setpublic void setDistanceVertex(javax.vecmath.Vector3f distanceVertex)
distanceVertex
- the distanceVertex to setpublic void setQuestionMarkVertex(javax.vecmath.Vector3f questionMarkVertex)
questionMarkVertex
- the questionMarkVertex to setpublic void setVertex1(javax.vecmath.Vector3f vertex1)
vertex1
- the vertex1 to setpublic void setVertex2(javax.vecmath.Vector3f vertex2)
vertex2
- the vertex2 to setpublic void setVertex3(javax.vecmath.Vector3f vertex3)
vertex3
- the vertex3 to setpublic void setVertex4(javax.vecmath.Vector3f vertex4)
vertex4
- the vertex4 to setpublic void setVertex5(javax.vecmath.Vector3f vertex5)
vertex5
- the vertex5 to setpublic Object3D clone()
Object3D
clone
in interface Object3D
clone
in class java.lang.Object
Object3D.clone()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |