
/*
 * This file was generated by the SOM Compiler.
 * FileName: \odwin\h\SHAPE.h.
 * Generated using:
 *     SOM Precompiler somipc: 2.29.1.3
 *     SOM Emitter emith.dll: 2.41
 */

/*
 * 
 *  Classes defined in this interface
 * 
 */


#ifndef SOM_ODShape_h
#define SOM_ODShape_h


#include <som.h>

/*
 * -- This emitter treats Method Tokens as Thunks by default.
 * -- Use the sc modifier "nothunks" to change this default
 */
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))



/*
 * Define class data structures as resolution macros
 */
#define ODShapeClassData (*resolve_ODShapeClassData())
#define ODShapeCClassData (*resolve_ODShapeCClassData())

/*
 * Define the class name as an object type
 */
#ifndef ODShape
#define ODShape SOMObject
#endif
#include <ShapeB.h>

/*
 * Start of user-defined types:
 */
#ifndef SOMClass
    #define SOMClass SOMObject
#endif /* SOMClass */
#ifndef ODObject
    #define ODObject SOMObject
#endif /* ODObject */
#ifndef ODExtension
    #define ODExtension SOMObject
#endif /* ODExtension */
#ifndef ODRefCntObject
    #define ODRefCntObject SOMObject
#endif /* ODRefCntObject */
#ifndef ODBaseShape
    #define ODBaseShape SOMObject
#endif /* ODBaseShape */
#ifndef ODShape
    #define ODShape SOMObject
#endif /* ODShape */
#ifndef ODTransform
    #define ODTransform SOMObject
#endif /* ODTransform */
#ifndef ODStorageUnit
    #define ODStorageUnit SOMObject
#endif /* ODStorageUnit */

/*
 * End of user-defined types.
 */

#define ODShape_MajorVersion 0
#define ODShape_MinorVersion 0

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define ODShapeNewClass c
#define ODShapeClassData d
#define ODShapeCClassData x
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define ODShape_classObj ODShapeClassData.classObject
#define _ODShape ODShape_classObj

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOMClass * SOMLINK ODShapeNewClass(integer4 somntmajorVersion,
		integer4 somntminorVersion);

/*
 * Declare the class data structure
 */
SOMEXTERN struct ODShapeClassDataStructure {
	SOMClass *classObject;
	somMToken InitShape;
	somMToken GetWinRegion;
	somMToken SetWinRegion;
	somMToken CopyWinRegion;
	somMToken majorversion;
}  _ODShapeClassData;
SOMEXTERN struct ODShapeClassDataStructure * SOMLINK resolve_ODShapeClassData(void);

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct ODShapeCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
}  _ODShapeCClassData;
SOMEXTERN struct ODShapeCClassDataStructure * SOMLINK resolve_ODShapeCClassData(void);

/*
 * New and Renew macros for ODShape
 */
#define ODShapeNew() \
   (_somNew(_ODShape ? _ODShape : ODShapeNewClass(ODShape_MajorVersion, ODShape_MinorVersion)))
#define ODShapeRenew(buf) \
   (_somRenew(_ODShape ? _ODShape : ODShapeNewClass(ODShape_MajorVersion, ODShape_MinorVersion), buf))

/*
 * Override method: somInit
 */
#define ODShape_somInit(somSelf) \
	SOMObject_somInit(somSelf)

/*
 * New Method: InitShape
 */
typedef void   (SOMLINK * somTD_ODShape_InitShape)(ODShape *somSelf, Environment *ev);
#define somMD_ODShape_InitShape "::ODShape::InitShape"
#define ODShape_InitShape(somSelf,ev) \
    (SOM_Resolve(somSelf, ODShape, InitShape) \
	(somSelf,ev))
#ifndef SOMGD_InitShape
    #if (defined(_InitShape) || defined(__InitShape))
        #undef _InitShape
        #undef __InitShape
        #define SOMGD_InitShape 1
    #else
        #define _InitShape ODShape_InitShape
    #endif /* _InitShape */
#endif /* SOMGD_InitShape */

/*
 * New Method: GetWinRegion
 */
typedef ODRgnHandle   (SOMLINK * somTD_ODShape_GetWinRegion)(ODShape *somSelf, Environment *ev);
#define somMD_ODShape_GetWinRegion "::ODShape::GetWinRegion"
#define ODShape_GetWinRegion(somSelf,ev) \
    (SOM_Resolve(somSelf, ODShape, GetWinRegion) \
	(somSelf,ev))
#ifndef SOMGD_GetWinRegion
    #if (defined(_GetWinRegion) || defined(__GetWinRegion))
        #undef _GetWinRegion
        #undef __GetWinRegion
        #define SOMGD_GetWinRegion 1
    #else
        #define _GetWinRegion ODShape_GetWinRegion
    #endif /* _GetWinRegion */
#endif /* SOMGD_GetWinRegion */

/*
 * New Method: SetWinRegion
 */
typedef void   (SOMLINK * somTD_ODShape_SetWinRegion)(ODShape *somSelf, Environment *ev,
		ODRgnHandle rgn);
#define somMD_ODShape_SetWinRegion "::ODShape::SetWinRegion"
#define ODShape_SetWinRegion(somSelf,ev,rgn) \
    (SOM_Resolve(somSelf, ODShape, SetWinRegion) \
	(somSelf,ev,rgn))
#ifndef SOMGD_SetWinRegion
    #if (defined(_SetWinRegion) || defined(__SetWinRegion))
        #undef _SetWinRegion
        #undef __SetWinRegion
        #define SOMGD_SetWinRegion 1
    #else
        #define _SetWinRegion ODShape_SetWinRegion
    #endif /* _SetWinRegion */
#endif /* SOMGD_SetWinRegion */

/*
 * New Method: CopyWinRegion
 */
typedef ODRgnHandle   (SOMLINK * somTD_ODShape_CopyWinRegion)(ODShape *somSelf, Environment *ev);
#define somMD_ODShape_CopyWinRegion "::ODShape::CopyWinRegion"
#define ODShape_CopyWinRegion(somSelf,ev) \
    (SOM_Resolve(somSelf, ODShape, CopyWinRegion) \
	(somSelf,ev))
#ifndef SOMGD_CopyWinRegion
    #if (defined(_CopyWinRegion) || defined(__CopyWinRegion))
        #undef _CopyWinRegion
        #undef __CopyWinRegion
        #define SOMGD_CopyWinRegion 1
    #else
        #define _CopyWinRegion ODShape_CopyWinRegion
    #endif /* _CopyWinRegion */
#endif /* SOMGD_CopyWinRegion */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define ODShape_NewShape ODBaseShape_NewShape
#define ODShape_Copy ODBaseShape_Copy
#define ODShape_GetGeometryMode ODBaseShape_GetGeometryMode
#define ODShape_SetGeometryMode ODBaseShape_SetGeometryMode
#define ODShape_GetBoundingBox ODBaseShape_GetBoundingBox
#define ODShape_SetRectangle ODBaseShape_SetRectangle
#define ODShape_CopyPolygon ODBaseShape_CopyPolygon
#define ODShape_SetPolygon ODBaseShape_SetPolygon
#define ODShape_GetPlatformShape ODBaseShape_GetPlatformShape
#define ODShape_SetPlatformShape ODBaseShape_SetPlatformShape
#define ODShape_Reset ODBaseShape_Reset
#define ODShape_WriteShape ODBaseShape_WriteShape
#define ODShape_ReadShape ODBaseShape_ReadShape
#define ODShape_IsSameAs ODBaseShape_IsSameAs
#define ODShape_IsEmpty ODBaseShape_IsEmpty
#define ODShape_ContainsPoint ODBaseShape_ContainsPoint
#define ODShape_IsRectangular ODBaseShape_IsRectangular
#define ODShape_HasGeometry ODBaseShape_HasGeometry
#define ODShape_CopyFrom ODBaseShape_CopyFrom
#define ODShape_Transform ODBaseShape_Transform
#define ODShape_InverseTransform ODBaseShape_InverseTransform
#define ODShape_Subtract ODBaseShape_Subtract
#define ODShape_Intersect ODBaseShape_Intersect
#define ODShape_Union ODBaseShape_Union
#define ODShape_Outset ODBaseShape_Outset
#define ODShape_InitBaseShape ODBaseShape_InitBaseShape
#define ODShape_GetRealShape ODBaseShape_GetRealShape
#define ODShape_InitRefCntObject ODRefCntObject_InitRefCntObject
#define ODShape_IncrementRefCount ODRefCntObject_IncrementRefCount
#define ODShape_Release ODRefCntObject_Release
#define ODShape_GetRefCount ODRefCntObject_GetRefCount
#define ODShape_InitObject ODObject_InitObject
#define ODShape_IsInitialized ODObject_IsInitialized
#define ODShape_HasExtension ODObject_HasExtension
#define ODShape_GetExtension ODObject_GetExtension
#define ODShape_ReleaseExtension ODObject_ReleaseExtension
#define ODShape_Purge ODObject_Purge
#define ODShape_IsEqualTo ODObject_IsEqualTo
#define ODShape_SubClassResponsibility ODObject_SubClassResponsibility
#define ODShape_somDefaultInit SOMObject_somDefaultInit
#define ODShape_somDestruct SOMObject_somDestruct
#define ODShape_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define ODShape_somDefaultAssign SOMObject_somDefaultAssign
#define ODShape_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define ODShape_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define ODShape_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define ODShape_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define ODShape_somDefaultVAssign SOMObject_somDefaultVAssign
#define ODShape_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define ODShape_somFree SOMObject_somFree
#define ODShape_somUninit SOMObject_somUninit
#define ODShape_somGetClass SOMObject_somGetClass
#define ODShape_somGetClassName SOMObject_somGetClassName
#define ODShape_somGetSize SOMObject_somGetSize
#define ODShape_somIsA SOMObject_somIsA
#define ODShape_somIsInstanceOf SOMObject_somIsInstanceOf
#define ODShape_somRespondsTo SOMObject_somRespondsTo
#define ODShape_somDispatch SOMObject_somDispatch
#define ODShape_somClassDispatch SOMObject_somClassDispatch
#define ODShape_somCastObj SOMObject_somCastObj
#define ODShape_somResetObj SOMObject_somResetObj
#define ODShape_somDispatchV SOMObject_somDispatchV
#define ODShape_somDispatchL SOMObject_somDispatchL
#define ODShape_somDispatchA SOMObject_somDispatchA
#define ODShape_somDispatchD SOMObject_somDispatchD
#define ODShape_somPrintSelf SOMObject_somPrintSelf
#define ODShape_somDumpSelf SOMObject_somDumpSelf
#define ODShape_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_ODShape_h */
