quakeforge/tools/Forge/Bundles/MapEdit/ZView.h

49 lines
775 B
C
Raw Normal View History

#ifndef ZView_h
#define ZView_h
#include <AppKit/AppKit.h>
#include "QF/mathlib.h"
#include "render.h"
2010-09-11 10:06:04 +00:00
extern id zview_i;
// zplane controls the objects displayed in the xyview
2010-09-11 10:06:04 +00:00
extern float zplane;
extern float zplanedir;
2010-09-11 16:41:18 +00:00
@interface ZView:NSView
{
2010-09-11 10:06:04 +00:00
float minheight, maxheight;
float oldminheight, oldmaxheight;
float topbound, bottombound; // for floor clipping
float scale;
vec3_t origin;
}
2010-09-11 10:06:04 +00:00
-clearBounds;
-getBounds: (float *) top:(float *) bottom;
2010-09-11 10:06:04 +00:00
-getPoint:(NSPoint *) pt;
-setPoint:(NSPoint *) pt;
2010-09-11 10:06:04 +00:00
-addToHeightRange:(float) height;
2010-09-11 10:06:04 +00:00
-newRealBounds;
-newSuperBounds;
2010-09-11 10:06:04 +00:00
-XYDrawSelf;
2010-09-11 10:06:04 +00:00
-(BOOL) XYmouseDown:(NSPoint *) pt;
2010-09-11 10:06:04 +00:00
-setXYOrigin:(NSPoint *) pt;
2010-09-11 10:06:04 +00:00
-setOrigin:(NSPoint *)
pt scale:(float) sc;
@end
2010-09-11 10:06:04 +00:00
#endif // ZView_h