2003-05-06 21:52:58 +00:00
|
|
|
#ifndef Brush_h
|
|
|
|
#define Brush_h
|
|
|
|
|
|
|
|
#include <AppKit/AppKit.h>
|
|
|
|
#include "SetBrush.h"
|
|
|
|
#include "EditWindow.h"
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-11 10:06:04 +00:00
|
|
|
extern id brush_i;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-11 10:06:04 +00:00
|
|
|
extern BOOL brushdraw; // YES when drawing cutbrushes and ents
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-11 10:06:04 +00:00
|
|
|
@interface Brush:SetBrush {
|
|
|
|
id cutbrushes_i;
|
|
|
|
id cutentities_i;
|
|
|
|
boolean updatemask[MAXBRUSHVERTEX];
|
|
|
|
BOOL dontdraw; // for modal instance loops
|
|
|
|
BOOL deleted; // when not visible at all
|
2003-03-18 19:48:24 +00:00
|
|
|
}
|
|
|
|
|
2010-09-11 10:06:04 +00:00
|
|
|
-init;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-11 10:06:04 +00:00
|
|
|
-initFromSetBrush:br;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-11 10:06:04 +00:00
|
|
|
-deselect;
|
|
|
|
-(BOOL) isSelected;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-11 10:06:04 +00:00
|
|
|
-(BOOL) XYmouseDown:(NSPoint *) pt; // return YES if brush handled
|
|
|
|
-(BOOL) ZmouseDown:(NSPoint *) pt; // return YES if brush handled
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-11 10:06:04 +00:00
|
|
|
-_keyDown:(NSEvent *) theEvent;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-11 10:06:04 +00:00
|
|
|
-(NSPoint) centerPoint; // for camera flyby mode
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-11 10:06:04 +00:00
|
|
|
-InstanceSize;
|
|
|
|
-XYDrawSelf;
|
|
|
|
-ZDrawSelf;
|
|
|
|
-CameraDrawSelf;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-11 10:06:04 +00:00
|
|
|
-flipHorizontal:sender;
|
|
|
|
-flipVertical:sender;
|
|
|
|
-rotate90:sender;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-11 10:06:04 +00:00
|
|
|
-makeTall:sender;
|
|
|
|
-makeShort:sender;
|
|
|
|
-makeWide:sender;
|
|
|
|
-makeNarrow:sender;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-11 10:06:04 +00:00
|
|
|
-placeEntity:sender;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-11 10:06:04 +00:00
|
|
|
-cut:sender;
|
|
|
|
-copy:sender;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
2010-09-11 10:06:04 +00:00
|
|
|
-addBrush;
|
2003-03-18 19:48:24 +00:00
|
|
|
|
|
|
|
@end
|
2003-05-06 21:52:58 +00:00
|
|
|
#define Brush_h
|