]> SALOME platform Git repositories - modules/geom.git/blob - src/GEOMGUI/GeometryGUI_Operations.h
Salome HOME
0022354: EDF GEOM: Create edge by getting iso-line of surface
[modules/geom.git] / src / GEOMGUI / GeometryGUI_Operations.h
1 // Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 //  File   : GeometryGUI_Operations.h
20 //  Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
21
22 #ifndef GEOMETRYGUI_OPERATIONS_H
23 #define GEOMETRYGUI_OPERATIONS_H
24
25 namespace GEOMOp {
26   enum {
27     // ToolsGUI --------------------//--------------------------------
28     OpImport              = 1000,   // MENU FILE  - IMPORT
29     OpExport              = 1001,   // MENU FILE  - EXPORT
30     OpDelete              = 1020,   // MENU EDIT  - DELETE
31     OpCheckGeom           = 1030,   // MENU TOOLS - CHECK GEOMETRY
32     OpMaterialsLibrary    = 1040,   // MENU TOOLS - MATERIALS LIBRARY
33     OpSelectVertex        = 1100,   // POPUP MENU - SELECT ONLY - VERTEX
34     OpSelectEdge          = 1101,   // POPUP MENU - SELECT ONLY - EDGE
35     OpSelectWire          = 1102,   // POPUP MENU - SELECT ONLY - WIRE
36     OpSelectFace          = 1103,   // POPUP MENU - SELECT ONLY - FACE
37     OpSelectShell         = 1104,   // POPUP MENU - SELECT ONLY - SHELL
38     OpSelectSolid         = 1105,   // POPUP MENU - SELECT ONLY - SOLID
39     OpSelectCompound      = 1106,   // POPUP MENU - SELECT ONLY - COMPOUND
40     OpSelectAll           = 1107,   // POPUP MENU - SELECT ONLY - SELECT ALL
41     OpDeflection          = 1200,   // POPUP MENU - DEFLECTION COEFFICIENT
42     OpColor               = 1201,   // POPUP MENU - COLOR
43     OpTransparency        = 1202,   // POPUP MENU - TRANSPARENCY
44     OpIncrTransparency    = 1203,   // SHORTCUT   - INCREASE TRANSPARENCY
45     OpDecrTransparency    = 1204,   // SHORTCUT   - DECREASE TRANSPARENCY
46     OpIsos                = 1205,   // POPUP MENU - ISOS
47     OpIncrNbIsos          = 1206,   // SHORTCUT   - INCREASE NB ISOS
48     OpDecrNbIsos          = 1207,   // SHORTCUT   - DECREASE NB ISOS
49     OpAutoColor           = 1208,   // POPUP MENU - AUTO COLOR
50     OpNoAutoColor         = 1209,   // POPUP MENU - DISABLE AUTO COLOR
51     OpPointMarker         = 1210,   // POPUP MENU - POINT MARKER
52     OpSetTexture          = 1211,   // POPUP MENU - SETTEXTURE
53     OpMaterialProperties  = 1212,   // POPUP MENU - MATERIAL PROPERTIES
54     OpPredefMaterial      = 1213,   // POPUP MENU - MATERIAL PROPERTIES - <SOME MATERIAL>
55     OpPredefMaterCustom   = 1214,   // POPUP MENU - MATERIAL PROPERTIES - CUSTOM...
56     OpDiscloseChildren    = 1250,   // POPUP MENU - DISCLOSE CHILD ITEMS
57     OpConcealChildren     = 1251,   // POPUP MENU - CONCEAL CHILD ITEMS
58     OpUnpublishObject     = 1253,   // POPUP MENU - UNPUBLISH
59     OpPublishObject       = 1254,   // GEOM ROOT OBJECT - POPUP MENU - PUBLISH
60     OpEdgeWidth           = 1260,   // POPUP MENU - LINE WIDTH - EDGE WIDTH
61     OpIsosWidth           = 1261,   // POPUP MENU - LINE WIDTH - ISOS WIDTH
62     OpCreateFolder        = 1262,   // POPUP MENU - CREATE FOLDER
63     OpSortChildren        = 1263,   // POPUP MENU - SORT CHILD ITEMS
64     // DisplayGUI ------------------//--------------------------------
65     OpSwitchVectors       = 2001,   // MENU VIEW  - DISPLAY MODE - SHOW/HIDE EDGE DIRECTION
66     OpShowAll             = 2002,   // MENU VIEW  - SHOW ALL
67     OpHideAll             = 2003,   // MENU VIEW  - HIDE ALL
68     OpDMWireframe         = 2010,   // MENU VIEW  - DISPLAY MODE - WIREFRAME
69     OpDMShading           = 2011,   // MENU VIEW  - DISPLAY MODE - SHADING
70     OpDMShadingWithEdges  = 2012,   // MENU VIEW  - DISPLAY MODE - SHADING WITH EDGES
71     OpShow                = 2100,   // POPUP MENU - SHOW
72     OpShowOnly            = 2101,   // POPUP MENU - SHOW ONLY
73     OpHide                = 2102,   // POPUP MENU - HIDE
74     OpShowOnlyChildren    = 2103,   // POPUP MENU - SHOW ONLY CHILDREN
75     OpWireframe           = 2200,   // POPUP MENU - DISPLAY MODE - WIREFRAME
76     OpShading             = 2201,   // POPUP MENU - DISPLAY MODE - SHADING
77     OpShadingWithEdges    = 2202,   // POPUP MENU - DISPLAY MODE - SHADING WITH EDGES
78     OpVectors             = 2203,   // POPUP MENU - DISPLAY MODE - SHOW EDGE DIRECTION
79     OpTexture             = 2204,   // POPUP MENU - DISPLAY MODE - TEXTURE
80     OpBringToFront        = 2205,   // POPUP MENU - BRING TO FRONT
81     OpClsBringToFront     = 2206,
82     // BasicGUI --------------------//--------------------------------
83     OpPoint               = 3000,   // MENU NEW ENTITY - BASIC - POINT
84     OpLine                = 3001,   // MENU NEW ENTITY - BASIC - LINE
85     OpCircle              = 3002,   // MENU NEW ENTITY - BASIC - CIRCLE
86     OpEllipse             = 3003,   // MENU NEW ENTITY - BASIC - ELLIPSE
87     OpArc                 = 3004,   // MENU NEW ENTITY - BASIC - ARC
88     OpVector              = 3005,   // MENU NEW ENTITY - BASIC - VECTOR
89     OpPlane               = 3006,   // MENU NEW ENTITY - BASIC - PLANE
90     OpCurve               = 3007,   // MENU NEW ENTITY - BASIC - CURVE
91     OpLCS                 = 3008,   // MENU NEW ENTITY - BASIC - LOCAL COORDINATE SYSTEM
92     OpOriginAndVectors    = 3009,   // MENU NEW ENTITY - BASIC - ORIGIN AND BASE VECTORS
93     OpIsoline             = 3010,   // MENU NEW ENTITY - BASIC - ISOLINE
94     // PrimitiveGUI ----------------//--------------------------------
95     OpBox                 = 3100,   // MENU NEW ENTITY - PRIMITIVES - BOX
96     OpCylinder            = 3101,   // MENU NEW ENTITY - PRIMITIVES - CYLINDER
97     OpSphere              = 3102,   // MENU NEW ENTITY - PRIMITIVES - SPHERE
98     OpTorus               = 3103,   // MENU NEW ENTITY - PRIMITIVES - TORUS
99     OpCone                = 3104,   // MENU NEW ENTITY - PRIMITIVES - CONE
100     OpRectangle           = 3105,   // MENU NEW ENTITY - PRIMITIVES - FACE
101     OpDisk                = 3106,   // MENU NEW ENTITY - PRIMITIVES - DISK
102     // GenerationGUI ---------------//--------------------------------
103     OpPrism               = 3200,   // MENU NEW ENTITY - GENERATION - EXTRUSION
104     OpRevolution          = 3201,   // MENU NEW ENTITY - GENERATION - REVOLUTION
105     OpFilling             = 3202,   // MENU NEW ENTITY - GENERATION - FILLING
106     OpPipe                = 3203,   // MENU NEW ENTITY - GENERATION - EXTRUSION ALONG PATH
107     OpPipePath            = 3204,   // MENU NEW ENTITY - GENERATION - RESTORE PATH
108     // EntityGUI -------------------//--------------------------------
109     Op2dSketcher          = 3300,   // MENU NEW ENTITY - SKETCHER
110     Op3dSketcher          = 3301,   // MENU NEW ENTITY - 3D SKETCHER
111     OpExplode             = 3302,   // MENU NEW ENTITY - EXPLODE
112 #ifdef WITH_OPENCV
113     OpFeatureDetect       = 3303,   // MENU NEW ENTITY - FEATURE DETECTION
114 #endif
115     OpPictureImport       = 3304,   // MENU NEW ENTITY - IMPORT PICTURE IN VIEWER
116     OpCreateField         = 3305,   // MENU FIELD - CREATE FIELD
117     OpEditField           = 3306,   // MENU FIELD - EDIT FIELD
118     OpEditFieldPopup      = 3307,   // POPUP MENU - EDIT FIELD
119     // BuildGUI --------------------//--------------------------------
120     OpEdge                = 3400,   // MENU NEW ENTITY - BUILD - EDGE
121     OpWire                = 3401,   // MENU NEW ENTITY - BUILD - WIRE
122     OpFace                = 3402,   // MENU NEW ENTITY - BUILD - FACE
123     OpShell               = 3403,   // MENU NEW ENTITY - BUILD - SHELL
124     OpSolid               = 3404,   // MENU NEW ENTITY - BUILD - SOLID
125     OpCompound            = 3405,   // MENU NEW ENTITY - BUILD - COMPOUND
126     // BooleanGUI ------------------//--------------------------------
127     OpFuse                = 3500,   // MENU OPERATIONS - BOOLEAN - FUSE
128     OpCommon              = 3501,   // MENU OPERATIONS - BOOLEAN - COMMON
129     OpCut                 = 3502,   // MENU OPERATIONS - BOOLEAN - CUT
130     OpSection             = 3503,   // MENU OPERATIONS - BOOLEAN - SECTION
131     // TransformationGUI -----------//--------------------------------
132     OpTranslate           = 3600,   // MENU OPERATIONS - TRANSFORMATION - TRANSLATION
133     OpRotate              = 3601,   // MENU OPERATIONS - TRANSFORMATION - ROTATION
134     OpChangeLoc           = 3602,   // MENU OPERATIONS - TRANSFORMATION - LOCATION
135     OpMirror              = 3603,   // MENU OPERATIONS - TRANSFORMATION - MIRROR
136     OpScale               = 3604,   // MENU OPERATIONS - TRANSFORMATION - SCALE
137     OpOffset              = 3605,   // MENU OPERATIONS - TRANSFORMATION - OFFSET
138     OpMultiTranslate      = 3606,   // MENU OPERATIONS - TRANSFORMATION - MULTI-TRANSLATION
139     OpMultiRotate         = 3607,   // MENU OPERATIONS - TRANSFORMATION - MULTI-ROTATION
140     OpReimport            = 3608,   // POPUP MENU - RELOAD IMPORTED
141     OpProjection          = 3609,   // MENU OPERATIONS - TRANSFORMATION - PROJECTION
142     // OperationGUI ----------------//--------------------------------
143     OpPartition           = 3700,   // MENU OPERATION - PARTITION
144     OpArchimede           = 3701,   // MENU OPERATION - ARCHIMEDE
145     OpFillet3d            = 3702,   // MENU OPERATION - FILLET
146     OpChamfer             = 3703,   // MENU OPERATION - CHAMFER
147     OpShapesOnShape       = 3704,   // MENU OPERATION - GET SHAPES ON SHAPE
148     OpFillet2d            = 3705,   // MENU OPERATION - FILLET 2D
149     OpFillet1d            = 3706,   // MENU OPERATION - FILLET 1D
150     OpClipping            = 3707,   // MENU OPERATION - CLIPPING RANGE
151     OpSharedShapes        = 3708,   // MENU OPERATION - GET SHARED SHAPES
152     OpExtrudedBoss        = 3709,   // MENU OPERATION - ETRUDED BOSS
153     OpExtrudedCut         = 3710,   // MENU OPERATION - ETRUDED CUT
154 #ifdef DEBUG_CURVE_CREATOR
155     OpCurveCreator        = 3799,   // MENU OPERATION - CURVE CREATOR
156 #endif
157     // for debug purposes, to be removed
158     // RepairGUI -------------------//--------------------------------
159     OpSewing              = 4000,   // MENU REPAIR - SEWING
160     OpSuppressFaces       = 4001,   // MENU REPAIR - SUPPRESS FACES
161     OpSuppressHoles       = 4002,   // MENU REPAIR - SUPPRESS HOLES
162     OpShapeProcess        = 4003,   // MENU REPAIR - SHAPE PROCESSING
163     OpCloseContour        = 4004,   // MENU REPAIR - CLOSE CONTOUR
164     OpRemoveIntWires      = 4005,   // MENU REPAIR - REMOVE INTERNAL WIRES
165     OpAddPointOnEdge      = 4006,   // MENU REPAIR - ADD POINT ON EDGE
166     OpFreeBoundaries      = 4007,   // MENU MEASURES - FREE BOUNDARIES
167     OpFreeFaces           = 4008,   // MENU MEASURES - FREE FACES
168     OpOrientation         = 4009,   // MENU REPAIR - CHANGE ORIENTATION
169     OpGlueFaces           = 4010,   // MENU REPAIR - GLUE FACES
170     OpRemoveExtraEdges    = 4011,   // MENU REPAIR - REMOVE EXTRA EDGES
171     OpLimitTolerance      = 4012,   // MENU REPAIR - LIMIT TOLERANCE
172     OpGlueEdges           = 4013,   // MENU REPAIR - GLUE EDGES
173     OpFuseEdges           = 4014,   // MENU REPAIR - FUSE COLLINEAR EDGES
174     OpUnionFaces          = 4015,   // MENU REPAIR - UNION FACES
175     OpRemoveWebs          = 4016,   // MENU REPAIR - REMOVE INTERNAL FACES
176     // MeasureGUI ------------------//--------------------------------
177     OpProperties          = 5000,   // MENU MEASURES - PROPERTIES
178     OpCenterMass          = 5001,   // MENU MEASURES - CENTRE OF MASS
179     OpInertia             = 5002,   // MENU MEASURES - INERTIA
180     OpNormale             = 5003,   // MENU MEASURES - NORMALE
181     OpBoundingBox         = 5004,   // MENU MEASURES - BOUNDING BOX
182     OpMinDistance         = 5005,   // MENU MEASURES - MIN DISTANCE
183     OpAngle               = 5006,   // MENU MEASURES - ANGLE
184     OpTolerance           = 5007,   // MENU MEASURES - TOLERANCE
185     OpWhatIs              = 5008,   // MENU MEASURES - WHAT IS
186     OpCheckShape          = 5009,   // MENU MEASURES - CHECK
187     OpCheckCompound       = 5010,   // MENU MEASURES - CHECK COMPOUND OF BLOCKS
188     OpPointCoordinates    = 5011,   // MENU MEASURES - POINT COORDINATES
189     OpCheckSelfInters     = 5012,   // MENU MEASURES - CHECK SELF INTERSECTIONS
190     OpGetNonBlocks        = 5013,   // MENU MEASURES - GET NON BLOCKS
191     // GroupGUI --------------------//--------------------------------
192     OpGroupCreate         = 6000,   // MENU GROUP - CREATE
193     OpGroupEdit           = 6001,   // MENU GROUP - EDIT
194     OpGroupCreatePopup    = 6002,   // POPUP MENU - CREATE GROUP
195     OpGroupUnion          = 6003,   // POPUP MENU - UNION GROUPS
196     OpGroupIntersect      = 6004,   // POPUP MENU - INTERSECT GROUPS
197     OpGroupCut            = 6005,   // POPUP MENU - CUT GROUPS
198     // BlocksGUI -------------------//--------------------------------
199     OpHexaSolid           = 6100,   // MENU BLOCKS - HEXAHEDRAL SOLID
200     OpMultiTransform      = 6101,   // MENU BLOCKS - MULTI-TRANSFORMATION
201     OpQuadFace            = 6102,   // MENU BLOCKS - QUADRANGLE FACE
202     OpPropagate           = 6103,   // MENU BLOCKS - PROPAGATE
203     OpExplodeBlock        = 6104,   // MENU BLOCKS - EXPLODE ON BLOCKS
204     // ImportExport ----------------//--------------------------------
205     OpExportXAO           = 6200,   // MENU NEW ENTITY - IMPORTEXPORT - EXPORTXAO
206     OpImportXAO           = 6201,   // MENU NEW ENTITY - IMPORTEXPORT - IMPORTXAO
207     // AdvancedGUI -----------------//--------------------------------
208     OpAdvancedNoOp        = 10000,  // NO OPERATION (advanced operations base)
209     //OpPipeTShape          = 10001,  // MENU NEW ENTITY - ADVANCED - PIPE TSHAPE
210     //OpPipeTShapeGroups    = 10002,  // MENU NEW ENTITY - ADVANCED - PIPE TSHAPE GROUPS
211     //OpDividedDisk         = 10003,  // MENU NEW ENTITY - ADVANCED - DIVIDEDDISK
212     //OpDividedCylinder     = 10004,  // MENU NEW ENTITY - ADVANCED - DIVIDEDCYLINDER
213     //OpSmoothingSurface    = 10005,  // MENU NEW ENTITY - ADVANCED - SMOOTHINGSURFACE
214     //@@ insert new functions before this line @@ do not remove this line @@//
215     OpLastOperationID     = 20000   // DO NOT USE OPERATION IDs MORE THAN 20000 !!!
216   };
217 }
218
219 #endif // GEOMETRYGUI_OPERATIONS_H