public abstract class BaseSRF_3D extends BaseSRF
BaseSRF, BaseSRF_2D| Modifier and Type | Field and Description |
|---|---|
protected boolean[] |
_component_is_angular
boolean flag indicating whether the coordinate component associated with
this SRF is angular
|
protected SRM_Extended_Valid_Region_Params[] |
_component_valid_region
member data for the geodetic valid region
|
_internalSRFs, _myCsCode, _myOpSeq, _mySrftCode, _orm, _rt| Constructor and Description |
|---|
BaseSRF_3D() |
| Modifier and Type | Method and Description |
|---|---|
static double |
calculateEuclideanDistance(Coord3D coord1,
Coord3D coord2)
Returns the euclidean distance between two coordinates.
|
int |
changeCoordinate3DArraySRF(Coord3D[] src,
Coord3D[] tgt,
SRM_Coordinate_Valid_Region_Code[] region)
Changes an array of 3D coordinate to this SRF.
|
int |
changeCoordinate3DArraySRFObject(Coord3D[] src,
SRM_ORM_Trans_3D_Params hst,
Coord3D[] tgt,
SRM_Coordinate_Valid_Region_Code[] region)
Changes an array of coordinates to this SRF using tranformation object.
|
SRM_Coordinate_Valid_Region_Code |
changeCoordinate3DSRF(Coord3D src,
Coord3D tgt)
Changes a coordinate's values to this SRF.
|
SRM_Coordinate_Valid_Region_Code |
changeCoordinate3DSRFObject(Coord3D src,
SRM_ORM_Trans_3D_Params hst,
Coord3D tgt)
Changes a coordinate's values to this SRF using tranformation object.
|
int |
changeDirectionArraySRF(Direction[] src_dir,
Direction[] tgt_dir,
SRM_Coordinate_Valid_Region_Code[] region)
Changes an array of directions to this SRF.
|
int |
changeDirectionArraySRFObject(Direction[] src_dir,
SRM_ORM_Trans_3D_Params hst,
Direction[] tgt_dir,
SRM_Coordinate_Valid_Region_Code[] region)
Changes an array of directions to this SRF using tranformation object.
|
SRM_Coordinate_Valid_Region_Code |
changeDirectionSRF(Direction src_dir,
Direction tgt_dir)
Changes a direction's reference coordinate and vector to this SRF.
|
SRM_Coordinate_Valid_Region_Code |
changeDirectionSRFObject(Direction src_dir,
SRM_ORM_Trans_3D_Params hst,
Direction tgt_dir)
Changes a direction's values to this SRF using tranformation object.
|
SRM_Coordinate_Valid_Region_Code |
checkDirection(Direction direction)
Check a direction in this SRF.
|
protected SRM_Matrix_3x3 |
comp_ori_mat(SRM.BaseSRF_3D.LTP_vec src,
SRM.BaseSRF_3D.LTP_vec tgt) |
protected SRM.BaseSRF_3D.LTP_vec |
compLTP(BaseSRF srf,
Coord3D coord) |
void |
computeSRFOrientation(Coord3D src_ref_point,
Coord3D tgt_ref_point,
Orientation out_ori)
This method creates an Orientation object representing the orientation
of the source srf (at the source reference point) with respect to this (the
target) srf (at the target reference point).
|
abstract Coord3D |
createCoordinate3D()
Creates a 3D coordinate object.
|
abstract Coord3D |
createCoordinate3D(double coord_comp1,
double coord_comp2,
double coord_comp3)
Creates a 3D coordinate object.
|
Direction |
createDirection()
Creates a direction object with reference location and vector components as Double.NaN.
|
Direction |
createDirection(Coord3D ref_coord,
double[] vec)
Creates a direction object.
|
SRF_LococentricEuclidean3D |
createLococentricEuclidean3DSRF(Coord3D lococentre,
Direction primary_axis,
Direction secondary_axis)
creates a Loccentric Euclidean 3D SRF whose origin in at the input lococentre and the
primary and secodary axes are aligned with the input direction axes.
|
double[] |
getCoordinate3DValues(Coord3D coord)
Retrieves the 3D coordinate component values.
|
void |
getDirectionValues(Direction direction,
Coord3D ref_coord,
double[] vec)
Retrieves the direction component values.
|
SRM_Extended_Valid_Region_Params |
getExtendedValidRegion(int component)
Get the Extended Valid Region for this SRF.
|
SRF_LCE_3D_Params |
getLocalTangentFrameSRFParameters(Coord3D ref_point)
Computes the parameters corresponding to the local tangent frame
at the input reference coordinate.
|
protected SRM_SRFSM_Code |
getMemberCode(double[] src_coord,
SRM_ORM_Code orm_dst,
SRM_RT_Code rt_dst,
SRM_SRFS_Code tgt_srfs) |
BaseSRF_3D |
getNaturalSRFSetMember(Coord3D src_coord,
SRM_ORM_Code orm_dst,
SRM_RT_Code rt_dst,
SRM_SRFS_Code tgt_srfs)
Returns the natural SRF Set member instance that the 3D coordinate is
located in the target SRF Set.
|
SRM_SRFSM_Code |
getNaturalSRFSetMemberCode(Coord3D src_coord,
SRM_ORM_Code orm_dst,
SRM_RT_Code rt_dst,
SRM_SRFS_Code tgt_srfs)
Computes the natural SRF Set member code (region) where the 3D coordinate is
located in the target SRF Set.
|
SRM_Valid_Region_Params |
getValidRegion(int component)
Get the Valid Region for this SRF.
|
void |
setExtendedValidRegion(int component,
SRM_Interval_Type type,
double extended_lower,
double lower,
double upper,
double extended_upper)
Set the Extended Valid Region for this SRF.
|
void |
setValidRegion(int component,
SRM_Interval_Type type,
double lower,
double upper)
Set the Valid Region for this SRF.
|
void |
transformOrientation(Coord3D src_ref_loc,
Orientation src_ori,
Coord3D tgt_ref_loc,
Orientation tgt_ori)
Given an orientation with respect to a local tangent frame (LTF_S) associated
with a reference location in the source SRF, this method computes the orientation
with respect to the local tangent frame (LTF_T) associated with the specified
reference location in the target SRF.
|
SRM_Coordinate_Valid_Region_Code |
transformOrientationCommonOrigin(Coord3D src_ref_loc,
Orientation src_ori,
Coord3D tgt_ref_loc,
Orientation tgt_ori)
Given an orientation with respect to a local tangent frame (LTF_S) associated
with a reference location in the source SRF, this method computes the orientation
with respect to the local tangent frame (LTF_T) associated with the specified
reference location in the target SRF.
|
void |
transformVector(Coord3D src_ref_loc,
double[] src_vec,
Coord3D tgt_ref_loc,
double[] tgt_vec)
Given a vector in the local tangent frame (LTF_S) associated with a reference
location in the source SRF, this method computes the vector in the local tangent
frame (LTF_T) associated with the specified reference location in the target SRF.
|
SRM_Coordinate_Valid_Region_Code |
transformVectorCommonOrigin(Coord3D src_ref_loc,
double[] src_vec,
Coord3D tgt_ref_loc,
double[] tgt_vec)
Given a vector in the local tangent frame (LTF_S) associated with a reference
location in the source SRF, this method computes the vector in the local tangent
frame (LTF_T) associated with the specified reference location in the target SRF.
|
void |
transformVectorInBodyFrame(Coord3D src_ref_loc,
Orientation src_ori,
double[] src_vec,
Coord3D tgt_ref_loc,
double[] tgt_vec)
Given a vector in a body frame (or in general any linear reference frame) whose
orientation with respect to the local tangent frame (LTF_S) that is associated with a reference
location in the source SRF, this method computes the vector in the local tangent frame
(LTF_T) associated with the specified reference location in the target SRF.
|
SRM_Coordinate_Valid_Region_Code |
transformVectorInBodyFrameCommonOrigin(Coord3D src_ref_loc,
Orientation src_ori,
double[] src_vec,
Coord3D tgt_ref_loc,
double[] tgt_vec)
Given a vector in a body frame (or in general any linear reference frame) whose
orientation with respect to the local tangent frame (LTF_S) that is associated with a reference
location in the source SRF, this method computes the vector in the local tangent frame
(LTF_T) associated with the specified reference location in the target SRF.
|
calculateEuclideanDistance, changeCoordinateSRF, checkCoordinate, createSRFSetMember, createStandardSRF, get_orm, get_rt, getA, getCSCode, getF, getImplVerInfo, getOrm, getRt, getSRFCode, getSRFSetCode, getSRFSetMemberCode, getSRFTemplateCode, interimConv, isEqual, makeClone, querySRFTSupport, setSrfCode, setSrfSetCode, setSrfSetMemberCode, toStringprotected SRM_Extended_Valid_Region_Params[] _component_valid_region
protected boolean[] _component_is_angular
public abstract Coord3D createCoordinate3D()
public abstract Coord3D createCoordinate3D(double coord_comp1, double coord_comp2, double coord_comp3)
coord_comp1 - in: the values of the first component of the 3D coordinatecoord_comp2 - in: the values of the second component of the 3D coordinatecoord_comp3 - in: the values of the third component of the 3D coordinatepublic double[] getCoordinate3DValues(Coord3D coord) throws SrmException
coord - in: a 3D coordinateSrmExceptionpublic SRM_Coordinate_Valid_Region_Code changeCoordinate3DSRF(Coord3D src, Coord3D tgt) throws SrmException
src - in: the source 3D coordinate in some other 3D SRFtgt - in out: the target coordinate in this 3D SRFSrmExceptionpublic int changeCoordinate3DArraySRF(Coord3D[] src, Coord3D[] tgt, SRM_Coordinate_Valid_Region_Code[] region) throws SrmException
src - in: the array of source 3D coordinate in some other 3D SRFtgt - out: the array of target coordinate in this 3D SRFregion - out: the array of valid region associated with the array
of target coordinatesSrmExceptionpublic void setValidRegion(int component,
SRM_Interval_Type type,
double lower,
double upper)
throws SrmException
component - in: the coordinate component (1, 2, or 3)type - in: the type of intervallower - in: the lower value of the intervalupper - in: the upper value of the intervalSrmExceptionpublic void setExtendedValidRegion(int component,
SRM_Interval_Type type,
double extended_lower,
double lower,
double upper,
double extended_upper)
throws SrmException
component - in: the coordinate component (1, 2, or 3)type - in: the type of intervalextended_lower - in: the extended lower value of the intervallower - in: the lower value of the intervalupper - in: the upper value of the intervalextended_upper - in: the extended_upper value of the intervalSrmExceptionpublic SRM_Valid_Region_Params getValidRegion(int component) throws SrmException
component - in: the coordinate component (1, 2, or 3)SrmExceptionpublic SRM_Extended_Valid_Region_Params getExtendedValidRegion(int component) throws SrmException
component - in: the coordinate component (1, 2, or 3)SrmExceptionpublic SRM_Coordinate_Valid_Region_Code changeCoordinate3DSRFObject(Coord3D src, SRM_ORM_Trans_3D_Params hst, Coord3D tgt) throws SrmException
src - in: the source coordinate in some other 3D SRFhst - in: the ORM 3D transformationtgt - in out: the target coordinate in this 3D SRFSrmExceptionpublic int changeCoordinate3DArraySRFObject(Coord3D[] src, SRM_ORM_Trans_3D_Params hst, Coord3D[] tgt, SRM_Coordinate_Valid_Region_Code[] region) throws SrmException
src - in: the array of source coordinates in some other 3D SRFhst - in: the ORM 3D transformation objecttgt - out: the array of target coordinates in this 3D SRFregion - out: the array of valid region associated with the array of target coordinatesSrmExceptionpublic Direction createDirection(Coord3D ref_coord, double[] vec) throws SrmException
ref_coord - in: the 3D reference coordinate in this SRF.vec[] - in: the array of size 3 containing the vector component values. It can
be changed after the direction is created.SrmExceptionpublic Direction createDirection() throws SrmException
SrmExceptionpublic void getDirectionValues(Direction direction, Coord3D ref_coord, double[] vec) throws SrmException
direction - in: the direction objectref_coord - out: the 3D reference coordinate in this SRFvec[] - out: the 3D reference coordinate in this SRFSrmExceptionpublic SRM_Coordinate_Valid_Region_Code changeDirectionSRF(Direction src_dir, Direction tgt_dir) throws SrmException
src_dir - in: the source direction in some other SRFtgt_dir - out: the target direction in this SRFSrmExceptionpublic int changeDirectionArraySRF(Direction[] src_dir, Direction[] tgt_dir, SRM_Coordinate_Valid_Region_Code[] region) throws SrmException
src_dir - in: the array of source direction in some other 3D SRFtgt_dir - out: the array of target direction in this 3D SRFregion - out: the array of valid region associated with the array of target directionSrmExceptionpublic SRM_Coordinate_Valid_Region_Code changeDirectionSRFObject(Direction src_dir, SRM_ORM_Trans_3D_Params hst, Direction tgt_dir) throws SrmException
src_dir - in: the source direction in some other SRFhst - in: the ORM 3D transformationtgt_dir - out: the target direction in this SRFSrmExceptionpublic int changeDirectionArraySRFObject(Direction[] src_dir, SRM_ORM_Trans_3D_Params hst, Direction[] tgt_dir, SRM_Coordinate_Valid_Region_Code[] region) throws SrmException
src_dir - in: the array of source direction in some other 3D SRFhst - in: the ORM 3D transformationtgt_dir - out: the array of target direction in this 3D SRFregion - out: the array of valid region associated with the array of target directionSrmExceptionpublic SRM_Coordinate_Valid_Region_Code checkDirection(Direction direction) throws SrmException
direction - in: the direction in this SRFSrmExceptionpublic void computeSRFOrientation(Coord3D src_ref_point, Coord3D tgt_ref_point, Orientation out_ori) throws SrmException
src_ref_point - in : the source reference pointtgt_ref_point - in : the target reference point in this SRFout_ori - out : the resulting orientationSrmExceptionpublic SRF_LCE_3D_Params getLocalTangentFrameSRFParameters(Coord3D ref_point) throws SrmException
ref_point - in : the reference pointSrmExceptionpublic void transformOrientation(Coord3D src_ref_loc, Orientation src_ori, Coord3D tgt_ref_loc, Orientation tgt_ori) throws SrmException
src_ref_loc - in : the source reference location (a coordinate in the source
SRF) where the origin of the source local tangent frame
(LTF_S) is locatedsrc_ori - in : the source orientation of some linear reference frame with
respect to LTF_Stgt_ref_loc - in : the target reference location (a coordinate in this SRF,
the target SRF) where the origin of the target local tangent
frame (LTF_T) is locatedtgt_ori - out : the target orientation with respect to LTF_TSrmExceptionpublic SRM_Coordinate_Valid_Region_Code transformOrientationCommonOrigin(Coord3D src_ref_loc, Orientation src_ori, Coord3D tgt_ref_loc, Orientation tgt_ori) throws SrmException
src_ref_loc - in : the source reference location (a coordinate in the source
SRF) where the origin of the source local tangent frame
(LTF_S) is locatedsrc_ori - in : the source orientation of some linear reference frame with
respect to LTF_Stgt_ref_loc - out : the coordinate of the common reference location in the
target SRFtgt_ori - out : the target orientation with respect to LTF_TSrmExceptionpublic void transformVectorInBodyFrame(Coord3D src_ref_loc, Orientation src_ori, double[] src_vec, Coord3D tgt_ref_loc, double[] tgt_vec) throws SrmException
src_ref_loc - in : the source reference location (a coordinate in the source
SRF) where the origin of the source local tangent frame
(LTF_S) is locatedsrc_ori - in : the source orientation of some linear reference frame L with
respect to LTF_Ssrc_vec - in : the input vector in Ltgt_ref_loc - in : the target reference location (a coordinate in this SRF,
the target SRF) where the origin of the target local tangent
frame (LTF_T) is locatedtgt_vec - out : the target vector in LTF_TSrmExceptionpublic SRM_Coordinate_Valid_Region_Code transformVectorInBodyFrameCommonOrigin(Coord3D src_ref_loc, Orientation src_ori, double[] src_vec, Coord3D tgt_ref_loc, double[] tgt_vec) throws SrmException
src_ref_loc - in : the source reference location (a coordinate in the source
SRF) where the origin of the source local tangent frame
(LTF_S) is locatedsrc_ori - in : the source orientation of some linear reference frame L with
respect to LTF_Ssrc_vec - in : the input vector in Ltgt_ref_loc - out : the coordinate of the common reference location in the
target SRFtgt_vec - out : the target vector in LTF_TSrmExceptionpublic void transformVector(Coord3D src_ref_loc, double[] src_vec, Coord3D tgt_ref_loc, double[] tgt_vec) throws SrmException
src_ref_loc - in : the source reference location (a coordinate in the source
SRF) where the origin of the source local tangent frame
(LTF_S) is locatedsrc_vec - in : the source vector in LTF_Stgt_ref_loc - in : the target reference location (a coordinate in this SRF,
the target SRF) where the origin of the target local tangent
frame (LTF_T) is locatedtgt_vec - out : the target vector in LTF_TSrmExceptionpublic SRM_Coordinate_Valid_Region_Code transformVectorCommonOrigin(Coord3D src_ref_loc, double[] src_vec, Coord3D tgt_ref_loc, double[] tgt_vec) throws SrmException
src_ref_loc - in : the source reference location (a coordinate in the source
SRF) where the origin of the source local tangent frame
(LTF_S) is locatedsrc_vec - in : the source vector in LTF_Stgt_ref_loc - out : coordinate of the common reference location in the
target SRFtgt_vec - out : the target vector in LTF_TSrmExceptionpublic SRF_LococentricEuclidean3D createLococentricEuclidean3DSRF(Coord3D lococentre, Direction primary_axis, Direction secondary_axis) throws SrmException
lococentre - in : the lococentre of the SRFprimary_axis - in : the direction of the primary axissecondary_axis - in : the direction of the secondary axisThis - method throws srm::ExceptionSrmExceptionpublic static double calculateEuclideanDistance(Coord3D coord1, Coord3D coord2) throws SrmException
coord1 - in: a coordinate in some SRFcoord2 - in: a coordinate in some SRFSrmExceptionpublic SRM_SRFSM_Code getNaturalSRFSetMemberCode(Coord3D src_coord, SRM_ORM_Code orm_dst, SRM_RT_Code rt_dst, SRM_SRFS_Code tgt_srfs) throws SrmException
src_coord - in : the source 3D coordinate in an SRForm_dst - in : the ORM for the destination SRF Setrt_dst - in : the RT for the destination SRF Settgt_srfs - in : the destination SRF Set CodeSrmExceptionpublic BaseSRF_3D getNaturalSRFSetMember(Coord3D src_coord, SRM_ORM_Code orm_dst, SRM_RT_Code rt_dst, SRM_SRFS_Code tgt_srfs) throws SrmException
src_coord - in : the source 3D coordinate in an SRForm_dst - in : the ORM for the destination SRF Setrt_dst - in : the RT for the destination SRF Settgt_srfs - in : the destination SRF Set CodeSrmExceptionprotected SRM_SRFSM_Code getMemberCode(double[] src_coord, SRM_ORM_Code orm_dst, SRM_RT_Code rt_dst, SRM_SRFS_Code tgt_srfs) throws SrmException
SrmExceptionprotected SRM.BaseSRF_3D.LTP_vec compLTP(BaseSRF srf, Coord3D coord) throws SrmException
SrmExceptionprotected SRM_Matrix_3x3 comp_ori_mat(SRM.BaseSRF_3D.LTP_vec src, SRM.BaseSRF_3D.LTP_vec tgt)
Copyright © 2013 SEDRIS. All Rights Reserved.