bf3a3fa297
- aggiunta libreria vroni 7.6.
95 lines
4.7 KiB
C++
95 lines
4.7 KiB
C++
/*****************************************************************************/
|
|
/* */
|
|
/* Copyright (C) 2003--2023 M. Held */
|
|
/* */
|
|
/* This code is not in the public domain. All rights reserved! Please make */
|
|
/* sure to read the full copyright statement contained in "README.txt" or in */
|
|
/* the "main" file of this code, such as "main.cc". */
|
|
/* */
|
|
/*****************************************************************************/
|
|
/* */
|
|
/* Written by: Martin Held */
|
|
/* */
|
|
/* E-Mail: held@cs.sbg.ac.at */
|
|
/* Fax Mail: (+43 662) 8044-611 */
|
|
/* Voice Mail: (+43 662) 8044-6304 */
|
|
/* Snail Mail: Martin Held */
|
|
/* FB Informatik */
|
|
/* Universitaet Salzburg */
|
|
/* A-5020 Salzburg, Austria */
|
|
/* */
|
|
/*****************************************************************************/
|
|
|
|
#ifndef VRONI_EXT_APPL_INOUT_H
|
|
#define VRONI_EXT_APPL_INOUT_H
|
|
|
|
#include "types.h"
|
|
|
|
class vroniObject;
|
|
|
|
#ifndef VRONI_COORD_H
|
|
typedef struct {
|
|
double x; /* x-coordinate */
|
|
double y; /* y-coordinate */
|
|
} coord; /********** point/vector ******************************/
|
|
#endif
|
|
|
|
/* Make sure that double arg is defined, to ensure that external appliations do
|
|
not break if they don't include fpkernel.h */
|
|
#ifndef double_arg
|
|
#define double_arg double
|
|
#endif
|
|
|
|
|
|
/*****************************************************************************/
|
|
/* */
|
|
/* The following data structures and macros may be modified at the user's */
|
|
/* discretion. They are only used in API_HandleArrayInput() in */
|
|
/* api_functions.c. */
|
|
/* */
|
|
/*****************************************************************************/
|
|
|
|
|
|
typedef struct {
|
|
double x1; /* x-coordinate */
|
|
double y1; /* y-coordinate */
|
|
#ifdef EXT_APPL_PNTS
|
|
eap_type ext_appl;/* this field can be set by an application program to */
|
|
/* refer to a user-defined entity. */
|
|
#endif
|
|
} in_pnts; /********** point/vector ******************************/
|
|
|
|
|
|
typedef struct {
|
|
double x1; /* x-coordinate start */
|
|
double y1; /* y-coordinate start */
|
|
double x2; /* x-coordinate end */
|
|
double y2; /* y-coordinate end */
|
|
#ifdef EXT_APPL_SITES
|
|
eas_type ext_appl;/* this field can be set by an application program to */
|
|
/* refer to a user-defined entity. */
|
|
#endif
|
|
} in_segs; /********** point/vector ******************************/
|
|
|
|
|
|
typedef struct {
|
|
double x1; /* x-coordinate start */
|
|
double y1; /* y-coordinate start */
|
|
double x2; /* x-coordinate end */
|
|
double y2; /* y-coordinate end */
|
|
double x3; /* x-coordinate center */
|
|
double y3; /* y-coordinate center */
|
|
vr_bool attr; /* orientation; true for CCW arcs, false for CW arcs */
|
|
#ifdef EXT_APPL_SITES
|
|
eas_type ext_appl;/* this field can be set by an application program to */
|
|
/* refer to a user-defined entity. */
|
|
#endif
|
|
} in_arcs; /********** point/vector ******************************/
|
|
|
|
|
|
/* api_functions.c */
|
|
|
|
#include "api_functions.h"
|
|
|
|
#endif
|