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