| java.lang.Object javax.media.j3d.SceneGraphObject javax.media.j3d.Node javax.media.j3d.Group org.jdesktop.j3dfly.utils.environment.geometry.Primitive org.jdesktop.j3dfly.utils.environment.geometry.SkyDome
Constructor Summary | |
public | SkyDome(double yAngleStart, int divisions, Appearance ap) Constructs a customized SphereSegment of a given radius with
with the specified start and stop angles from the z and y axis,
number of divisions, and appearance, with additional parameters
specified by the Primitive flags. |
Method Summary | |
public Node | cloneNode(boolean forceDuplicate) Used to create a new instance of the node. | public void | duplicateNode(Node originalNode, boolean forceDuplicate) Copies all node information from originalNode into
the current node. | public float | getDarkness() | public Shape3D | getShape(int partId) Obtains Sphere's shape node that contains the geometry.
This allows users to modify the appearance or geometry.
Parameters: partId - The part to return (must be BODY for Spheres) The Shape3D object associated with the partId. | public Shape3D | getShape() Obtains Sphere's shape node that contains the geometry. | public void | setAppearance(Appearance ap) Sets appearance of the Sphere. | public void | setDarkness(float factor) |
BODY | final public static int BODY(Code) | | Sphere shape identifier, used by getShape .
See Also: Sphere.getShape |
yAngleEnd | double yAngleEnd(Code) | | |
yAngleStart | double yAngleStart(Code) | | |
zAngleEnd | double zAngleEnd(Code) | | |
zAngleStart | double zAngleStart(Code) | | |
SkyDome | public SkyDome(double yAngleStart, int divisions, Appearance ap)(Code) | | Constructs a customized SphereSegment of a given radius with
with the specified start and stop angles from the z and y axis,
number of divisions, and appearance, with additional parameters
specified by the Primitive flags. The resolution is defined in
terms of number of subdivisions along the sphere's axes. More
divisions lead to more finely tesselated objects.
If the appearance is null, the sphere segment defaults to a white appearance.
|
cloneNode | public Node cloneNode(boolean forceDuplicate)(Code) | | Used to create a new instance of the node. This routine is called
by cloneTree to duplicate the current node.
cloneNode should be overridden by any user subclassed
objects. All subclasses must have their cloneNode
method consist of the following lines:
public Node cloneNode(boolean forceDuplicate) {
UserSubClass usc = new UserSubClass();
usc.duplicateNode(this, forceDuplicate);
return usc;
}
Parameters: forceDuplicate - when set to true , causes theduplicateOnCloneTree flag to be ignored. Whenfalse , the value of each node'sduplicateOnCloneTree variable determines whetherNodeComponent data is duplicated or copied. See Also: Node.cloneTree See Also: Node.duplicateNode See Also: NodeComponent.setDuplicateOnCloneTree |
duplicateNode | public void duplicateNode(Node originalNode, boolean forceDuplicate)(Code) | | Copies all node information from originalNode into
the current node. This method is called from the
cloneNode method which is, in turn, called by the
cloneTree method.
For any NodeComponent objects
contained by the object being duplicated, each NodeComponent
object's duplicateOnCloneTree value is used to determine
whether the NodeComponent should be duplicated in the new node
or if just a reference to the current node should be placed in the
new node. This flag can be overridden by setting the
forceDuplicate parameter in the cloneTree
method to true .
Parameters: originalNode - the original node to duplicate. Parameters: forceDuplicate - when set to true , causes theduplicateOnCloneTree flag to be ignored. Whenfalse , the value of each node'sduplicateOnCloneTree variable determines whetherNodeComponent data is duplicated or copied. See Also: Node.cloneTree See Also: Node.cloneNode See Also: NodeComponent.setDuplicateOnCloneTree |
getDarkness | public float getDarkness()(Code) | | |
getShape | public Shape3D getShape(int partId)(Code) | | Obtains Sphere's shape node that contains the geometry.
This allows users to modify the appearance or geometry.
Parameters: partId - The part to return (must be BODY for Spheres) The Shape3D object associated with the partId. If aninvalid partId is passed in, null is returned. |
getShape | public Shape3D getShape()(Code) | | Obtains Sphere's shape node that contains the geometry.
|
setAppearance | public void setAppearance(Appearance ap)(Code) | | Sets appearance of the Sphere.
|
setDarkness | public void setDarkness(float factor)(Code) | | Darken sky - factor 0 is black
factor 1 is daylight
|
Methods inherited from org.jdesktop.j3dfly.utils.environment.geometry.Primitive | protected void cacheGeometry(int kind, float a, float b, float c, int d, int e, int flags, GeomBuffer geo)(Code)(Java Doc) public Appearance getAppearance()(Code)(Java Doc) protected GeomBuffer getCachedGeometry(int kind, float a, float b, float c, int d, int e, int flags)(Code)(Java Doc) public int getNumTriangles()(Code)(Java Doc) public int getNumVertices()(Code)(Java Doc) public int getPrimitiveFlags()(Code)(Java Doc) abstract public Shape3D getShape(int partid)(Code)(Java Doc) public void setAppearance(int partid, Appearance ap)(Code)(Java Doc) abstract public void setAppearance(Appearance ap)(Code)(Java Doc) public void setAppearance()(Code)(Java Doc) public void setNumTriangles(int num)(Code)(Java Doc) public void setNumVertices(int num)(Code)(Java Doc) public void setPrimitiveFlags(int fl)(Code)(Java Doc) String strfloat(float x)(Code)(Java Doc)
|
|
|