askalon.graph.threedim
Class Pyramid

java.lang.Object
  |
  +--askalon.graph.threedim.Object3d
        |
        +--askalon.graph.threedim.Pyramid
Direct Known Subclasses:
Cone

public class Pyramid
extends Object3d

Pyramid defines a pyramid.


Fields inherited from class askalon.graph.threedim.Object3d
areaCount, areas, bri, clickedArea, clickedPoint, defaultColor, edgeColor, hue, INIT_AREA_CAPACITY, INIT_POINT_CAPACITY, sat, X_AXIS, X_MINUS_AXIS, Y_AXIS, Y_MINUS_AXIS, Z_AXIS, Z_MINUS_AXIS
 
Constructor Summary
  Pyramid(double x, double y, double z, double h, double r, int parts, int orient)
          Creates a new pyramid.
protected Pyramid(double x, double y, double z, double h, double r, int parts, int orient, boolean grid)
          Creates a new pyramid.
 
Methods inherited from class askalon.graph.threedim.Object3d
applyTransformation, getAreaCount, getAreas, getDefaultColor, getEdgeColor, getGridPositionString, getPointCount, getPoints, getXgridHigh, getXgridLow, getZgridHigh, getZgridLow, isMouseSelectable, isSelected, isVisible, setColor, setDefaultColor, setEdgeColor, setMouseSelectable, setSelected, setVisible, setXgrid, setXgrid, setXgridHigh, setXgridLow, setXZgrid, setZgrid, setZgrid, setZgridHigh, setZgridLow, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pyramid

public Pyramid(double x,
               double y,
               double z,
               double h,
               double r,
               int parts,
               int orient)
Creates a new pyramid. The position of the top is specified by the parameter orient .
Parameters:
x - x-value of center
y - y-value of center
z - z-value of center
h - height of the pyramid
r - radius, means distance from axis to a corner point on bottom area
sides - the number of side areas
orient - orientation of the axis, one of Object3d.X_AXIS, Object3d.X_MINUS_AXIS, Object3d.Y_AXIS, Object3d.Y_MINUS_AXIS, Object3d.Z_AXIS or Object3d.Z_MINUS_AXIS

Pyramid

protected Pyramid(double x,
                  double y,
                  double z,
                  double h,
                  double r,
                  int parts,
                  int orient,
                  boolean grid)
Creates a new pyramid. The position of the top is specified by the parameter orient . This constructor is implemented for subclass Cone to prevent painting the common edges of the side areas.
Parameters:
x - x-value of center
y - y-value of center
z - z-value of center
h - height of the pyramid
r - radius, means distance from axis to a corner point on bottom area
sides - the number of side areas
orient - orientation of the axis, one of Object3d.X_AXIS, Object3d.X_MINUS_AXIS, Object3d.Y_AXIS, Object3d.Y_MINUS_AXIS, Object3d.Z_AXIS or Object3d.Z_MINUS_AXIS