 
#ifndef figospli_DEFINED
#define figospli_DEFINED 1
 
#ifndef class_DEFINED
#include <class.h>
#endif /* class_DEFINED */
/* 
 * This file was generated by the Andrew class system preprocessor.
 * Don't make changes to this file as it is created from figospli.ch and will be
 * overwritten.  Make changes to figospli.ch instead.
 */ 
 
#ifndef class_StaticInfoOnly
/* 
 * The following information was copied, as-is, from figospli.ch.
 */ 
 
/* figospli.ch - fig element object: spline */
/*
	Copyright Carnegie Mellon University 1992 - All rights reserved
	$Disclaimer: 
*Permission to use, copy, modify, and distribute this software and its 
*documentation for any purpose is hereby granted without fee, 
*provided that the above copyright notice appear in all copies and that 
*both that copyright notice, this permission notice, and the following 
*disclaimer appear in supporting documentation, and that the names of 
*IBM, Carnegie Mellon University, and other copyright holders, not be 
*used in advertising or publicity pertaining to distribution of the software 
*without specific, written prior permission.
*
*IBM, CARNEGIE MELLON UNIVERSITY, AND THE OTHER COPYRIGHT HOLDERS 
*DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 
*ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.  IN NO EVENT 
*SHALL IBM, CARNEGIE MELLON UNIVERSITY, OR ANY OTHER COPYRIGHT HOLDER 
*BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 
*DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 
*WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 
*ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
*OF THIS SOFTWARE.
* $

  $Header: /afs/cs.cmu.edu/project/atk-dist/6.2/atk/figure/RCS/figospli.ch,v 1.2 1992/12/14 20:45:16 rr2b R6tape $
*/

struct figospli_cubit {
    double xa, xb, xc, xd;
    double ya, yb, yc, yd;
};






/* 
 * End of information copied from figospli.ch.
 */ 
 
#endif /* class_StaticInfoOnly *//* 
 * Include the superclass information
 */ 
#define dontDefineRoutinesFor_figoplin
#include "figoplin.ih"
#undef dontDefineRoutinesFor_figoplin

 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for figospli 
 */ 
struct figospli { 
    union {
	struct basicobject_methods *figospli_methods;
	struct traced traced;
	struct observable observable;
	struct dataobject dataobject;
	struct figobj figobj;
	struct figoplin figoplin;
    } header;
      struct figospli_cubit *cubit;
      int cubit_size;
      struct point *tmppts;
      int tmppts_size;

};

 
/* 
 * End of data structure for figospli.
 */ 
 

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef figospli_PROGRAMMERVERSION
#define figospli_PROGRAMMERVERSION 1
#endif /* figospli_PROGRAMMERVERSION */

#ifdef figospli_VERSION
#undef figospli_VERSION
#endif /* figospli_VERSION */
#define figospli_VERSION ((((figospli_PROGRAMMERVERSION << 16) ^ (55 << 8) ^ sizeof(struct figospli)) & 0x7ffff) + 0x80000 + (65 << 20))


#endif /* class_StaticInfoOnly */
#define figospli_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *figospli__GetClassInfo(); \
 extern struct classheader *figospli_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, figospli_classheader_StaticExport->name, figospli__GetClassInfo, NULL, figospli_classheader_StaticExport->namekey); } 
 
#define figospli_StaticLoad()  \
    { \
    figoplin_StaticLoad(); \
    figospli_StaticLoadOnlyThisClass();  \
    } 
 
#define figospli_StaticEntry  {figospli_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader figospli_classheader = {
    figospli_VERSION,
    "figospli",
    "figospli",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define figospli_CLASSPROCEDURES (figospli_classheader.classprocedures)
int figospli_classref_;
#endif /* class_StaticInfoOnly */

#endif /* figospli_DEFINED */

#if !defined(figospli_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_figospli) && !defined(class_StaticEntriesOnly)
#define figospli_ROUTINESDEFINED

#define figospli_Reference(self) \
 (((&(self)->header.traced))->refcount++)
#define figospli_UnReference(self) \
 ((((&(self)->header.traced))->refcount>0)?((&(self)->header.traced))->refcount--:0)
#define figospli_ReferenceCount(self) \
 (((&(self)->header.traced))->refcount)
#define figospli_AddObserver(self,observer) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[0]))) (self,observer))
#define figospli_IsObserver(self,observer) \
    ((* ((boolean (*)())((self)->header.figospli_methods->routines[1]))) (self,observer))
#define figospli_RemoveObserver(self,observer) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[2]))) (self,observer))
#define figospli_NotifyObservers(self,value) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[3]))) (self,value))
#define figospli_ObservedChanged(self,changed,value) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[4]))) (self,changed,value))
#define figospli_AddRecipient(self,trigger,rcvr,func,rock) \
    ((* ((boolean (*)())((self)->header.figospli_methods->routines[5]))) (self,trigger,rcvr,func,rock))
#define figospli_DeleteRecipient(self,trigger,rcvr) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[6]))) (self,trigger,rcvr))
#define figospli_PullTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[7]))) (self,trigger))
#define figospli_DisableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[8]))) (self,trigger))
#define figospli_EnableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[9]))) (self,trigger))
#define figospli_DisableCount(self,trigger) \
    ((* ((long (*)())((self)->header.figospli_methods->routines[10]))) (self,trigger))
#define figospli_Read(self,file,id) \
    ((* ((long (*)())((self)->header.figospli_methods->routines[11]))) (self,file,id))
#define figospli_Write(self,file,writeid,level) \
    ((* ((long (*)())((self)->header.figospli_methods->routines[12]))) (self,file,writeid,level))
#define figospli_ReadOtherFormat(self,file,fmt,encoding,description) \
    ((* ((boolean (*)())((self)->header.figospli_methods->routines[13]))) (self,file,fmt,encoding,description))
#define figospli_WriteOtherFormat(self,file,writeid,level,usagetype,boundary) \
    ((* ((long (*)())((self)->header.figospli_methods->routines[14]))) (self,file,writeid,level,usagetype,boundary))
#define figospli_GetModified(self) \
    ((* ((long (*)())((self)->header.figospli_methods->routines[15]))) (self))
#define figospli_SetModified(self) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[16]))) (self))
#define figospli_ViewName(self) \
    ((* ((char * (*)())((self)->header.figospli_methods->routines[17]))) (self))
#define figospli_SetAttributes(self,attributes) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[18]))) (self,attributes))
#define figospli_Put(self,property,type,rock) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[19]))) (self,property,type,rock))
#define figospli_Get(self,property,type,rock) \
    ((* ((short (*)())((self)->header.figospli_methods->routines[20]))) (self,property,type,rock))
#define figospli_ListCurrentViews(self,array,size) \
    ((* ((int (*)())((self)->header.figospli_methods->routines[21]))) (self,array,size))
#define figospli_RestoreModified(self,oldmodified) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[22]))) (self,oldmodified))
#define figospli_UniqueID(self) \
 ((long)((&(self)->header.dataobject)))
#define figospli_GetWriteID(self) \
 ( ((&(self)->header.dataobject))->writeID )
#define figospli_SetWriteID(self,newValue) \
 ( (((&(self)->header.dataobject))->writeID) = (newValue) )
#define figospli_GetID(self) \
      ( ((&(self)->header.dataobject))->id )
#define figospli_SetID(self,newValue) \
      ( (((&(self)->header.dataobject))->id) = (newValue) )
#define figospli_WriteBody(self,fp) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[23]))) (self,fp))
#define figospli_ReadBody(self,file,recompute) \
    ((* ((long (*)())((self)->header.figospli_methods->routines[24]))) (self,file,recompute))
#define figospli_ToolName(self,v,rock) \
    ((* ((char * (*)())((self)->header.figospli_methods->routines[25]))) (self,v,rock))
#define figospli_ToolModify(self,v,rock) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[26]))) (self,v,rock))
#define figospli_Instantiate(self,v,rock) \
    ((* ((struct figobj * (*)())((self)->header.figospli_methods->routines[27]))) (self,v,rock))
#define figospli_Draw(self,v) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[28]))) (self,v))
#define figospli_Sketch(self,v) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[29]))) (self,v))
#define figospli_DrawAttachments(self,v) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[30]))) (self,v))
#define figospli_ClearAttachments(self) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[31]))) (self))
#define figospli_PrintObject(self,v,file,prefix) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[32]))) (self,v,file,prefix))
#define figospli_Select(self,v) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[33]))) (self,v))
#define figospli_SetNumHandles(self,num) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[34]))) (self,num))
#define figospli_Build(self,action,v,x,y,clicks) \
    ((* ((enum figobj_Status (*)())((self)->header.figospli_methods->routines[35]))) (self,action,v,x,y,clicks))
#define figospli_HitMe(self,x,y,delta,ptref) \
    ((* ((enum figobj_HitVal (*)())((self)->header.figospli_methods->routines[36]))) (self,x,y,delta,ptref))
#define figospli_BasicHitMe(self,x,y,delta,ptref) \
    ((* ((enum figobj_HitVal (*)())((self)->header.figospli_methods->routines[37]))) (self,x,y,delta,ptref))
#define figospli_Reshape(self,action,v,x,y,handle,ptref) \
    ((* ((boolean (*)())((self)->header.figospli_methods->routines[38]))) (self,action,v,x,y,handle,ptref))
#define figospli_AddParts(self,action,v,x,y,handle,ptref) \
    ((* ((boolean (*)())((self)->header.figospli_methods->routines[39]))) (self,action,v,x,y,handle,ptref))
#define figospli_DeleteParts(self,action,v,x,y,handle,ptref) \
    ((* ((boolean (*)())((self)->header.figospli_methods->routines[40]))) (self,action,v,x,y,handle,ptref))
#define figospli_MoveHandle(self,x,y,ptref) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[41]))) (self,x,y,ptref))
#define figospli_Reposition(self,xd,yd) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[42]))) (self,xd,yd))
#define figospli_InheritVAttributes(self,attr,mask) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[43]))) (self,attr,mask))
#define figospli_UpdateVAttributes(self,attr,mask) \
    ((* ((unsigned long (*)())((self)->header.figospli_methods->routines[44]))) (self,attr,mask))
#define figospli_RecomputeBounds(self) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[45]))) (self))
#define figospli_GetBounds(self,vv) \
    ((* ((struct rectangle * (*)())((self)->header.figospli_methods->routines[46]))) (self,vv))
#define figospli_GetSelectedBounds(self,vv) \
    ((* ((struct rectangle * (*)())((self)->header.figospli_methods->routines[47]))) (self,vv))
#define figospli_ComputeSelectedBounds(self) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[48]))) (self))
#define figospli_UpdateParentBounds(self) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[49]))) (self))
#define figospli_SetParent(self,parentref,ancestor) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[50]))) (self,parentref,ancestor))
#define figospli_GetHandleType(self,ptref) \
    ((* ((enum figobj_HandleType (*)())((self)->header.figospli_methods->routines[51]))) (self,ptref))
#define figospli_GetCanonicalHandles(self) \
    ((* ((long * (*)())((self)->header.figospli_methods->routines[52]))) (self))
#define figospli_StabilizeAttachments(self,keepproport) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[53]))) (self,keepproport))
#define figospli_GetParent(self) \
  (((&(self)->header.figobj))->parent)
#define figospli_GetParentRef(self) \
  (((&(self)->header.figobj))->parentref)
#define figospli_GetAncestorFig(self) \
  (((&(self)->header.figobj))->figo)
#define figospli_IsGroup(self) \
  (((&(self)->header.figobj))->isgroup)
#define figospli_IsInset(self) \
  (((&(self)->header.figobj))->isinset)
#define figospli_AttributesUsed(self) \
  (((&(self)->header.figobj))->attrused)
#define figospli_GetHandles(self) \
  (((&(self)->header.figobj))->pts)
#define figospli_GetNumHandles(self) \
  (((&(self)->header.figobj))->numpts)
#define figospli_SetHandle(self,num,x,y) \
  (point_SetPt(&(((&(self)->header.figobj))->pts[num]), (x), (y)))
#define figospli_PosX(self) \
  (((&(self)->header.figobj))->x)
#define figospli_PosY(self) \
  (((&(self)->header.figobj))->y)
#define figospli_SetBoundsRect(self,left,top,width,height) \
  (rectangle_SetRectSize(&(((&(self)->header.figobj))->bounds), (left), (top), (width), (height)))
#define figospli_GetVAttributes(self) \
  (((&(self)->header.figobj))->attr)
#define figospli_GetIVAttributes(self) \
  (((&(self)->header.figobj))->iattr)
#define figospli_GetReadOnly(self) \
  (((&(self)->header.figobj))->figo && figure_GetReadOnly(((&(self)->header.figobj))->figo))
#define figospli_IsAttachmentActive(self,num) \
  (((&(self)->header.figobj))->vas[num].on)
#define figospli_SetAttachmentActive(self,num,val) \
  (((&(self)->header.figobj))->vas[num].on = (val), ((&(self)->header.figobj))->anyattachmentsactive = ((&(self)->header.figobj))->anyattachmentsactive || (val))
#define figospli_SetAttachmentPosX(self,num,pos) \
 (((&(self)->header.figobj))->vas[num].rposx=(pos))
#define figospli_SetAttachmentOffX(self,num,offset) \
 (((&(self)->header.figobj))->vas[num].offx=(offset))
#define figospli_GetAttachmentPosX(self,num) \
 (((&(self)->header.figobj))->vas[num].rposx)
#define figospli_GetAttachmentOffX(self,num) \
 (((&(self)->header.figobj))->vas[num].offx)
#define figospli_SetAttachmentPosY(self,num,pos) \
 (((&(self)->header.figobj))->vas[num].rposy=(pos))
#define figospli_SetAttachmentOffY(self,num,offset) \
 (((&(self)->header.figobj))->vas[num].offy=(offset))
#define figospli_GetAttachmentPosY(self,num) \
 (((&(self)->header.figobj))->vas[num].rposy)
#define figospli_GetAttachmentOffY(self,num) \
 (((&(self)->header.figobj))->vas[num].offy)
#define figospli_GetHandleX(self,num) \
 (((&(self)->header.figobj))->pts[num].x)
#define figospli_GetHandleY(self,num) \
 (((&(self)->header.figobj))->pts[num].y)
#define figospli_CopyData(self,src) \
    ((* ((void (*)())((self)->header.figospli_methods->routines[54]))) (self,src))
#define figospli_Pts(self) \
  (((&(self)->header.figoplin))->pts)
#define figospli_NumPts(self) \
  (((&(self)->header.figoplin))->numpts)
#define figospli_Closed(self) \
  (((&(self)->header.figoplin))->closed)

#define figospli_NewFromObject(self) \
    ((* ((struct figospli * (*)())((self)->header.figospli_methods->info->procs->routines[0]))) (&figospli_classheader, (self)->header.figospli_methods->info->versionnumber))
#define figospli_New() \
    (*((struct figospli * (*)()) (figospli_CLASSPROCEDURES->routines[0])))(&figospli_classheader,figospli_VERSION)
#define figospli_Initialize(self) \
    (*((void (*)()) (figospli_CLASSPROCEDURES->routines[2])))(&figospli_classheader,self, figospli_VERSION)

#define figospli_Destroy(self) \
    ((* ((void (*)()) ((self)->header.figospli_methods->info->procs->routines[1]))) (&figospli_classheader, self))
#define figospli_Finalize(self) \
    (*((void (*)()) (figospli_CLASSPROCEDURES->routines[3])))(&figospli_classheader,self)

#define figospli_InitializeObject(self) \
    (*((boolean (*)()) (figospli_CLASSPROCEDURES->routines[5])))(&figospli_classheader,self)
#define figospli_FinalizeObject(self) \
    (*((void (*)()) (figospli_CLASSPROCEDURES->routines[6])))(&figospli_classheader,self)
#define figospli_Create(pointlist,numpoints,closed) \
    (*((struct figospli * (*)()) (figospli_CLASSPROCEDURES->routines[7])))(&figospli_classheader,pointlist,numpoints,closed)


#endif /* !defined(figospli_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_figospli ) && !defined(class_StaticEntriesOnly)*/

