public final class GeomPlaneTrans extends GeomPlane implements GeomTransform<GeomPlane>
GeomTransform
element that refers to a GeomPlane
object and
masquerades as a GeomPlane object itself.
Modified by: Joseph A. Huwaldt
RESOURCES
Modifier and Type | Method and Description |
---|---|
GeomPlaneTrans |
copy()
Returns a copy of this GeomPlaneTrans instance
allocated by the calling thread
(possibly on the stack). |
Plane |
copyToReal()
Return a copy of the child object transformed by this transformation.
|
boolean |
equals(java.lang.Object obj)
Compares this GeomPlaneTrans against the specified object for strict equality (same
values and same units).
|
GeomPlane |
getChild()
Returns the child object transformed by this transform element.
|
Parameter<Length> |
getConstant()
Return the constant term of the plane equation (e.g.: "D" for a 3D plane:
A*x + B*y + C*z = D ). |
GeomVector<Dimensionless> |
getNormal()
Return the normal vector for the plane.
|
int |
getPhyDimension()
Returns the number of physical dimensions of the geometry element.
|
GeomPointTrans |
getRefPoint()
Return the reference point for this plane.
|
GTransform |
getTotalTransform()
Returns the total transformation represented by an entire chain of GeomTransform
objects below this one.
|
GTransform |
getTransform()
Returns the transformation represented by this transformation element.
|
Unit<Length> |
getUnit()
Returns the unit in which the geometry in this element are stated.
|
int |
hashCode()
Returns the hash code for this object.
|
Plane |
immutable()
Return an immutable version of this plane.
|
static GeomPlaneTrans |
newInstance(GeomPlane child,
GTransform transform)
|
static void |
recycle(GeomPlaneTrans instance)
Recycles a
GeomPlaneTrans instance immediately (on the stack when
executing in a StackContext ). |
void |
setTransform(GTransform transform)
Sets the transformation represented by this transformation element.
|
GeomPlane |
to(Unit<Length> unit)
Returns the equivalent to this element but stated in the specified unit.
|
GeomPlaneTrans |
toDimension(int newDim)
Return the equivalent of this plane converted to the specified number of physical
dimensions.
|
changeRefPoint, getBoundsMax, getBoundsMin, getClosest, getLimitPoint, getParDimension, getTransformed, intersect, intersect, intersect, isValid, size, toText
addChangeListener, clone, compareTo, getAllUserData, getID, getName, getUserData, putAllUserData, putUserData, removeChangeListener, removeUserData, reset, setName, toString
getTransformed
addChangeListener, getAllUserData, getBoundsMax, getBoundsMin, getID, getLimitPoint, getName, getParDimension, getUserData, isValid, putAllUserData, putUserData, removeChangeListener, removeUserData, setName, size, toText
public static GeomPlaneTrans newInstance(GeomPlane child, GTransform transform)
child
- The plane that is the child of this transform element (may not be
null
).transform
- The transform held by this transform element (may not be
null
).DimensionException
- if the input element is not 3D.public GTransform getTransform()
getTransform
in interface GeomTransform<GeomPlane>
public GTransform getTotalTransform()
getTotalTransform
in interface GeomTransform<GeomPlane>
public void setTransform(GTransform transform)
setTransform
in interface GeomTransform<GeomPlane>
transform
- The transform to set this transform element to (may not be
null
).public GeomPlane getChild()
getChild
in interface GeomTransform<GeomPlane>
public Plane copyToReal()
copyToReal
in interface GeomElement<GeomPlane>
copyToReal
in interface GeomTransform<GeomPlane>
public static void recycle(GeomPlaneTrans instance)
GeomPlaneTrans
instance immediately (on the stack when
executing in a StackContext
).instance
- The instance to be recycled.public int getPhyDimension()
getPhyDimension
in interface GeomElement<GeomPlane>
public GeomVector<Dimensionless> getNormal()
public Parameter<Length> getConstant()
A*x + B*y + C*z = D
).getConstant
in class GeomPlane
public GeomPointTrans getRefPoint()
getRefPoint
in class GeomPlane
public GeomPlaneTrans toDimension(int newDim)
toDimension
in interface GeomElement<GeomPlane>
toDimension
in class GeomPlane
newDim
- The dimension of the plane to return. MUST equal 3.java.lang.IllegalArgumentException
- if the new dimension is anything other than 3.public Unit<Length> getUnit()
getUnit
in interface GeomElement<GeomPlane>
public GeomPlane to(Unit<Length> unit) throws ConversionException
WARNING: If the unit changes, then the returned transform element DOES NOT refer back to the original plane (the link with the original plane is broken).
to
in interface GeomElement<GeomPlane>
unit
- the length unit of the element to be returned. May not be null.ConversionException
- if the the input unit is not a length unit.public boolean equals(java.lang.Object obj)
equals
in class AbstractGeomElement<GeomPlane>
obj
- the object to compare with.true
if this point is identical to that point;
false
otherwise.public int hashCode()
hashCode
in class AbstractGeomElement<GeomPlane>
public GeomPlaneTrans copy()
allocated
by the calling thread
(possibly on the stack).copy
in interface GeomElement<GeomPlane>
copy
in class GeomPlane