Synopsis
PDX_MSGT gcr_TrimCurve(long option, MDA_PTR orig_db_ptr, PDX_BOOL sense, double t0, double t1, MDA_PTR curve_ptr, int gdx_model, MDA_PTR *gdx_TC_ptr)
Purpose
Create a GDX Trim Curve.
Description
The orig_db_ptr argument should contain the database pointer of the entity that the new entity was created from (usually this should be obtained by the calling routine via mda_GetOrigDbptr) or MDA_NULL_PTR. See the mda_intro man page for more information about predecessor entities.
Note that this routine only sets original database pointer of the resulting GDX Trim Curve and does not set the original database pointer for the GDX curve curve_ptr. It is assumed that the original database pointer for the GDX curve entity has already been properly set.
Input
option
GCR_NOVALIDATE
No validation will occur on the input data.
orig_db_ptr
The original entities orig_db_ptr as obtained from the mda_GetOrigDbptr call, or MDA_NULL_PTR
sense
Flag to indicate whether the direction of the Trim Curve agrees with or is opposed to the direction of curve
t0
The starting parameter value for trimming
t1
The ending parameter value for trimming
curve_ptr
The database pointer of the GDX curve entity to be trimmed
gdx_model
The GDX Trim Curve entity model for creation
Output
gdx_TC_ptr
The database pointer of the resulting GDX Trim Curve entity
Return
GCR_NOERR
GCR_INVALID_MODEL
Low level error return
.fi