1 // Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
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.
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.
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
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 // File : GeometryGUI_Operations.h
20 // Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
22 #ifndef GEOMETRYGUI_OPERATIONS_H
23 #define GEOMETRYGUI_OPERATIONS_H
27 // ToolsGUI --------------------//--------------------------------
28 OpDelete = 1020, // MENU EDIT - DELETE
29 OpCheckGeom = 1030, // MENU TOOLS - CHECK GEOMETRY
30 OpMaterialsLibrary = 1040, // MENU TOOLS - MATERIALS LIBRARY
31 OpSelectVertex = 1100, // POPUP MENU - SELECT ONLY - VERTEX
32 OpSelectEdge = 1101, // POPUP MENU - SELECT ONLY - EDGE
33 OpSelectWire = 1102, // POPUP MENU - SELECT ONLY - WIRE
34 OpSelectFace = 1103, // POPUP MENU - SELECT ONLY - FACE
35 OpSelectShell = 1104, // POPUP MENU - SELECT ONLY - SHELL
36 OpSelectSolid = 1105, // POPUP MENU - SELECT ONLY - SOLID
37 OpSelectCompound = 1106, // POPUP MENU - SELECT ONLY - COMPOUND
38 OpSelectAll = 1107, // POPUP MENU - SELECT ONLY - SELECT ALL
39 OpDeflection = 1200, // POPUP MENU - DEFLECTION COEFFICIENT
40 OpColor = 1201, // POPUP MENU - COLOR
41 OpTransparency = 1202, // POPUP MENU - TRANSPARENCY
42 OpIncrTransparency = 1203, // SHORTCUT - INCREASE TRANSPARENCY
43 OpDecrTransparency = 1204, // SHORTCUT - DECREASE TRANSPARENCY
44 OpIsos = 1205, // POPUP MENU - ISOS
45 OpIncrNbIsos = 1206, // SHORTCUT - INCREASE NB ISOS
46 OpDecrNbIsos = 1207, // SHORTCUT - DECREASE NB ISOS
47 OpAutoColor = 1208, // POPUP MENU - AUTO COLOR
48 OpNoAutoColor = 1209, // POPUP MENU - DISABLE AUTO COLOR
49 OpPointMarker = 1210, // POPUP MENU - POINT MARKER
50 OpSetTexture = 1211, // POPUP MENU - SETTEXTURE
51 OpMaterialProperties = 1212, // POPUP MENU - MATERIAL PROPERTIES
52 OpPredefMaterial = 1213, // POPUP MENU - MATERIAL PROPERTIES - <SOME MATERIAL>
53 OpPredefMaterCustom = 1214, // POPUP MENU - MATERIAL PROPERTIES - CUSTOM...
54 OpDiscloseChildren = 1250, // POPUP MENU - DISCLOSE CHILD ITEMS
55 OpConcealChildren = 1251, // POPUP MENU - CONCEAL CHILD ITEMS
56 OpUnpublishObject = 1253, // POPUP MENU - UNPUBLISH
57 OpPublishObject = 1254, // GEOM ROOT OBJECT - POPUP MENU - PUBLISH
58 OpEdgeWidth = 1260, // POPUP MENU - LINE WIDTH - EDGE WIDTH
59 OpIsosWidth = 1261, // POPUP MENU - LINE WIDTH - ISOS WIDTH
60 OpCreateFolder = 1262, // POPUP MENU - CREATE FOLDER
61 OpSortChildren = 1263, // POPUP MENU - SORT CHILD ITEMS
62 OpShowDependencyTree = 1264, // POPUP MENU - SHOW DEPENDENCY TREE
63 OpReduceStudy = 1265, // POPUP MENU - REDUCE STUDY
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 OpDMTexture = 2013, // MENU VIEW - DISPLAY MODE - TEXTURE
72 OpSwitchVertices = 2014, // MENU VIEW - DISPLAY MODE - SHOW/HIDE VERTICES
73 OpShow = 2100, // POPUP MENU - SHOW
74 OpShowOnly = 2101, // POPUP MENU - SHOW ONLY
75 OpHide = 2102, // POPUP MENU - HIDE
76 OpShowOnlyChildren = 2103, // POPUP MENU - SHOW ONLY CHILDREN
77 OpWireframe = 2200, // POPUP MENU - DISPLAY MODE - WIREFRAME
78 OpShading = 2201, // POPUP MENU - DISPLAY MODE - SHADING
79 OpShadingWithEdges = 2202, // POPUP MENU - DISPLAY MODE - SHADING WITH EDGES
80 OpVectors = 2203, // POPUP MENU - DISPLAY MODE - SHOW EDGE DIRECTION
81 OpTexture = 2204, // POPUP MENU - DISPLAY MODE - TEXTURE
82 OpBringToFront = 2205, // POPUP MENU - BRING TO FRONT
83 OpClsBringToFront = 2206,
84 OpVertices = 2208, // POPUP MENU - DISPLAY MODE - SHOW VERTICES
85 // BasicGUI --------------------//--------------------------------
86 OpPoint = 3000, // MENU NEW ENTITY - BASIC - POINT
87 OpLine = 3001, // MENU NEW ENTITY - BASIC - LINE
88 OpCircle = 3002, // MENU NEW ENTITY - BASIC - CIRCLE
89 OpEllipse = 3003, // MENU NEW ENTITY - BASIC - ELLIPSE
90 OpArc = 3004, // MENU NEW ENTITY - BASIC - ARC
91 OpVector = 3005, // MENU NEW ENTITY - BASIC - VECTOR
92 OpPlane = 3006, // MENU NEW ENTITY - BASIC - PLANE
93 OpCurve = 3007, // MENU NEW ENTITY - BASIC - CURVE
94 OpLCS = 3008, // MENU NEW ENTITY - BASIC - LOCAL COORDINATE SYSTEM
95 OpOriginAndVectors = 3009, // MENU NEW ENTITY - BASIC - ORIGIN AND BASE VECTORS
96 OpIsoline = 3010, // MENU NEW ENTITY - BASIC - ISOLINE
97 // PrimitiveGUI ----------------//--------------------------------
98 OpBox = 3100, // MENU NEW ENTITY - PRIMITIVES - BOX
99 OpCylinder = 3101, // MENU NEW ENTITY - PRIMITIVES - CYLINDER
100 OpSphere = 3102, // MENU NEW ENTITY - PRIMITIVES - SPHERE
101 OpTorus = 3103, // MENU NEW ENTITY - PRIMITIVES - TORUS
102 OpCone = 3104, // MENU NEW ENTITY - PRIMITIVES - CONE
103 OpRectangle = 3105, // MENU NEW ENTITY - PRIMITIVES - FACE
104 OpDisk = 3106, // MENU NEW ENTITY - PRIMITIVES - DISK
105 // GenerationGUI ---------------//--------------------------------
106 OpPrism = 3200, // MENU NEW ENTITY - GENERATION - EXTRUSION
107 OpRevolution = 3201, // MENU NEW ENTITY - GENERATION - REVOLUTION
108 OpFilling = 3202, // MENU NEW ENTITY - GENERATION - FILLING
109 OpPipe = 3203, // MENU NEW ENTITY - GENERATION - EXTRUSION ALONG PATH
110 OpPipePath = 3204, // MENU NEW ENTITY - GENERATION - RESTORE PATH
111 // EntityGUI -------------------//--------------------------------
112 Op2dSketcher = 3300, // MENU NEW ENTITY - SKETCHER
113 Op3dSketcher = 3301, // MENU NEW ENTITY - 3D SKETCHER
114 OpExplode = 3302, // MENU NEW ENTITY - EXPLODE
116 OpFeatureDetect = 3303, // MENU NEW ENTITY - FEATURE DETECTION
118 OpPictureImport = 3304, // MENU NEW ENTITY - IMPORT PICTURE IN VIEWER
119 OpCreateField = 3305, // MENU FIELD - CREATE FIELD
120 OpEditField = 3306, // MENU FIELD - EDIT FIELD
121 OpEditFieldPopup = 3307, // POPUP MENU - EDIT FIELD
122 Op2dPolylineEditor = 3308, // MENU NEW ENTITY - BASIC - POLYLINE EDITOR
123 // BuildGUI --------------------//--------------------------------
124 OpEdge = 3400, // MENU NEW ENTITY - BUILD - EDGE
125 OpWire = 3401, // MENU NEW ENTITY - BUILD - WIRE
126 OpFace = 3402, // MENU NEW ENTITY - BUILD - FACE
127 OpShell = 3403, // MENU NEW ENTITY - BUILD - SHELL
128 OpSolid = 3404, // MENU NEW ENTITY - BUILD - SOLID
129 OpCompound = 3405, // MENU NEW ENTITY - BUILD - COMPOUND
130 // BooleanGUI ------------------//--------------------------------
131 OpFuse = 3500, // MENU OPERATIONS - BOOLEAN - FUSE
132 OpCommon = 3501, // MENU OPERATIONS - BOOLEAN - COMMON
133 OpCut = 3502, // MENU OPERATIONS - BOOLEAN - CUT
134 OpSection = 3503, // MENU OPERATIONS - BOOLEAN - SECTION
135 // TransformationGUI -----------//--------------------------------
136 OpTranslate = 3600, // MENU OPERATIONS - TRANSFORMATION - TRANSLATION
137 OpRotate = 3601, // MENU OPERATIONS - TRANSFORMATION - ROTATION
138 OpChangeLoc = 3602, // MENU OPERATIONS - TRANSFORMATION - LOCATION
139 OpMirror = 3603, // MENU OPERATIONS - TRANSFORMATION - MIRROR
140 OpScale = 3604, // MENU OPERATIONS - TRANSFORMATION - SCALE
141 OpOffset = 3605, // MENU OPERATIONS - TRANSFORMATION - OFFSET
142 OpMultiTranslate = 3606, // MENU OPERATIONS - TRANSFORMATION - MULTI-TRANSLATION
143 OpMultiRotate = 3607, // MENU OPERATIONS - TRANSFORMATION - MULTI-ROTATION
144 OpReimport = 3608, // POPUP MENU - RELOAD IMPORTED
145 OpProjection = 3609, // MENU OPERATIONS - TRANSFORMATION - PROJECTION
146 // OperationGUI ----------------//--------------------------------
147 OpPartition = 3700, // MENU OPERATION - PARTITION
148 OpArchimede = 3701, // MENU OPERATION - ARCHIMEDE
149 OpFillet3d = 3702, // MENU OPERATION - FILLET
150 OpChamfer = 3703, // MENU OPERATION - CHAMFER
151 OpShapesOnShape = 3704, // MENU OPERATION - GET SHAPES ON SHAPE
152 OpFillet2d = 3705, // MENU OPERATION - FILLET 2D
153 OpFillet1d = 3706, // MENU OPERATION - FILLET 1D
154 OpClipping = 3707, // MENU OPERATION - CLIPPING RANGE
155 OpSharedShapes = 3708, // MENU OPERATION - GET SHARED SHAPES
156 OpExtrudedBoss = 3709, // MENU OPERATION - ETRUDED BOSS
157 OpExtrudedCut = 3710, // MENU OPERATION - ETRUDED CUT
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 OpManageDimensions = 5014, // MENU MEASURES - MANAGE DIMENSIONS
192 OpShowAllDimensions = 5015, // POPUP MENU - SHOW ALL DIMENSIONS
193 OpHideAllDimensions = 5016, // POPUP MENU - HIDE ALL DIMENSIONS
194 // GroupGUI --------------------//--------------------------------
195 OpGroupCreate = 6000, // MENU GROUP - CREATE
196 OpGroupEdit = 6001, // MENU GROUP - EDIT
197 OpGroupCreatePopup = 6002, // POPUP MENU - CREATE GROUP
198 OpGroupUnion = 6003, // POPUP MENU - UNION GROUPS
199 OpGroupIntersect = 6004, // POPUP MENU - INTERSECT GROUPS
200 OpGroupCut = 6005, // POPUP MENU - CUT GROUPS
201 // BlocksGUI -------------------//--------------------------------
202 OpHexaSolid = 6100, // MENU BLOCKS - HEXAHEDRAL SOLID
203 OpMultiTransform = 6101, // MENU BLOCKS - MULTI-TRANSFORMATION
204 OpQuadFace = 6102, // MENU BLOCKS - QUADRANGLE FACE
205 OpPropagate = 6103, // MENU BLOCKS - PROPAGATE
206 OpExplodeBlock = 6104, // MENU BLOCKS - EXPLODE ON BLOCKS
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 !!!
219 #endif // GEOMETRYGUI_OPERATIONS_H