Back to index

salome-geom  6.5.0
GeometryGUI_Operations.h
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 //  File   : GeometryGUI_Operations.h
00020 //  Author : Vadim SANDLER, Open CASCADE S.A.S. (vadim.sandler@opencascade.com)
00021 
00022 #ifndef GEOMETRYGUI_OPERATIONS_H
00023 #define GEOMETRYGUI_OPERATIONS_H
00024 
00025 namespace GEOMOp {
00026   enum {
00027     // ToolsGUI ------------------//--------------------------------
00028     OpImport              = 1000,   // MENU FILE  - IMPORT
00029     OpExport              = 1001,   // MENU FILE  - EXPORT
00030     OpDelete              = 1020,   // MENU EDIT  - DELETE
00031     OpCheckGeom           = 1030,   // MENU TOOLS - CHECK GEOMETRY
00032     OpSelectVertex        = 1100,   // POPUP MENU - SELECT ONLY - VERTEX
00033     OpSelectEdge          = 1101,   // POPUP MENU - SELECT ONLY - EDGE
00034     OpSelectWire          = 1102,   // POPUP MENU - SELECT ONLY - WIRE
00035     OpSelectFace          = 1103,   // POPUP MENU - SELECT ONLY - FACE
00036     OpSelectShell         = 1104,   // POPUP MENU - SELECT ONLY - SHELL
00037     OpSelectSolid         = 1105,   // POPUP MENU - SELECT ONLY - SOLID
00038     OpSelectCompound      = 1106,   // POPUP MENU - SELECT ONLY - COMPOUND
00039     OpSelectAll           = 1107,   // POPUP MENU - SELECT ONLY - SELECT ALL
00040     OpDeflection          = 1200,   // POPUP MENU - DEFLECTION COEFFICIENT
00041     OpColor               = 1201,   // POPUP MENU - COLOR
00042     OpTransparency        = 1202,   // POPUP MENU - TRANSPARENCY
00043     OpIncrTransparency    = 1203,   // SHORTCUT   - INCREASE TRANSPARENCY
00044     OpDecrTransparency    = 1204,   // SHORTCUT   - DECREASE TRANSPARENCY
00045     OpIsos                = 1205,   // POPUP MENU - ISOS
00046     OpIncrNbIsos          = 1206,   // SHORTCUT   - INCREASE NB ISOS
00047     OpDecrNbIsos          = 1207,   // SHORTCUT   - DECREASE NB ISOS
00048     OpAutoColor           = 1208,   // POPUP MENU - AUTO COLOR
00049     OpNoAutoColor         = 1209,   // POPUP MENU - DISABLE AUTO COLOR
00050     OpPointMarker         = 1210,   // POPUP MENU - POINT MARKER
00051     OpSetTexture          = 1211,   // POPUP MENU - SETTEXTURE
00052     OpMaterialProperties  = 1212,   // POPUP MENU - MATERIAL PROPERTIES
00053     OpShowChildren        = 1250,   // POPUP MENU - SHOW CHILDREN
00054     OpHideChildren        = 1251,   // POPUP MENU - HIDE CHILDREN
00055     OpUnpublishObject     = 1253,   // POPUP MENU - UNPUBLISH
00056     OpPublishObject       = 1254,   // GEOM ROOT OBJECT - POPUP MENU - PUBLISH
00057     OpEdgeWidth           = 1260,   // POPUP MENU - LINE WIDTH - EDGE WIDTH
00058     OpIsosWidth           = 1261,   // POPUP MENU - LINE WIDTH - ISOS WIDTH
00059 
00060     // DisplayGUI ----------------//--------------------------------
00061     OpSwitchVectors       = 2001,   // MENU VIEW  - DISPLAY MODE - SHOW/HIDE EDGE DIRECTION
00062     OpShowAll             = 2002,   // MENU VIEW  - SHOW ALL
00063     OpHideAll             = 2003,   // MENU VIEW  - HIDE ALL
00064     OpDMWireframe         = 2010,   // MENU VIEW  - DISPLAY MODE - WIREFRAME
00065     OpDMShading           = 2011,   // MENU VIEW  - DISPLAY MODE - SHADING
00066     OpDMShadingWithEdges  = 2012,   // MENU VIEW  - DISPLAY MODE - SHADING WITH EDGES
00067     OpShow                = 2100,   // POPUP MENU - SHOW
00068     OpShowOnly            = 2101,   // POPUP MENU - SHOW ONLY
00069     OpHide                = 2102,   // POPUP MENU - HIDE
00070     OpWireframe           = 2200,   // POPUP MENU - DISPLAY MODE - WIREFRAME
00071     OpShading             = 2201,   // POPUP MENU - DISPLAY MODE - SHADING
00072     OpShadingWithEdges    = 2202,   // POPUP MENU - DISPLAY MODE - SHADING WITH EDGES
00073     OpVectors             = 2203,   // POPUP MENU - DISPLAY MODE - SHOW EDGE DIRECTION
00074     OpTexture             = 2204,   // POPUP MENU - DISPLAY MODE - TEXTURE
00075     OpBringToFront        = 2205,   // POPUP MENU - BRING TO FRONT
00076     OpClsBringToFront     = 2206,
00077     // BasicGUI ------------------//--------------------------------
00078     OpPoint               = 3000,   // MENU NEW ENTITY - BASIC - POINT
00079     OpLine                = 3001,   // MENU NEW ENTITY - BASIC - LINE
00080     OpCircle              = 3002,   // MENU NEW ENTITY - BASIC - CIRCLE
00081     OpEllipse             = 3003,   // MENU NEW ENTITY - BASIC - ELLIPSE
00082     OpArc                 = 3004,   // MENU NEW ENTITY - BASIC - ARC
00083     OpVector              = 3005,   // MENU NEW ENTITY - BASIC - VECTOR
00084     OpPlane               = 3006,   // MENU NEW ENTITY - BASIC - PLANE
00085     OpCurve               = 3007,   // MENU NEW ENTITY - BASIC - CURVE
00086     OpLCS                 = 3008,   // MENU NEW ENTITY - BASIC - LOCAL COORDINATE SYSTEM
00087     OpOriginAndVectors    = 3009,   // MENU NEW ENTITY - BASIC - ORIGIN AND BASE VECTORS
00088     // PrimitiveGUI --------------//--------------------------------
00089     OpBox                 = 3100,   // MENU NEW ENTITY - PRIMITIVES - BOX
00090     OpCylinder            = 3101,   // MENU NEW ENTITY - PRIMITIVES - CYLINDER
00091     OpSphere              = 3102,   // MENU NEW ENTITY - PRIMITIVES - SPHERE
00092     OpTorus               = 3103,   // MENU NEW ENTITY - PRIMITIVES - TORUS
00093     OpCone                = 3104,   // MENU NEW ENTITY - PRIMITIVES - CONE
00094     OpRectangle           = 3105,   // MENU NEW ENTITY - PRIMITIVES - FACE
00095     OpDisk                = 3106,   // MENU NEW ENTITY - PRIMITIVES - DISK
00096     // GenerationGUI -------------//--------------------------------
00097     OpPrism               = 3200,   // MENU NEW ENTITY - GENERATION - EXTRUSION
00098     OpRevolution          = 3201,   // MENU NEW ENTITY - GENERATION - REVOLUTION
00099     OpFilling             = 3202,   // MENU NEW ENTITY - GENERATION - FILLING
00100     OpPipe                = 3203,   // MENU NEW ENTITY - GENERATION - EXTRUSION ALONG PATH
00101     // EntityGUI -----------------//--------------------------------
00102     Op2dSketcher          = 3300,   // MENU NEW ENTITY - SKETCHER
00103     Op3dSketcher          = 3301,   // MENU NEW ENTITY - 3D SKETCHER
00104     OpExplode             = 3302,   // MENU NEW ENTITY - EXPLODE
00105 #ifdef WITH_OPENCV
00106     OpFeatureDetect       = 3303,   // MENU NEW ENTITY - FEATURE DETECTION
00107 #endif
00108     OpPictureImport       = 3304,   // MENU NEW ENTITY - IMPORT PICTURE IN VIEWER
00109 
00110     // BuildGUI ------------------//--------------------------------
00111     OpEdge                = 3400,   // MENU NEW ENTITY - BUILD - EDGE
00112     OpWire                = 3401,   // MENU NEW ENTITY - BUILD - WIRE
00113     OpFace                = 3402,   // MENU NEW ENTITY - BUILD - FACE
00114     OpShell               = 3403,   // MENU NEW ENTITY - BUILD - SHELL
00115     OpSolid               = 3404,   // MENU NEW ENTITY - BUILD - SOLID
00116     OpCompound            = 3405,   // MENU NEW ENTITY - BUILD - COMPOUND
00117     // BooleanGUI ----------------//--------------------------------
00118     OpFuse                = 3500,   // MENU OPERATIONS - BOOLEAN - FUSE
00119     OpCommon              = 3501,   // MENU OPERATIONS - BOOLEAN - COMMON
00120     OpCut                 = 3502,   // MENU OPERATIONS - BOOLEAN - CUT
00121     OpSection             = 3503,   // MENU OPERATIONS - BOOLEAN - SECTION
00122     // TransformationGUI ---------//--------------------------------
00123     OpTranslate           = 3600,   // MENU OPERATIONS - TRANSFORMATION - TRANSLATION
00124     OpRotate              = 3601,   // MENU OPERATIONS - TRANSFORMATION - ROTATION
00125     OpChangeLoc           = 3602,   // MENU OPERATIONS - TRANSFORMATION - LOCATION
00126     OpMirror              = 3603,   // MENU OPERATIONS - TRANSFORMATION - MIRROR
00127     OpScale               = 3604,   // MENU OPERATIONS - TRANSFORMATION - SCALE
00128     OpOffset              = 3605,   // MENU OPERATIONS - TRANSFORMATION - OFFSET
00129     OpMultiTranslate      = 3606,   // MENU OPERATIONS - TRANSFORMATION - MULTI-TRANSLATION
00130     OpMultiRotate         = 3607,   // MENU OPERATIONS - TRANSFORMATION - MULTI-ROTATION
00131     OpReimport            = 3608,   // POPUP MENU - RELOAD IMPORTED
00132     OpProjection          = 3609,   // MENU OPERATIONS - TRANSFORMATION - PROJECTION
00133     // OperationGUI
00134     OpPartition           = 3700,   // MENU OPERATION - PARTITION
00135     OpArchimede           = 3701,   // MENU OPERATION - ARCHIMEDE
00136     OpFillet3d            = 3702,   // MENU OPERATION - FILLET
00137     OpChamfer             = 3703,   // MENU OPERATION - CHAMFER
00138     OpShapesOnShape       = 3704,   // MENU OPERATION - GET SHAPES ON SHAPE
00139     OpFillet2d            = 3705,   // MENU OPERATION - FILLET 2D
00140     OpFillet1d            = 3706,   // MENU OPERATION - FILLET 1D
00141     OpClipping            = 3707,   // MENU OPERATION - CLIPPING RANGE
00142     OpSharedShapes        = 3708,   // MENU OPERATION - GET SHARED SHAPES
00143     OpExtrudedBoss        = 3709,   // MENU OPERATION - ETRUDED BOSS
00144     OpExtrudedCut         = 3710,   // MENU OPERATION - ETRUDED CUT
00145     // RepairGUI -----------------//--------------------------------
00146     OpSewing              = 4000,   // MENU REPAIR - SEWING
00147     OpSuppressFaces       = 4001,   // MENU REPAIR - SUPPRESS FACES
00148     OpSuppressHoles       = 4002,   // MENU REPAIR - SUPPRESS HOLES
00149     OpShapeProcess        = 4003,   // MENU REPAIR - SHAPE PROCESSING
00150     OpCloseContour        = 4004,   // MENU REPAIR - CLOSE CONTOUR
00151     OpRemoveIntWires      = 4005,   // MENU REPAIR - REMOVE INTERNAL WIRES
00152     OpAddPointOnEdge      = 4006,   // MENU REPAIR - ADD POINT ON EDGE
00153     OpFreeBoundaries      = 4007,   // MENU MEASURES - FREE BOUNDARIES
00154     OpFreeFaces           = 4008,   // MENU MEASURES - FREE FACES
00155     OpOrientation         = 4009,   // MENU REPAIR - CHANGE ORIENTATION
00156     OpGlueFaces           = 4010,   // MENU REPAIR - GLUE FACES
00157     OpRemoveExtraEdges    = 4011,   // MENU REPAIR - REMOVE EXTRA EDGES
00158     OpLimitTolerance      = 4012,   // MENU REPAIR - LIMIT TOLERANCE
00159     OpGlueEdges           = 4013,   // MENU REPAIR - GLUE EDGES
00160     // MeasureGUI ----------------//--------------------------------
00161     OpProperties          = 5000,   // MENU MEASURES - PROPERTIES
00162     OpCenterMass          = 5001,   // MENU MEASURES - CENTRE OF MASS
00163     OpInertia             = 5002,   // MENU MEASURES - INERTIA
00164     OpNormale             = 5003,   // MENU MEASURES - NORMALE
00165     OpBoundingBox         = 5004,   // MENU MEASURES - BOUNDING BOX
00166     OpMinDistance         = 5005,   // MENU MEASURES - MIN DISTANCE
00167     OpAngle               = 5006,   // MENU MEASURES - ANGLE
00168     OpTolerance           = 5007,   // MENU MEASURES - TOLERANCE
00169     OpWhatIs              = 5008,   // MENU MEASURES - WHAT IS
00170     OpCheckShape          = 5009,   // MENU MEASURES - CHECK
00171     OpCheckCompound       = 5010,   // MENU MEASURES - CHECK COMPOUND OF BLOCKS
00172     OpPointCoordinates    = 5011,   // MENU MEASURES - POINT COORDINATES
00173     OpCheckSelfInters     = 5012,   // MENU MEASURES - CHECK SELF INTERSECTIONS
00174     // GroupGUI ------------------//--------------------------------
00175     OpGroupCreate         = 6000,   // MENU GROUP - CREATE
00176     OpGroupEdit           = 6001,   // MENU GROUP - EDIT
00177     OpGroupCreatePopup    = 6002,   // POPUP MENU - CREATE GROUP
00178     // BlocksGUI -----------------//--------------------------------
00179     OpHexaSolid           = 6100,   // MENU BLOCKS - HEXAHEDRAL SOLID
00180     OpMultiTransform      = 6101,   // MENU BLOCKS - MULTI-TRANSFORMATION
00181     OpQuadFace            = 6102,   // MENU BLOCKS - QUADRANGLE FACE
00182     OpPropagate           = 6103,   // MENU BLOCKS - PROPAGATE
00183     OpExplodeBlock        = 6104,   // MENU BLOCKS - EXPLODE ON BLOCKS
00184     // AdvancedGUI ---------------//--------------------------------
00185     OpAdvancedNoOp        = 10000,  // NO OPERATION (advanced operations base)
00186     OpPipeTShape          = 10001,  // MENU NEW ENTITY - ADVANCED - PIPE TSHAPE
00187 //     OpPipeTShapeGroups  = 10002,  // MENU NEW ENTITY - ADVANCED - PIPE TSHAPE GROUPS
00188     //@@ insert new functions before this line @@ do not remove this line @@//
00189   };
00190 }
00191 
00192 #endif // GEOMETRYGUI_OPERATIONS_H