Package com.luciad.shape.shape3D
Class TLcdXYZPoint
java.lang.Object
com.luciad.shape.ALcdShape
com.luciad.shape.ALcdPoint
com.luciad.shape.shape2D.ALcd2DEditablePoint
com.luciad.shape.shape3D.ALcd3DEditablePoint
com.luciad.shape.shape3D.TLcdXYZPoint
- All Implemented Interfaces:
ILcdBounded,ILcdBounds,ILcdPoint,ILcdPointList,ILcdPolypoint,ILcdShape,ILcd2DEditablePoint,ILcd2DEditableShape,ILcd3DEditablePoint,ILcd3DEditableShape,ILcdCloneable,Serializable,Cloneable
- Direct Known Subclasses:
TLcdDWGPoint,TLcdMeasureXYZPoint,TLcdXYZMPoint
This class provides an implementation of
ILcd3DEditablePoint in
the cartesian space.
This class is thread-safe for concurrent read-only access of its contents. For read-write access, external locking must be used. Such locking is typically done at the model level.
Use as a domain object
If you plan on usingTLcdXYZPoint as a domain object (e.g. using ILcdModel.addElement),
please note that two TLcdXYZPoint instances are considered to be equal if they describe
the same location. If location does not uniquely identify your domain objects, please override
equals/hashcode to take the additional properties into account.
Alternatively, one could consider every class instance different, resulting in these
equals/hashcode implementations:
public boolean equals( Object aObject ) {
return aObject == this;
}
public int hashCode() {
return System.identityHashCode( this );
}
Failing to respect equals/hashcode may result in undesired behavior, for example when performing
spatial queries, used during painting.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a newTLcdXYZPointat location (0,0,0).TLcdXYZPoint(double aX, double aY, double aZ) Constructs and initializes a newTLcdXYPointwith the specified x, y, and z coordinates.TLcdXYZPoint(ILcdPoint aPoint) Constructs and initializes a newTLcdXYZPointwith the same location as the givenILcdPoint.TLcdXYZPoint(ILcdPoint aPoint, double aZ) Constructs and initializes a newTLcdXYZPointat the given location. -
Method Summary
Modifier and TypeMethodDescriptionReturns a copy of thisILcdBoundsobject that is also anILcd2DEditableBounds.Returns a copy of thisILcdPointthat is also anILcd2DEditablePoint.Returns a copy of thisILcdBoundsobject that is also anILcd3DEditableBounds.Returns a copy of thisILcdPointthat is also anILcd3DEditablePoint.final doublegetX()Returns the x coordinate of thisILcdPoint.final doublegetY()Returns the y coordinate of thisILcdPoint.final doublegetZ()Returns the z coordinate of thisILcdPoint.voidmove3D(double aX, double aY, double aZ) Moves thisILcd3DEditableShapeto the given point in the 3D space.Methods inherited from class com.luciad.shape.shape3D.ALcd3DEditablePoint
move2D, move3D, toString, translate3DMethods inherited from class com.luciad.shape.shape2D.ALcd2DEditablePoint
move2D, translate2DMethods inherited from class com.luciad.shape.ALcdPoint
contains2D, contains2D, contains2D, contains3D, contains3D, contains3D, equals, getBounds, getCosX, getCosY, getDepth, getFocusPoint, getHeight, getLocation, getMaxX, getMaxY, getMaxZ, getMinX, getMinY, getMinZ, getPoint, getPointCount, getSinX, getSinY, getTanX, getTanY, getWidth, hashCode, interacts2D, interacts2D, interacts3D, interacts3D, isDefinedMethods inherited from class com.luciad.shape.ALcdShape
clone, contains2D, contains3D, fromDomainObjectMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.luciad.shape.shape2D.ILcd2DEditableShape
move2D, move2D, translate2DMethods inherited from interface com.luciad.shape.shape3D.ILcd3DEditableShape
move3D, translate3DMethods inherited from interface com.luciad.shape.ILcdBounded
getBoundsMethods inherited from interface com.luciad.shape.ILcdBounds
getCenterMethods inherited from interface com.luciad.util.ILcdCloneable
cloneMethods inherited from interface com.luciad.shape.ILcdPoint
equals, getCosX, getCosY, getSinX, getSinY, getTanX, getTanYMethods inherited from interface com.luciad.shape.ILcdPointList
getPointSFCT, getX, getY, getZMethods inherited from interface com.luciad.shape.ILcdShape
contains2D, contains2D, contains3D, contains3D, getFocusPoint
-
Constructor Details
-
TLcdXYZPoint
public TLcdXYZPoint()Constructs a newTLcdXYZPointat location (0,0,0). -
TLcdXYZPoint
Constructs and initializes a newTLcdXYZPointwith the same location as the givenILcdPoint.- Parameters:
aPoint- the point to be copied.
-
TLcdXYZPoint
Constructs and initializes a newTLcdXYZPointat the given location.- Parameters:
aPoint- the point to be copied of which the first two coordinates will be used.aZ- the third coordinate.
-
TLcdXYZPoint
public TLcdXYZPoint(double aX, double aY, double aZ) Constructs and initializes a newTLcdXYPointwith the specified x, y, and z coordinates.- Parameters:
aX- the x coordinate.aY- the y coordinate.aZ- the z coordinate.
-
-
Method Details
-
move3D
public void move3D(double aX, double aY, double aZ) Description copied from interface:ILcd3DEditableShapeMoves thisILcd3DEditableShapeto the given point in the 3D space. The focus point is used as the handle by which the shape is moved.- Specified by:
move3Din interfaceILcd3DEditableShape- Parameters:
aX- the x coordinate of the point.aY- the y coordinate of the point.aZ- the z coordinate of the point.
-
getX
public final double getX()Description copied from interface:ILcdPointReturns the x coordinate of thisILcdPoint. -
getY
public final double getY()Description copied from interface:ILcdPointReturns the y coordinate of thisILcdPoint. -
getZ
public final double getZ()Description copied from interface:ILcdPointReturns the z coordinate of thisILcdPoint.- Specified by:
getZin interfaceILcdPoint- Overrides:
getZin classALcd2DEditablePoint- Returns:
- 0.
-
cloneAs2DEditablePoint
Description copied from interface:ILcdPointReturns a copy of thisILcdPointthat is also anILcd2DEditablePoint. This makes sure that the first two dimensions of the copy are writable,- Specified by:
cloneAs2DEditablePointin interfaceILcdPoint- Returns:
- a copy of this
ILcdPointthat is also anILcd2DEditablePoint. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdPointobject may be read-only. - See Also:
-
cloneAs3DEditablePoint
Description copied from interface:ILcdPointReturns a copy of thisILcdPointthat is also anILcd3DEditablePoint. This makes sure that all three dimensions of the copy are writable,- Specified by:
cloneAs3DEditablePointin interfaceILcdPoint- Returns:
- a copy of this
ILcdPointthat is also anILcd3DEditablePoint. This makes sure that all three dimensions of the copy are writable, even if the originalILcdPointobject may be read-only. - See Also:
-
cloneAs2DEditableBounds
Description copied from interface:ILcdBoundsReturns a copy of thisILcdBoundsobject that is also anILcd2DEditableBounds. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdBoundsobject may be read-only.- Specified by:
cloneAs2DEditableBoundsin interfaceILcdBounds- Returns:
- a copy of this
ILcdBoundsobject that is also anILcd2DEditableBounds. This makes sure that the first two dimensions of the copy are writable, even if the originalILcdBoundsobject may be read-only. - See Also:
-
cloneAs3DEditableBounds
Description copied from interface:ILcdBoundsReturns a copy of thisILcdBoundsobject that is also anILcd3DEditableBounds. This makes sure that all three dimensions of the copy are writable, even if the originalILcdBoundsobject may be read-only.- Specified by:
cloneAs3DEditableBoundsin interfaceILcdBounds- Returns:
- a copy of this
ILcdBoundsobject that is also anILcd3DEditableBounds. This makes sure that all three dimensions of the copy are writable, even if the originalILcdBoundsobject may be read-only. - See Also:
-