mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-10 18:51:21 +03:00
0024198: Remove unused stuff in WNT package
Removed several obsolete files in WNT package (win32 and Windows 95 specific)
This commit is contained in:
parent
198753532d
commit
e4b1d802ad
@ -1,20 +0,0 @@
|
|||||||
// Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
||||||
//
|
|
||||||
// The content of this file is subject to the Open CASCADE Technology Public
|
|
||||||
// License Version 6.5 (the "License"). You may not use the content of this file
|
|
||||||
// except in compliance with the License. Please obtain a copy of the License
|
|
||||||
// at http://www.opencascade.org and read it completely before using this file.
|
|
||||||
//
|
|
||||||
// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
||||||
// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
||||||
//
|
|
||||||
// The Original Code and all software distributed under the License is
|
|
||||||
// distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
||||||
// Initial Developer hereby disclaims all such warranties, including without
|
|
||||||
// limitation, any warranties of merchantability, fitness for a particular
|
|
||||||
// purpose or non-infringement. Please see the License for the specific terms
|
|
||||||
// and conditions governing the rights and limitations under the License.
|
|
||||||
|
|
||||||
#define pi 3.1415926535897932385
|
|
||||||
#define DEG(x) float(((x)*pi)/180.)
|
|
||||||
|
|
1668
src/WNT/EHDC.cxx
1668
src/WNT/EHDC.cxx
File diff suppressed because it is too large
Load Diff
217
src/WNT/EHDC.hxx
217
src/WNT/EHDC.hxx
@ -1,217 +0,0 @@
|
|||||||
// Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
||||||
//
|
|
||||||
// The content of this file is subject to the Open CASCADE Technology Public
|
|
||||||
// License Version 6.5 (the "License"). You may not use the content of this file
|
|
||||||
// except in compliance with the License. Please obtain a copy of the License
|
|
||||||
// at http://www.opencascade.org and read it completely before using this file.
|
|
||||||
//
|
|
||||||
// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
||||||
// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
||||||
//
|
|
||||||
// The Original Code and all software distributed under the License is
|
|
||||||
// distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
||||||
// Initial Developer hereby disclaims all such warranties, including without
|
|
||||||
// limitation, any warranties of merchantability, fitness for a particular
|
|
||||||
// purpose or non-infringement. Please see the License for the specific terms
|
|
||||||
// and conditions governing the rights and limitations under the License.
|
|
||||||
|
|
||||||
/*****************************************************************************/
|
|
||||||
/* */
|
|
||||||
/* EXTENDED HDC */
|
|
||||||
/* */
|
|
||||||
/* Abstract: extends existing WIN32's HDC ( styled lines drawing etc. ) */
|
|
||||||
/* Note : use it only in Windows 95 since Windows NT provides these */
|
|
||||||
/* functionalities */
|
|
||||||
/* */
|
|
||||||
/* History : JAN-1998 EUG ( creation ) */
|
|
||||||
/* */
|
|
||||||
/*****************************************************************************/
|
|
||||||
#ifndef __EHDC_HXX
|
|
||||||
# define __EHDC_HXX
|
|
||||||
|
|
||||||
# ifndef __cplusplus
|
|
||||||
# error "C++ compiler required for EHDC stuff"
|
|
||||||
# endif /* __cplusplus */
|
|
||||||
|
|
||||||
# ifndef _WINDOWS_
|
|
||||||
# ifndef STRICT
|
|
||||||
# define STRICT
|
|
||||||
# endif /* STRICT */
|
|
||||||
# ifndef WIN32_LEAN_AND_MEAN
|
|
||||||
# define WIN32_LEAN_AND_MEAN
|
|
||||||
# include <windows.h>
|
|
||||||
# include <windowsx.h>
|
|
||||||
# endif /* WIN32_LEAN_AND_MEAN */
|
|
||||||
# endif /* _WINDOWS_ */
|
|
||||||
|
|
||||||
# define ARCF_PIE 0x00000001
|
|
||||||
# define ARCF_CHORD 0x00000002
|
|
||||||
|
|
||||||
# define POLYF_NOEDGE 0x00000001
|
|
||||||
# define POLYF_NOCLOSEDGE 0x00000002
|
|
||||||
|
|
||||||
# define EHDCF_XFORM 0x00000001
|
|
||||||
# define EHDCF_EPEN 0x00000002
|
|
||||||
# define EHDCF_JOIN 0x00000004
|
|
||||||
# define EHDCF_PDRAW 0x00000008
|
|
||||||
# define EHDCF_CJOIN 0x00000010
|
|
||||||
# define EHDCF_NJOIN 0x00000020
|
|
||||||
# define EHDCF_JBEVL 0x00000040
|
|
||||||
# define EHDCF_SFREE 0x80000000
|
|
||||||
# define EHDCF_TPATH 0x40000000
|
|
||||||
# define EHDCF_TREG 0x20000000
|
|
||||||
# define EHDCF_PPUSH 0x10000000
|
|
||||||
# define EHDCF_BPUSH 0x08000000
|
|
||||||
# define EHDCF_DDAF 0x04000000
|
|
||||||
|
|
||||||
class EHDC { /* defined extended HDC */
|
|
||||||
|
|
||||||
public:
|
|
||||||
|
|
||||||
EHDC ( HDC, PSIZE ); /* constructor */
|
|
||||||
EHDC (); /* yet another one */
|
|
||||||
~EHDC (); /* destructor */
|
|
||||||
|
|
||||||
/*****************/
|
|
||||||
/* DC MANAGEMENT */
|
|
||||||
/*****************/
|
|
||||||
|
|
||||||
void SetDC ( HDC, PSIZE );
|
|
||||||
/* sets WIN32's DC for graphics operations */
|
|
||||||
HDC Hdc ( void ) { return myHDC; }
|
|
||||||
/* returns WIN32's HDC */
|
|
||||||
HBRUSH SelectEPen ( DWORD, CONST LOGBRUSH*, DWORD, DWORD*, BOOL = FALSE );
|
|
||||||
/* selects pen for line drawing */
|
|
||||||
void SelectEPen ( DWORD, CONST LOGBRUSH* );
|
|
||||||
/* selects pen for line drawing ( old one is saved ) */
|
|
||||||
HPEN SelectEPen ( HPEN );
|
|
||||||
/* selects pen for line drawing */
|
|
||||||
void SelectEBrush ( PLOGBRUSH, PLOGBRUSH = NULL );
|
|
||||||
/* selects brush for polygon filling */
|
|
||||||
int SetPolyFillMode ( int aMode ) { return ::SetPolyFillMode ( myHDC, aMode ); }
|
|
||||||
/* sets polygon fill mode */
|
|
||||||
|
|
||||||
BOOL Miter ( void ) { return !( myFlags & EHDCF_JBEVL ); }
|
|
||||||
/* checks for line join style */
|
|
||||||
void SetMiter ( BOOL );
|
|
||||||
/* sets line join style */
|
|
||||||
|
|
||||||
void Extent ( PSIZE psz ) { *psz = mySize; }
|
|
||||||
/* Retrieves viewport extents */
|
|
||||||
|
|
||||||
/*******************/
|
|
||||||
/* DRAWING METHODS */
|
|
||||||
/*******************/
|
|
||||||
|
|
||||||
void MoveToEx ( int, int, LPPOINT );
|
|
||||||
/* moves current point and begins a new path */
|
|
||||||
BOOL LineTo ( int, int );
|
|
||||||
/* draws a segment from current position and */
|
|
||||||
/* updates this position */
|
|
||||||
void ClosePath ( void );
|
|
||||||
/* closes current path */
|
|
||||||
void Polyline ( CONST POINT*, int, BOOL = FALSE );
|
|
||||||
/* draws a polyline ( path and current position */
|
|
||||||
/* are unchanged ) */
|
|
||||||
void Polygon ( CONST POINT*, int, DWORD = 0 );
|
|
||||||
/* draws a filled polygon ( path and current position */
|
|
||||||
/* are unchanged ) */
|
|
||||||
/* Note: specify n - 1 points in parameters */
|
|
||||||
void Arc ( int, int, int, int, double = 0.0, double = 6.283185, DWORD = 0 );
|
|
||||||
/* Draws an arc ( path and current position */
|
|
||||||
/* are unchanged ) */
|
|
||||||
void Polyarc ( int, int, int, int, double = 0.0, double = 6.283185, BOOL = TRUE );
|
|
||||||
/* draws a polyarc ( path and current position */
|
|
||||||
/* are unchanged ) */
|
|
||||||
void SetPixel ( int, int, COLORREF );
|
|
||||||
/* draws single pixel */
|
|
||||||
|
|
||||||
/****************/
|
|
||||||
/* TEXT METHODS */
|
|
||||||
/****************/
|
|
||||||
|
|
||||||
void SetTextColor ( COLORREF );
|
|
||||||
void SetTextAttrib ( COLORREF, HFONT, double = 0.0, double = 1.0, double = 1.0 );
|
|
||||||
void ETextOut ( int, int, char*, double = 0.0, BOOL = FALSE );
|
|
||||||
void ETextOut ( int, int, wchar_t*, double = 0.0, BOOL = FALSE );
|
|
||||||
void PolyTextOut (
|
|
||||||
int, int, char*, double = 0.0, double = 0.1, BOOL = FALSE, BOOL = FALSE,
|
|
||||||
BOOL = FALSE
|
|
||||||
);
|
|
||||||
void PolyTextOut (
|
|
||||||
int, int, wchar_t*, double = 0.0, double = 0.1, BOOL = FALSE, BOOL = FALSE,
|
|
||||||
BOOL = FALSE
|
|
||||||
);
|
|
||||||
|
|
||||||
/**************************/
|
|
||||||
/* TRANSFORMATION METHODS */
|
|
||||||
/**************************/
|
|
||||||
|
|
||||||
void SetWorldTransform ( XFORM* );
|
|
||||||
void ModifyWorldTransform ( XFORM*, DWORD );
|
|
||||||
void GetWorldTransform ( XFORM* xf ) { *xf = myXform; }
|
|
||||||
void Transform ( LPPOINT, int );
|
|
||||||
|
|
||||||
/**************************/
|
|
||||||
/* UPDATED REGION METHODS */
|
|
||||||
/**************************/
|
|
||||||
|
|
||||||
void ResetURect ( void );
|
|
||||||
void SetURect ( LPRECT lpRect ) { myURect = *lpRect; }
|
|
||||||
void GetURect ( LPRECT );
|
|
||||||
void Register ( LPPOINT, int );
|
|
||||||
|
|
||||||
protected:
|
|
||||||
|
|
||||||
void _Init ( void );
|
|
||||||
void _DrawTo ( PPOINT );
|
|
||||||
void _Join ( void );
|
|
||||||
BOOL _DrawToEx ( PPOINT );
|
|
||||||
void _LineTo ( PPOINT );
|
|
||||||
void _ETextOut ( int, int, void*, double = 0.0, BOOL = FALSE, BOOL = FALSE );
|
|
||||||
void _PolyTextOut (
|
|
||||||
int, int, void*, double = 0.0, double = 0.1,
|
|
||||||
BOOL = FALSE, BOOL = FALSE, BOOL = FALSE, BOOL = FALSE
|
|
||||||
);
|
|
||||||
|
|
||||||
HDC myHDC;
|
|
||||||
POINT myStart;
|
|
||||||
POINT myClose;
|
|
||||||
POINT myA, myB;
|
|
||||||
POINT myJoin;
|
|
||||||
POINT myCJoin;
|
|
||||||
XFORM myXform;
|
|
||||||
DWORD myFlags;
|
|
||||||
PPOINT myTextPath;
|
|
||||||
PBYTE myTextType;
|
|
||||||
DWORD myTextNP;
|
|
||||||
DWORD myTextBS;
|
|
||||||
HPEN myTextPen;
|
|
||||||
HBRUSH myTextBrush;
|
|
||||||
HFONT myTextFont;
|
|
||||||
double myTextSlant;
|
|
||||||
double myTextHScale;
|
|
||||||
double myTextVScale;
|
|
||||||
DWORD myPWidth, myPWPush;
|
|
||||||
HPEN myPPen, myPPenPush;
|
|
||||||
HBRUSH myPBrush, myPBrushPush;
|
|
||||||
BOOL myfXpenPush;
|
|
||||||
PDWORD myPStyle;
|
|
||||||
DWORD myPNS;
|
|
||||||
DWORD myPBS;
|
|
||||||
DWORD myPIndex;
|
|
||||||
DWORD myPRlen;
|
|
||||||
RECT myURect;
|
|
||||||
HBRUSH myBrush, myBrushPush;
|
|
||||||
HBRUSH myOBrush;
|
|
||||||
SIZE mySize;
|
|
||||||
PPOINT myDDA1;
|
|
||||||
PPOINT myDDA2;
|
|
||||||
DWORD myNDDA;
|
|
||||||
DWORD myIDDA;
|
|
||||||
|
|
||||||
friend VOID CALLBACK ___auxDDAF ( int, int, LPARAM );
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
#endif /* __EHDC_HXX */
|
|
@ -2,26 +2,9 @@ WNT.edl
|
|||||||
WNT_WOKSteps.edl
|
WNT_WOKSteps.edl
|
||||||
WNT_CMPLRS.edl
|
WNT_CMPLRS.edl
|
||||||
WNT_WOKUMake.edl
|
WNT_WOKUMake.edl
|
||||||
Degrees.hxx
|
|
||||||
EHDC.hxx
|
|
||||||
W32_Allocator.hxx
|
|
||||||
W95_Allocator.hxx
|
|
||||||
WNT_Allocator.hxx
|
|
||||||
WNT_ColorRef.hxx
|
|
||||||
WNT_Dword.hxx
|
WNT_Dword.hxx
|
||||||
WNT_LogFont.hxx
|
|
||||||
WNT_Long.hxx
|
|
||||||
WNT_Uint.hxx
|
WNT_Uint.hxx
|
||||||
WNT.h
|
|
||||||
WNT_Bitmap.h
|
|
||||||
WNT_WindowData.hxx
|
WNT_WindowData.hxx
|
||||||
EHDC.cxx
|
|
||||||
W32_Allocator.cxx
|
|
||||||
W95_Allocator.cxx
|
|
||||||
WNT_Allocator.cxx
|
|
||||||
WNT_ColorRef.cxx
|
|
||||||
WNT_Dword.cxx
|
WNT_Dword.cxx
|
||||||
WNT_LogFont.cxx
|
|
||||||
WNT_Long.cxx
|
|
||||||
WNT_Uint.cxx
|
WNT_Uint.cxx
|
||||||
WNT_WindowData.cxx
|
WNT_WindowData.cxx
|
||||||
|
@ -1,292 +0,0 @@
|
|||||||
// Created by: PLOTNIKOV Eugeny & CHABROVSKY Dmitry
|
|
||||||
// Copyright (c) 1998-1999 Matra Datavision
|
|
||||||
// Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
||||||
//
|
|
||||||
// The content of this file is subject to the Open CASCADE Technology Public
|
|
||||||
// License Version 6.5 (the "License"). You may not use the content of this file
|
|
||||||
// except in compliance with the License. Please obtain a copy of the License
|
|
||||||
// at http://www.opencascade.org and read it completely before using this file.
|
|
||||||
//
|
|
||||||
// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
||||||
// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
||||||
//
|
|
||||||
// The Original Code and all software distributed under the License is
|
|
||||||
// distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
||||||
// Initial Developer hereby disclaims all such warranties, including without
|
|
||||||
// limitation, any warranties of merchantability, fitness for a particular
|
|
||||||
// purpose or non-infringement. Please see the License for the specific terms
|
|
||||||
// and conditions governing the rights and limitations under the License.
|
|
||||||
|
|
||||||
|
|
||||||
#include <W32_Allocator.hxx>
|
|
||||||
#include <W95_Allocator.hxx>
|
|
||||||
#include <WNT_Allocator.hxx>
|
|
||||||
|
|
||||||
#include <windowsx.h>
|
|
||||||
|
|
||||||
#pragma comment( lib, "gdi32.lib" )
|
|
||||||
#pragma comment( lib, "user32.lib" )
|
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// I N I T I A L I Z A T I O N //
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
#define DEF_BLOCK_SIZE ( 2 * s_dwPageSize )
|
|
||||||
|
|
||||||
static DWORD s_dwPageSize;
|
|
||||||
|
|
||||||
PW32_Allocator ( *W32_GetAllocator ) ( int, PW32_Allocator );
|
|
||||||
double W32_TextFactor;
|
|
||||||
|
|
||||||
static PW32_Allocator W95_GetAllocator ( int anID, PW32_Allocator head ) {
|
|
||||||
|
|
||||||
return new W95_Allocator ( anID, head );
|
|
||||||
|
|
||||||
} // end W95_GetAllocator
|
|
||||||
|
|
||||||
static PW32_Allocator WNT_GetAllocator ( int anID, PW32_Allocator head ) {
|
|
||||||
|
|
||||||
return new WNT_Allocator ( anID, head );
|
|
||||||
|
|
||||||
} // end WNT_GetAllocator
|
|
||||||
|
|
||||||
class _initAllocator {
|
|
||||||
|
|
||||||
public:
|
|
||||||
|
|
||||||
_initAllocator ();
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
_initAllocator :: _initAllocator () {
|
|
||||||
|
|
||||||
OSVERSIONINFO os;
|
|
||||||
SYSTEM_INFO si;
|
|
||||||
|
|
||||||
GetSystemInfo ( &si );
|
|
||||||
|
|
||||||
s_dwPageSize = si.dwPageSize;
|
|
||||||
|
|
||||||
os.dwOSVersionInfoSize = sizeof ( OSVERSIONINFO );
|
|
||||||
GetVersionEx ( &os );
|
|
||||||
|
|
||||||
if ( os.dwPlatformId == VER_PLATFORM_WIN32_WINDOWS ) {
|
|
||||||
doWin95:
|
|
||||||
W32_GetAllocator = &W95_GetAllocator;
|
|
||||||
W32_TextFactor = 5.0;
|
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
GetEnvironmentVariable ( TEXT( "CSF_WNT_FORCE_WIN95" ), NULL, 0 );
|
|
||||||
|
|
||||||
if ( GetLastError () != ERROR_ENVVAR_NOT_FOUND ) goto doWin95;
|
|
||||||
|
|
||||||
W32_GetAllocator = &WNT_GetAllocator;
|
|
||||||
W32_TextFactor = 1.0;
|
|
||||||
|
|
||||||
} // end else
|
|
||||||
|
|
||||||
} // end constructor
|
|
||||||
|
|
||||||
static _initAllocator s_InitAllocator;
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
// W 3 2 _ A L L O C A T O R S T U F F //
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
|
||||||
W32_Allocator :: W32_Allocator ( int anID, PW32_Allocator head ) :
|
|
||||||
myID ( anID ), myFlags ( W32F_EMPTY ), myEnd ( NULL ),
|
|
||||||
myNext ( NULL ) {
|
|
||||||
|
|
||||||
LOGFONT lf;
|
|
||||||
HDC hdc = GetDC ( NULL );
|
|
||||||
|
|
||||||
GetObject ( hdc, sizeof ( LOGFONT ), &lf );
|
|
||||||
|
|
||||||
ReleaseDC ( NULL, hdc );
|
|
||||||
|
|
||||||
lf.lfOutPrecision |= OUT_TT_ONLY_PRECIS;
|
|
||||||
|
|
||||||
if ( head != NULL ) {
|
|
||||||
|
|
||||||
while ( head -> myNext != NULL ) head = head -> myNext;
|
|
||||||
|
|
||||||
head -> myNext = this;
|
|
||||||
|
|
||||||
} // end if
|
|
||||||
|
|
||||||
myStart = MakeBlock ( DEF_BLOCK_SIZE );
|
|
||||||
|
|
||||||
myTextFont = CreateFontIndirect ( &lf );
|
|
||||||
myTextSlant = 0.0;
|
|
||||||
myTextHScale =
|
|
||||||
myTextVScale = 1.0 / W32_TextFactor;
|
|
||||||
|
|
||||||
myScaleX = myScaleY = 1.0;
|
|
||||||
myAngle = 0.0;
|
|
||||||
myPivot.x = myMove.x =
|
|
||||||
myPivot.y = myMove.y = 0;
|
|
||||||
|
|
||||||
myFlags = ( W32F_EMPTY | W32F_POUTL | W32F_DFONT );
|
|
||||||
myPrimitive = zzNone;
|
|
||||||
|
|
||||||
myPointColor =
|
|
||||||
myMarkerPointColor = RGB( 255, 255, 255 );
|
|
||||||
|
|
||||||
} // end constructor
|
|
||||||
|
|
||||||
W32_Allocator :: ~W32_Allocator () {
|
|
||||||
|
|
||||||
KillBlocks ( myStart );
|
|
||||||
|
|
||||||
if ( myFlags & W32F_DFONT ) DeleteFont( myTextFont );
|
|
||||||
|
|
||||||
} // end destructor
|
|
||||||
|
|
||||||
PW32_Block W32_Allocator :: MakeBlock ( int aBlockSize ) {
|
|
||||||
|
|
||||||
PW32_Block retVal;
|
|
||||||
|
|
||||||
aBlockSize = ( s_dwPageSize / aBlockSize + 1 ) * s_dwPageSize;
|
|
||||||
|
|
||||||
retVal = ( PW32_Block )VirtualAlloc (
|
|
||||||
NULL, aBlockSize, MEM_RESERVE | MEM_COMMIT,
|
|
||||||
PAGE_READWRITE
|
|
||||||
);
|
|
||||||
|
|
||||||
if ( retVal == NULL ) RaiseException ( STATUS_NO_MEMORY, 0, 0, NULL );
|
|
||||||
|
|
||||||
if ( myEnd != NULL ) myEnd -> next = retVal;
|
|
||||||
|
|
||||||
myEnd = retVal;
|
|
||||||
|
|
||||||
retVal -> next = NULL;
|
|
||||||
retVal -> size = aBlockSize / sizeof ( int ) - sizeof ( W32_Block ) / sizeof ( int );
|
|
||||||
retVal -> free = 0;
|
|
||||||
|
|
||||||
return retVal;
|
|
||||||
|
|
||||||
} // end W32_Allocator :: MakeBlock
|
|
||||||
|
|
||||||
PW32_Block W32_Allocator :: KillBlock ( PW32_Block aVictim ) {
|
|
||||||
|
|
||||||
PW32_Block next = aVictim -> next;
|
|
||||||
|
|
||||||
ReleaseBlock ( aVictim );
|
|
||||||
|
|
||||||
VirtualFree ( ( LPVOID )aVictim, 0, MEM_RELEASE );
|
|
||||||
|
|
||||||
return next;
|
|
||||||
|
|
||||||
} // end W32_Allocator :: KillBlock
|
|
||||||
|
|
||||||
void W32_Allocator :: KillBlocks ( PW32_Block aBegin ) {
|
|
||||||
|
|
||||||
while ( ( aBegin = KillBlock ( aBegin ) ) != NULL );
|
|
||||||
|
|
||||||
} // end W32_Allocator :: KillBlocks
|
|
||||||
|
|
||||||
void W32_Allocator :: ClearBlocks ( void ) {
|
|
||||||
|
|
||||||
if ( myStart -> next != NULL ) KillBlocks ( myStart -> next );
|
|
||||||
|
|
||||||
ReleaseBlock ( myStart );
|
|
||||||
|
|
||||||
myStart -> next = NULL;
|
|
||||||
myStart -> free = 0;
|
|
||||||
myEnd = myStart;
|
|
||||||
|
|
||||||
myFlags &= ~W32F_DRAWN;
|
|
||||||
myFlags |= W32F_EMPTY;
|
|
||||||
|
|
||||||
} // end W32_Allocator :: ClearBlocks
|
|
||||||
|
|
||||||
void W32_Allocator :: ReleaseBlock ( PW32_Block pb ) {
|
|
||||||
|
|
||||||
for ( int i = 0; i < pb -> free; i += pb -> data[ i ] )
|
|
||||||
|
|
||||||
if ( pb -> data[ i + 1 ] != __W32_DATA ) {
|
|
||||||
|
|
||||||
W32_Note* pNote = ( W32_Note* )&( pb -> data[ i + 1 ] );
|
|
||||||
pNote -> ~W32_Note ();
|
|
||||||
|
|
||||||
} // end if
|
|
||||||
|
|
||||||
} // end W32_Allocator :: ReleaseBlock
|
|
||||||
|
|
||||||
BOOL W32_Allocator :: FreeSpace ( PW32_Block aBlock, int aQuerySize ) {
|
|
||||||
|
|
||||||
return ( aBlock -> size >= ( aBlock -> free + aQuerySize + 1 ) );
|
|
||||||
|
|
||||||
} // end W32_Allocator :: FreeSpace
|
|
||||||
|
|
||||||
PW32_Block W32_Allocator :: ReserveData ( unsigned int iSize ) {
|
|
||||||
|
|
||||||
if ( !FreeSpace ( myEnd, iSize ) ) return NULL;
|
|
||||||
|
|
||||||
return myEnd;
|
|
||||||
|
|
||||||
} // end W32_Allocator :: ReserveData
|
|
||||||
|
|
||||||
PW32_Block W32_Allocator :: ReserveFind ( unsigned int iSize ) {
|
|
||||||
|
|
||||||
PW32_Block aBlock = myStart;
|
|
||||||
for ( ; aBlock != NULL; aBlock = aBlock -> next )
|
|
||||||
|
|
||||||
if ( FreeSpace ( aBlock, iSize ) ) break;
|
|
||||||
|
|
||||||
return aBlock;
|
|
||||||
|
|
||||||
} // end W32_Allocator :: ReserveFind
|
|
||||||
|
|
||||||
void* W32_Allocator :: ReserveBlock ( PW32_Block aBlock, int aQuerySize, BOOL fData ) {
|
|
||||||
|
|
||||||
void* retVal;
|
|
||||||
|
|
||||||
++aQuerySize;
|
|
||||||
|
|
||||||
retVal = fData ? &( aBlock -> data[ aBlock -> free + 2 ] ) :
|
|
||||||
&( aBlock -> data[ aBlock -> free + 1 ] );
|
|
||||||
|
|
||||||
aBlock -> data[ aBlock -> free ] = aQuerySize;
|
|
||||||
aBlock -> data[ aBlock -> free + 1 ] = __W32_DATA;
|
|
||||||
aBlock -> free += aQuerySize;
|
|
||||||
|
|
||||||
return retVal;
|
|
||||||
|
|
||||||
} // end W32_Allocator :: ReserveBlock
|
|
||||||
|
|
||||||
void* W32_Allocator :: NewClass ( unsigned int nBytes ) {
|
|
||||||
|
|
||||||
PW32_Block aBlock = myEnd;
|
|
||||||
|
|
||||||
nBytes = ( ( nBytes + 3 ) / sizeof ( int ) );
|
|
||||||
|
|
||||||
if ( !FreeSpace ( aBlock, nBytes ) ) aBlock = MakeBlock ( nBytes );
|
|
||||||
|
|
||||||
myFlags &= ~W32F_EMPTY;
|
|
||||||
|
|
||||||
return ReserveBlock ( aBlock, nBytes );
|
|
||||||
|
|
||||||
} // end W32_Allocator :: NewClass
|
|
||||||
|
|
||||||
void* W32_Allocator :: NewData ( unsigned int nBytes, BOOL fFind ) {
|
|
||||||
|
|
||||||
PW32_Block aBlock;
|
|
||||||
|
|
||||||
nBytes = ( ( nBytes + 3 ) / sizeof ( int ) ) + 1;
|
|
||||||
|
|
||||||
aBlock = fFind ? ReserveFind ( nBytes ) : ReserveData ( nBytes );
|
|
||||||
|
|
||||||
if ( aBlock == NULL ) aBlock = MakeBlock ( nBytes );
|
|
||||||
|
|
||||||
return ReserveBlock ( myEnd, nBytes, TRUE );
|
|
||||||
|
|
||||||
} // end W32_Allocator :: NewData
|
|
||||||
|
|
||||||
void* W32_Note :: operator new ( size_t cSize, PW32_Allocator anAllocator ) {
|
|
||||||
|
|
||||||
W32_Note* note = ( W32_Note* )anAllocator -> NewClass ( cSize );
|
|
||||||
|
|
||||||
note -> myAllocator = anAllocator;
|
|
||||||
|
|
||||||
return ( void* )note;
|
|
||||||
|
|
||||||
} // end W32_Note :: operator new
|
|
@ -1,788 +0,0 @@
|
|||||||
// Created by: PLOTNIKOV Eugeny & CHABROVSKY Dmitry
|
|
||||||
// Copyright (c) 1998-1999 Matra Datavision
|
|
||||||
// Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
||||||
//
|
|
||||||
// The content of this file is subject to the Open CASCADE Technology Public
|
|
||||||
// License Version 6.5 (the "License"). You may not use the content of this file
|
|
||||||
// except in compliance with the License. Please obtain a copy of the License
|
|
||||||
// at http://www.opencascade.org and read it completely before using this file.
|
|
||||||
//
|
|
||||||
// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
||||||
// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
||||||
//
|
|
||||||
// The Original Code and all software distributed under the License is
|
|
||||||
// distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
||||||
// Initial Developer hereby disclaims all such warranties, including without
|
|
||||||
// limitation, any warranties of merchantability, fitness for a particular
|
|
||||||
// purpose or non-infringement. Please see the License for the specific terms
|
|
||||||
// and conditions governing the rights and limitations under the License.
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef __W32_ALLOCATOR_HXX
|
|
||||||
# define __W32_ALLOCATOR_HXX
|
|
||||||
|
|
||||||
# ifndef _WINDOWS_
|
|
||||||
# ifndef STRICT
|
|
||||||
# define STRICT
|
|
||||||
# endif /* STRICT */
|
|
||||||
# ifndef WIN32_LEAN_AND_MEAN
|
|
||||||
# define WIN32_LEAN_AND_MEAN
|
|
||||||
# ifdef NOGDI
|
|
||||||
# undef NOGDI /* we need GDI definitions here... */
|
|
||||||
# endif
|
|
||||||
# include <windows.h>
|
|
||||||
# endif /* WIN32_LEAN_AND_MEAN */
|
|
||||||
# endif /* _WINDOWS */
|
|
||||||
|
|
||||||
# define __W32_DATA -1
|
|
||||||
|
|
||||||
# define EPS 0.005F
|
|
||||||
|
|
||||||
# define W32F_TOUTLINE 0x00000001 // text flags
|
|
||||||
# define W32F_TUNICODE 0x00000002
|
|
||||||
# define W32F_TINDEX 0x00000004
|
|
||||||
# define W32F_TFREE 0x00000008
|
|
||||||
# define W32F_TFULINED 0x00000010
|
|
||||||
|
|
||||||
# define W32F_EMPTY 0x00000001
|
|
||||||
# define W32F_DRAWN 0x00000002
|
|
||||||
# define W32F_XFORM 0x00000004
|
|
||||||
# define W32F_MONO 0x00000008
|
|
||||||
# define W32F_DBUFF 0x00000010
|
|
||||||
# define W32F_START 0x00000020
|
|
||||||
# define W32F_WIN95 0x00000040
|
|
||||||
# define W32F_DVDRV 0x00000080
|
|
||||||
# define W32F_TULIN 0x00000100
|
|
||||||
# define W32F_MINIT 0x00000200
|
|
||||||
# define W32F_NOFIL 0x00000400
|
|
||||||
# define W32F_MFILL 0x80000000
|
|
||||||
# define W32F_MOUTL 0x40000000
|
|
||||||
# define W32F_POUTL 0x20000000
|
|
||||||
# define W32F_DFONT 0x10000000
|
|
||||||
|
|
||||||
#define OCC5415 /* avoid warning C4291 in MS VC++ 6.0 */
|
|
||||||
|
|
||||||
typedef enum {
|
|
||||||
|
|
||||||
zzNone, zzPoint, zzLine, zzPolyRect, zzRect, zzPolyEllipse,
|
|
||||||
zzRoundRect, zzPolyRoundRect, zzArc, zzChord, zzPolyChord, zzSector,
|
|
||||||
zzPolySector, zzPolygon, zzPolyline, zzLinkedPolyline, zzBezier, zzText,
|
|
||||||
zzPolyText, zzMarker
|
|
||||||
|
|
||||||
} W32_Primitive;
|
|
||||||
|
|
||||||
struct W32_Allocator;
|
|
||||||
typedef W32_Allocator* PW32_Allocator;
|
|
||||||
|
|
||||||
typedef struct _W32_Block { // memory block
|
|
||||||
|
|
||||||
_W32_Block* next;
|
|
||||||
int size;
|
|
||||||
int free;
|
|
||||||
int data[ 1 ];
|
|
||||||
|
|
||||||
} W32_Block, *PW32_Block;
|
|
||||||
|
|
||||||
typedef struct _W32_bitmap {
|
|
||||||
|
|
||||||
int nUsed;
|
|
||||||
HBITMAP hBmp;
|
|
||||||
|
|
||||||
} W32_Bitmap, *PW32_Bitmap;
|
|
||||||
|
|
||||||
typedef struct _W32_FCallParam {
|
|
||||||
|
|
||||||
void* pAllocator;
|
|
||||||
void* pDriver;
|
|
||||||
|
|
||||||
} W32_FCALLPARAM, *PW32_FCALLPARAM;
|
|
||||||
|
|
||||||
typedef void ( WINAPI *GetPointFunc ) ( int, int, int, LPPOINT, int*, void* );
|
|
||||||
|
|
||||||
typedef void ( __cdecl *W32_FCall ) ( PW32_FCALLPARAM );
|
|
||||||
|
|
||||||
struct W32_Note { // base class to represent graphic object
|
|
||||||
|
|
||||||
W32_Note () {}
|
|
||||||
virtual ~W32_Note () {}
|
|
||||||
|
|
||||||
void* operator new ( size_t, W32_Allocator* );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE ) = 0;
|
|
||||||
virtual void Xform ( void ) {}
|
|
||||||
virtual void Release ( void ) {}
|
|
||||||
|
|
||||||
PW32_Allocator myAllocator;
|
|
||||||
|
|
||||||
#ifdef OCC5415
|
|
||||||
void operator delete (void*, W32_Allocator*) {}
|
|
||||||
private: // to protect against possible accidental usage
|
|
||||||
void operator delete (void*) {}
|
|
||||||
#endif
|
|
||||||
};
|
|
||||||
///
|
|
||||||
///////////////////////// POINTS ////////////////////////////
|
|
||||||
///
|
|
||||||
struct W32_PointNote : public W32_Note {
|
|
||||||
|
|
||||||
W32_PointNote ( int, int );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
int myX, myY;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_PointNote : public W32_PointNote {
|
|
||||||
|
|
||||||
WNT_PointNote ( int, int );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
virtual void Xform ( void );
|
|
||||||
|
|
||||||
int myTX, myTY;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct W32_MarkerPointNote : public W32_PointNote {
|
|
||||||
|
|
||||||
W32_MarkerPointNote ( int, int );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_MarkerPointNote : public WNT_PointNote {
|
|
||||||
|
|
||||||
WNT_MarkerPointNote ( int, int );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
};
|
|
||||||
///
|
|
||||||
///////////////////////// LINES //////////////////////////////
|
|
||||||
///
|
|
||||||
struct W32_LineNote : public W32_PointNote {
|
|
||||||
|
|
||||||
W32_LineNote ( int, int, int, int );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
int myX2, myY2;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_LineNote : public WNT_PointNote {
|
|
||||||
|
|
||||||
WNT_LineNote ( int, int, int, int );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
virtual void Xform ( void );
|
|
||||||
|
|
||||||
int myX2, myY2, myTX2, myTY2;
|
|
||||||
|
|
||||||
};
|
|
||||||
///
|
|
||||||
////////////////////// POLY ELLIPSES /////////////////////////
|
|
||||||
///
|
|
||||||
struct W32_PolyEllipseNote : public W32_PointNote {
|
|
||||||
|
|
||||||
W32_PolyEllipseNote ( int, int, int, int );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
int myXr, myYr;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_PolyEllipseNote : public WNT_PointNote {
|
|
||||||
|
|
||||||
WNT_PolyEllipseNote ( int, int, int, int );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
virtual void Xform ( void );
|
|
||||||
|
|
||||||
int myXr, myYr, myTXr, myTYr;
|
|
||||||
|
|
||||||
};
|
|
||||||
///
|
|
||||||
///////////////////////// ELLIPSES ///////////////////////////
|
|
||||||
///
|
|
||||||
struct W32_EllipseNote : public W32_PolyEllipseNote {
|
|
||||||
|
|
||||||
W32_EllipseNote ( int, int, int, int );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_EllipseNote : public WNT_PolyEllipseNote {
|
|
||||||
|
|
||||||
WNT_EllipseNote ( int, int, int, int );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
};
|
|
||||||
///
|
|
||||||
/////////////////////////// ARCS /////////////////////////////
|
|
||||||
///
|
|
||||||
struct W32_ArcNote : public W32_PolyEllipseNote {
|
|
||||||
|
|
||||||
W32_ArcNote ( int, int, int, int, double, double );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
double mySa, myOa;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_ArcNote : public WNT_PolyEllipseNote {
|
|
||||||
|
|
||||||
WNT_ArcNote ( int, int, int, int, double, double );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
virtual void Xform ( void );
|
|
||||||
|
|
||||||
int mySX, mySY, myTSX, myTSY,
|
|
||||||
myEX, myEY, myTEX, myTEY,
|
|
||||||
myDirect;
|
|
||||||
};
|
|
||||||
///
|
|
||||||
/////////////////////// POLY CHORDS //////////////////////////
|
|
||||||
///
|
|
||||||
struct W32_PolyChordNote : public W32_ArcNote {
|
|
||||||
|
|
||||||
W32_PolyChordNote ( int, int, int, int, double, double );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_PolyChordNote : public WNT_ArcNote {
|
|
||||||
|
|
||||||
WNT_PolyChordNote ( int, int, int, int, double, double );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
};
|
|
||||||
///
|
|
||||||
////////////////////////// CHORDS ////////////////////////////
|
|
||||||
///
|
|
||||||
struct W32_ChordNote : public W32_PolyChordNote {
|
|
||||||
|
|
||||||
W32_ChordNote ( int, int, int, int, double, double );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_ChordNote : public WNT_PolyChordNote {
|
|
||||||
|
|
||||||
WNT_ChordNote ( int, int, int, int, double, double );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
};
|
|
||||||
///
|
|
||||||
////////////////////// POLY SECTORS //////////////////////////
|
|
||||||
///
|
|
||||||
struct W32_PolySectorNote : public W32_ArcNote {
|
|
||||||
|
|
||||||
W32_PolySectorNote ( int, int, int, int, double, double );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_PolySectorNote : public WNT_ArcNote {
|
|
||||||
|
|
||||||
WNT_PolySectorNote ( int, int, int, int, double, double );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
};
|
|
||||||
///
|
|
||||||
/////////////////////// SECTORS //////////////////////////////
|
|
||||||
///
|
|
||||||
struct W32_SectorNote : public W32_PolySectorNote {
|
|
||||||
|
|
||||||
W32_SectorNote ( int, int, int, int, double, double );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_SectorNote : public WNT_PolySectorNote {
|
|
||||||
|
|
||||||
WNT_SectorNote ( int, int, int, int, double, double );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
};
|
|
||||||
///
|
|
||||||
/////////////////////// MARKERS //////////////////////////////
|
|
||||||
///
|
|
||||||
struct W32_PolyMarkerNote : public W32_Note {
|
|
||||||
|
|
||||||
W32_PolyMarkerNote ( int );
|
|
||||||
|
|
||||||
void Replace ( int, int, int );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE ) {}
|
|
||||||
|
|
||||||
int myMaxPoints, mySetPoints;
|
|
||||||
LPPOINT myPoints;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct W32_PolyMarker1Note : public W32_PolyMarkerNote {
|
|
||||||
|
|
||||||
W32_PolyMarker1Note ( int, GetPointFunc, int, void* );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_PolyMarker1Note : public W32_PolyMarker1Note {
|
|
||||||
|
|
||||||
WNT_PolyMarker1Note ( int, GetPointFunc, int, void* );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct W32_PolyMarker2Note : public W32_PolyMarker1Note {
|
|
||||||
|
|
||||||
W32_PolyMarker2Note ( int, GetPointFunc, int, void* );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_PolyMarker2Note : public WNT_PolyMarker1Note {
|
|
||||||
|
|
||||||
WNT_PolyMarker2Note ( int, GetPointFunc, int, void* );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
};
|
|
||||||
///
|
|
||||||
/////////////////////// POLYGONS /////////////////////////////
|
|
||||||
///
|
|
||||||
struct W32_PolygonNote : public W32_PolyMarkerNote {
|
|
||||||
|
|
||||||
W32_PolygonNote ( int );
|
|
||||||
|
|
||||||
void Add ( int, int );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_PolygonNote : public W32_PolygonNote {
|
|
||||||
|
|
||||||
WNT_PolygonNote ( int );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
virtual void Xform ( void );
|
|
||||||
|
|
||||||
LPPOINT myTPoints;
|
|
||||||
|
|
||||||
};
|
|
||||||
///
|
|
||||||
/////////////////////// POLYLINES ////////////////////////////
|
|
||||||
///
|
|
||||||
struct W32_PolylineNote : public W32_PolygonNote {
|
|
||||||
|
|
||||||
W32_PolylineNote ( int );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_PolylineNote : public WNT_PolygonNote {
|
|
||||||
|
|
||||||
WNT_PolylineNote ( int );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
};
|
|
||||||
///
|
|
||||||
///////////////////////// IMAGES /////////////////////////////
|
|
||||||
///
|
|
||||||
struct W32_ImageNote : public W32_PointNote {
|
|
||||||
|
|
||||||
W32_ImageNote ( int, int, PW32_Bitmap, double = 1.0 );
|
|
||||||
virtual ~W32_ImageNote ();
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
PW32_Bitmap myBitmap;
|
|
||||||
double myScale;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_ImageNote : public WNT_PointNote {
|
|
||||||
|
|
||||||
WNT_ImageNote ( int, int, PW32_Bitmap, double = 1.0 );
|
|
||||||
virtual ~WNT_ImageNote ();
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
PW32_Bitmap myBitmap;
|
|
||||||
double myScale;
|
|
||||||
|
|
||||||
};
|
|
||||||
///
|
|
||||||
///////////////////////// TEXTS //////////////////////////////
|
|
||||||
///
|
|
||||||
struct W32_TextNote : public W32_PointNote {
|
|
||||||
|
|
||||||
W32_TextNote ( int, int, double, void*, BOOL = FALSE, BOOL = FALSE );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
void* myText;
|
|
||||||
double myAngle;
|
|
||||||
DWORD myFlags;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_TextNote : public WNT_PointNote {
|
|
||||||
|
|
||||||
WNT_TextNote ( int, int, double, void*, BOOL = FALSE, BOOL = FALSE );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
virtual void Xform ( void );
|
|
||||||
void SetAttribs ();
|
|
||||||
void RestoreAttribs ();
|
|
||||||
void PaintText ();
|
|
||||||
void OutlineText ();
|
|
||||||
void FillText ();
|
|
||||||
|
|
||||||
void* myText;
|
|
||||||
double mySlant;
|
|
||||||
DWORD myFlags;
|
|
||||||
int myShift;
|
|
||||||
XFORM RMatrix,
|
|
||||||
IMatrix,
|
|
||||||
SMatrix;
|
|
||||||
|
|
||||||
};
|
|
||||||
///
|
|
||||||
/////////////////////// POLYTEXTS ////////////////////////////
|
|
||||||
///
|
|
||||||
struct W32_PolyTextNote : public W32_TextNote {
|
|
||||||
|
|
||||||
W32_PolyTextNote ( int, int, double, double, void*, BOOL = FALSE, BOOL = FALSE );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
double myMargin;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_PolyTextNote : public WNT_TextNote {
|
|
||||||
|
|
||||||
WNT_PolyTextNote ( int, int, double, double, void*, BOOL = FALSE, BOOL = FALSE );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
double myMargin;
|
|
||||||
|
|
||||||
};
|
|
||||||
///
|
|
||||||
////////////////// BEGIN/END MARKERS /////////////////////////
|
|
||||||
///
|
|
||||||
struct W32_BeginMarkerNote : public W32_PointNote {
|
|
||||||
|
|
||||||
W32_BeginMarkerNote ( int, int, int, int, double );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
int myWidth, myHeight;
|
|
||||||
double myAngle;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_BeginMarkerNote : public WNT_PointNote {
|
|
||||||
|
|
||||||
WNT_BeginMarkerNote ( int, int, int, int, double );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
virtual void Xform ( void );
|
|
||||||
|
|
||||||
int myWidth, myHeight;
|
|
||||||
double myAngle, myPrevAngle;
|
|
||||||
XFORM myMatrix;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct W32_EndMarkerNote : public W32_Note {
|
|
||||||
|
|
||||||
W32_EndMarkerNote ();
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_EndMarkerNote : public W32_Note {
|
|
||||||
|
|
||||||
WNT_EndMarkerNote ();
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
};
|
|
||||||
///
|
|
||||||
//////////////////// A T T R I B U T E S /////////////////////
|
|
||||||
///
|
|
||||||
struct W32_LineAttribNote : public W32_Note {
|
|
||||||
|
|
||||||
W32_LineAttribNote ( DWORD, PLOGBRUSH, DWORD = 0, PDWORD = NULL );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
LOGBRUSH myLogBrush;
|
|
||||||
DWORD myPenWidth;
|
|
||||||
DWORD myStyleCount;
|
|
||||||
PDWORD myStyles;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_LineAttribNote : public W32_Note {
|
|
||||||
|
|
||||||
WNT_LineAttribNote ( DWORD, PLOGBRUSH, DWORD = 0, PDWORD = NULL );
|
|
||||||
virtual ~WNT_LineAttribNote ();
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
HPEN myPen;
|
|
||||||
DWORD myWidth;
|
|
||||||
COLORREF myPointColor;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct W32_PolyAttribNote : public W32_Note {
|
|
||||||
|
|
||||||
W32_PolyAttribNote ( PLOGBRUSH, BOOL, int = ALTERNATE );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
LOGBRUSH myBrush;
|
|
||||||
BOOL myfEdge;
|
|
||||||
int myFillMode;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_PolyAttribNote : public W32_Note {
|
|
||||||
|
|
||||||
WNT_PolyAttribNote ( PLOGBRUSH, BOOL, int = ALTERNATE );
|
|
||||||
virtual ~WNT_PolyAttribNote ();
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
HBRUSH myBrush;
|
|
||||||
BOOL myfEdge;
|
|
||||||
int myFillMode;
|
|
||||||
BOOL myNoFill;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct W32_TextAttribNote : public W32_Note {
|
|
||||||
|
|
||||||
W32_TextAttribNote (
|
|
||||||
HFONT, COLORREF, double = 0.0, double = 1.0, double = 1.0,
|
|
||||||
BOOL = FALSE, BOOL = FALSE, BOOL = FALSE
|
|
||||||
);
|
|
||||||
virtual ~W32_TextAttribNote ();
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
COLORREF myColor;
|
|
||||||
HFONT myFont;
|
|
||||||
DWORD myFlags;
|
|
||||||
double mySlant,
|
|
||||||
myHScale,
|
|
||||||
myVScale;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_TextAttribNote : public W32_Note {
|
|
||||||
|
|
||||||
WNT_TextAttribNote (
|
|
||||||
HFONT, COLORREF, double = 0.0, double = 1.0, double = 1.0,
|
|
||||||
BOOL = FALSE, BOOL = FALSE, BOOL = FALSE
|
|
||||||
);
|
|
||||||
virtual ~WNT_TextAttribNote ();
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
COLORREF myColor;
|
|
||||||
HPEN myPen;
|
|
||||||
HBRUSH myBrush;
|
|
||||||
HFONT myFont;
|
|
||||||
BOOL myfFree;
|
|
||||||
DWORD myFlags;
|
|
||||||
double mySlant,
|
|
||||||
myHScale,
|
|
||||||
myVScale;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct W32_MarkerAttribNote : public W32_Note {
|
|
||||||
|
|
||||||
W32_MarkerAttribNote ( COLORREF, DWORD, BOOL );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
LOGBRUSH myLogBrush;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
struct WNT_MarkerAttribNote : public W32_Note {
|
|
||||||
|
|
||||||
WNT_MarkerAttribNote ( COLORREF, DWORD, BOOL );
|
|
||||||
virtual ~WNT_MarkerAttribNote ();
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
HPEN myPen;
|
|
||||||
COLORREF myMarkerPointColor;
|
|
||||||
BOOL myFill;
|
|
||||||
|
|
||||||
};
|
|
||||||
///
|
|
||||||
//////////////////// F U N C T I O N C A L L ////////////////
|
|
||||||
///
|
|
||||||
struct W32_FCallNote : public W32_Note {
|
|
||||||
|
|
||||||
W32_FCallNote ( W32_FCall, int, PW32_FCALLPARAM );
|
|
||||||
|
|
||||||
virtual void Play ( BOOL = TRUE );
|
|
||||||
|
|
||||||
W32_FCall myFunc;
|
|
||||||
PW32_FCALLPARAM myParam;
|
|
||||||
|
|
||||||
};
|
|
||||||
///
|
|
||||||
//////////////////// A L L O C A T O R ///////////////////////
|
|
||||||
///
|
|
||||||
struct W32_Allocator {
|
|
||||||
|
|
||||||
W32_Allocator ( int, PW32_Allocator = NULL );
|
|
||||||
virtual ~W32_Allocator ();
|
|
||||||
|
|
||||||
PW32_Block MakeBlock ( int );
|
|
||||||
// allocates memory block
|
|
||||||
virtual PW32_Block KillBlock ( PW32_Block );
|
|
||||||
// deallocates memory block
|
|
||||||
void KillBlocks ( PW32_Block );
|
|
||||||
// deallocates memory blocks starting from specified one
|
|
||||||
void ClearBlocks ( void );
|
|
||||||
// resets allocator
|
|
||||||
void ReleaseBlock ( PW32_Block );
|
|
||||||
// releases graphics primitives in the specified block
|
|
||||||
BOOL FreeSpace ( PW32_Block, int );
|
|
||||||
// checks for free space in the specified block
|
|
||||||
PW32_Block ReserveData ( unsigned int );
|
|
||||||
// checks for free space in the current block
|
|
||||||
PW32_Block ReserveFind ( unsigned int );
|
|
||||||
// searches for free space
|
|
||||||
void* ReserveBlock ( PW32_Block, int, BOOL = FALSE );
|
|
||||||
// reserves data in the specified block
|
|
||||||
void* NewClass ( unsigned int );
|
|
||||||
// gets space for a new class ( W32_Note )
|
|
||||||
void* NewData ( unsigned int, BOOL = FALSE );
|
|
||||||
// gets space for a new data
|
|
||||||
virtual void Xform ( void ) = 0;
|
|
||||||
// sets world transformation in the device context
|
|
||||||
|
|
||||||
virtual void Play ( HDC, PSIZE ) = 0;
|
|
||||||
// plays notes
|
|
||||||
virtual void URect ( LPRECT ) = 0;
|
|
||||||
// gets updated rectangle
|
|
||||||
|
|
||||||
virtual void Point ( int, int ) = 0;
|
|
||||||
// stores a point
|
|
||||||
virtual void MarkerPoint ( int, int ) = 0;
|
|
||||||
// stores a marker point
|
|
||||||
virtual void Line ( int, int, int, int ) = 0;
|
|
||||||
// stores a line segment
|
|
||||||
virtual void PolyEllipse ( int, int, int, int ) = 0;
|
|
||||||
// stores a polyellipse
|
|
||||||
virtual void Ellipse ( int, int, int, int ) = 0;
|
|
||||||
// stores an ellipse
|
|
||||||
virtual void Arc ( int, int, int, int, double, double ) = 0;
|
|
||||||
// stores an arc
|
|
||||||
virtual void PolyChord ( int, int, int, int, double, double ) = 0;
|
|
||||||
// stores a polychord
|
|
||||||
virtual void Chord ( int, int, int, int, double, double ) = 0;
|
|
||||||
// stores a chord
|
|
||||||
virtual void PolySector ( int, int, int, int, double, double ) = 0;
|
|
||||||
// stores a polysector
|
|
||||||
virtual void Sector ( int, int, int, int, double, double ) = 0;
|
|
||||||
// stores a sector
|
|
||||||
virtual void PolyMarker ( int ) = 0;
|
|
||||||
// stores a polymarker
|
|
||||||
virtual void PolyMarker1 ( int, GetPointFunc, int, void* ) = 0;
|
|
||||||
// stores a polymarker1
|
|
||||||
virtual void PolyMarker2 ( int, GetPointFunc, int, void* ) = 0;
|
|
||||||
// stores a polymarker2
|
|
||||||
virtual W32_Note* Polygon ( int ) = 0;
|
|
||||||
// stores a polygon
|
|
||||||
virtual W32_Note* Polyline ( int ) = 0;
|
|
||||||
// stores a polyline
|
|
||||||
virtual void Image ( int, int, PW32_Bitmap, double = 1.0 ) = 0;
|
|
||||||
// stores an image
|
|
||||||
virtual void Text ( int, int, double, void*, BOOL = FALSE, BOOL = FALSE ) = 0;
|
|
||||||
// stores a text
|
|
||||||
virtual void Polytext ( int, int, double, double, void*, BOOL = FALSE, BOOL = FALSE ) = 0;
|
|
||||||
// stores a polytext
|
|
||||||
virtual void BeginMarker ( int, int, int, int, double ) = 0;
|
|
||||||
// stores the begin of marker
|
|
||||||
virtual void EndMarker ( void ) = 0;
|
|
||||||
// stores end of the marker
|
|
||||||
virtual void LineAttrib ( DWORD, PLOGBRUSH, DWORD = 0, PDWORD = NULL ) = 0;
|
|
||||||
// stores line attributes
|
|
||||||
virtual void PolyAttrib ( PLOGBRUSH, BOOL, int = ALTERNATE ) = 0;
|
|
||||||
// stores polygon attributes
|
|
||||||
virtual void TextAttrib (
|
|
||||||
HFONT, COLORREF, double = 0.0, double = 1.0, double = 1.0,
|
|
||||||
BOOL = FALSE, BOOL = FALSE, BOOL = FALSE
|
|
||||||
) = 0;
|
|
||||||
//stores text attributes
|
|
||||||
virtual void MarkerAttrib ( COLORREF, DWORD, BOOL ) = 0;
|
|
||||||
// stores marker attributes
|
|
||||||
virtual void FunCall ( W32_FCall, int, PW32_FCALLPARAM ) = 0;
|
|
||||||
// stores function call
|
|
||||||
|
|
||||||
virtual int TextSize ( HDC, char*, PSIZE ) = 0;
|
|
||||||
virtual int TextSize ( HDC, wchar_t*, PSIZE ) = 0;
|
|
||||||
//obtains dimensions of the text string
|
|
||||||
|
|
||||||
int myID;
|
|
||||||
PW32_Allocator myNext;
|
|
||||||
PW32_Block myStart, myEnd;
|
|
||||||
W32_Primitive myPrimitive;
|
|
||||||
W32_Note* myNote;
|
|
||||||
int myFillMode;
|
|
||||||
DWORD myFlags;
|
|
||||||
POINT myPivot;
|
|
||||||
POINT myMove;
|
|
||||||
double myScaleX, myScaleY;
|
|
||||||
double myAngle;
|
|
||||||
double myTextVScale;
|
|
||||||
double myTextHScale;
|
|
||||||
double myTextSlant;
|
|
||||||
HFONT myTextFont;
|
|
||||||
COLORREF myPointColor,
|
|
||||||
myMarkerPointColor;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
extern PW32_Allocator ( *W32_GetAllocator ) ( int, PW32_Allocator );
|
|
||||||
|
|
||||||
#define P(v) LONG( ( v ) / myPixelToUnit + 0.5 )
|
|
||||||
#define U(v) ( ( v ) * myPixelToUnit )
|
|
||||||
|
|
||||||
#endif // __W32_ALLOCATOR_HXX
|
|
File diff suppressed because it is too large
Load Diff
@ -1,88 +0,0 @@
|
|||||||
// Created by: PLOTNIKOV Eugeny & CHABROVSKY Dmitry
|
|
||||||
// Copyright (c) 1998-1999 Matra Datavision
|
|
||||||
// Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
||||||
//
|
|
||||||
// The content of this file is subject to the Open CASCADE Technology Public
|
|
||||||
// License Version 6.5 (the "License"). You may not use the content of this file
|
|
||||||
// except in compliance with the License. Please obtain a copy of the License
|
|
||||||
// at http://www.opencascade.org and read it completely before using this file.
|
|
||||||
//
|
|
||||||
// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
||||||
// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
||||||
//
|
|
||||||
// The Original Code and all software distributed under the License is
|
|
||||||
// distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
||||||
// Initial Developer hereby disclaims all such warranties, including without
|
|
||||||
// limitation, any warranties of merchantability, fitness for a particular
|
|
||||||
// purpose or non-infringement. Please see the License for the specific terms
|
|
||||||
// and conditions governing the rights and limitations under the License.
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef __W95_ALLOCATOR_HXX
|
|
||||||
# define __W95_ALLOCATOR_HXX
|
|
||||||
|
|
||||||
# include "EHDC.hxx"
|
|
||||||
# include "W32_Allocator.hxx"
|
|
||||||
|
|
||||||
struct W95_Allocator : public W32_Allocator {
|
|
||||||
|
|
||||||
W95_Allocator ( int, PW32_Allocator = NULL );
|
|
||||||
virtual ~W95_Allocator ();
|
|
||||||
|
|
||||||
virtual void Xform ( void );
|
|
||||||
|
|
||||||
virtual void Play ( HDC, PSIZE );
|
|
||||||
virtual void URect ( LPRECT );
|
|
||||||
|
|
||||||
virtual void Point ( int, int );
|
|
||||||
virtual void MarkerPoint ( int, int );
|
|
||||||
virtual void Line ( int, int, int, int );
|
|
||||||
virtual void PolyEllipse ( int, int, int, int );
|
|
||||||
virtual void Ellipse ( int, int, int, int );
|
|
||||||
virtual void Arc ( int, int, int, int, double, double );
|
|
||||||
virtual void PolyChord ( int, int, int, int, double, double );
|
|
||||||
virtual void Chord ( int, int, int, int, double, double );
|
|
||||||
virtual void PolySector ( int, int, int, int, double, double );
|
|
||||||
virtual void Sector ( int, int, int, int, double, double );
|
|
||||||
virtual void PolyMarker ( int );
|
|
||||||
virtual void PolyMarker1 ( int, GetPointFunc, int, void* );
|
|
||||||
virtual void PolyMarker2 ( int, GetPointFunc, int, void* );
|
|
||||||
virtual W32_Note* Polygon ( int );
|
|
||||||
virtual W32_Note* Polyline( int );
|
|
||||||
virtual void Image ( int, int, PW32_Bitmap, double = 1.0 );
|
|
||||||
virtual void Text ( int, int, double, void*, BOOL = FALSE, BOOL = FALSE );
|
|
||||||
virtual void Polytext ( int, int, double, double, void*, BOOL = FALSE, BOOL = FALSE );
|
|
||||||
virtual void BeginMarker ( int, int, int, int, double );
|
|
||||||
virtual void EndMarker ( void );
|
|
||||||
virtual void LineAttrib ( DWORD, PLOGBRUSH, DWORD = 0, PDWORD = NULL );
|
|
||||||
virtual void PolyAttrib ( PLOGBRUSH, BOOL, int = ALTERNATE );
|
|
||||||
virtual void TextAttrib (
|
|
||||||
HFONT, COLORREF, double = 0.0, double = 1.0, double = 1.0,
|
|
||||||
BOOL = FALSE, BOOL = FALSE, BOOL = FALSE
|
|
||||||
);
|
|
||||||
virtual void MarkerAttrib ( COLORREF, DWORD, BOOL );
|
|
||||||
virtual void FunCall ( W32_FCall, int, PW32_FCALLPARAM );
|
|
||||||
|
|
||||||
virtual int TextSize ( HDC, char*, PSIZE );
|
|
||||||
virtual int TextSize ( HDC, wchar_t*, PSIZE );
|
|
||||||
|
|
||||||
LOGBRUSH myLineBrush; // line attributes
|
|
||||||
DWORD myLinePenWidth;
|
|
||||||
DWORD myLineStyleCount;
|
|
||||||
PDWORD myLineStyles;
|
|
||||||
|
|
||||||
LOGBRUSH myPolyBrush; // polygon attributes
|
|
||||||
|
|
||||||
COLORREF myTextColor; // text attributes
|
|
||||||
|
|
||||||
LOGBRUSH myMarkerBrush; // marker attributes
|
|
||||||
LOGBRUSH myMarkerBrushOrig;
|
|
||||||
DWORD myMarkerWidth;
|
|
||||||
|
|
||||||
EHDC myHDC;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef W95_Allocator* PW95_Allocator;
|
|
||||||
|
|
||||||
#endif // __W95_ALLOCATOR_HXX
|
|
@ -60,10 +60,6 @@ package WNT
|
|||||||
---Purpose: Creates a Windows NT window class.
|
---Purpose: Creates a Windows NT window class.
|
||||||
---Category: Classes
|
---Category: Classes
|
||||||
|
|
||||||
class Image;
|
|
||||||
---Purpose: Defines the class
|
|
||||||
---Category: Classes
|
|
||||||
|
|
||||||
---------------------------
|
---------------------------
|
||||||
-- Category: Enumerations
|
-- Category: Enumerations
|
||||||
---------------------------
|
---------------------------
|
||||||
@ -75,13 +71,6 @@ package WNT
|
|||||||
|
|
||||||
end OrientationType;
|
end OrientationType;
|
||||||
---Purpose: Portrait/landscape orientation.
|
---Purpose: Portrait/landscape orientation.
|
||||||
enumeration TypeOfImage is
|
|
||||||
|
|
||||||
TOI_BMP, --Windows NT's device independent bitmap
|
|
||||||
TOI_XWD, --X windows's image format
|
|
||||||
TOI_GIF --CompuServe's Graphic Interchange Format
|
|
||||||
|
|
||||||
end TypeOfImage;
|
|
||||||
|
|
||||||
|
|
||||||
---------------------------
|
---------------------------
|
||||||
@ -89,10 +78,6 @@ package WNT
|
|||||||
---------------------------
|
---------------------------
|
||||||
|
|
||||||
|
|
||||||
imported Long;
|
|
||||||
---Purpose: Defines a Windows NT LONG type.
|
|
||||||
---Category: Imported types
|
|
||||||
|
|
||||||
imported Dword;
|
imported Dword;
|
||||||
---Purpose: Defines a Windows NT DWORD type.
|
---Purpose: Defines a Windows NT DWORD type.
|
||||||
---Category: Imported types
|
---Category: Imported types
|
||||||
@ -101,14 +86,6 @@ package WNT
|
|||||||
---Purpose: Defines a Windows NT UINT type.
|
---Purpose: Defines a Windows NT UINT type.
|
||||||
---Category: Imported types
|
---Category: Imported types
|
||||||
|
|
||||||
imported LogFont;
|
|
||||||
---Purpose: Defines a Windows NT LOGFONT type.
|
|
||||||
---Category: Imported types
|
|
||||||
|
|
||||||
imported ColorRef;
|
|
||||||
---Purpose: Defines a Windows NT COLORREF type.
|
|
||||||
---Category: Imported types
|
|
||||||
|
|
||||||
imported WindowData;
|
imported WindowData;
|
||||||
---Purpose: Defines additional window data type.
|
---Purpose: Defines additional window data type.
|
||||||
---Category: Imported types
|
---Category: Imported types
|
||||||
@ -120,17 +97,4 @@ package WNT
|
|||||||
|
|
||||||
pointer WindowPtr to Window from WNT;
|
pointer WindowPtr to Window from WNT;
|
||||||
|
|
||||||
---------------------------------
|
|
||||||
-- Category: Instantiated classes
|
|
||||||
---------------------------------
|
|
||||||
|
|
||||||
class ColorTable instantiates
|
|
||||||
Array1 from TCollection ( ColorRef from WNT );
|
|
||||||
|
|
||||||
class HColorTable instantiates
|
|
||||||
HArray1 from TCollection ( ColorRef from WNT, ColorTable from WNT );
|
|
||||||
|
|
||||||
class SequenceOfImage instantiates
|
|
||||||
Sequence from TCollection ( Image from WNT );
|
|
||||||
|
|
||||||
end WNT;
|
end WNT;
|
||||||
|
@ -1,46 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
||||||
|
|
||||||
The content of this file is subject to the Open CASCADE Technology Public
|
|
||||||
License Version 6.5 (the "License"). You may not use the content of this file
|
|
||||||
except in compliance with the License. Please obtain a copy of the License
|
|
||||||
at http://www.opencascade.org and read it completely before using this file.
|
|
||||||
|
|
||||||
The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
||||||
main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
||||||
|
|
||||||
The Original Code and all software distributed under the License is
|
|
||||||
distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
||||||
Initial Developer hereby disclaims all such warranties, including without
|
|
||||||
limitation, any warranties of merchantability, fitness for a particular
|
|
||||||
purpose or non-infringement. Please see the License for the specific terms
|
|
||||||
and conditions governing the rights and limitations under the License.
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __WNT_H
|
|
||||||
# define __WNT_H
|
|
||||||
|
|
||||||
# ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
# endif /* __cplusplus */
|
|
||||||
|
|
||||||
# ifndef __WNT_API
|
|
||||||
# if !defined(HAVE_NO_DLL)
|
|
||||||
# ifdef __WNT_DLL
|
|
||||||
# define __WNT_API __declspec( dllexport )
|
|
||||||
# else
|
|
||||||
# define __WNT_API __declspec( dllimport )
|
|
||||||
# endif /* __WNT_DLL */
|
|
||||||
# else
|
|
||||||
# define __WNT_API
|
|
||||||
# endif
|
|
||||||
# endif /* __WNT_API */
|
|
||||||
|
|
||||||
__WNT_API int WNT_SysPalInUse ( void );
|
|
||||||
|
|
||||||
# ifdef __cplusplus
|
|
||||||
}
|
|
||||||
# endif /* __cplusplus */
|
|
||||||
|
|
||||||
#endif /* __WNT_H */
|
|
File diff suppressed because it is too large
Load Diff
@ -1,100 +0,0 @@
|
|||||||
// Created by: PLOTNIKOV Eugeny & CHABROVSKY Dmitry
|
|
||||||
// Copyright (c) 1998-1999 Matra Datavision
|
|
||||||
// Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
||||||
//
|
|
||||||
// The content of this file is subject to the Open CASCADE Technology Public
|
|
||||||
// License Version 6.5 (the "License"). You may not use the content of this file
|
|
||||||
// except in compliance with the License. Please obtain a copy of the License
|
|
||||||
// at http://www.opencascade.org and read it completely before using this file.
|
|
||||||
//
|
|
||||||
// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
||||||
// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
||||||
//
|
|
||||||
// The Original Code and all software distributed under the License is
|
|
||||||
// distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
||||||
// Initial Developer hereby disclaims all such warranties, including without
|
|
||||||
// limitation, any warranties of merchantability, fitness for a particular
|
|
||||||
// purpose or non-infringement. Please see the License for the specific terms
|
|
||||||
// and conditions governing the rights and limitations under the License.
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef __WNT_ALLOCATOR_HXX
|
|
||||||
# define __WNT_ALLOCATOR_HXX
|
|
||||||
|
|
||||||
# include "EHDC.hxx"
|
|
||||||
# include "W32_Allocator.hxx"
|
|
||||||
|
|
||||||
struct WNT_Allocator : public W32_Allocator {
|
|
||||||
|
|
||||||
WNT_Allocator ( int, PW32_Allocator = NULL );
|
|
||||||
virtual ~WNT_Allocator ();
|
|
||||||
|
|
||||||
virtual void Xform ( void );
|
|
||||||
|
|
||||||
virtual void Play ( HDC, PSIZE );
|
|
||||||
virtual void URect ( LPRECT );
|
|
||||||
|
|
||||||
virtual void Point ( int, int );
|
|
||||||
virtual void MarkerPoint ( int, int );
|
|
||||||
virtual void Line ( int, int, int, int );
|
|
||||||
virtual void PolyEllipse ( int, int, int, int );
|
|
||||||
virtual void Ellipse ( int, int, int, int );
|
|
||||||
virtual void Arc ( int, int, int, int, double, double );
|
|
||||||
virtual void PolyChord ( int, int, int, int, double, double );
|
|
||||||
virtual void Chord ( int, int, int, int, double, double );
|
|
||||||
virtual void PolySector ( int, int, int, int, double, double );
|
|
||||||
virtual void Sector ( int, int, int, int, double, double );
|
|
||||||
virtual void PolyMarker ( int );
|
|
||||||
virtual void PolyMarker1 ( int, GetPointFunc, int, void* );
|
|
||||||
virtual void PolyMarker2 ( int, GetPointFunc, int, void* );
|
|
||||||
virtual W32_Note* Polygon ( int );
|
|
||||||
virtual W32_Note* Polyline( int );
|
|
||||||
virtual void Image ( int, int, PW32_Bitmap, double = 1.0 );
|
|
||||||
virtual void Text ( int, int, double, void*, BOOL = FALSE, BOOL = FALSE );
|
|
||||||
virtual void Polytext ( int, int, double, double, void*, BOOL = FALSE, BOOL = FALSE );
|
|
||||||
virtual void BeginMarker ( int, int, int, int, double );
|
|
||||||
virtual void EndMarker ( void );
|
|
||||||
virtual void LineAttrib ( DWORD, PLOGBRUSH, DWORD = 0, PDWORD = NULL );
|
|
||||||
virtual void PolyAttrib ( PLOGBRUSH, BOOL, int = ALTERNATE );
|
|
||||||
virtual void TextAttrib (
|
|
||||||
HFONT, COLORREF, double = 0.0, double = 1.0, double = 1.0,
|
|
||||||
BOOL = FALSE, BOOL = FALSE, BOOL = FALSE
|
|
||||||
);
|
|
||||||
virtual void MarkerAttrib ( COLORREF, DWORD, BOOL );
|
|
||||||
virtual void FunCall ( W32_FCall, int, PW32_FCALLPARAM );
|
|
||||||
|
|
||||||
virtual int TextSize ( HDC, char*, PSIZE );
|
|
||||||
virtual int TextSize ( HDC, wchar_t*, PSIZE );
|
|
||||||
|
|
||||||
void GetExtent ( LPSIZE lpSZ );
|
|
||||||
void TransformPoint ( int&, int& );
|
|
||||||
void TransformPoint ( LPPOINT );
|
|
||||||
void RecalcMatrix ( XFORM&, double = 0.0,
|
|
||||||
double = 0.0, double = 0.0
|
|
||||||
);
|
|
||||||
void Register ( int, int );
|
|
||||||
void Register ( LPPOINT, int );
|
|
||||||
void Register ( LPRECT );
|
|
||||||
|
|
||||||
SIZE mySize; // HDC's extent
|
|
||||||
HDC myHDC; // HDC to draw
|
|
||||||
RECT myURect; // Update RECT
|
|
||||||
XFORM myMatrix; // World transformation matrix
|
|
||||||
|
|
||||||
HPEN myLinePen; // Line attributes
|
|
||||||
DWORD myLineWidth;
|
|
||||||
HBRUSH myPolyBrush; // Poly attributes
|
|
||||||
HPEN myTextPen; // Text attributes
|
|
||||||
HBRUSH myTextBrush;
|
|
||||||
COLORREF myTextColor;
|
|
||||||
HPEN myMarkerPen; // Marker attributes
|
|
||||||
|
|
||||||
HPEN myPO; // Used to remember old
|
|
||||||
HBRUSH myBO; // pen, brush and font
|
|
||||||
HFONT myFO;
|
|
||||||
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef WNT_Allocator* PWNT_Allocator;
|
|
||||||
|
|
||||||
#endif // __WNT_ALLOCATOR_HXX
|
|
@ -1,48 +0,0 @@
|
|||||||
/*
|
|
||||||
Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
||||||
|
|
||||||
The content of this file is subject to the Open CASCADE Technology Public
|
|
||||||
License Version 6.5 (the "License"). You may not use the content of this file
|
|
||||||
except in compliance with the License. Please obtain a copy of the License
|
|
||||||
at http://www.opencascade.org and read it completely before using this file.
|
|
||||||
|
|
||||||
The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
||||||
main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
||||||
|
|
||||||
The Original Code and all software distributed under the License is
|
|
||||||
distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
||||||
Initial Developer hereby disclaims all such warranties, including without
|
|
||||||
limitation, any warranties of merchantability, fitness for a particular
|
|
||||||
purpose or non-infringement. Please see the License for the specific terms
|
|
||||||
and conditions governing the rights and limitations under the License.
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __WNT_BITMAP_H
|
|
||||||
# define __WNT_BITMAP_H
|
|
||||||
|
|
||||||
# ifndef __WINDOWS_H_INCLUDED
|
|
||||||
# define __WINDOWS_H_INCLUDED
|
|
||||||
# ifndef STRICT
|
|
||||||
# define STRICT
|
|
||||||
# endif /* STRICT */
|
|
||||||
# define WIN32_LEAN_AND_MEAN
|
|
||||||
# include <windows.h>
|
|
||||||
|
|
||||||
#ifdef DrawText
|
|
||||||
#undef DrawText
|
|
||||||
#endif
|
|
||||||
|
|
||||||
# ifdef THIS
|
|
||||||
# undef THIS
|
|
||||||
# endif // THIS
|
|
||||||
# endif // __WINDOWS_H_INCLUDED
|
|
||||||
|
|
||||||
typedef struct _wnt_bitmap {
|
|
||||||
|
|
||||||
int nUsed;
|
|
||||||
HBITMAP hBmp;
|
|
||||||
|
|
||||||
} WNT_Bitmap, *PWNT_Bitmap;
|
|
||||||
|
|
||||||
#endif /* __WNT_SAFEBITMAP_H */
|
|
@ -1,31 +0,0 @@
|
|||||||
// Copyright (c) 1996-1999 Matra Datavision
|
|
||||||
// Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
||||||
//
|
|
||||||
// The content of this file is subject to the Open CASCADE Technology Public
|
|
||||||
// License Version 6.5 (the "License"). You may not use the content of this file
|
|
||||||
// except in compliance with the License. Please obtain a copy of the License
|
|
||||||
// at http://www.opencascade.org and read it completely before using this file.
|
|
||||||
//
|
|
||||||
// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
||||||
// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
||||||
//
|
|
||||||
// The Original Code and all software distributed under the License is
|
|
||||||
// distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
||||||
// Initial Developer hereby disclaims all such warranties, including without
|
|
||||||
// limitation, any warranties of merchantability, fitness for a particular
|
|
||||||
// purpose or non-infringement. Please see the License for the specific terms
|
|
||||||
// and conditions governing the rights and limitations under the License.
|
|
||||||
|
|
||||||
#ifndef __WNT_ColorRef_HeaderFile
|
|
||||||
# include <WNT_ColorRef.hxx>
|
|
||||||
#endif // __WNT_ColorRef_HeaderFile
|
|
||||||
|
|
||||||
const Handle( Standard_Type )& STANDARD_TYPE( WNT_ColorRef ) {
|
|
||||||
|
|
||||||
static Handle( Standard_Type ) _aType = new Standard_Type (
|
|
||||||
"WNT_ColorRef", sizeof ( WNT_ColorRef )
|
|
||||||
);
|
|
||||||
|
|
||||||
return _aType;
|
|
||||||
|
|
||||||
} // end function
|
|
@ -1,48 +0,0 @@
|
|||||||
// Copyright (c) 1996-1999 Matra Datavision
|
|
||||||
// Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
||||||
//
|
|
||||||
// The content of this file is subject to the Open CASCADE Technology Public
|
|
||||||
// License Version 6.5 (the "License"). You may not use the content of this file
|
|
||||||
// except in compliance with the License. Please obtain a copy of the License
|
|
||||||
// at http://www.opencascade.org and read it completely before using this file.
|
|
||||||
//
|
|
||||||
// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
||||||
// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
||||||
//
|
|
||||||
// The Original Code and all software distributed under the License is
|
|
||||||
// distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
||||||
// Initial Developer hereby disclaims all such warranties, including without
|
|
||||||
// limitation, any warranties of merchantability, fitness for a particular
|
|
||||||
// purpose or non-infringement. Please see the License for the specific terms
|
|
||||||
// and conditions governing the rights and limitations under the License.
|
|
||||||
|
|
||||||
#ifndef __WNT_ColorRef_HeaderFile
|
|
||||||
# define __WNT_ColorRef_HeaderFile
|
|
||||||
|
|
||||||
# ifndef __WINDOWS_H_INCLUDED
|
|
||||||
# define __WINDOWS_H_INCLUDED
|
|
||||||
# ifndef STRICT
|
|
||||||
# define STRICT
|
|
||||||
# endif /* STRICT */
|
|
||||||
# define WIN32_LEAN_AND_MEAN
|
|
||||||
# include <windows.h>
|
|
||||||
|
|
||||||
#ifdef DrawText
|
|
||||||
#undef DrawText
|
|
||||||
#endif
|
|
||||||
|
|
||||||
# ifdef THIS
|
|
||||||
# undef THIS
|
|
||||||
# endif // THIS
|
|
||||||
# endif // __WINDOWS_H_INCLUDED
|
|
||||||
|
|
||||||
# ifndef __STANDARD_TYPE_HXX_INCLUDED
|
|
||||||
# define __STANDARD_TYPE_HXX_INCLUDED
|
|
||||||
# include <Standard_Type.hxx>
|
|
||||||
# endif // __STANDARD_TYPE_HXX_INCLUDED
|
|
||||||
|
|
||||||
typedef COLORREF WNT_ColorRef;
|
|
||||||
|
|
||||||
extern const Handle( Standard_Type )& STANDARD_TYPE( WNT_ColorRef );
|
|
||||||
|
|
||||||
#endif // __WNT_ColorRef_HeaderFile
|
|
@ -1,56 +0,0 @@
|
|||||||
-- Created by: PLOTNIKOV Eugeny
|
|
||||||
-- Copyright (c) 1996-1999 Matra Datavision
|
|
||||||
-- Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
||||||
--
|
|
||||||
-- The content of this file is subject to the Open CASCADE Technology Public
|
|
||||||
-- License Version 6.5 (the "License"). You may not use the content of this file
|
|
||||||
-- except in compliance with the License. Please obtain a copy of the License
|
|
||||||
-- at http://www.opencascade.org and read it completely before using this file.
|
|
||||||
--
|
|
||||||
-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
||||||
-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
||||||
--
|
|
||||||
-- The Original Code and all software distributed under the License is
|
|
||||||
-- distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
||||||
-- Initial Developer hereby disclaims all such warranties, including without
|
|
||||||
-- limitation, any warranties of merchantability, fitness for a particular
|
|
||||||
-- purpose or non-infringement. Please see the License for the specific terms
|
|
||||||
-- and conditions governing the rights and limitations under the License.
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Image from WNT inherits TShared from MMgt
|
|
||||||
|
|
||||||
---Purpose: Internal class for image management
|
|
||||||
|
|
||||||
uses
|
|
||||||
|
|
||||||
Handle from Aspect
|
|
||||||
|
|
||||||
is
|
|
||||||
|
|
||||||
Create ( aBitmap : Handle from Aspect; aHashCode : Integer from Standard )
|
|
||||||
returns mutable Image from WNT;
|
|
||||||
---Purpose: Creates a class.
|
|
||||||
|
|
||||||
Destroy ( me : mutable ) is virtual;
|
|
||||||
---Level: Public
|
|
||||||
---Purpose: Destroys all ressources attached to the Image
|
|
||||||
---C++: alias ~
|
|
||||||
|
|
||||||
HBITMAP ( me ) returns Handle from Aspect;
|
|
||||||
---Level: Public
|
|
||||||
---Purpose: Returns bitmap handle
|
|
||||||
---C++: inline
|
|
||||||
|
|
||||||
Image ( me ) returns Address from Standard;
|
|
||||||
---Level: Public
|
|
||||||
---Purpose: Returns pointer to internal structure
|
|
||||||
---C++: inline
|
|
||||||
|
|
||||||
fields
|
|
||||||
|
|
||||||
myImage : Address from Standard is protected;
|
|
||||||
myHashCode : Integer from Standard is protected;
|
|
||||||
|
|
||||||
end Image;
|
|
@ -1,64 +0,0 @@
|
|||||||
// Copyright (c) 1996-1999 Matra Datavision
|
|
||||||
// Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
||||||
//
|
|
||||||
// The content of this file is subject to the Open CASCADE Technology Public
|
|
||||||
// License Version 6.5 (the "License"). You may not use the content of this file
|
|
||||||
// except in compliance with the License. Please obtain a copy of the License
|
|
||||||
// at http://www.opencascade.org and read it completely before using this file.
|
|
||||||
//
|
|
||||||
// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
||||||
// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
||||||
//
|
|
||||||
// The Original Code and all software distributed under the License is
|
|
||||||
// distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
||||||
// Initial Developer hereby disclaims all such warranties, including without
|
|
||||||
// limitation, any warranties of merchantability, fitness for a particular
|
|
||||||
// purpose or non-infringement. Please see the License for the specific terms
|
|
||||||
// and conditions governing the rights and limitations under the License.
|
|
||||||
|
|
||||||
|
|
||||||
// include windows.h first to have all definitions available
|
|
||||||
#include <windows.h>
|
|
||||||
#include <WNT_Image.ixx>
|
|
||||||
|
|
||||||
#include <W32_Allocator.hxx>
|
|
||||||
|
|
||||||
//=======================================================================
|
|
||||||
//function : WNT_Image
|
|
||||||
//purpose :
|
|
||||||
//=======================================================================
|
|
||||||
|
|
||||||
WNT_Image::WNT_Image ( const Aspect_Handle aBitmap,
|
|
||||||
const Standard_Integer aHashCode )
|
|
||||||
{
|
|
||||||
|
|
||||||
myImage = ( Standard_Address )HeapAlloc (
|
|
||||||
GetProcessHeap (),
|
|
||||||
HEAP_ZERO_MEMORY | HEAP_GENERATE_EXCEPTIONS,
|
|
||||||
sizeof ( WNT_Bitmap )
|
|
||||||
);
|
|
||||||
|
|
||||||
( ( PW32_Bitmap )myImage ) -> hBmp = ( ::HBITMAP )aBitmap;
|
|
||||||
( ( PW32_Bitmap )myImage ) -> nUsed = 1;
|
|
||||||
myHashCode = aHashCode;
|
|
||||||
|
|
||||||
} // end constructor
|
|
||||||
|
|
||||||
//=======================================================================
|
|
||||||
//function : Destroy
|
|
||||||
//purpose :
|
|
||||||
//=======================================================================
|
|
||||||
|
|
||||||
void WNT_Image::Destroy () {
|
|
||||||
|
|
||||||
if ( --( ( PW32_Bitmap )myImage ) -> nUsed == 0 &&
|
|
||||||
( ( PW32_Bitmap )myImage ) -> hBmp != NULL
|
|
||||||
) {
|
|
||||||
|
|
||||||
DeleteObject ( ( ( PW32_Bitmap )myImage ) -> hBmp );
|
|
||||||
HeapFree ( GetProcessHeap (), 0, ( PVOID )myImage );
|
|
||||||
|
|
||||||
} // end if
|
|
||||||
|
|
||||||
} // end WNT_Image :: Destroy
|
|
||||||
|
|
@ -1,33 +0,0 @@
|
|||||||
// Copyright (c) 1996-1999 Matra Datavision
|
|
||||||
// Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
||||||
//
|
|
||||||
// The content of this file is subject to the Open CASCADE Technology Public
|
|
||||||
// License Version 6.5 (the "License"). You may not use the content of this file
|
|
||||||
// except in compliance with the License. Please obtain a copy of the License
|
|
||||||
// at http://www.opencascade.org and read it completely before using this file.
|
|
||||||
//
|
|
||||||
// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
||||||
// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
||||||
//
|
|
||||||
// The Original Code and all software distributed under the License is
|
|
||||||
// distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
||||||
// Initial Developer hereby disclaims all such warranties, including without
|
|
||||||
// limitation, any warranties of merchantability, fitness for a particular
|
|
||||||
// purpose or non-infringement. Please see the License for the specific terms
|
|
||||||
// and conditions governing the rights and limitations under the License.
|
|
||||||
|
|
||||||
#ifndef __WNT_BITMAP_H
|
|
||||||
# include <WNT_Bitmap.h>
|
|
||||||
#endif // __WNT_BITMAP_H
|
|
||||||
|
|
||||||
inline Aspect_Handle WNT_Image :: HBITMAP () const {
|
|
||||||
|
|
||||||
return ( ( PWNT_Bitmap )myImage ) -> hBmp;
|
|
||||||
|
|
||||||
} // end WNT_Image :: HBITMAP
|
|
||||||
|
|
||||||
inline Standard_Address WNT_Image :: Image () const {
|
|
||||||
|
|
||||||
return myImage;
|
|
||||||
|
|
||||||
} // end WNT_Image :: HBITMAP
|
|
@ -1,31 +0,0 @@
|
|||||||
// Copyright (c) 1996-1999 Matra Datavision
|
|
||||||
// Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
||||||
//
|
|
||||||
// The content of this file is subject to the Open CASCADE Technology Public
|
|
||||||
// License Version 6.5 (the "License"). You may not use the content of this file
|
|
||||||
// except in compliance with the License. Please obtain a copy of the License
|
|
||||||
// at http://www.opencascade.org and read it completely before using this file.
|
|
||||||
//
|
|
||||||
// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
||||||
// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
||||||
//
|
|
||||||
// The Original Code and all software distributed under the License is
|
|
||||||
// distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
||||||
// Initial Developer hereby disclaims all such warranties, including without
|
|
||||||
// limitation, any warranties of merchantability, fitness for a particular
|
|
||||||
// purpose or non-infringement. Please see the License for the specific terms
|
|
||||||
// and conditions governing the rights and limitations under the License.
|
|
||||||
|
|
||||||
#ifndef __WNT_LogFont_HeaderFile
|
|
||||||
# include <WNT_LogFont.hxx>
|
|
||||||
#endif // __WNT_LogFont_HeaderFile
|
|
||||||
|
|
||||||
const Handle( Standard_Type )& STANDARD_TYPE( WNT_LogFont ) {
|
|
||||||
|
|
||||||
static Handle( Standard_Type ) _aType = new Standard_Type (
|
|
||||||
"WNT_LogFont", sizeof ( WNT_LogFont )
|
|
||||||
);
|
|
||||||
|
|
||||||
return _aType;
|
|
||||||
|
|
||||||
} // end function
|
|
@ -1,51 +0,0 @@
|
|||||||
// Copyright (c) 1996-1999 Matra Datavision
|
|
||||||
// Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
||||||
//
|
|
||||||
// The content of this file is subject to the Open CASCADE Technology Public
|
|
||||||
// License Version 6.5 (the "License"). You may not use the content of this file
|
|
||||||
// except in compliance with the License. Please obtain a copy of the License
|
|
||||||
// at http://www.opencascade.org and read it completely before using this file.
|
|
||||||
//
|
|
||||||
// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
||||||
// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
||||||
//
|
|
||||||
// The Original Code and all software distributed under the License is
|
|
||||||
// distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
||||||
// Initial Developer hereby disclaims all such warranties, including without
|
|
||||||
// limitation, any warranties of merchantability, fitness for a particular
|
|
||||||
// purpose or non-infringement. Please see the License for the specific terms
|
|
||||||
// and conditions governing the rights and limitations under the License.
|
|
||||||
|
|
||||||
#ifndef __WNT_LogFont_HeaderFile
|
|
||||||
# define __WNT_LogFont_HeaderFile
|
|
||||||
|
|
||||||
# ifndef __WINDOWS_H_INCLUDED
|
|
||||||
# define __WINDOWS_H_INCLUDED
|
|
||||||
# ifndef STRICT
|
|
||||||
# define STRICT
|
|
||||||
# endif /* STRICT */
|
|
||||||
# define WIN32_LEAN_AND_MEAN
|
|
||||||
# ifdef NOGDI
|
|
||||||
# undef NOGDI /* we need GDI definitions here... */
|
|
||||||
# endif
|
|
||||||
# include <windows.h>
|
|
||||||
|
|
||||||
#ifdef DrawText
|
|
||||||
#undef DrawText
|
|
||||||
#endif
|
|
||||||
|
|
||||||
# ifdef THIS
|
|
||||||
# undef THIS
|
|
||||||
# endif // THIS
|
|
||||||
# endif // __WINDOWS_H_INCLUDED
|
|
||||||
|
|
||||||
# ifndef __STANDARD_TYPE_HXX_INCLUDED
|
|
||||||
# define __STANDARD_TYPE_HXX_INCLUDED
|
|
||||||
# include <Standard_Type.hxx>
|
|
||||||
# endif // __STANDARD_TYPE_HXX_INCLUDED
|
|
||||||
|
|
||||||
typedef LOGFONT WNT_LogFont;
|
|
||||||
|
|
||||||
extern const Handle( Standard_Type )& STANDARD_TYPE( WNT_LogFont );
|
|
||||||
|
|
||||||
#endif // __WNT_LogFont_HeaderFile
|
|
@ -1,31 +0,0 @@
|
|||||||
// Copyright (c) 1996-1999 Matra Datavision
|
|
||||||
// Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
||||||
//
|
|
||||||
// The content of this file is subject to the Open CASCADE Technology Public
|
|
||||||
// License Version 6.5 (the "License"). You may not use the content of this file
|
|
||||||
// except in compliance with the License. Please obtain a copy of the License
|
|
||||||
// at http://www.opencascade.org and read it completely before using this file.
|
|
||||||
//
|
|
||||||
// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
||||||
// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
||||||
//
|
|
||||||
// The Original Code and all software distributed under the License is
|
|
||||||
// distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
||||||
// Initial Developer hereby disclaims all such warranties, including without
|
|
||||||
// limitation, any warranties of merchantability, fitness for a particular
|
|
||||||
// purpose or non-infringement. Please see the License for the specific terms
|
|
||||||
// and conditions governing the rights and limitations under the License.
|
|
||||||
|
|
||||||
#ifndef __WNT_Long_HeaderFile
|
|
||||||
# include <WNT_Long.hxx>
|
|
||||||
#endif // __WNT_Long_HeaderFile
|
|
||||||
|
|
||||||
const Handle( Standard_Type )& STANDARD_TYPE( WNT_Long ) {
|
|
||||||
|
|
||||||
static Handle( Standard_Type ) _aType = new Standard_Type (
|
|
||||||
"WNT_Long", sizeof ( WNT_Long )
|
|
||||||
);
|
|
||||||
|
|
||||||
return _aType;
|
|
||||||
|
|
||||||
} // end function
|
|
@ -1,48 +0,0 @@
|
|||||||
// Copyright (c) 1996-1999 Matra Datavision
|
|
||||||
// Copyright (c) 1999-2012 OPEN CASCADE SAS
|
|
||||||
//
|
|
||||||
// The content of this file is subject to the Open CASCADE Technology Public
|
|
||||||
// License Version 6.5 (the "License"). You may not use the content of this file
|
|
||||||
// except in compliance with the License. Please obtain a copy of the License
|
|
||||||
// at http://www.opencascade.org and read it completely before using this file.
|
|
||||||
//
|
|
||||||
// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
|
|
||||||
// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
|
|
||||||
//
|
|
||||||
// The Original Code and all software distributed under the License is
|
|
||||||
// distributed on an "AS IS" basis, without warranty of any kind, and the
|
|
||||||
// Initial Developer hereby disclaims all such warranties, including without
|
|
||||||
// limitation, any warranties of merchantability, fitness for a particular
|
|
||||||
// purpose or non-infringement. Please see the License for the specific terms
|
|
||||||
// and conditions governing the rights and limitations under the License.
|
|
||||||
|
|
||||||
#ifndef __WNT_Long_HeaderFile
|
|
||||||
# define __WNT_Long_HeaderFile
|
|
||||||
|
|
||||||
# ifndef __WINDOWS_H_INCLUDED
|
|
||||||
# define __WINDOWS_H_INCLUDED
|
|
||||||
# ifndef STRICT
|
|
||||||
# define STRICT
|
|
||||||
# endif /* STRICT */
|
|
||||||
# define WIN32_LEAN_AND_MEAN
|
|
||||||
# include <windows.h>
|
|
||||||
|
|
||||||
#ifdef DrawText
|
|
||||||
#undef DrawText
|
|
||||||
#endif
|
|
||||||
|
|
||||||
# ifdef THIS
|
|
||||||
# undef THIS
|
|
||||||
# endif // THIS
|
|
||||||
# endif // __WINDOWS_H_INCLUDED
|
|
||||||
|
|
||||||
# ifndef __STANDARD_TYPE_HXX_INCLUDED
|
|
||||||
# define __STANDARD_TYPE_HXX_INCLUDED
|
|
||||||
# include <Standard_Type.hxx>
|
|
||||||
# endif // __STANDARD_TYPE_HXX_INCLUDED
|
|
||||||
|
|
||||||
typedef LONG WNT_Long;
|
|
||||||
|
|
||||||
extern const Handle( Standard_Type )& STANDARD_TYPE( WNT_Long );
|
|
||||||
|
|
||||||
#endif // __WNT_Long_HeaderFile
|
|
@ -31,7 +31,6 @@ class Window from WNT inherits Window from Aspect
|
|||||||
Ratio from Quantity,
|
Ratio from Quantity,
|
||||||
WClass from WNT,
|
WClass from WNT,
|
||||||
Uint from WNT,
|
Uint from WNT,
|
||||||
Long from WNT,
|
|
||||||
Dword from WNT,
|
Dword from WNT,
|
||||||
WindowData from WNT
|
WindowData from WNT
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user