1 | /**********************************************************************
|
---|
2 | *<
|
---|
3 | FILE: shpsels.h
|
---|
4 |
|
---|
5 | DESCRIPTION: Defines Shape Selection utility objects
|
---|
6 |
|
---|
7 | CREATED BY: Tom Hudson
|
---|
8 |
|
---|
9 | HISTORY: created 31 October 1995
|
---|
10 |
|
---|
11 | *> Copyright (c) 1995, All Rights Reserved.
|
---|
12 | **********************************************************************/
|
---|
13 |
|
---|
14 | #ifndef __SHPSELS__
|
---|
15 |
|
---|
16 | #define __SHPSELS__
|
---|
17 |
|
---|
18 | class BezierShape;
|
---|
19 | class PolyShape;
|
---|
20 |
|
---|
21 | class ShapeVSel {
|
---|
22 | public:
|
---|
23 | int polys;
|
---|
24 | BitArray *sel;
|
---|
25 | CoreExport ShapeVSel();
|
---|
26 | CoreExport ~ShapeVSel();
|
---|
27 | CoreExport ShapeVSel& operator=(ShapeVSel& from);
|
---|
28 | CoreExport void Insert(int where,int count=0);
|
---|
29 | CoreExport void Delete(int where);
|
---|
30 | CoreExport void SetSize(BezierShape& shape);
|
---|
31 | CoreExport void SetSize(PolyShape& shape);
|
---|
32 | CoreExport BitArray& operator[](int index);
|
---|
33 | CoreExport void ClearAll();
|
---|
34 | CoreExport void SetAll();
|
---|
35 | CoreExport void Toggle();
|
---|
36 | CoreExport void Empty();
|
---|
37 | CoreExport BOOL IsCompatible(BezierShape& shape);
|
---|
38 | CoreExport BOOL IsCompatible(PolyShape& shape);
|
---|
39 | CoreExport IOResult Save(ISave* isave);
|
---|
40 | CoreExport IOResult Load(ILoad* iload);
|
---|
41 | };
|
---|
42 |
|
---|
43 | class ShapeSSel {
|
---|
44 | public:
|
---|
45 | int polys;
|
---|
46 | BitArray *sel;
|
---|
47 | CoreExport ShapeSSel();
|
---|
48 | CoreExport ~ShapeSSel();
|
---|
49 | CoreExport ShapeSSel& operator=(ShapeSSel& from);
|
---|
50 | CoreExport void Insert(int where,int count=0);
|
---|
51 | CoreExport void Delete(int where);
|
---|
52 | CoreExport void SetSize(BezierShape& shape);
|
---|
53 | CoreExport void SetSize(PolyShape& shape);
|
---|
54 | CoreExport BitArray& operator[](int index);
|
---|
55 | CoreExport void ClearAll();
|
---|
56 | CoreExport void SetAll();
|
---|
57 | CoreExport void Toggle();
|
---|
58 | CoreExport void Empty();
|
---|
59 | CoreExport BOOL IsCompatible(BezierShape& shape);
|
---|
60 | CoreExport BOOL IsCompatible(PolyShape& shape);
|
---|
61 | CoreExport IOResult Save(ISave* isave);
|
---|
62 | CoreExport IOResult Load(ILoad* iload);
|
---|
63 | };
|
---|
64 |
|
---|
65 | class ShapePSel {
|
---|
66 | public:
|
---|
67 | int polys;
|
---|
68 | BitArray sel;
|
---|
69 | CoreExport ShapePSel();
|
---|
70 | CoreExport ~ShapePSel();
|
---|
71 | CoreExport ShapePSel& operator=(ShapePSel& from);
|
---|
72 | CoreExport void Insert(int where);
|
---|
73 | CoreExport void Delete(int where);
|
---|
74 | CoreExport void SetSize(BezierShape& shape);
|
---|
75 | CoreExport void SetSize(PolyShape& shape);
|
---|
76 | CoreExport void Set(int index);
|
---|
77 | CoreExport void Set(int index, int value);
|
---|
78 | CoreExport void Clear(int index);
|
---|
79 | CoreExport int operator[](int index) const;
|
---|
80 | CoreExport void ClearAll();
|
---|
81 | CoreExport void SetAll();
|
---|
82 | CoreExport void Toggle();
|
---|
83 | CoreExport void Empty();
|
---|
84 | CoreExport BOOL IsCompatible(BezierShape& shape);
|
---|
85 | CoreExport BOOL IsCompatible(PolyShape& shape);
|
---|
86 | CoreExport IOResult Save(ISave* isave);
|
---|
87 | CoreExport IOResult Load(ILoad* iload);
|
---|
88 | };
|
---|
89 |
|
---|
90 |
|
---|
91 | #endif __SHPSELS__
|
---|