public class SpherePortrayal3D extends PrimitivePortrayal3D
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_DIVISIONS |
group
DEFAULT_APPEARANCE
Constructor and Description |
---|
SpherePortrayal3D()
Constructs a SpherePortrayal3D with a default (flat opaque white) appearance and a scale of 1.0.
|
SpherePortrayal3D(javax.media.j3d.Appearance appearance,
boolean generateNormals,
boolean generateTextureCoordinates,
double scale)
Constructs a SpherePortrayal3D with the given appearance, and scale, plus whether or not to generate normals or texture coordinates.
|
SpherePortrayal3D(javax.media.j3d.Appearance appearance,
boolean generateNormals,
boolean generateTextureCoordinates,
double scale,
int divisions)
Constructs a SpherePortrayal3D with the given appearance, divisions, and scale, plus whether or not to generate normals or texture coordinates.
|
SpherePortrayal3D(java.awt.Color color)
Constructs a SpherePortrayal3D with a flat opaque appearance of the given color and a scale of 1.0.
|
SpherePortrayal3D(java.awt.Color color,
double scale)
Constructs a SpherePortrayal3D with a flat opaque appearance of the given color and the given scale.
|
SpherePortrayal3D(java.awt.Color color,
double scale,
int divisions)
Constructs a SpherePortrayal3D with a flat opaque appearance of the given color, scale, and divisions.
|
SpherePortrayal3D(double scale)
Constructs a SpherePortrayal3D with a default (flat opaque white) appearance and the given scale.
|
SpherePortrayal3D(java.awt.Image image)
Constructs a SpherePortrayal3D with the given (opaque) image and a scale of 1.0.
|
SpherePortrayal3D(java.awt.Image image,
double scale)
Constructs a SpherePortrayal3D with the given (opaque) image and scale.
|
SpherePortrayal3D(java.awt.Image image,
double scale,
int divisions)
Constructs a SpherePortrayal3D with the given (opaque) image, scale, and divisions.
|
Modifier and Type | Method and Description |
---|---|
protected int |
numShapes()
Returns the number of shapes handled by this primitive or Shape3D.
|
getAppearance, getModel, getShape, setAppearance, setPickable, setScale, setShape3DFlags, setTransform
appearanceForColor, appearanceForColors, appearanceForImage, clearPickableFlags, getCurrentDisplay, getCurrentFieldPortrayal, getCurrentGUIState, getInspector, getName, getStatus, isSelected, polygonAttributes, setAppearanceFlags, setCurrentDisplay, setCurrentFieldPortrayal, setPickableFlags, setPickableFlags, setSelected
public static final int DEFAULT_DIVISIONS
public SpherePortrayal3D()
public SpherePortrayal3D(double scale)
public SpherePortrayal3D(java.awt.Color color)
public SpherePortrayal3D(java.awt.Color color, double scale)
public SpherePortrayal3D(java.awt.Color color, double scale, int divisions)
public SpherePortrayal3D(java.awt.Image image)
public SpherePortrayal3D(java.awt.Image image, double scale)
public SpherePortrayal3D(java.awt.Image image, double scale, int divisions)
public SpherePortrayal3D(javax.media.j3d.Appearance appearance, boolean generateNormals, boolean generateTextureCoordinates, double scale)
public SpherePortrayal3D(javax.media.j3d.Appearance appearance, boolean generateNormals, boolean generateTextureCoordinates, double scale, int divisions)
protected int numShapes()
PrimitivePortrayal3D
numShapes
in class PrimitivePortrayal3D