jwo.landserf.structure
Class FeatureAxis

java.lang.Object
  extended by jwo.landserf.structure.FeatureAxis

public class FeatureAxis
extends Object

Class for storing a feature axis. It consists of two (x,y,z) pairs defining the axis bounds and an index representing its ridge, planar, or channel property.

Version:
2.3, 29th March, 2003.
Author:
Jo Wood

Constructor Summary
FeatureAxis(float x1, float y1, float z1, float x2, float y2, float z2, int type)
          Creates a bounded feature axis.
 
Method Summary
 float[] getEndPoints()
          Reports the coordinates of the ends of the axis.
 int getType()
          Reports the type of linear feature represented by the axis.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeatureAxis

public FeatureAxis(float x1,
                   float y1,
                   float z1,
                   float x2,
                   float y2,
                   float z2,
                   int type)
Creates a bounded feature axis. Bounded by two 3-dimensional points. Axis will be a channel, plane or ridge depending on curvature in the perpendicular plane.

Parameters:
x1 - x coordinate of end 1 of axis.
y1 - y coordinate of end 1 of axis.
z1 - z coordinate of end 1 of axis.
x2 - x coordinate of end 2 of axis.
y2 - y coordinate of end 2 of axis.
z2 - z coordinate of end 2 of axis.
type - Type of feature axis (RIDGE,PLANAR or CHANNEL).
See Also:
SurfParam.RIDGE, SurfParam.PLANAR, SurfParam.CHANNEL
Method Detail

getType

public int getType()
Reports the type of linear feature represented by the axis.

Returns:
Linear feature type (CHANNEL, PLANAR or RIDGE).

getEndPoints

public float[] getEndPoints()
Reports the coordinates of the ends of the axis.

Returns:
Array holding 2 sets of (x,y,z) coordinates.


Copyright Jo Wood, 1996-2009, last modified, 17th April, 2009