2010-09-01 10:37:10 +00:00
|
|
|
#ifndef ZView_h
|
|
|
|
#define ZView_h
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2003-05-06 21:52:58 +00:00
|
|
|
#include <AppKit/AppKit.h>
|
2010-09-09 11:46:38 +00:00
|
|
|
|
|
|
|
#include "QF/mathlib.h"
|
|
|
|
|
|
|
|
#include "render.h"
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-29 20:09:11 +00:00
|
|
|
extern id zview_i;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
|
|
|
// zplane controls the objects displayed in the xyview
|
2010-09-29 20:09:11 +00:00
|
|
|
extern float zplane;
|
|
|
|
extern float zplanedir;
|
2010-09-11 10:06:04 +00:00
|
|
|
|
2010-09-29 20:09:11 +00:00
|
|
|
@interface ZView: NSView
|
2010-09-11 16:41:18 +00:00
|
|
|
{
|
2010-09-29 20:09:11 +00:00
|
|
|
float minheight, maxheight;
|
|
|
|
float oldminheight, oldmaxheight;
|
|
|
|
float topbound, bottombound; // for floor clipping
|
2010-09-11 10:06:04 +00:00
|
|
|
|
2010-09-29 20:09:11 +00:00
|
|
|
float scale;
|
2010-09-11 10:06:04 +00:00
|
|
|
|
2010-09-29 20:09:11 +00:00
|
|
|
vec3_t origin;
|
2010-09-24 11:44:07 +00:00
|
|
|
|
2010-09-29 20:09:11 +00:00
|
|
|
NSBezierPath *checker;
|
2011-04-16 03:17:23 +00:00
|
|
|
NSFont *font;
|
2003-03-18 19:48:24 +00:00
|
|
|
}
|
|
|
|
|
2010-09-29 20:09:11 +00:00
|
|
|
- (id) clearBounds;
|
|
|
|
- (id) getBounds: (float *)top
|
|
|
|
: (float *)bottom;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-29 20:09:11 +00:00
|
|
|
- (id) getPoint: (NSPoint *)pt;
|
|
|
|
- (id) setPoint: (NSPoint *)pt;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-29 20:09:11 +00:00
|
|
|
- (id) addToHeightRange: (float)height;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-29 20:09:11 +00:00
|
|
|
- (id) newRealBounds;
|
|
|
|
- (id) newSuperBounds;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-29 20:09:11 +00:00
|
|
|
- (void) XYDrawSelf;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-29 20:09:11 +00:00
|
|
|
- (BOOL) XYmouseDown: (NSPoint *)pt;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-29 20:09:11 +00:00
|
|
|
- (id) setXYOrigin: (NSPoint *)pt;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-29 20:09:11 +00:00
|
|
|
- (id) setOrigin: (NSPoint)pt scale: (float)sc;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
|
|
|
@end
|
2010-09-11 10:06:04 +00:00
|
|
|
#endif // ZView_h
|