#78 closed defect (fixed)
Constructors/destructors for psPlaneTransform, psPlaneDistort
| Reported by: | Owned by: | Paul Price | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | PSLib SDRS | Version: | unspecified |
| Severity: | minor | Keywords: | |
| Cc: |
Description
In SDR-02 paragraph 5.3.1, the data types psPlaneTransform and psPlaneDistor
are defined. Should there be constructors and destructors for these types
similar to psSphereTransform is section 5.3.2?
Change History (7)
comment:1 by , 22 years ago
| Status: | new → assigned |
|---|
comment:2 by , 22 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
comment:3 by , 22 years ago
| Resolution: | fixed |
|---|---|
| Status: | closed → reopened |
The resolution specifies there should be constructors and destructors but this
functions are not present in SDR-06 section 5.3.1.
comment:4 by , 22 years ago
| Owner: | changed from to |
|---|---|
| Status: | reopened → new |
comment:5 by , 22 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Added constructors to the SDRS. We don't specify destructors unless there's
something special that needs to be done, and in this case, there isn't.
Each of \code{psPlaneTransform} and \code{psPlaneDistort} has an
appropriate allocator that takes the polynomial order in each
dimension. Both the \code{x} and \code{y} polynomials shall be have
the same dimensions.
\begin{verbatim}
psPlaneTransform *psPlaneTransformAlloc(int n1, int n2);
psPlaneDistort *psPlaneDistortAlloc(int n1, int n2, int n3, int n4);
\end{verbatim}
comment:6 by , 22 years ago
| Keywords: | VERIFIED added |
|---|
Should be fixed in SDRS-07 and ADD-06 (7 September 2004).
comment:7 by , 22 years ago
| Keywords: | VERIFIED removed |
|---|

yes, there should be constructors & destructors.
the constructors needs to take the polynomial orders for each dimension.