pe_array_htmethod_default

Creates a default array for a particular htmethod

Usage syntax

PE_ARRAY pe_array_htmethod_default (PE_HTMETHOD htmethod);

Parameters
htmethod A htmethod object
Description

This function creates a default array for a particular htmethod, such as Affine parametric. Arrays are used with PE_ADHJCS objects.

Returns

On success, the array

Examples
/* System header files. */
#include <stdlib.h>
#include <stdio.h>

/* Projection Engine and Projection Engine Factory header files. */
#include "pe.h"
#include "pef.h"

static struct
{
  int code;
} htmth_list[] =
{
   {119624},
   {119625}
};

void main()
{
   PE_HTMETHOD htmethod;
   PE_ARRAY array[PE_PARM_MAX];

   int i;
   char htmthname[PE_NAME_MAX];
   int htmthcode;

   for (i = 0; i < 2; i++) 
   {
      /* Create an object with the specified code. */
      htmethod = pe_factory(htmth_list[i].code);

      pe_htmethod_name(htmethod,htmthname);
      printf("\n%s\n",htmthname);

      array = pe_array_htmethod_default(htmethod);
   }
   exit(EXIT_SUCCESS);
}