Salome HOME
4a109372a6f37e4ae9f2e56b43a330f02ba3ec78
[modules/geom.git] / src / GEOMGUI / GeometryGUI_Operations.h
1 // Copyright (C) 2007-2014  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, or (at your option) any later version.
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     OpShowDependencyTree  = 1264,   // POPUP MENU - SHOW DEPENDENCY TREE
65     OpReduceStudy         = 1265,   // POPUP MENU - REDUCE STUDY
66     // DisplayGUI ------------------//--------------------------------
67     OpSwitchVectors       = 2001,   // MENU VIEW  - DISPLAY MODE - SHOW/HIDE EDGE DIRECTION
68     OpShowAll             = 2002,   // MENU VIEW  - SHOW ALL
69     OpHideAll             = 2003,   // MENU VIEW  - HIDE ALL
70     OpDMWireframe         = 2010,   // MENU VIEW  - DISPLAY MODE - WIREFRAME
71     OpDMShading           = 2011,   // MENU VIEW  - DISPLAY MODE - SHADING
72     OpDMShadingWithEdges  = 2012,   // MENU VIEW  - DISPLAY MODE - SHADING WITH EDGES
73     OpDMTexture           = 2013,   // MENU VIEW  - DISPLAY MODE - TEXTURE
74     OpSwitchVertices      = 2014,   // MENU VIEW  - DISPLAY MODE - SHOW/HIDE VERTICES
75     OpShow                = 2100,   // POPUP MENU - SHOW
76     OpShowOnly            = 2101,   // POPUP MENU - SHOW ONLY
77     OpHide                = 2102,   // POPUP MENU - HIDE
78     OpShowOnlyChildren    = 2103,   // POPUP MENU - SHOW ONLY CHILDREN
79     OpWireframe           = 2200,   // POPUP MENU - DISPLAY MODE - WIREFRAME
80     OpShading             = 2201,   // POPUP MENU - DISPLAY MODE - SHADING
81     OpShadingWithEdges    = 2202,   // POPUP MENU - DISPLAY MODE - SHADING WITH EDGES
82     OpVectors             = 2203,   // POPUP MENU - DISPLAY MODE - SHOW EDGE DIRECTION
83     OpTexture             = 2204,   // POPUP MENU - DISPLAY MODE - TEXTURE
84     OpBringToFront        = 2205,   // POPUP MENU - BRING TO FRONT
85     OpClsBringToFront     = 2206,
86     OpVertices            = 2208,   // POPUP MENU - DISPLAY MODE - SHOW VERTICES
87     // BasicGUI --------------------//--------------------------------
88     OpPoint               = 3000,   // MENU NEW ENTITY - BASIC - POINT
89     OpLine                = 3001,   // MENU NEW ENTITY - BASIC - LINE
90     OpCircle              = 3002,   // MENU NEW ENTITY - BASIC - CIRCLE
91     OpEllipse             = 3003,   // MENU NEW ENTITY - BASIC - ELLIPSE
92     OpArc                 = 3004,   // MENU NEW ENTITY - BASIC - ARC
93     OpVector              = 3005,   // MENU NEW ENTITY - BASIC - VECTOR
94     OpPlane               = 3006,   // MENU NEW ENTITY - BASIC - PLANE
95     OpCurve               = 3007,   // MENU NEW ENTITY - BASIC - CURVE
96     OpLCS                 = 3008,   // MENU NEW ENTITY - BASIC - LOCAL COORDINATE SYSTEM
97     OpOriginAndVectors    = 3009,   // MENU NEW ENTITY - BASIC - ORIGIN AND BASE VECTORS
98     OpIsoline             = 3010,   // MENU NEW ENTITY - BASIC - ISOLINE
99     // PrimitiveGUI ----------------//--------------------------------
100     OpBox                 = 3100,   // MENU NEW ENTITY - PRIMITIVES - BOX
101     OpCylinder            = 3101,   // MENU NEW ENTITY - PRIMITIVES - CYLINDER
102     OpSphere              = 3102,   // MENU NEW ENTITY - PRIMITIVES - SPHERE
103     OpTorus               = 3103,   // MENU NEW ENTITY - PRIMITIVES - TORUS
104     OpCone                = 3104,   // MENU NEW ENTITY - PRIMITIVES - CONE
105     OpRectangle           = 3105,   // MENU NEW ENTITY - PRIMITIVES - FACE
106     OpDisk                = 3106,   // MENU NEW ENTITY - PRIMITIVES - DISK
107     // GenerationGUI ---------------//--------------------------------
108     OpPrism               = 3200,   // MENU NEW ENTITY - GENERATION - EXTRUSION
109     OpRevolution          = 3201,   // MENU NEW ENTITY - GENERATION - REVOLUTION
110     OpFilling             = 3202,   // MENU NEW ENTITY - GENERATION - FILLING
111     OpPipe                = 3203,   // MENU NEW ENTITY - GENERATION - EXTRUSION ALONG PATH
112     OpPipePath            = 3204,   // MENU NEW ENTITY - GENERATION - RESTORE PATH
113     // EntityGUI -------------------//--------------------------------
114     Op2dSketcher          = 3300,   // MENU NEW ENTITY - SKETCHER
115     Op3dSketcher          = 3301,   // MENU NEW ENTITY - 3D SKETCHER
116     OpExplode             = 3302,   // MENU NEW ENTITY - EXPLODE
117 #ifdef WITH_OPENCV
118     OpFeatureDetect       = 3303,   // MENU NEW ENTITY - FEATURE DETECTION
119 #endif
120     OpPictureImport       = 3304,   // MENU NEW ENTITY - IMPORT PICTURE IN VIEWER
121     OpCreateField         = 3305,   // MENU FIELD - CREATE FIELD
122     OpEditField           = 3306,   // MENU FIELD - EDIT FIELD
123     OpEditFieldPopup      = 3307,   // POPUP MENU - EDIT FIELD
124     // BuildGUI --------------------//--------------------------------
125     OpEdge                = 3400,   // MENU NEW ENTITY - BUILD - EDGE
126     OpWire                = 3401,   // MENU NEW ENTITY - BUILD - WIRE
127     OpFace                = 3402,   // MENU NEW ENTITY - BUILD - FACE
128     OpShell               = 3403,   // MENU NEW ENTITY - BUILD - SHELL
129     OpSolid               = 3404,   // MENU NEW ENTITY - BUILD - SOLID
130     OpCompound            = 3405,   // MENU NEW ENTITY - BUILD - COMPOUND
131     // BooleanGUI ------------------//--------------------------------
132     OpFuse                = 3500,   // MENU OPERATIONS - BOOLEAN - FUSE
133     OpCommon              = 3501,   // MENU OPERATIONS - BOOLEAN - COMMON
134     OpCut                 = 3502,   // MENU OPERATIONS - BOOLEAN - CUT
135     OpSection             = 3503,   // MENU OPERATIONS - BOOLEAN - SECTION
136     // TransformationGUI -----------//--------------------------------
137     OpTranslate           = 3600,   // MENU OPERATIONS - TRANSFORMATION - TRANSLATION
138     OpRotate              = 3601,   // MENU OPERATIONS - TRANSFORMATION - ROTATION
139     OpChangeLoc           = 3602,   // MENU OPERATIONS - TRANSFORMATION - LOCATION
140     OpMirror              = 3603,   // MENU OPERATIONS - TRANSFORMATION - MIRROR
141     OpScale               = 3604,   // MENU OPERATIONS - TRANSFORMATION - SCALE
142     OpOffset              = 3605,   // MENU OPERATIONS - TRANSFORMATION - OFFSET
143     OpMultiTranslate      = 3606,   // MENU OPERATIONS - TRANSFORMATION - MULTI-TRANSLATION
144     OpMultiRotate         = 3607,   // MENU OPERATIONS - TRANSFORMATION - MULTI-ROTATION
145     OpReimport            = 3608,   // POPUP MENU - RELOAD IMPORTED
146     OpProjection          = 3609,   // MENU OPERATIONS - TRANSFORMATION - PROJECTION
147     // OperationGUI ----------------//--------------------------------
148     OpPartition           = 3700,   // MENU OPERATION - PARTITION
149     OpArchimede           = 3701,   // MENU OPERATION - ARCHIMEDE
150     OpFillet3d            = 3702,   // MENU OPERATION - FILLET
151     OpChamfer             = 3703,   // MENU OPERATION - CHAMFER
152     OpShapesOnShape       = 3704,   // MENU OPERATION - GET SHAPES ON SHAPE
153     OpFillet2d            = 3705,   // MENU OPERATION - FILLET 2D
154     OpFillet1d            = 3706,   // MENU OPERATION - FILLET 1D
155     OpClipping            = 3707,   // MENU OPERATION - CLIPPING RANGE
156     OpSharedShapes        = 3708,   // MENU OPERATION - GET SHARED SHAPES
157     OpExtrudedBoss        = 3709,   // MENU OPERATION - ETRUDED BOSS
158     OpExtrudedCut         = 3710,   // MENU OPERATION - ETRUDED CUT
159 #ifdef DEBUG_CURVE_CREATOR
160     OpCurveCreator        = 3799,   // MENU OPERATION - CURVE CREATOR
161 #endif
162     // for debug purposes, to be removed
163     // RepairGUI -------------------//--------------------------------
164     OpSewing              = 4000,   // MENU REPAIR - SEWING
165     OpSuppressFaces       = 4001,   // MENU REPAIR - SUPPRESS FACES
166     OpSuppressHoles       = 4002,   // MENU REPAIR - SUPPRESS HOLES
167     OpShapeProcess        = 4003,   // MENU REPAIR - SHAPE PROCESSING
168     OpCloseContour        = 4004,   // MENU REPAIR - CLOSE CONTOUR
169     OpRemoveIntWires      = 4005,   // MENU REPAIR - REMOVE INTERNAL WIRES
170     OpAddPointOnEdge      = 4006,   // MENU REPAIR - ADD POINT ON EDGE
171     OpFreeBoundaries      = 4007,   // MENU MEASURES - FREE BOUNDARIES
172     OpFreeFaces           = 4008,   // MENU MEASURES - FREE FACES
173     OpOrientation         = 4009,   // MENU REPAIR - CHANGE ORIENTATION
174     OpGlueFaces           = 4010,   // MENU REPAIR - GLUE FACES
175     OpRemoveExtraEdges    = 4011,   // MENU REPAIR - REMOVE EXTRA EDGES
176     OpLimitTolerance      = 4012,   // MENU REPAIR - LIMIT TOLERANCE
177     OpGlueEdges           = 4013,   // MENU REPAIR - GLUE EDGES
178     OpFuseEdges           = 4014,   // MENU REPAIR - FUSE COLLINEAR EDGES
179     OpUnionFaces          = 4015,   // MENU REPAIR - UNION FACES
180     OpRemoveWebs          = 4016,   // MENU REPAIR - REMOVE INTERNAL FACES
181     // MeasureGUI ------------------//--------------------------------
182     OpProperties          = 5000,   // MENU MEASURES - PROPERTIES
183     OpCenterMass          = 5001,   // MENU MEASURES - CENTRE OF MASS
184     OpInertia             = 5002,   // MENU MEASURES - INERTIA
185     OpNormale             = 5003,   // MENU MEASURES - NORMALE
186     OpBoundingBox         = 5004,   // MENU MEASURES - BOUNDING BOX
187     OpMinDistance         = 5005,   // MENU MEASURES - MIN DISTANCE
188     OpAngle               = 5006,   // MENU MEASURES - ANGLE
189     OpTolerance           = 5007,   // MENU MEASURES - TOLERANCE
190     OpWhatIs              = 5008,   // MENU MEASURES - WHAT IS
191     OpCheckShape          = 5009,   // MENU MEASURES - CHECK
192     OpCheckCompound       = 5010,   // MENU MEASURES - CHECK COMPOUND OF BLOCKS
193     OpPointCoordinates    = 5011,   // MENU MEASURES - POINT COORDINATES
194     OpCheckSelfInters     = 5012,   // MENU MEASURES - CHECK SELF INTERSECTIONS
195     OpGetNonBlocks        = 5013,   // MENU MEASURES - GET NON BLOCKS
196     OpManageDimensions    = 5014,   // MENU MEASURES - MANAGE DIMENSIONS
197     OpShowAllDimensions   = 5015,   // POPUP MENU - SHOW ALL DIMENSIONS
198     OpHideAllDimensions   = 5016,   // POPUP MENU - HIDE ALL DIMENSIONS
199     // GroupGUI --------------------//--------------------------------
200     OpGroupCreate         = 6000,   // MENU GROUP - CREATE
201     OpGroupEdit           = 6001,   // MENU GROUP - EDIT
202     OpGroupCreatePopup    = 6002,   // POPUP MENU - CREATE GROUP
203     OpGroupUnion          = 6003,   // POPUP MENU - UNION GROUPS
204     OpGroupIntersect      = 6004,   // POPUP MENU - INTERSECT GROUPS
205     OpGroupCut            = 6005,   // POPUP MENU - CUT GROUPS
206     // BlocksGUI -------------------//--------------------------------
207     OpHexaSolid           = 6100,   // MENU BLOCKS - HEXAHEDRAL SOLID
208     OpMultiTransform      = 6101,   // MENU BLOCKS - MULTI-TRANSFORMATION
209     OpQuadFace            = 6102,   // MENU BLOCKS - QUADRANGLE FACE
210     OpPropagate           = 6103,   // MENU BLOCKS - PROPAGATE
211     OpExplodeBlock        = 6104,   // MENU BLOCKS - EXPLODE ON BLOCKS
212     // ImportExport ----------------//--------------------------------
213     OpExportXAO           = 6200,   // MENU NEW ENTITY - IMPORTEXPORT - EXPORTXAO
214     OpImportXAO           = 6201,   // MENU NEW ENTITY - IMPORTEXPORT - IMPORTXAO
215     // AdvancedGUI -----------------//--------------------------------
216     OpAdvancedNoOp        = 10000,  // NO OPERATION (advanced operations base)
217     //OpPipeTShape          = 10001,  // MENU NEW ENTITY - ADVANCED - PIPE TSHAPE
218     //OpPipeTShapeGroups    = 10002,  // MENU NEW ENTITY - ADVANCED - PIPE TSHAPE GROUPS
219     //OpDividedDisk         = 10003,  // MENU NEW ENTITY - ADVANCED - DIVIDEDDISK
220     //OpDividedCylinder     = 10004,  // MENU NEW ENTITY - ADVANCED - DIVIDEDCYLINDER
221     //OpSmoothingSurface    = 10005,  // MENU NEW ENTITY - ADVANCED - SMOOTHINGSURFACE
222     //@@ insert new functions before this line @@ do not remove this line @@//
223     OpLastOperationID     = 20000   // DO NOT USE OPERATION IDs MORE THAN 20000 !!!
224   };
225 }
226
227 #endif // GEOMETRYGUI_OPERATIONS_H