home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
opendc12.zip
/
od124os2.exe
/
od12otk1.exe
/
include
/
TrnsfrmB.idl
< prev
next >
Wrap
Text File
|
1997-04-02
|
5KB
|
172 lines
/* @(#)Z 1.6 com/src/imaging/idl/TrnsfrmB.idl, odimaging, od96os2, odos29712d 97/03/21 17:18:21 (96/10/29 09:26:11) */
//#====START_GENERATED_PROLOG======================================
//#
//#
//# COMPONENT_NAME: odimaging
//#
//# CLASSES: none
//#
//# ORIGINS: 82,27
//#
//#
//# (C) COPYRIGHT International Business Machines Corp. 1995,1996
//# All Rights Reserved
//# Licensed Materials - Property of IBM
//# US Government Users Restricted Rights - Use, duplication or
//# disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
//#
//# IBM DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
//# ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
//# PURPOSE. IN NO EVENT SHALL IBM 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.
//#
//#====END_GENERATED_PROLOG========================================
//#
/********************************************************************/
/* Licensed Materials - Property of IBM */
/* */
/* */
/* Copyright (C) International Business Machines Corp., 1994. */
/* Copyright (C) Apple Computer, Inc., 1994 */
/* */
/* US Government Users Restricted Rights - */
/* Use, duplication, or disclosure restricted */
/* by GSA ADP Schedule Contract with IBM Corp. */
/* */
/* */
/********************************************************************/
//# Copyright: (r) 1993 - 1995 by Apple Computer, Inc., all rights reserved.
#ifndef _TRNSFRMB_
#define _TRNSFRMB_
#ifndef _REFCTOBJ_
#include "RefCtObj.idl"
#endif
//==============================================================================
// Classes defined in this interface
//==============================================================================
interface ODBaseTransform;
//==============================================================================
// Classes used by this interface
//==============================================================================
interface ODTransform;
interface ODShape;
interface ODStorageUnit;
//==============================================================================
// ODTransform
//==============================================================================
interface ODBaseTransform : ODRefCntObject
{
//#---------------------------------
//# factories:
ODTransform NewTransform();
ODTransform Copy();
//#---------------------------------
//# getters:
ODTransformType GetType();
void GetOffset(out ODPoint offset);
void GetPreScaleOffset(out ODPoint offset);
void GetScale(out ODPoint scale);
void GetMatrix(out ODMatrix matrix);
ODBoolean HasMatrix();
ODBoolean IsSameAs(in ODTransform compareTransform);
//#---------------------------------
//# setters:
ODTransform Reset();
ODTransform SetMatrix(in ODMatrix matrix);
ODTransform CopyFrom(in ODTransform sourceTransform);
//#---------------------------------
//# geometric operations:
ODTransform SetOffset(in ODPoint point);
ODTransform MoveBy(in ODPoint point);
ODTransform ScaleBy( in ODPoint scale);
ODTransform ScaleDownBy( in ODPoint scale);
ODTransform Invert( );
ODTransform PreCompose(in ODTransform transform);
ODTransform PostCompose(in ODTransform transform);
//#---------------------------------
//# geometry operations with points & shapes:
void TransformPoint(inout ODPoint point);
void InvertPoint(inout ODPoint point);
void TransformShape(in ODShape shape);
void InvertShape(in ODShape shape);
//#---------------------------------
//# input / output:
void WriteTo(in ODStorageUnit storageUnit);
void ReadFrom(in ODStorageUnit storageUnit);
#ifdef __SOMIDL__
implementation
{
override:
somUninit,
Purge,
Release;
releaseorder:
GetType,
GetOffset,
GetPreScaleOffset,
GetScale,
GetMatrix,
HasMatrix,
IsSameAs,
Reset,
SetMatrix,
Copy,
CopyFrom,
SetOffset,
MoveBy,
ScaleBy,
ScaleDownBy,
Invert,
PreCompose,
PostCompose,
TransformPoint,
InvertPoint,
TransformShape,
InvertShape,
WriteTo,
ReadFrom,
NewTransform,
reserved1,
reserved2;
majorversion = 1; minorversion = 0;
functionprefix = ODBaseTransform;
};
#endif
};
#endif //# _TRNSFRMB_