TUI Command:
- geompy.MakeCircle(Point, Vector, Radius),
- where Point defines the center of the circle, Vector gives the circle’s
- normal and Radius is the circle’s radius.
-
-
-
-
Arguments:
-
-
-
-
-
1st Constructor:
- Name + 1 vertex (for the center) + 1 edge (for the direction) + Radius.
-
-
2nd
- Constructor: Name + 3 points which will form the circle.
TUI Command: geompy.MakeEllipse(Point, Vector, RadiusMajor,
- RadiusMinor), where Point defines the center of the ellipse, Vector
- gives the ellipse’s normal, RadiusMajor and RadiusMinor are
- correspondingly a major and minor radiuses of the ellipse.
-
-
-
-
Arguments: Name + 1 vertex (for the
- center) + 1 edge (for the direction) + 1 X Radius + 1 Y Radius.
TUI Command:
- geompy.MakeArc(Point1, Point2, Point3),
- where Point1 is the starting point of the arc, Point2 is a middle point
- of the arc and Point3 is the ending point of the arc.
TUI Command:
- geompy.MakePlane(Point, Vector, TrimSize),
- where Point is a point through which the
- plane passes, Vector gives a normal of the plane and TrimSize is a half
- size of a side of quadrangle face, representing the plane.
-
-
-
-
Arguments:
-
-
-
-
1st Constructor :
- Name + 1 vertex + 1 vector +
- 1 value (to define the size of the plane).
-
-
2nd Constructor :
- Name + 1 vertex + 3 points (for the direction) + 1 value (to define the
- size of the plane).
-
-
3rd Constructor :
- Name + 1 selection + 1 value (to define the size of the plane).
Description:
- The user
- may manually enter values of X, Y, and Z coordinates of origin in the
- corresponding fields of the dialog box, or select a point in the object
- browser or 3D viewer, in this case coordinates of origin are automatically
- filled in with the coordinates of the selected point.
-
-
The user then specifies components of X and
- Y axes direction.
-
-
Preview of the new LCS (small trihedron located
- and oriented according to parameters of LCS) is displayed in the 3D viewer
- and updated as soon as the user modifies some parameter.
-
-
Then the user presses «OK» or «Apply» button
- to create an LCS at the location with the specified coordinates. The new
- object is shown in the Object Browser and in 3D viewer.
-
-
-
-
-
-
TUI command:
- geompy.MakeMarker(OX, OY, OZ, XDX, XDY,
- XDZ, YDX, YDY, YDZ), where OX, OY, OZ are coordinates of the origin
- of LCS, XDX, XDY, XDZ is a vector of OX direction
- of the LCS and YDX, YDY, YDZ is a a vector of OY direction of the LCS.
-
-
-
-
-
-
Arguments:
-
-
-
-
-
1st Constructor :
- Name + Coordinates of origin, X axis direction, Y axis direction
-
-
2nd Constructor :
- Name + reference object.
-
-
3rd Constructor :
- Name + 1 point of origin + X axis direction, Y axis direction.
geompy.MakeBoolean(Shape1,
- Shape2, Operation), where Shape1 is the first argument and Shape2
- is the second argument of Boolean operation, Operation is a type of the
- Boolean operation (1 – Common, 2 – Cut, 3 – Fuse, 4 – Section).
Description:
- Returns a list of subshapes (vertices, edges, wires etc.) of the given
- shape.
-
-
-
-
Result :
- List of GEOM_Objects.
-
-
-
-
TUI Command:
-
-
-
-
-
geompy.SubShape(Shape,
- ListOfID), where Shape is a shape whose subshape(s) is (are) retrieved,
- ListOfID is a list of requested sub shapes IDs. To get a subshape ID use
- method GetSubShapeID().
-
-
geompy.SubShapeAll(Shape,
- TypeOfShape), where Shape is a shape to be exploded on sub shapes
- of type TypeOfShape.
-
-
-
-
-
Arguments:
- 1 SHAPE + 1 type of SubShape.
-
-
-
-
Dialog Box:
-
-
-
-
-
-
-
-
-
-
To use building functions:
-
-
-
-
In the main menu select
- New Entity > Build
- submenu.
TUI Command:
- geompy.MakeFace(Wire, WantPlanarFace),
- where Wire is a wire and if boolean parameter WantPlanarFace is planar
- then only a planar face or no face is constructed.
Result: GEOM_Object
- (edge, face, solid or compsolid).
-
-
-
-
TUI Command :
- geompy.MakePrism(baseShape, Vector,
- Height), where baseShape is a basis of the prism, Vector is a normal
- of the prism and Height is a height of the prism.
-
-
-
-
Arguments:
- Name + 1 shape (vertex, edge, wire, face or shell) serving as base object
- + 1 vector (for direction) + 1 value (dimension).
Description:
- Creates an extruded shape by revolution.
-
-
-
-
Result: GEOM_Object
- (edge, face, solid or compsolid).
-
-
-
-
TUI Command:
- geompy.MakeRevolution(Shape, Axis,
- Angle), where Shape is a shape to rotate, Axis is the axis of the
- revolution and Angle is an angle by which Shape has to be rotated around
- Axis.
-
-
-
-
Arguments: Name + 1 shape (vertex, edge,
- wire, face or shell) serving as base object + 1 vector (for direction)
- + 1 value (angle).
Description:
- Creates a curving face using several curves.
-
-
-
-
Result: GEOM_Object
- (face).
-
-
-
-
TUI Command:
- geompy.MakeFilling(Shape, MinDegree,
- MaxDegree, Tol2D, Tol3D, NbIter), where Shape is a shape to fill,
- MinDegree and MaxDegree are correspondingly maximal and minimal degree,
- Tol2D is a tolerance for 2D and Tol3D is a tolerance for 3D, NbIter is
- a number of iterations.
-
-
-
-
Arguments: Name + 1 List of edges +
- 5 Parameters (Min. degree, Max. degree, Number of iterations, 2D tolerance,
- 3D tolerance).
Result: GEOM_Object
- (edge, face, solid or compsolid).
-
-
-
-
TUI Command:
- geompy.MakePipe(baseShape, pathShape),
- where baseShape is a shape to be extruded, pathShape is a path along which
- baseShape is extruded.
-
-
-
-
Arguments: Name + 1 shape (vertex, edge,
- wire, face or shell) serving as base object + 1 shape (edge, face or shell)
- for definition of the path.
In GEOM you can import
- and export geometrical objects from\into BREP, IGES, STEP files.
-
-
-
-
To import geometrical objects from a BREP, IGES, STEP file:
-
-
-
-
From the File
- menu choose Import and
- select the required format of the file for importation. Then you will
- see a standard dialog box allowing to search for and choose *.brep, *.iges
- or *.step file:
-
-
-
-
-
-
-
-
Select the required file and click OK. You file will be imported into GEOM
- and its contents (geometrical objects) will be displayed in the Object Browser.
-
-
-
-
TUI command:
- geompy.Import(FileName, FormatName),
- where FileName is a name of file which contains a shape, FormatName is
- a string which describes a format of the file.
-
-
-
-
To export geometrical objects into a BREP, IGES, STEP file:
-
-
-
-
Select the object you wish to export, then
- from the File menu choose Export and select the required format
- of the file for exportation. You will see a standard dialog box allowing
- to enter the name and select the location for the file which will be exported:
-
-
-
-
-
-
-
-
Click OK
- to confirm your exportation.
-
-
-
-
TUI command:
- geompy.Export(Shape, FileName, FormatName),
- where Shape is a shape to be exported, FileName is a name of a file to
- which the shape is exported, FormatName is a string which describes the
- file format.
Description:
- Checks whether a shape is a compound of glued blocks. To be considered
- as a compound of blocks, the given shape must satisfy the following conditions:
-
-
-
-
Each
- element of the compound should be a Block (6 faces and 12 edges);
-
-
A
- connection between two Blocks should be an entire quadrangle face or an
- entire edge;
-
-
The
- compound should be connected;
-
-
Two
- quadrangle faces should be glued.
-
-
-
-
-
Informs of the following possible errors:
-
-
-
-
not a block,
-
-
not glued,
-
-
not connected,
-
-
extra
- or degenerated edge.
-
-
-
-
-
Result: Boolean;
- highlight in the viewer.
-
-
-
-
TUI Command:geompy.CheckCompoundOfBlocks(Compound),
- where the Compound is a shape, investigated in order to see, if it is
- a valid compound of blocks. Validity flag is returned, encountered errors
- are printed in the python console.
TUI Command:
- geompy.MakePartition(ListOfShapes,
- ListOfTools, ListOfKeepInside, ListOfRemoveInside, Limit, RemoveWebs,
- ListOfMaterials), where ListOfShapes is a list of shapes to be
- intersected, ListOfTools is a list of shapes to intersect the shapes from
- ListOfShapes, ListOfKeepInside is a list of shapes outside which the results
- will be deleted, ListOfRemoveInside is a list of shapes inside which the
- results will be deleted, Limit is a type of the result shapes, if RemoveWebs
- is True the Glue 3D algorithm will be performed on the results, ListOfMaterials
- is a list of materials indices for each shape, it makes sense only if
- RemoveWebs is True.
-
-
-
-
Arguments:
- Up to 4 shapes + reconstruction limit.
-
-
-
-
1st
- Constructor: Name + 2 shapes (first shape will be intersected by the
- second shape) + reconstruction limit.
-
-
2nd
- Constructor: Name + 1 shape which will be intersected + 1 cutting
- face.
Description:
- Creates a plane corresponding to the modeled water-line of the object
- plunged into the water (in Z direction).
-
-
-
-
Result: GEOM_Object.
-
-
-
-
TUI Command:
- geompy.Archimede(Shape,Weight,WaterDensity,MeshingDeflection),
- where Shape is a shape to put into the water, Weight is a weight of the
- shape, WaterDensity is
- density of water, MeshingDeflection is a deflection of the mesh, using
- to compute the section.
-
-
-
-
GUI Arguments:
- Name + 1 shape +
- 3 values (Weight, Water Density & Meshing Deflection).
Description:
- Make fillets of the edges of a shape.
-
-
-
-
Result: GEOM_Object.
-
-
-
-
TUI Command:
- geompy.MakeFillet(Shape, Radius,
- ShapeType, ListOfShapeID), where Shape is a shape to create a fillet
- on, Radius is a radius of the fillet, ShapeType is a type of shapes to
- be processed, ListOfShapeID is a list of subshape’s Ids to be processed.
-
-
-
-
Arguments:
-
-
-
-
1st
- Constructor: Name + 1 shape + 1 value (fillet radius).
-
-
2nd
- Constructor: Name + 1 shape + 1 Selection of edges + 1 value (Fillet
- radius).
-
-
3rd
- Constructor: Name + 1 shape + 1 Selection of faces + 1 value (Fillet
- radius).
Description:
- Makes chamfer of the edges of a Shape.
-
-
-
-
Result: GEOM_Object.
-
-
-
-
TUI Command:
-
-
-
-
-
geompy.MakeChamferEdge(Shape,
- D1, D2, Face1, Face2), where Shape is a shape to create a chamfer
- on, D1 is a chamfer size along Face1, D2 is a chamfer size along Face2,
- Face1 and Face2 are indices of faces in Shape.
-
-
geompy.MakeChamferFace(Shape,
- D1, D2, ListOfFaceID), where Shape is a shape to create chamfer
- on, D1 is a chamfer size along a face from ListOfFaceID,
- D2 is a
- chamfer size along two faces connected to the edge to which the chamfer
- is applied, ListOfFaceID is a list of indices of faces in Shape.
-
-
-
-
-
Arguments:
-
-
-
-
-
-
1st
- Constructor : Name + 1 SHAPE + 1 value (Chamfer dimension).
Description:
- Makes several translations of a block (solid) in one
- or two directions depending on
- the arguments specified by the user.
-
-
-
-
Result: GEOM_Object.
-
-
-
-
TUI Command:
-
-
-
-
-
geompy.
- MakeMultiTransformation1D(Block, DirFaceID1, DirFaceID2, NbTimes),
- where Block is a block to be transformed, DirFaceID1 is an ID of the face
- which defines the first direction of transformation, DirFaceID2 is an
- ID of the face which defines the second direction of transformation, NbTimes
- is a numeber of transformations.
-
-
geompy.
- MakeMultiTransformation2D(Block, DirFaceID1U, DirFaceID2U, NbTimesU, DirFaceID1V,
- DirFaceID2V, NbTimesV), where Block is a block to be transformed,
- DirFaceID1U and DirFace1V are ID’s of the faces, which define directions
- of the first transformation, DirFaceID1V and DirFaceID2V are ID’s of the
- faces which define directions of the second transformation, NbTimesU and
- NbTimesV are numbers of transformations.
-
-
-
-
-
Arguments:
-
-
-
-
-
-
1D
- transformation: Name + 1 hexahedral
- solid + 1 or 2 faces + 1 integer (number of blocks)
-
-
2D
- transformation: Name + 1 hexahedral
- solid +
Description:
- Returns blocks of the given compound. The user may define the type blocks
- to be extracted by setting the minimum and maximum number of faces in
- the target block. By checking the corresponding box the user may also
- interactively choose the blocks from a compound .
-
-
-
-
Result: GEOM_Object.
-
-
-
-
TUI Command:
- geompy.MakeBlockExplode(Compound,
- MinNbFaces, MaxNbFaces), where Compound is a compound to be exploded
- into the blocks, MinNbFaces, MaxNbFaces are correspondingly the minimal
- and the
- maximal number of faces of the resulting blocks.
-
-
-
-
Arguments: 1 compound + 1 integer (min. and max. number
- of faces in the block to be extracted).
TUI Command :geompy.MakeBox(X1,
- Y1, Z1, X2, Y2, Z2), where
- (X1, Y1, X2) and (X2, Y2, Z2) are coordinates of two points which define
- a diagonal of the box.
-
-
-
-
Arguments:
-
-
-
-
1st Constructor :Name
- + 2 vertices (opposite corners of the box).
-
-
2nd Constructor :Name
- + 3 values (dimensions at origin).
TUI Command:geompy.MakeCylinder(Point,
- Axis, Radius, Height), where Point is a central point of the cylinder
- base, Axis (vector value) is an axis of the cylinder, Radius and Height
- are correspondingly a radius and a height of the cylinder.
TUI Command:geompy.MakeTorus(Point,
- Vector, RadiusMajor, RadiusMinor), where Point is a central point
- of the torus, Vector is an axis of symmetry, RadiusMajor and RadiusMinor
- are correspondingly
- a major and minor radiuses of the torus.
TUI Command:geompy.MakeCone(Point,
- Axis, Radius1, Radius2), where Point is a central point of the
- cone base, Axis (vector value) is an axis of the cone, Radius1 and Radius2
- are correspondingly the first and the second radiuses of the cone
-
-
-
-
Arguments:
-
-
-
-
1st Constructor:Name
- + 1 vertex + 1 vector (for direction) + 3 values (Radius of the
- base part, radius of the upper part, height).
-
-
2nd Constructor:Name
- + 3 values (Radius of the base part, radius of the upper part,
- height).
The operations Suppress
- faces, Close contour, Suppress internal wires, Suppress holes and
- Add point on edge are
- available only if you are using OCC
- viewer.
Description:
- Processes a shape using various operators.
-
-
-
-
Result: GEOM_Object.
-
-
-
-
TUI Command:
- geompy.ProcessShape(Shape, Operators,
- Parameters, Values), where Shape is a processed shape, Operators
- is a list of names of operators ("FixShape", "SplitClosedFaces",
- etc.), Parameters is a list of names of parameters (“FixShape.Tolerance3d”,
- etc), Values is a list of values of parameters in the same order as the
- Parameters list.
-
-
-
-
Arguments:
- 1 or more shapes.
-
-
-
-
-
-
-
-
-
1
-
-
SplitAngle –
- this operator is intended for splitting faces based on conical surfaces,
- surfaces of revolution and cylindrical surfaces by angle
-
SplitAngle.Angle – angle (in radians) defining
- size of result segments.
-
SplitAngle.MaxTolerance – maximal possible
- tolerance on result shape
-
-
-
-
2
-
-
SplitClosedFaces
- – this operator is intended for dividing all closed faces in the shape
- according to the number of points.
-
SplitClosedFaces.NbSplitPoints – number of
- points for cutting each closed faces.
-
-
-
-
3
-
-
FixFaceSize
- – this operator is intended for removing small faces (case of the spot
- face and strip face)
-
FixFaceSize.Tolerance – work tolerance defining
- which faces will be removed.
-
-
-
-
4
-
-
DropSmallEdges
- – this operator is intended for removing small edges or merging with neigbour.
-
-
DropSmallEdges.Tolerance3d – work tolerance
- for detection and removing small edges.
-
-
-
-
5
-
-
BsplineRestriction
- –this operator is intended for re-approximation BSplines curves and surfaces
- or conversion of the curves and surfaces to BSplines with specified parameters.
-
-
BSplineRestriction.SurfaceMode - mode of approximation
- of surfaces if restriction is necessary
-
BSplineRestriction.Curve3dMode -mode of conversion
- of any 3D curve to BSpline and approximation.
-
BSplineRestriction.Curve2dMode - mode of conversion
- of any 2D curve to BSpline and approximation
-
BSplineRestriction.Tolerance3d – work tolerance
- for definition of the possibility of the approximation of the surfaces
- and 3D curves with specified parameters.
-
BSplineRestriction.Tolerance2d - work tolerance
- for definition of the possibility of the approximation of the 2D curves
- with specified parameters.
-
BSplineRestriction.Continuity3d – desired continuity
- of the resultant surfaces and 3D curves.
-
BSplineRestriction.Continuity2d – desired continuity
- of the resultant 2D curves.
-
BSplineRestriction.RequiredDegree - required
- degree of the resultant BSplines
-
BSplineRestriction.RequiredNbSegments - required
- maximum number of segments of resultant BSplines.
-
-
-
-
6
-
-
SplitContinuity
- – this operator is intended for splitting shapes to achieve continuities
- of curves and surfaces less than specified ones.
-
SplitContinuity.Tolerance3d - 3D tolerance
- for correction of geometry.
-
SplitContinuity.SurfaceContinuity - required
- continuity for surfaces.
-
SplitContinuity.CurveContinuity - required
- continuity for curves.
-
-
-
-
7
-
-
ToBezier - this
- operator is intended for conversion of the curves and surfaces of the
- all types into Bezier curves and surfaces.
-
ToBezier.SurfaceMode - mode of conversion of
- the surfaces.
-
ToBezier.Curve3dMode – mode for conversion
- of the 3D curves.
-
ToBezier.Curve2dMode – mode for conversion
- of the 2D curves.
-
ToBezier.MaxTolerance – max possible tolerance
- on the resultant shape.
-
-
-
-
8
-
-
FixShape – this
- operator is intended for correction of the invalid shapes
-
FixShape.Tolerance3d – work tolerance for detection
- of the problems and correction of them.
-
FixShape.MaxTolerance3d - maximal possible
- tolerance of the shape after correction.
-
-
-
-
9
-
-
SameParameter
- – this operator is intended for fixing edges having not same parameter
- 2D and 3D curves.
-
SameParameter.Tolerance3d – tolerance for detection
- and fix problems.
-
-
-
-
-
-
-
-
Dialog Box:
-
-
-
-
-
-
-
-
Example:
-
-
-
-
Shape before applying Shape Processing (FixShape
- operator).
Description :
- Closes an open contour and modifies the underlying face (if needed) in
- accordance with user specified mode:
-
-
-
-
By common vertex – a
- vertex is created between the end points of the contour and its tolerance
- is increased to a value of the gap between the ends of the contour;
-
-
By new edge – a new edge
- is inserted between the end points of the contour.
-
-
-
-
-
Result: GEOM_Object.
-
-
-
-
TUI Command:
- geompy.CloseContour(Shape, Wires,
- IsCommonVertex), where Shape is a shape to be processed, Wires
- is a list of edges or wires ID’s which has to be closed within the shape
- (if the list contains only one element = -1, the shape itself is considered
- as a wire), IsCommonVertex
- if this parameter is True a closure has to be done by creation of a common
- vertex, otherwise an edge is added between the end vertices.
-
-
-
-
Arguments: Name + 1 shape + contour(Wire,
- or a set of Edges) + mode of closure (by vertex or by edge)
-
-
-
-
Dialog Box:
-
-
-
-
-
-
-
-
Example:
-
-
-
-
Suppress
- internal wires
-
-
-
-
Description :
- Removes all internal wires or specified internal wires from user specified
- faces.
-
-
-
-
Result: GEOM_Object.
-
-
-
-
TUI Command:
- geompy.SuppressInternalWires(Shape,
- Wires), where Shape is a shape where wires are to be removed, Wires
- is a list of wires ID’s to be removed; if the list is empty then all internal
- wires are removed.
-
-
-
-
-
-
Arguments:
-
-
-
-
Name of the resulting
- object
-
-
User specified face
-
-
User specified internal
- wires (lying on this face except for its boundary), or, in case the Remove all internal wires box is checked,
- all internal wires
TUI Command:
- geompy.SuppressHoles(Shape,
- ListOfWireID), where Shape is a
- shape where holes must be removed, ListOfWireID is a list of wire sub
- shapes ID’s. If it is empty, then all holes are removed.
-
-
-
-
Arguments: Name
- + 1 shape + Wires which should be removed.
-
-
Remove all
- holes checkbox allows to fill all holes of a definite shape.
-
-
Detect button
- allows to display the number of free boundaries in your shape:
Description:
- Splits an edge in two in accordance with the specified mode (by length
- or by parameter) and a value specifying the position of the point on edge
- (for example val =0.5; mode = Length).
-
-
-
-
Result: GEOM_Object.
-
-
-
-
TUI Command :
- geompy.DivideEdge(Shape, EdgeID,
- Value, IsByParameter), where Shape is a shape which contains an
- edge to be divided, EdgeID is the ID of the edge to be divided, if it
- = -1, then Shape is an edge, Value is a paramter on the edge or a length.
- IsByParameter if it is True then Value is the edge parameter in the range
- [0:1] otherwise it is a length of the edge in the range [0:1]
-
-
-
-
Arguments:
- Name + 1 Edge + 1 value setting the position of the point according one
- of the selected modes
Description:
- Glues faces that are coincident with respect to the given tolerance
-
-
value.
-
-
-
-
Result:
- GEOM_Object.
-
-
-
-
TUI Command
- : geompy.MakeGlueFaces(theShape,
- theTolerance), where theShape is a compound of shapesto be glued,
- theTolerance is a maximum distance between two faces, which can be considered
- as coincident.
Description:
- Detects wires and edges that correspond to the shape's boundary, and highlights
- it
-
-
-
-
Result: GEOM_Object.
-
-
-
-
TUI Command : (NoError, ClosedWires, OpenWires) = geompy.GetFreeBoundary(Shape),
- where Shape is a shape to be checked, NoError is false if an error occurred
- while checking free boundaries, ClosedWires is a list of closed free boundary
- wires, OpenWires is a list of open free boundary wires.
In GEOM there is a set
- of operations allowing to transform the initial geometrical object into
- other objects, which will be also created. These operations are
TUI Command:
- geompy.MakeTranslation(Shape, DX,
- DY, DZ), where Shape is a shape to be translated, DX, DY, DZ are
- components of translation vector.
TUI Command:
- geompy.MakeRotation(Shape, Axis,
- Angle), where Shape is a shape to be rotated, Axis is an axis of
- rotation, Angle is an angle of rotation.
-
-
-
-
Arguments:
- 1 shape + 1 vector for direction of rotation + 1 angle.
-
-
Reverse checkbox
- allows to specify the direction of rotation.
-
-
Create a copy
- checkbox allows to keep the initial object, otherwise it will be
- removed.
Description:
- Modification of location of an object.
-
-
-
-
Result: GEOM_Object.
-
-
-
-
TUI Command:
- geompy.MakePosition(theObject, theStartLCS, theEndLCS), where theObject
- is a shape, location of which is modified, theStartLCS is a location to
- move the shape from, theEndLCS is a location to move the shape to.
-
-
-
-
Arguments:
- Name + 1 GEOM_Object + [Starting Coordinate System] + End Coordinate System.
-
-
Create a copy
- checkbox allows to keep the initial object, otherwise it will be
- removed.
Description:
- Creates a scaled shape basing on the initial shape.
-
-
-
-
Result: GEOM_Object.
-
-
-
-
TUI Command:
- geompy.MakeScaleTransform(Shape,
- CenterOfScale, Factor), where Shape is a shape to be scaled, CenterOfScale
- is a center point of scale, Factor is a factor of the scale.
Description:
- Each point is translated along a local normal by a given distance (signed
- number, negative value meaning inner offset). Offset operation is applicable
- to faces, shells and solids.
-
-
-
-
Result: GEOM_Object
-
-
-
-
-
TUI Command:
- geompy.MakeOffset(Shape, Offset),
- where Shape is a shape which has to be an offset, Offset is a value of
- the offset.
Description:
- Makes several translations of a shape in one
- or two directions.
-
-
-
-
Result: GEOM_Object
- (compound).
-
-
-
-
TUI Command:
-
-
-
-
geompy.MakeMultiTranslation1D(Shape,
- Dir, Step, NbTimes), where Shape is a shape to be translated, Dir
- is a direction of translation, Step is a step of the translation, NbTimes
- is a number of times the shape must be moved.
-
-
geompy.MakeMultiTranslation2D(Shape,
- Dir1, Step1, NbTimes1, Dir2, Step2, NbTimes2), where Shape is a
- shape to be translated, Dir1 is the first direction of translation, Step1
- of the first translation, NbTimes1 is a number of translations to be done
- along, Dir2 is the second direction of translation, Step2 of the second
- translation, NbTimes2 is a number of translations to be done along Dir2.
-
-
-
-
-
Arguments:
-
-
-
-
1st
- Constructor (in one direction):
- Name + 1 shape + 1 vector (for direction) + 1 step value + 1 value (repetition).
-
-
2nd
- Constructor (in two directions):
- Name + 1 shape + 2 vectors defining the direction + 2 step values + 2
- values (repetitions).
Description:
- Creates several rotated geometrical objects in one
- or two directions
- basing on the initial geometrical object.
-
-
-
-
Result: GEOM_Object
- (compound).
-
-
-
-
TUI Command:
-
-
-
-
geompy.MakeMultiRotation1D(Shape,
- Axis, NbTimes), where Shape is a shape to be rotated, Axis is an
- Axis of rotation, NbTimes is a number of the shape must be rotated.
-
-
geompy.MakeMultiRotation2D(Shape,
- Axis, Angle, NbTimes1, Step, NbTimes2), where Shape is a shape
- to be rotated, Axis is an axis of rotation, Angle is an angle of rotation,
- NbTimes1 is a number of rotation, Step is a step of translation, NbTimes2
- is a number of translation.
-
-
-
-
-
Arguments:
-
-
-
-
1st
- Constructor (in one direction):
- Name + 1 shape + 1 vector for direction + 1 value (repetition).
-
-
2nd
- Constructor (in two directions):
- Name + 1 shape + 1 vector for direction + 1 angle + 1 value (repetition)
- + 1 step value + 1 value (repetition); Reverse
- checkbox allows to set the direction of rotation.
-
-
-
-
-
Dialog Box:
-
-
-
-
-
-
-
-
Example:
-
-
-
-
One direction:
-
-
-
-
-
-
-
-
Two directions:
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/doc/salome/gui/GEOM/geom.html b/doc/salome/gui/GEOM/geom.html
deleted file mode 100755
index 34511ae73..000000000
--- a/doc/salome/gui/GEOM/geom.html
+++ /dev/null
@@ -1,150 +0,0 @@
-
-
-
- GEOM reference manual
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/doc/salome/gui/GEOM/geom.log b/doc/salome/gui/GEOM/geom.log
deleted file mode 100755
index f9810dcef..000000000
--- a/doc/salome/gui/GEOM/geom.log
+++ /dev/null
@@ -1,476 +0,0 @@
-|SourceProjectName:GEOM.hpr
-|DestinationProjectName:geom.htm
-whhost.js
-whmsg.js
-whmozemu.js
-whproxy.js
-whstub.js
-whutils.js
-whver.js
-whform.js
-whphost.js
-whstart.js
-whtopic.js
-whframes.js
-whlang.js
-whskin_info.htm
-whskin_blank.htm
-whskin_pickup.htm
-whskin_homepage.htm
-whskin_tw.htm
-whnjs.htm
-whthost.js
-whtdhtml.htm
-whihost.js
-whibody.htm
-whiform.htm
-whfhost.js
-whfbody.htm
-whfform.htm
-whghost.js
-whgbody.htm
-whgdhtml.htm
-whgdef.htm
-whproj.js
-whproj.xml
-whproj.htm
-whxdata\whtoc.xml
-whxdata\whidx.xml
-whxdata\whfts.xml
-whxdata\whglo.xml
-whdata\whtoc.js
-whdata\whtoc.htm
-whdata\whtdata.js
-whdata\whidx.js
-whdata\whidx.htm
-whdata\whidata.js
-whdata\whfts.js
-whdata\whfts.htm
-whdata\whglo.js
-whdata\whglo.htm
-whdata\whgdata.js
-whdata\whftdata.js
-whdata\whfwdata.js
-whres.xml
-webhelp.jar
-webhelp.cab
-whgdata\whnvp30.htm
-whgdata\whnvp31.htm
-whgdata\whnvp32.htm
-whgdata\whnvp33.htm
-whgdata\whnvt30.htm
-whgdata\whnvt31.htm
-whgdata\whnvt32.htm
-whgdata\whnvt33.htm
-whgdata\whnvf30.htm
-whgdata\whnvf31.htm
-whgdata\whnvf32.htm
-whgdata\whnvf33.htm
-whgdata\whnvl31.htm
-whgdata\whnvl32.htm
-whgdata\whnvl33.htm
-whgdata\whexpbar.gif
-cshdat_webhelp.htm
-whcsh_home.htm
-whcshdata.htm
-cshdat_robohelp.htm
-wht_tab0.gif
-wht_tab1.gif
-wht_tab2.gif
-wht_tab3.gif
-wht_tab4.gif
-wht_tab5.gif
-wht_tab6.gif
-wht_tab7.gif
-wht_tab8.gif
-wht_glo_h.gif
-wht_glo_n.gif
-wht_fts_h.gif
-wht_fts_n.gif
-wht_idx_h.gif
-wht_idx_n.gif
-wht_toc_h.gif
-wht_toc_n.gif
-wht_ws.gif
-wht_ws_g.gif
-wht_logo1.gif
-wht_logo2.gif
-wht_abgw.jpg
-wht_abgi.jpg
-wht_abge.jpg
-wht_abtw.jpg
-wht_abte.jpg
-wht_abti.jpg
-wht_spac.gif
-wht_next.gif
-wht_next_g.gif
-wht_prev.gif
-wht_prev_g.gif
-wht_sync.gif
-wht_hide.gif
-wht_go.gif
-whstart.ico
-whestart.ico
-whrstart.ico
-whidhtml.htm
-whfdhtml.htm
-whskin_banner.htm
-whtbar.js
-whskin_pdhtml.htm
-whskin_papplet.htm
-whskin_plist.htm
-whskin_tbars.htm
-whskin_mbars.htm
-wht_toc4.gif
-wht_toc1.gif
-wht_toc2.gif
-wht_toc3.gif
-whskin_frmset010.htm
-whst_topics.xml
-whskin_frmset01.htm
-geom_hha.hhk
-geom.hhc
-geom.hhk
-blocks.htm
-changing_displaying_parameters.htm
-files\introduction_to_geom.htm
-files\salome2_sp3_basicgui_functions.htm
-files\salome2_sp3_booleangui_functions.htm
-files\salome2_sp3_buildgui_functions.htm
-files\salome2_sp3_displaygui_functions.htm
-files\salome2_sp3_generationgui_functions.htm
-files\salome2_sp3_geomtoolsgui_functions.htm
-files\salome2_sp3_measuregui_functions.htm
-files\salome2_sp3_operationgui_functions.htm
-files\salome2_sp3_primitivegui_functions.htm
-files\salome2_sp3_repairgui_functions.htm
-files\salome2_sp3_transformationgui_functions.htm
-newentity_blocks.htm
-sketcher.htm
-working_with_groups.htm
-ehelp.xml
-geom.glo
-default.css
-image290.jpg
-image219.jpg
-image208.jpg
-image61.gif
-image191.jpg
-image180.jpg
-image109.jpg
-image97.jpg
-image53.jpg
-files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image131.gif
-files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image31.gif
-image291.jpg
-image280.jpg
-image209.jpg
-image192.jpg
-image181.jpg
-image51.gif
-image170.jpg
-image98.jpg
-image76.jpg
-image54.jpg
-image10.jpg
-files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image132.gif
-files\salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image121.gif
-files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image32.gif
-image292.jpg
-image281.jpg
-image270.jpg
-image193.jpg
-image52.gif
-image171.jpg
-image160.jpg
-image41.gif
-image11.jpg
-files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image133.gif
-files\salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image122.gif
-files\salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image87.gif
-image3.jpg
-files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image33.gif
-image293.jpg
-image64.gif
-image282.jpg
-image271.jpg
-image260.jpg
-image194.jpg
-image53.gif
-image172.jpg
-image42.gif
-image150.jpg
-image78.jpg
-image20.gif
-image67.jpg
-image12.jpg
-files\salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image88.gif
-files\salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image1.gif
-files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image34.gif
-image294.jpg
-image283.jpg
-image261.jpg
-image272.jpg
-image250.jpg
-image151.jpg
-image32.gif
-image140.jpg
-image79.jpg
-image21.gif
-image2.gif
-image5.jpg
-files\salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image89.gif
-files\salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image2.gif
-image295.jpg
-image284.jpg
-image262.jpg
-image273.jpg
-image251.jpg
-image240.jpg
-image196.jpg
-image185.jpg
-image44.gif
-image163.jpg
-image141.jpg
-image130.jpg
-image22.gif
-files\salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image51.gif
-image11.gif
-files\salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image56.gif
-files\salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image3.gif
-image296.jpg
-image285.jpg
-image274.jpg
-image263.jpg
-image252.jpg
-image241.jpg
-image230.jpg
-image197.jpg
-image56.gif
-image164.jpg
-image142.jpg
-image23.gif
-image12.gif
-image7.jpg
-image4.gif
-files\salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image57.gif
-files\salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image52.gif
-files\salome2_sp3_booleangui_functions_salome2_sp3_booleangui_functions_image4.gif
-salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image13.gif
-image297.jpg
-image286.jpg
-image275.jpg
-image264.jpg
-image253.jpg
-image242.jpg
-image231.jpg
-image220.jpg
-image57.gif
-image154.jpg
-image35.gif
-image24.gif
-image121.jpg
-image110.jpg
-image27.jpg
-image13.gif
-image8.jpg
-image5.gif
-files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image71.gif
-files\salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image58.gif
-files\salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image53.gif
-files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image27.gif
-salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image14.gif
-image298.jpg
-image287.jpg
-image276.jpg
-image265.jpg
-image254.jpg
-image243.jpg
-image221.jpg
-image210.jpg
-image199.jpg
-image188.jpg
-image133.jpg
-image25.gif
-image122.jpg
-image14.gif
-image9.jpg
-image6.gif
-files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image128.gif
-files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image72.gif
-files\salome2_sp3_generationgui_functions_salome2_sp3_generationgui_functions_image59.gif
-files\salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image54.gif
-files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image28.gif
-salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image15.gif
-i_blue.jpg
-image299.jpg
-image288.jpg
-image277.jpg
-image266.jpg
-image255.jpg
-image244.jpg
-image233.jpg
-image222.jpg
-image211.jpg
-image59.gif
-image189.jpg
-image167.jpg
-image156.jpg
-image37.gif
-image145.jpg
-image134.jpg
-image112.jpg
-image15.gif
-image18.jpg
-image7.gif
-files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image129.gif
-files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image73.gif
-files\salome2_sp3_displaygui_functions_salome2_sp3_displaygui_functions_image55.gif
-files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image29.gif
-salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image16.gif
-image300.jpg
-image289.jpg
-image278.jpg
-image267.jpg
-image256.jpg
-image245.jpg
-image234.jpg
-image223.jpg
-image212.jpg
-image201.jpg
-image49.gif
-image168.jpg
-image135.jpg
-image124.jpg
-image113.jpg
-image16.gif
-image8.gif
-files\salome2_sp3_repairgui_functions_salome2_sp3_repairgui_functions_image119.gif
-files\salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image100.gif
-files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image74.gif
-salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image17.gif
-image279.jpg
-image268.jpg
-image257.jpg
-image246.jpg
-image235.jpg
-image224.jpg
-image213.jpg
-image202.jpg
-image158.jpg
-image147.jpg
-image136.jpg
-image80.jpg
-image17.gif
-image9.gif
-files\salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image101.gif
-files\salome2_sp3_operationgui_functions_salome2_sp3_operationgui_functions_image90.gif
-files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image75.gif
-salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image18.gif
-image269.jpg
-image258.jpg
-image247.jpg
-image236.jpg
-image225.jpg
-image214.jpg
-image203.jpg
-image29.gif
-image137.jpg
-image81.jpg
-files\salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image102.gif
-files\salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image99.gif
-files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image76.gif
-salome2_sp3_buildgui_functions_salome2_sp3_buildgui_functions_image19.gif
-image259.jpg
-image248.jpg
-image237.jpg
-image226.jpg
-image215.jpg
-image204.jpg
-image149.jpg
-image138.jpg
-image127.jpg
-image82.jpg
-image19.gif
-files\salome2_sp3_primitivegui_functions_salome2_sp3_primitivegui_functions_image103.gif
-files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image77.gif
-image249.jpg
-image238.jpg
-image227.jpg
-image216.jpg
-image205.jpg
-image139.jpg
-image128.jpg
-image94.jpg
-image83.jpg
-files\salome2_sp3_measuregui_functions_salome2_sp3_measuregui_functions_image78.gif
-image239.jpg
-image228.jpg
-image217.jpg
-image206.jpg
-image129.jpg
-image95.jpg
-image84.jpg
-image229.jpg
-image218.jpg
-image207.jpg
-image96.jpg
-image85.jpg
-image52.jpg
-files\salome2_sp3_transformationgui_functions_salome2_sp3_transformationgui_functions_image130.gif
-files\salome2_sp3_basicgui_functions_salome2_sp3_basicgui_functions_image30.gif
-ehlpdhtm.js
-geom.ppf
-default_ns.css
-whxdata\whtdata0.xml
-whxdata\whftdata0.xml
-whxdata\whfwdata0.xml
-whxdata\whfwdata1.xml
-whxdata\whfwdata2.xml
-whxdata\whgdata0.xml
-whdata\whtdata0.htm
-whdata\whftdata0.htm
-whdata\whfwdata0.htm
-whdata\whfwdata1.htm
-whdata\whfwdata2.htm
-whdata\whgdata0.htm
-whgdata\whlstt0.htm
-whgdata\whlstt1.htm
-whgdata\whlstt2.htm
-whgdata\whlstt3.htm
-whgdata\whlstt4.htm
-whgdata\whlsti0.htm
-whgdata\whlstfl0.htm
-whgdata\whlstfl1.htm
-whgdata\whlstfl2.htm
-whgdata\whlstfl3.htm
-whgdata\whlstfl4.htm
-whgdata\whlstfl5.htm
-whgdata\whlstfl6.htm
-whgdata\whlstfl7.htm
-whgdata\whlstfl8.htm
-whgdata\whlstfl9.htm
-whgdata\whlstfl10.htm
-whgdata\whlstfl11.htm
-whgdata\whlstfl12.htm
-whgdata\whlstfl13.htm
-whgdata\whlstfl14.htm
-whgdata\whlstfl15.htm
-whgdata\whlstfl16.htm
-whgdata\whlstfl17.htm
-whgdata\whlstfl18.htm
-whgdata\whlstfl19.htm
-whgdata\whlstfl20.htm
-whgdata\whlstfl21.htm
-whgdata\whlstfl22.htm
-whgdata\whlstfl23.htm
-whgdata\whlstf0.htm
-whgdata\whlstf1.htm
-whgdata\whlstf2.htm
-whgdata\whlstf3.htm
-whgdata\whlstf4.htm
-whgdata\whlstf5.htm
-whgdata\whlstg0.htm
-geom.htm
-geom_csh.htm
-geom_rhc.htm
diff --git a/doc/salome/gui/GEOM/geom_csh.html b/doc/salome/gui/GEOM/geom_csh.html
deleted file mode 100755
index e5123bbd5..000000000
--- a/doc/salome/gui/GEOM/geom_csh.html
+++ /dev/null
@@ -1,100 +0,0 @@
-
-
-GEOM reference manual
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/doc/salome/gui/GEOM/geom_help.html b/doc/salome/gui/GEOM/geom_help.html
deleted file mode 100755
index 34511ae73..000000000
--- a/doc/salome/gui/GEOM/geom_help.html
+++ /dev/null
@@ -1,150 +0,0 @@
-
-
-
- GEOM reference manual
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/doc/salome/gui/GEOM/geom_help_csh.html b/doc/salome/gui/GEOM/geom_help_csh.html
deleted file mode 100755
index e5123bbd5..000000000
--- a/doc/salome/gui/GEOM/geom_help_csh.html
+++ /dev/null
@@ -1,100 +0,0 @@
-
-
-GEOM reference manual
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/doc/salome/gui/GEOM/geom_help_rhc.html b/doc/salome/gui/GEOM/geom_help_rhc.html
deleted file mode 100755
index 26441d7b5..000000000
--- a/doc/salome/gui/GEOM/geom_help_rhc.html
+++ /dev/null
@@ -1,100 +0,0 @@
-
-
-GEOM reference manual
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/doc/salome/gui/GEOM/geom_rhc.html b/doc/salome/gui/GEOM/geom_rhc.html
deleted file mode 100755
index 26441d7b5..000000000
--- a/doc/salome/gui/GEOM/geom_rhc.html
+++ /dev/null
@@ -1,100 +0,0 @@
-
-
-GEOM reference manual
-
-
-
-
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/doc/salome/gui/GEOM/image100.jpg b/doc/salome/gui/GEOM/image100.jpg
deleted file mode 100755
index 614786487..000000000
Binary files a/doc/salome/gui/GEOM/image100.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image101.jpg b/doc/salome/gui/GEOM/image101.jpg
deleted file mode 100755
index f1e23edc1..000000000
Binary files a/doc/salome/gui/GEOM/image101.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image102.jpg b/doc/salome/gui/GEOM/image102.jpg
deleted file mode 100755
index f2c61383a..000000000
Binary files a/doc/salome/gui/GEOM/image102.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image103.jpg b/doc/salome/gui/GEOM/image103.jpg
deleted file mode 100755
index e6ae3db59..000000000
Binary files a/doc/salome/gui/GEOM/image103.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image104.jpg b/doc/salome/gui/GEOM/image104.jpg
deleted file mode 100755
index fe5716c6a..000000000
Binary files a/doc/salome/gui/GEOM/image104.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image105.jpg b/doc/salome/gui/GEOM/image105.jpg
deleted file mode 100755
index 38b31e89f..000000000
Binary files a/doc/salome/gui/GEOM/image105.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image106.jpg b/doc/salome/gui/GEOM/image106.jpg
deleted file mode 100755
index 5d62a228a..000000000
Binary files a/doc/salome/gui/GEOM/image106.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image107.jpg b/doc/salome/gui/GEOM/image107.jpg
deleted file mode 100755
index c24dff424..000000000
Binary files a/doc/salome/gui/GEOM/image107.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image108.jpg b/doc/salome/gui/GEOM/image108.jpg
deleted file mode 100755
index 331761b85..000000000
Binary files a/doc/salome/gui/GEOM/image108.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image111.jpg b/doc/salome/gui/GEOM/image111.jpg
deleted file mode 100755
index 8ff96d8a1..000000000
Binary files a/doc/salome/gui/GEOM/image111.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image114.jpg b/doc/salome/gui/GEOM/image114.jpg
deleted file mode 100755
index 7dc0af528..000000000
Binary files a/doc/salome/gui/GEOM/image114.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image115.jpg b/doc/salome/gui/GEOM/image115.jpg
deleted file mode 100755
index da0f7cce7..000000000
Binary files a/doc/salome/gui/GEOM/image115.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image116.jpg b/doc/salome/gui/GEOM/image116.jpg
deleted file mode 100755
index 25e154faa..000000000
Binary files a/doc/salome/gui/GEOM/image116.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image117.jpg b/doc/salome/gui/GEOM/image117.jpg
deleted file mode 100755
index bd1971467..000000000
Binary files a/doc/salome/gui/GEOM/image117.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image118.jpg b/doc/salome/gui/GEOM/image118.jpg
deleted file mode 100755
index 01c7d66ce..000000000
Binary files a/doc/salome/gui/GEOM/image118.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image119.jpg b/doc/salome/gui/GEOM/image119.jpg
deleted file mode 100755
index 7e5818a4d..000000000
Binary files a/doc/salome/gui/GEOM/image119.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image120.jpg b/doc/salome/gui/GEOM/image120.jpg
deleted file mode 100755
index 01a35bb95..000000000
Binary files a/doc/salome/gui/GEOM/image120.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image123.jpg b/doc/salome/gui/GEOM/image123.jpg
deleted file mode 100755
index ff5ef33f6..000000000
Binary files a/doc/salome/gui/GEOM/image123.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image125.jpg b/doc/salome/gui/GEOM/image125.jpg
deleted file mode 100755
index d3cc1e010..000000000
Binary files a/doc/salome/gui/GEOM/image125.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image126.jpg b/doc/salome/gui/GEOM/image126.jpg
deleted file mode 100755
index c28606d52..000000000
Binary files a/doc/salome/gui/GEOM/image126.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image13.jpg b/doc/salome/gui/GEOM/image13.jpg
deleted file mode 100755
index 78d593952..000000000
Binary files a/doc/salome/gui/GEOM/image13.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image131.jpg b/doc/salome/gui/GEOM/image131.jpg
deleted file mode 100755
index c4c47295c..000000000
Binary files a/doc/salome/gui/GEOM/image131.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image132.jpg b/doc/salome/gui/GEOM/image132.jpg
deleted file mode 100755
index 9fb153fdc..000000000
Binary files a/doc/salome/gui/GEOM/image132.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image134.jpg b/doc/salome/gui/GEOM/image134.jpg
deleted file mode 100755
index acdc2bc64..000000000
Binary files a/doc/salome/gui/GEOM/image134.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image135.jpg b/doc/salome/gui/GEOM/image135.jpg
deleted file mode 100755
index e11982864..000000000
Binary files a/doc/salome/gui/GEOM/image135.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image136.jpg b/doc/salome/gui/GEOM/image136.jpg
deleted file mode 100755
index 196790a61..000000000
Binary files a/doc/salome/gui/GEOM/image136.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image137.jpg b/doc/salome/gui/GEOM/image137.jpg
deleted file mode 100755
index 68cbee2be..000000000
Binary files a/doc/salome/gui/GEOM/image137.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image138.jpg b/doc/salome/gui/GEOM/image138.jpg
deleted file mode 100755
index 9f2a0dfa0..000000000
Binary files a/doc/salome/gui/GEOM/image138.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image139.jpg b/doc/salome/gui/GEOM/image139.jpg
deleted file mode 100755
index 9a203959a..000000000
Binary files a/doc/salome/gui/GEOM/image139.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image14.jpg b/doc/salome/gui/GEOM/image14.jpg
deleted file mode 100755
index a7e280c17..000000000
Binary files a/doc/salome/gui/GEOM/image14.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image140.jpg b/doc/salome/gui/GEOM/image140.jpg
deleted file mode 100755
index bdc91c041..000000000
Binary files a/doc/salome/gui/GEOM/image140.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image141.jpg b/doc/salome/gui/GEOM/image141.jpg
deleted file mode 100755
index 54cceb081..000000000
Binary files a/doc/salome/gui/GEOM/image141.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image142.jpg b/doc/salome/gui/GEOM/image142.jpg
deleted file mode 100755
index 1bb5ba743..000000000
Binary files a/doc/salome/gui/GEOM/image142.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image144.jpg b/doc/salome/gui/GEOM/image144.jpg
deleted file mode 100755
index cecf915ed..000000000
Binary files a/doc/salome/gui/GEOM/image144.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image146.jpg b/doc/salome/gui/GEOM/image146.jpg
deleted file mode 100755
index f0e021d97..000000000
Binary files a/doc/salome/gui/GEOM/image146.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image152.jpg b/doc/salome/gui/GEOM/image152.jpg
deleted file mode 100755
index 27ae4585c..000000000
Binary files a/doc/salome/gui/GEOM/image152.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image158.jpg b/doc/salome/gui/GEOM/image158.jpg
deleted file mode 100755
index ccc843738..000000000
Binary files a/doc/salome/gui/GEOM/image158.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image161.jpg b/doc/salome/gui/GEOM/image161.jpg
deleted file mode 100755
index 05970b97e..000000000
Binary files a/doc/salome/gui/GEOM/image161.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image165.jpg b/doc/salome/gui/GEOM/image165.jpg
deleted file mode 100755
index 330b038b8..000000000
Binary files a/doc/salome/gui/GEOM/image165.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image166.jpg b/doc/salome/gui/GEOM/image166.jpg
deleted file mode 100755
index 6dd85b9db..000000000
Binary files a/doc/salome/gui/GEOM/image166.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image169.jpg b/doc/salome/gui/GEOM/image169.jpg
deleted file mode 100755
index 573378f6f..000000000
Binary files a/doc/salome/gui/GEOM/image169.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image17.jpg b/doc/salome/gui/GEOM/image17.jpg
deleted file mode 100755
index 448583976..000000000
Binary files a/doc/salome/gui/GEOM/image17.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image173.jpg b/doc/salome/gui/GEOM/image173.jpg
deleted file mode 100755
index c8f9126b5..000000000
Binary files a/doc/salome/gui/GEOM/image173.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image175.jpg b/doc/salome/gui/GEOM/image175.jpg
deleted file mode 100755
index 30f72cb4c..000000000
Binary files a/doc/salome/gui/GEOM/image175.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image176.jpg b/doc/salome/gui/GEOM/image176.jpg
deleted file mode 100755
index 4652aa964..000000000
Binary files a/doc/salome/gui/GEOM/image176.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image179.jpg b/doc/salome/gui/GEOM/image179.jpg
deleted file mode 100755
index b7b076637..000000000
Binary files a/doc/salome/gui/GEOM/image179.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image182.jpg b/doc/salome/gui/GEOM/image182.jpg
deleted file mode 100755
index 3dcf6407e..000000000
Binary files a/doc/salome/gui/GEOM/image182.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image183.jpg b/doc/salome/gui/GEOM/image183.jpg
deleted file mode 100755
index 4b5903a2d..000000000
Binary files a/doc/salome/gui/GEOM/image183.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image184.jpg b/doc/salome/gui/GEOM/image184.jpg
deleted file mode 100755
index 5bf046de2..000000000
Binary files a/doc/salome/gui/GEOM/image184.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image186.jpg b/doc/salome/gui/GEOM/image186.jpg
deleted file mode 100755
index 1de5f1d37..000000000
Binary files a/doc/salome/gui/GEOM/image186.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image187.jpg b/doc/salome/gui/GEOM/image187.jpg
deleted file mode 100755
index 66531ab9d..000000000
Binary files a/doc/salome/gui/GEOM/image187.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image19.jpg b/doc/salome/gui/GEOM/image19.jpg
deleted file mode 100755
index 3510f71aa..000000000
Binary files a/doc/salome/gui/GEOM/image19.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image190.jpg b/doc/salome/gui/GEOM/image190.jpg
deleted file mode 100755
index f02cdb609..000000000
Binary files a/doc/salome/gui/GEOM/image190.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image192.jpg b/doc/salome/gui/GEOM/image192.jpg
deleted file mode 100755
index 57493b9c3..000000000
Binary files a/doc/salome/gui/GEOM/image192.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image194.jpg b/doc/salome/gui/GEOM/image194.jpg
deleted file mode 100755
index 3d374bf0e..000000000
Binary files a/doc/salome/gui/GEOM/image194.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image196.jpg b/doc/salome/gui/GEOM/image196.jpg
deleted file mode 100755
index 1f6dba3e6..000000000
Binary files a/doc/salome/gui/GEOM/image196.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image199.jpg b/doc/salome/gui/GEOM/image199.jpg
deleted file mode 100755
index 277d5ed59..000000000
Binary files a/doc/salome/gui/GEOM/image199.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image2.gif b/doc/salome/gui/GEOM/image2.gif
deleted file mode 100755
index bc05cff94..000000000
Binary files a/doc/salome/gui/GEOM/image2.gif and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image20.jpg b/doc/salome/gui/GEOM/image20.jpg
deleted file mode 100755
index f6b529ba8..000000000
Binary files a/doc/salome/gui/GEOM/image20.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image200.jpg b/doc/salome/gui/GEOM/image200.jpg
deleted file mode 100755
index c59017188..000000000
Binary files a/doc/salome/gui/GEOM/image200.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image203.jpg b/doc/salome/gui/GEOM/image203.jpg
deleted file mode 100755
index 8ecfef537..000000000
Binary files a/doc/salome/gui/GEOM/image203.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image205.jpg b/doc/salome/gui/GEOM/image205.jpg
deleted file mode 100755
index 2e2243034..000000000
Binary files a/doc/salome/gui/GEOM/image205.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image207.jpg b/doc/salome/gui/GEOM/image207.jpg
deleted file mode 100755
index 8d9322977..000000000
Binary files a/doc/salome/gui/GEOM/image207.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image208.jpg b/doc/salome/gui/GEOM/image208.jpg
deleted file mode 100755
index 5b912726d..000000000
Binary files a/doc/salome/gui/GEOM/image208.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image209.jpg b/doc/salome/gui/GEOM/image209.jpg
deleted file mode 100755
index 3d2de5f09..000000000
Binary files a/doc/salome/gui/GEOM/image209.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image21.jpg b/doc/salome/gui/GEOM/image21.jpg
deleted file mode 100755
index f0e1b8f68..000000000
Binary files a/doc/salome/gui/GEOM/image21.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image210.jpg b/doc/salome/gui/GEOM/image210.jpg
deleted file mode 100755
index c651db3c4..000000000
Binary files a/doc/salome/gui/GEOM/image210.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image211.jpg b/doc/salome/gui/GEOM/image211.jpg
deleted file mode 100755
index 8217b6b69..000000000
Binary files a/doc/salome/gui/GEOM/image211.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image212.jpg b/doc/salome/gui/GEOM/image212.jpg
deleted file mode 100755
index 0bea713e3..000000000
Binary files a/doc/salome/gui/GEOM/image212.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image213.jpg b/doc/salome/gui/GEOM/image213.jpg
deleted file mode 100755
index 23f9da97b..000000000
Binary files a/doc/salome/gui/GEOM/image213.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image214.jpg b/doc/salome/gui/GEOM/image214.jpg
deleted file mode 100755
index ed92bdd66..000000000
Binary files a/doc/salome/gui/GEOM/image214.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image215.jpg b/doc/salome/gui/GEOM/image215.jpg
deleted file mode 100755
index 0cdc46dbe..000000000
Binary files a/doc/salome/gui/GEOM/image215.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image216.jpg b/doc/salome/gui/GEOM/image216.jpg
deleted file mode 100755
index 8cf5671cf..000000000
Binary files a/doc/salome/gui/GEOM/image216.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image217.jpg b/doc/salome/gui/GEOM/image217.jpg
deleted file mode 100755
index f9e5cd72c..000000000
Binary files a/doc/salome/gui/GEOM/image217.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image218.jpg b/doc/salome/gui/GEOM/image218.jpg
deleted file mode 100755
index 96b49d861..000000000
Binary files a/doc/salome/gui/GEOM/image218.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image219.jpg b/doc/salome/gui/GEOM/image219.jpg
deleted file mode 100755
index 62a5832b9..000000000
Binary files a/doc/salome/gui/GEOM/image219.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image22.jpg b/doc/salome/gui/GEOM/image22.jpg
deleted file mode 100755
index e697f3183..000000000
Binary files a/doc/salome/gui/GEOM/image22.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image220.jpg b/doc/salome/gui/GEOM/image220.jpg
deleted file mode 100755
index 616ddb732..000000000
Binary files a/doc/salome/gui/GEOM/image220.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image221.jpg b/doc/salome/gui/GEOM/image221.jpg
deleted file mode 100755
index 076b54104..000000000
Binary files a/doc/salome/gui/GEOM/image221.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image222.jpg b/doc/salome/gui/GEOM/image222.jpg
deleted file mode 100755
index 570bafe22..000000000
Binary files a/doc/salome/gui/GEOM/image222.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image223.jpg b/doc/salome/gui/GEOM/image223.jpg
deleted file mode 100755
index f0ed47fb8..000000000
Binary files a/doc/salome/gui/GEOM/image223.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image224.jpg b/doc/salome/gui/GEOM/image224.jpg
deleted file mode 100755
index 1516d1503..000000000
Binary files a/doc/salome/gui/GEOM/image224.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image225.jpg b/doc/salome/gui/GEOM/image225.jpg
deleted file mode 100755
index cd1e60949..000000000
Binary files a/doc/salome/gui/GEOM/image225.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image226.jpg b/doc/salome/gui/GEOM/image226.jpg
deleted file mode 100755
index e17d41669..000000000
Binary files a/doc/salome/gui/GEOM/image226.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image227.jpg b/doc/salome/gui/GEOM/image227.jpg
deleted file mode 100755
index 6764a27ca..000000000
Binary files a/doc/salome/gui/GEOM/image227.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image228.jpg b/doc/salome/gui/GEOM/image228.jpg
deleted file mode 100755
index e04e921fb..000000000
Binary files a/doc/salome/gui/GEOM/image228.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image229.jpg b/doc/salome/gui/GEOM/image229.jpg
deleted file mode 100755
index 3067b984f..000000000
Binary files a/doc/salome/gui/GEOM/image229.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image23.jpg b/doc/salome/gui/GEOM/image23.jpg
deleted file mode 100755
index ad8c856f9..000000000
Binary files a/doc/salome/gui/GEOM/image23.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image230.jpg b/doc/salome/gui/GEOM/image230.jpg
deleted file mode 100755
index 8e68cec8c..000000000
Binary files a/doc/salome/gui/GEOM/image230.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image231.jpg b/doc/salome/gui/GEOM/image231.jpg
deleted file mode 100755
index 8bb972b1e..000000000
Binary files a/doc/salome/gui/GEOM/image231.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image233.jpg b/doc/salome/gui/GEOM/image233.jpg
deleted file mode 100755
index a4295de38..000000000
Binary files a/doc/salome/gui/GEOM/image233.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image234.jpg b/doc/salome/gui/GEOM/image234.jpg
deleted file mode 100755
index f68e18e6e..000000000
Binary files a/doc/salome/gui/GEOM/image234.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image235.jpg b/doc/salome/gui/GEOM/image235.jpg
deleted file mode 100755
index 0b0429d29..000000000
Binary files a/doc/salome/gui/GEOM/image235.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image236.jpg b/doc/salome/gui/GEOM/image236.jpg
deleted file mode 100755
index bc88cf094..000000000
Binary files a/doc/salome/gui/GEOM/image236.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image237.jpg b/doc/salome/gui/GEOM/image237.jpg
deleted file mode 100755
index 9f0eb98c8..000000000
Binary files a/doc/salome/gui/GEOM/image237.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image238.jpg b/doc/salome/gui/GEOM/image238.jpg
deleted file mode 100755
index 70be93046..000000000
Binary files a/doc/salome/gui/GEOM/image238.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image239.jpg b/doc/salome/gui/GEOM/image239.jpg
deleted file mode 100755
index 3d6ca9160..000000000
Binary files a/doc/salome/gui/GEOM/image239.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image24.jpg b/doc/salome/gui/GEOM/image24.jpg
deleted file mode 100755
index f018bcc8f..000000000
Binary files a/doc/salome/gui/GEOM/image24.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image240.jpg b/doc/salome/gui/GEOM/image240.jpg
deleted file mode 100755
index 06ef70fb7..000000000
Binary files a/doc/salome/gui/GEOM/image240.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image241.jpg b/doc/salome/gui/GEOM/image241.jpg
deleted file mode 100755
index b0b7dd72a..000000000
Binary files a/doc/salome/gui/GEOM/image241.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image242.jpg b/doc/salome/gui/GEOM/image242.jpg
deleted file mode 100755
index f25a99400..000000000
Binary files a/doc/salome/gui/GEOM/image242.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image243.jpg b/doc/salome/gui/GEOM/image243.jpg
deleted file mode 100755
index b0eaee2c0..000000000
Binary files a/doc/salome/gui/GEOM/image243.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image244.jpg b/doc/salome/gui/GEOM/image244.jpg
deleted file mode 100755
index f07716e5e..000000000
Binary files a/doc/salome/gui/GEOM/image244.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image245.jpg b/doc/salome/gui/GEOM/image245.jpg
deleted file mode 100755
index 511fe86d3..000000000
Binary files a/doc/salome/gui/GEOM/image245.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image246.jpg b/doc/salome/gui/GEOM/image246.jpg
deleted file mode 100755
index c2f661b85..000000000
Binary files a/doc/salome/gui/GEOM/image246.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image247.jpg b/doc/salome/gui/GEOM/image247.jpg
deleted file mode 100755
index 3e9050b5c..000000000
Binary files a/doc/salome/gui/GEOM/image247.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image248.jpg b/doc/salome/gui/GEOM/image248.jpg
deleted file mode 100755
index 8430ef079..000000000
Binary files a/doc/salome/gui/GEOM/image248.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image249.jpg b/doc/salome/gui/GEOM/image249.jpg
deleted file mode 100755
index a9a6b8ccb..000000000
Binary files a/doc/salome/gui/GEOM/image249.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image250.jpg b/doc/salome/gui/GEOM/image250.jpg
deleted file mode 100755
index f7bee5360..000000000
Binary files a/doc/salome/gui/GEOM/image250.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image251.jpg b/doc/salome/gui/GEOM/image251.jpg
deleted file mode 100755
index 9b010ccad..000000000
Binary files a/doc/salome/gui/GEOM/image251.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image252.jpg b/doc/salome/gui/GEOM/image252.jpg
deleted file mode 100755
index 21624acb7..000000000
Binary files a/doc/salome/gui/GEOM/image252.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image253.jpg b/doc/salome/gui/GEOM/image253.jpg
deleted file mode 100755
index 145e0656a..000000000
Binary files a/doc/salome/gui/GEOM/image253.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image254.jpg b/doc/salome/gui/GEOM/image254.jpg
deleted file mode 100755
index 70a85ee20..000000000
Binary files a/doc/salome/gui/GEOM/image254.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image255.jpg b/doc/salome/gui/GEOM/image255.jpg
deleted file mode 100755
index ef09ed827..000000000
Binary files a/doc/salome/gui/GEOM/image255.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image256.jpg b/doc/salome/gui/GEOM/image256.jpg
deleted file mode 100755
index df838f3c1..000000000
Binary files a/doc/salome/gui/GEOM/image256.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image257.jpg b/doc/salome/gui/GEOM/image257.jpg
deleted file mode 100755
index 3a3146ed9..000000000
Binary files a/doc/salome/gui/GEOM/image257.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image258.jpg b/doc/salome/gui/GEOM/image258.jpg
deleted file mode 100755
index b21aca565..000000000
Binary files a/doc/salome/gui/GEOM/image258.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image259.jpg b/doc/salome/gui/GEOM/image259.jpg
deleted file mode 100755
index 34708def6..000000000
Binary files a/doc/salome/gui/GEOM/image259.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image26.jpg b/doc/salome/gui/GEOM/image26.jpg
deleted file mode 100755
index 916a10f6f..000000000
Binary files a/doc/salome/gui/GEOM/image26.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image260.jpg b/doc/salome/gui/GEOM/image260.jpg
deleted file mode 100755
index 035e5bb33..000000000
Binary files a/doc/salome/gui/GEOM/image260.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image261.jpg b/doc/salome/gui/GEOM/image261.jpg
deleted file mode 100755
index 3543abad9..000000000
Binary files a/doc/salome/gui/GEOM/image261.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image262.jpg b/doc/salome/gui/GEOM/image262.jpg
deleted file mode 100755
index 349d11d56..000000000
Binary files a/doc/salome/gui/GEOM/image262.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image263.jpg b/doc/salome/gui/GEOM/image263.jpg
deleted file mode 100755
index bfbd62163..000000000
Binary files a/doc/salome/gui/GEOM/image263.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image264.jpg b/doc/salome/gui/GEOM/image264.jpg
deleted file mode 100755
index 15fe048d7..000000000
Binary files a/doc/salome/gui/GEOM/image264.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image265.jpg b/doc/salome/gui/GEOM/image265.jpg
deleted file mode 100755
index e8f6e60f9..000000000
Binary files a/doc/salome/gui/GEOM/image265.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image266.jpg b/doc/salome/gui/GEOM/image266.jpg
deleted file mode 100755
index 30fe5d7e1..000000000
Binary files a/doc/salome/gui/GEOM/image266.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image267.jpg b/doc/salome/gui/GEOM/image267.jpg
deleted file mode 100755
index 7a8e0d323..000000000
Binary files a/doc/salome/gui/GEOM/image267.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image268.jpg b/doc/salome/gui/GEOM/image268.jpg
deleted file mode 100755
index 03326bceb..000000000
Binary files a/doc/salome/gui/GEOM/image268.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image269.jpg b/doc/salome/gui/GEOM/image269.jpg
deleted file mode 100755
index 8b390465e..000000000
Binary files a/doc/salome/gui/GEOM/image269.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image270.jpg b/doc/salome/gui/GEOM/image270.jpg
deleted file mode 100755
index 8c7d7d5e5..000000000
Binary files a/doc/salome/gui/GEOM/image270.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image271.jpg b/doc/salome/gui/GEOM/image271.jpg
deleted file mode 100755
index 8cabff6be..000000000
Binary files a/doc/salome/gui/GEOM/image271.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image272.jpg b/doc/salome/gui/GEOM/image272.jpg
deleted file mode 100755
index 27b24c4e3..000000000
Binary files a/doc/salome/gui/GEOM/image272.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image273.jpg b/doc/salome/gui/GEOM/image273.jpg
deleted file mode 100755
index 98c3af5df..000000000
Binary files a/doc/salome/gui/GEOM/image273.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image274.jpg b/doc/salome/gui/GEOM/image274.jpg
deleted file mode 100755
index 195c762b0..000000000
Binary files a/doc/salome/gui/GEOM/image274.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image275.jpg b/doc/salome/gui/GEOM/image275.jpg
deleted file mode 100755
index 543d6f6ad..000000000
Binary files a/doc/salome/gui/GEOM/image275.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image276.jpg b/doc/salome/gui/GEOM/image276.jpg
deleted file mode 100755
index 07fbf3858..000000000
Binary files a/doc/salome/gui/GEOM/image276.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image277.jpg b/doc/salome/gui/GEOM/image277.jpg
deleted file mode 100755
index f6b0d459d..000000000
Binary files a/doc/salome/gui/GEOM/image277.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image278.jpg b/doc/salome/gui/GEOM/image278.jpg
deleted file mode 100755
index 2713794be..000000000
Binary files a/doc/salome/gui/GEOM/image278.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image279.jpg b/doc/salome/gui/GEOM/image279.jpg
deleted file mode 100755
index 14663b959..000000000
Binary files a/doc/salome/gui/GEOM/image279.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image28.jpg b/doc/salome/gui/GEOM/image28.jpg
deleted file mode 100755
index 809e9a781..000000000
Binary files a/doc/salome/gui/GEOM/image28.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image280.jpg b/doc/salome/gui/GEOM/image280.jpg
deleted file mode 100755
index cc066aa9b..000000000
Binary files a/doc/salome/gui/GEOM/image280.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image281.jpg b/doc/salome/gui/GEOM/image281.jpg
deleted file mode 100755
index cd35b0546..000000000
Binary files a/doc/salome/gui/GEOM/image281.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image282.jpg b/doc/salome/gui/GEOM/image282.jpg
deleted file mode 100755
index e0c2932f8..000000000
Binary files a/doc/salome/gui/GEOM/image282.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image283.jpg b/doc/salome/gui/GEOM/image283.jpg
deleted file mode 100755
index eda3dc070..000000000
Binary files a/doc/salome/gui/GEOM/image283.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image284.jpg b/doc/salome/gui/GEOM/image284.jpg
deleted file mode 100755
index dcf2f39a1..000000000
Binary files a/doc/salome/gui/GEOM/image284.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image285.jpg b/doc/salome/gui/GEOM/image285.jpg
deleted file mode 100755
index 4b854a929..000000000
Binary files a/doc/salome/gui/GEOM/image285.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image286.jpg b/doc/salome/gui/GEOM/image286.jpg
deleted file mode 100755
index 0ffe3be2c..000000000
Binary files a/doc/salome/gui/GEOM/image286.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image287.jpg b/doc/salome/gui/GEOM/image287.jpg
deleted file mode 100755
index 6d6b3ae7b..000000000
Binary files a/doc/salome/gui/GEOM/image287.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image288.jpg b/doc/salome/gui/GEOM/image288.jpg
deleted file mode 100755
index 7d2621480..000000000
Binary files a/doc/salome/gui/GEOM/image288.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image289.jpg b/doc/salome/gui/GEOM/image289.jpg
deleted file mode 100755
index f3d90f41c..000000000
Binary files a/doc/salome/gui/GEOM/image289.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image29.jpg b/doc/salome/gui/GEOM/image29.jpg
deleted file mode 100755
index 39178b3c3..000000000
Binary files a/doc/salome/gui/GEOM/image29.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image290.jpg b/doc/salome/gui/GEOM/image290.jpg
deleted file mode 100755
index e88097d02..000000000
Binary files a/doc/salome/gui/GEOM/image290.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image291.jpg b/doc/salome/gui/GEOM/image291.jpg
deleted file mode 100755
index 954ec541a..000000000
Binary files a/doc/salome/gui/GEOM/image291.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image292.jpg b/doc/salome/gui/GEOM/image292.jpg
deleted file mode 100755
index 0a4ca53d6..000000000
Binary files a/doc/salome/gui/GEOM/image292.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image293.jpg b/doc/salome/gui/GEOM/image293.jpg
deleted file mode 100755
index ca1c655eb..000000000
Binary files a/doc/salome/gui/GEOM/image293.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image294.jpg b/doc/salome/gui/GEOM/image294.jpg
deleted file mode 100755
index 8f2cb46ca..000000000
Binary files a/doc/salome/gui/GEOM/image294.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image295.jpg b/doc/salome/gui/GEOM/image295.jpg
deleted file mode 100755
index 34be1d4a6..000000000
Binary files a/doc/salome/gui/GEOM/image295.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image296.jpg b/doc/salome/gui/GEOM/image296.jpg
deleted file mode 100755
index 1edb39e5f..000000000
Binary files a/doc/salome/gui/GEOM/image296.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image297.jpg b/doc/salome/gui/GEOM/image297.jpg
deleted file mode 100755
index e324a2b5d..000000000
Binary files a/doc/salome/gui/GEOM/image297.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image298.jpg b/doc/salome/gui/GEOM/image298.jpg
deleted file mode 100755
index 2a86720b2..000000000
Binary files a/doc/salome/gui/GEOM/image298.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image299.jpg b/doc/salome/gui/GEOM/image299.jpg
deleted file mode 100755
index 198bd3fa1..000000000
Binary files a/doc/salome/gui/GEOM/image299.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image300.jpg b/doc/salome/gui/GEOM/image300.jpg
deleted file mode 100755
index cbc1124eb..000000000
Binary files a/doc/salome/gui/GEOM/image300.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image5.gif b/doc/salome/gui/GEOM/image5.gif
deleted file mode 100755
index 751dfd938..000000000
Binary files a/doc/salome/gui/GEOM/image5.gif and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image51.jpg b/doc/salome/gui/GEOM/image51.jpg
deleted file mode 100755
index afeeda7ec..000000000
Binary files a/doc/salome/gui/GEOM/image51.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image55.jpg b/doc/salome/gui/GEOM/image55.jpg
deleted file mode 100755
index b94d29a1f..000000000
Binary files a/doc/salome/gui/GEOM/image55.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image56.jpg b/doc/salome/gui/GEOM/image56.jpg
deleted file mode 100755
index 0d0b98884..000000000
Binary files a/doc/salome/gui/GEOM/image56.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image57.jpg b/doc/salome/gui/GEOM/image57.jpg
deleted file mode 100755
index 8e0e5fd52..000000000
Binary files a/doc/salome/gui/GEOM/image57.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image58.jpg b/doc/salome/gui/GEOM/image58.jpg
deleted file mode 100755
index 44c24736e..000000000
Binary files a/doc/salome/gui/GEOM/image58.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image59.jpg b/doc/salome/gui/GEOM/image59.jpg
deleted file mode 100755
index b4289c8c1..000000000
Binary files a/doc/salome/gui/GEOM/image59.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image60.jpg b/doc/salome/gui/GEOM/image60.jpg
deleted file mode 100755
index fcf2c8033..000000000
Binary files a/doc/salome/gui/GEOM/image60.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image61.jpg b/doc/salome/gui/GEOM/image61.jpg
deleted file mode 100755
index e54bd6a54..000000000
Binary files a/doc/salome/gui/GEOM/image61.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image62.jpg b/doc/salome/gui/GEOM/image62.jpg
deleted file mode 100755
index df7de8077..000000000
Binary files a/doc/salome/gui/GEOM/image62.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image63.jpg b/doc/salome/gui/GEOM/image63.jpg
deleted file mode 100755
index 65c93f02b..000000000
Binary files a/doc/salome/gui/GEOM/image63.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image64.gif b/doc/salome/gui/GEOM/image64.gif
deleted file mode 100755
index 031ab8bbd..000000000
Binary files a/doc/salome/gui/GEOM/image64.gif and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image65.jpg b/doc/salome/gui/GEOM/image65.jpg
deleted file mode 100755
index a53ce4313..000000000
Binary files a/doc/salome/gui/GEOM/image65.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image66.jpg b/doc/salome/gui/GEOM/image66.jpg
deleted file mode 100755
index aee3999d7..000000000
Binary files a/doc/salome/gui/GEOM/image66.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image68.jpg b/doc/salome/gui/GEOM/image68.jpg
deleted file mode 100755
index 8f931c732..000000000
Binary files a/doc/salome/gui/GEOM/image68.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image69.jpg b/doc/salome/gui/GEOM/image69.jpg
deleted file mode 100755
index bd404e694..000000000
Binary files a/doc/salome/gui/GEOM/image69.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image7.jpg b/doc/salome/gui/GEOM/image7.jpg
deleted file mode 100755
index 2705e0c75..000000000
Binary files a/doc/salome/gui/GEOM/image7.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image70.jpg b/doc/salome/gui/GEOM/image70.jpg
deleted file mode 100755
index 42f598945..000000000
Binary files a/doc/salome/gui/GEOM/image70.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image71.jpg b/doc/salome/gui/GEOM/image71.jpg
deleted file mode 100755
index 0572119d5..000000000
Binary files a/doc/salome/gui/GEOM/image71.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image72.jpg b/doc/salome/gui/GEOM/image72.jpg
deleted file mode 100755
index 3f5917306..000000000
Binary files a/doc/salome/gui/GEOM/image72.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image73.jpg b/doc/salome/gui/GEOM/image73.jpg
deleted file mode 100755
index fd7a33618..000000000
Binary files a/doc/salome/gui/GEOM/image73.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image74.jpg b/doc/salome/gui/GEOM/image74.jpg
deleted file mode 100755
index a7f769aea..000000000
Binary files a/doc/salome/gui/GEOM/image74.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image75.jpg b/doc/salome/gui/GEOM/image75.jpg
deleted file mode 100755
index be32aa04a..000000000
Binary files a/doc/salome/gui/GEOM/image75.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image77.jpg b/doc/salome/gui/GEOM/image77.jpg
deleted file mode 100755
index 153466808..000000000
Binary files a/doc/salome/gui/GEOM/image77.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image86.jpg b/doc/salome/gui/GEOM/image86.jpg
deleted file mode 100755
index 7ed3c34fe..000000000
Binary files a/doc/salome/gui/GEOM/image86.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image87.jpg b/doc/salome/gui/GEOM/image87.jpg
deleted file mode 100755
index 8e6cfaadc..000000000
Binary files a/doc/salome/gui/GEOM/image87.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image88.jpg b/doc/salome/gui/GEOM/image88.jpg
deleted file mode 100755
index 7029d828d..000000000
Binary files a/doc/salome/gui/GEOM/image88.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image89.jpg b/doc/salome/gui/GEOM/image89.jpg
deleted file mode 100755
index 62535a802..000000000
Binary files a/doc/salome/gui/GEOM/image89.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image90.jpg b/doc/salome/gui/GEOM/image90.jpg
deleted file mode 100755
index 33ffb488c..000000000
Binary files a/doc/salome/gui/GEOM/image90.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image91.jpg b/doc/salome/gui/GEOM/image91.jpg
deleted file mode 100755
index d425095ad..000000000
Binary files a/doc/salome/gui/GEOM/image91.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image92.jpg b/doc/salome/gui/GEOM/image92.jpg
deleted file mode 100755
index 28342efb6..000000000
Binary files a/doc/salome/gui/GEOM/image92.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image93.jpg b/doc/salome/gui/GEOM/image93.jpg
deleted file mode 100755
index 07994992a..000000000
Binary files a/doc/salome/gui/GEOM/image93.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/image99.jpg b/doc/salome/gui/GEOM/image99.jpg
deleted file mode 100755
index 290b21b96..000000000
Binary files a/doc/salome/gui/GEOM/image99.jpg and /dev/null differ
diff --git a/doc/salome/gui/GEOM/newentity_blocks.htm b/doc/salome/gui/GEOM/newentity_blocks.htm
deleted file mode 100755
index 67110fcaf..000000000
--- a/doc/salome/gui/GEOM/newentity_blocks.htm
+++ /dev/null
@@ -1,319 +0,0 @@
-
-
-
-
-
-Blocks
-
-
-
-
-
-
-
-
-
-
-
-
-
Building by blocks
-
-
Introduction.
-
-
-
-
Below are some general notions about blocks:
-
-
-
-
A block is a an elementary geometric solid that
- has specific geometric constraints oriented for meshing. In the hexahedral
- case, blocks have 6 faces and each face has 4 edges.
-
-
-
-
Tetrahedral Block - is a block with constraints for tetrahedral meshing.
-
-
-
-
-
Hexahedral Block - is a block with constraints for hexahedral meshing.
-
-
-
-
Block Compound - is a compound composed of blocks only.
-
-
-
-
These functionalities are available from the main menu via New
- Entity / Blocks.
Description:
- Builds a face using the below mentioned arguments. This operation allows
- to build a face bypassing the intermediate stage of building edges and
- wires (in the case of building by 4 points) or wires (in the case of building
- by 4 or 2 edges).
-
-
-
-
Result :
- GEOM_Object.
-
-
-
-
TUI Command:
-
-
-
-
geompy.MakeQuadFaceVertices(V1,
- V2, V3, V4), where V1, V2, V3, V4 are
- four vertices from which a face is constructed. Edges are created automatically.
-
-
geompy.MakeQuadFaceEdges(E1,
- E2), where E1, E2 are edges from which the face is constructed,
- two other edges are created automatically.
-
-
geompy.MakeQuadFace(E1, E2, E3, E4),
- where E1, E2, E3, E4 are four edges from which the face is constructed.
Description:
- Builds a hexahedral solid either of the below mentioned arguments. This
- operation allows to build a solid bypassing the intermediate stage of
- building a shell and 4 faces (in the case of building by 2 faces) or just
- a shell (in the case of building by 6 faces).
-
-
-
-
Result :
- GEOM_Object.
-
-
-
-
TUI Command:
-
-
-
-
geompy.MakeHexaSolid(F1,
- F2, F3, F4, F5, F6), where F1 – F6 are six faces from which the
- hexahedron is constructed.
-
-
geompy.MakeHexaSolidTwoFaces(F1,
- F2), where F1 and F2 are faces from which the hexahedron is constructed,
- other four faces are created automatically.
Sketcher allows to create curves of 2 types: line
- segment and arc. The
- curve is created from the current point (center of coordinates when the
- sketcher is started). The
- end of the curve is defined by means of "destination", which
- can be a destination point (for segment only) or destination direction
- coupled with length of a segment or angle and radius of an arc.
-
-
-
-
Sketcher is able to create planar curves only. Therefore, it is necessary
- to select a working plane before starting a sketch (by default, XOY plane
- is used). Sketcher creates curves lying in the current working plane (New
- Entity -> Basic -> Working Plane).
-
-
-
-
This functionality is available from the main menu via New
- Entity / Sketch.
-
-
-
-
Description:
- Creates curves (line segment and arc).
-
-
-
-
Result: GEOM_Object.
-
-
-
-
TUI Command:
- geompy.MakeSketcher(Command, LWP),
- where Command is a string containing the coordinates of points in the
- local working plane, LWP is a list of 9 doubles which are coordinates
- of OZ and OX of the local working plane.
-
-
-
-
Arguments:
-
-
-
1. Element type (segment or arc).
-
-
2. Destination type (point or direction).
-
-
3. Destination point by means of:
-
-
-
-
absolute coordinates
- X,Y;
-
-
relative coordinates
- DX, DY (with respect to the current point);
-
-
selection of an existing
- point.
-
-
-
4. Destination direction by means of:
-
-
-
-
angle between the new
- segment and the previous one;
-
-
perpendicular to the
- previous segment (same as previous, but angle is predefined and is equal
- to 90 degrees);
-
-
tangent to the previous
- segment;
-
-
vector components VX,
- DY.
-
-
-
5. Parameters of an element (for segment :
- length or target X or Y coordinate value, for arc : radius and angle).
The Salome platform offers
- such a useful functionality as creation and editing groups of subshapes
- of a geometrical object which makes handling subshapes much easier. However
- the functionality is available in the OCC viewer only. If other viewer
- is used in your project by default, you can toggle the OCC viewer via
- Preferences / Viewer background / OCC viewer.
-
-
-
-
To perform operations with groups:
-
-
-
-
In the main menu select New
- entity > Group.
-
-
-
-
Create
- a group
-
-
-
-
Description:
- Creates a group of subshapes of a geometrical object.
-
-
-
-
Result: GEOM_Object.
-
-
-
-
TUI Command:
- geompy.CreateGroup(MainShape, ShapeType),
- where MainShape is a shape for which the group is created, ShapeType is
- a type of shapes in the created group.
-
-
-
-
Arguments:
- 1 Shape + Type of subshape.
-
-
-
-
Dialog Box:
-
-
-
-
-
-
-
-
Example:
-
-
-
-
-
-
-
-
-
-
-
-
Edit
- a group
-
-
-
-
Description:
- Allows to edit the existing group.
-
-
-
-
Result: GEOM_Object.
-
-
-
-
TUI Command:
-
-
-
-
-
geompy.AddObject(Group,
- SubShapeID), where Group is a group to which a sub shape has to
- be added, SubShapeID is an ID of the sub shape to be added to the group
-
-
geompy.RemoveObject(Group,
- SubShapeID), where Group is a group from which a sub shape has
- to be removed, SubShapeID is an ID of the sub shape to be removed from
- the group
-
-
geompy.GetObjectIDs(Group),
- where Group is a group for which its object ID’s are returned.
-
-
-
Returns:
- List of IDs.
-
-
-
-
Arguments:
- 1 Shape + its subshapes.
-
-
-
-
Dialog Box:
-
-
-
-
-
-
-
-
diff --git a/doc/salome/tui/GEOM/doxyfile b/doc/salome/tui/GEOM/doxyfile
deleted file mode 100755
index 92c502252..000000000
--- a/doc/salome/tui/GEOM/doxyfile
+++ /dev/null
@@ -1,200 +0,0 @@
-# Doxyfile 1.3-rc1
-
-#---------------------------------------------------------------------------
-# General configuration options
-#---------------------------------------------------------------------------
-PROJECT_NAME = "SALOME - GEOM - v.2.1.0"
-PROJECT_NUMBER = id#1.1
-OUTPUT_DIRECTORY = ../
-OUTPUT_LANGUAGE = English
-EXTRACT_ALL = YES
-EXTRACT_PRIVATE = YES
-EXTRACT_STATIC = YES
-EXTRACT_LOCAL_CLASSES = YES
-HIDE_UNDOC_MEMBERS = NO
-HIDE_UNDOC_CLASSES = NO
-HIDE_FRIEND_COMPOUNDS = NO
-HIDE_IN_BODY_DOCS = NO
-BRIEF_MEMBER_DESC = YES
-REPEAT_BRIEF = NO
-ALWAYS_DETAILED_SEC = YES
-INLINE_INHERITED_MEMB = YES
-FULL_PATH_NAMES = NO
-STRIP_FROM_PATH =
-INTERNAL_DOCS = YES
-CASE_SENSE_NAMES = YES
-SHORT_NAMES = NO
-HIDE_SCOPE_NAMES = NO
-VERBATIM_HEADERS = YES
-SHOW_INCLUDE_FILES = YES
-JAVADOC_AUTOBRIEF = YES
-MULTILINE_CPP_IS_BRIEF = NO
-DETAILS_AT_TOP = NO
-INHERIT_DOCS = YES
-INLINE_INFO = YES
-SORT_MEMBER_DOCS = NO
-DISTRIBUTE_GROUP_DOC = NO
-TAB_SIZE = 5
-GENERATE_TODOLIST = YES
-GENERATE_TESTLIST = YES
-GENERATE_BUGLIST = YES
-GENERATE_DEPRECATEDLIST= YES
-ALIASES =
-ENABLED_SECTIONS =
-MAX_INITIALIZER_LINES = 25
-OPTIMIZE_OUTPUT_FOR_C = YES
-OPTIMIZE_OUTPUT_JAVA = YES
-SHOW_USED_FILES = NO
-#---------------------------------------------------------------------------
-# configuration options related to warning and progress messages
-#---------------------------------------------------------------------------
-QUIET = NO
-WARNINGS = YES
-WARN_IF_UNDOCUMENTED = YES
-WARN_FORMAT = "$file:$line: $text"
-WARN_LOGFILE = log.txt
-#---------------------------------------------------------------------------
-# configuration options related to the input files
-#---------------------------------------------------------------------------
-INPUT = ../../../share/salome/idl/GEOM_Gen.idl
-FILE_PATTERNS =
-RECURSIVE = NO
-EXCLUDE =
-EXCLUDE_SYMLINKS = NO
-EXCLUDE_PATTERNS =
-EXAMPLE_PATH =
-EXAMPLE_PATTERNS =
-EXAMPLE_RECURSIVE = NO
-IMAGE_PATH = sources/
-INPUT_FILTER =
-FILTER_SOURCE_FILES = YES
-#---------------------------------------------------------------------------
-# configuration options related to source browsing
-#---------------------------------------------------------------------------
-SOURCE_BROWSER = NO
-INLINE_SOURCES = NO
-STRIP_CODE_COMMENTS = YES
-REFERENCED_BY_RELATION = NO
-REFERENCES_RELATION = YES
-#---------------------------------------------------------------------------
-# configuration options related to the alphabetical class index
-#---------------------------------------------------------------------------
-ALPHABETICAL_INDEX = NO
-COLS_IN_ALPHA_INDEX = 5
-IGNORE_PREFIX =
-#---------------------------------------------------------------------------
-# configuration options related to the HTML output
-#---------------------------------------------------------------------------
-GENERATE_HTML = YES
-HTML_OUTPUT = GEOM
-HTML_FILE_EXTENSION = .html
-HTML_HEADER = sources/myheader.html
-HTML_FOOTER =
-HTML_STYLESHEET =
-HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = NO
-CHM_FILE =
-HHC_LOCATION =
-GENERATE_CHI = NO
-BINARY_TOC = YES
-TOC_EXPAND = YES
-DISABLE_INDEX = YES
-ENUM_VALUES_PER_LINE = 4
-GENERATE_TREEVIEW = YES
-TREEVIEW_WIDTH = 250
-#---------------------------------------------------------------------------
-# configuration options related to the LaTeX output
-#---------------------------------------------------------------------------
-GENERATE_LATEX = NO
-LATEX_OUTPUT = latex
-LATEX_CMD_NAME = latex
-MAKEINDEX_CMD_NAME = makeindex
-COMPACT_LATEX = NO
-PAPER_TYPE = a4wide
-EXTRA_PACKAGES =
-LATEX_HEADER =
-PDF_HYPERLINKS = NO
-USE_PDFLATEX = NO
-LATEX_BATCHMODE = NO
-#---------------------------------------------------------------------------
-# configuration options related to the RTF output
-#---------------------------------------------------------------------------
-GENERATE_RTF = NO
-RTF_OUTPUT = rtf
-COMPACT_RTF = NO
-RTF_HYPERLINKS = NO
-RTF_STYLESHEET_FILE =
-RTF_EXTENSIONS_FILE =
-#---------------------------------------------------------------------------
-# configuration options related to the man page output
-#---------------------------------------------------------------------------
-GENERATE_MAN = NO
-MAN_OUTPUT = man
-MAN_EXTENSION = .3
-MAN_LINKS = NO
-#---------------------------------------------------------------------------
-# configuration options related to the XML output
-#---------------------------------------------------------------------------
-GENERATE_XML = NO
-XML_SCHEMA =
-XML_DTD =
-#---------------------------------------------------------------------------
-# configuration options for the AutoGen Definitions output
-#---------------------------------------------------------------------------
-GENERATE_AUTOGEN_DEF = NO
-#---------------------------------------------------------------------------
-# configuration options related to the Perl module output
-#---------------------------------------------------------------------------
-GENERATE_PERLMOD = NO
-PERLMOD_LATEX = NO
-PERLMOD_PRETTY = YES
-PERLMOD_MAKEVAR_PREFIX =
-#---------------------------------------------------------------------------
-# Configuration options related to the preprocessor
-#---------------------------------------------------------------------------
-ENABLE_PREPROCESSING = YES
-MACRO_EXPANSION = YES
-EXPAND_ONLY_PREDEF = NO
-SEARCH_INCLUDES = YES
-INCLUDE_PATH =
-INCLUDE_FILE_PATTERNS =
-PREDEFINED =
-EXPAND_AS_DEFINED =
-SKIP_FUNCTION_MACROS = NO
-#---------------------------------------------------------------------------
-# Configuration::addtions related to external references
-#---------------------------------------------------------------------------
-TAGFILES =
-GENERATE_TAGFILE =
-ALLEXTERNALS = NO
-EXTERNAL_GROUPS = YES
-PERL_PATH = /usr/bin/perl
-#---------------------------------------------------------------------------
-# Configuration options related to the dot tool
-#---------------------------------------------------------------------------
-CLASS_DIAGRAMS = YES
-HIDE_UNDOC_RELATIONS = NO
-HAVE_DOT = YES
-CLASS_GRAPH = YES
-COLLABORATION_GRAPH = NO
-TEMPLATE_RELATIONS = YES
-INCLUDE_GRAPH = YES
-INCLUDED_BY_GRAPH = NO
-GRAPHICAL_HIERARCHY = YES
-DOT_IMAGE_FORMAT = jpg
-DOT_PATH =
-DOTFILE_DIRS =
-MAX_DOT_GRAPH_WIDTH = 1024
-MAX_DOT_GRAPH_HEIGHT = 1200
-GENERATE_LEGEND = NO
-DOT_CLEANUP = YES
-#---------------------------------------------------------------------------
-# Configuration::addtions related to the search engine
-#---------------------------------------------------------------------------
-SEARCHENGINE = NO
-CGI_NAME = search.cgi
-CGI_URL =
-DOC_URL =
-DOC_ABSPATH =
-BIN_ABSPATH = /usr/local/bin/
-EXT_DOC_PATHS =
diff --git a/doc/salome/tui/GEOM/doxyfile_py b/doc/salome/tui/GEOM/doxyfile_py
deleted file mode 100755
index a76886de1..000000000
--- a/doc/salome/tui/GEOM/doxyfile_py
+++ /dev/null
@@ -1,200 +0,0 @@
-# Doxyfile 1.3-rc1
-
-#---------------------------------------------------------------------------
-# General configuration options
-#---------------------------------------------------------------------------
-PROJECT_NAME = "SALOME - GEOM - v.2.1.0"
-PROJECT_NUMBER = id#1.1
-OUTPUT_DIRECTORY = ../
-OUTPUT_LANGUAGE = English
-EXTRACT_ALL = YES
-EXTRACT_PRIVATE = YES
-EXTRACT_STATIC = YES
-EXTRACT_LOCAL_CLASSES = YES
-HIDE_UNDOC_MEMBERS = NO
-HIDE_UNDOC_CLASSES = NO
-HIDE_FRIEND_COMPOUNDS = NO
-HIDE_IN_BODY_DOCS = NO
-BRIEF_MEMBER_DESC = YES
-REPEAT_BRIEF = NO
-ALWAYS_DETAILED_SEC = YES
-INLINE_INHERITED_MEMB = YES
-FULL_PATH_NAMES = NO
-STRIP_FROM_PATH =
-INTERNAL_DOCS = YES
-CASE_SENSE_NAMES = YES
-SHORT_NAMES = NO
-HIDE_SCOPE_NAMES = NO
-VERBATIM_HEADERS = YES
-SHOW_INCLUDE_FILES = YES
-JAVADOC_AUTOBRIEF = YES
-MULTILINE_CPP_IS_BRIEF = NO
-DETAILS_AT_TOP = NO
-INHERIT_DOCS = YES
-INLINE_INFO = YES
-SORT_MEMBER_DOCS = NO
-DISTRIBUTE_GROUP_DOC = NO
-TAB_SIZE = 5
-GENERATE_TODOLIST = YES
-GENERATE_TESTLIST = YES
-GENERATE_BUGLIST = YES
-GENERATE_DEPRECATEDLIST= YES
-ALIASES =
-ENABLED_SECTIONS =
-MAX_INITIALIZER_LINES = 25
-OPTIMIZE_OUTPUT_FOR_C = YES
-OPTIMIZE_OUTPUT_JAVA = YES
-SHOW_USED_FILES = NO
-#---------------------------------------------------------------------------
-# configuration options related to warning and progress messages
-#---------------------------------------------------------------------------
-QUIET = NO
-WARNINGS = YES
-WARN_IF_UNDOCUMENTED = YES
-WARN_FORMAT = "$file:$line: $text"
-WARN_LOGFILE = log.txt
-#---------------------------------------------------------------------------
-# configuration options related to the input files
-#---------------------------------------------------------------------------
-INPUT = list_py_files_to_process
-FILE_PATTERNS =
-RECURSIVE = NO
-EXCLUDE =
-EXCLUDE_SYMLINKS = NO
-EXCLUDE_PATTERNS =
-EXAMPLE_PATH =
-EXAMPLE_PATTERNS =
-EXAMPLE_RECURSIVE = NO
-IMAGE_PATH = ../sources/
-INPUT_FILTER =
-FILTER_SOURCE_FILES = YES
-#---------------------------------------------------------------------------
-# configuration options related to source browsing
-#---------------------------------------------------------------------------
-SOURCE_BROWSER = NO
-INLINE_SOURCES = NO
-STRIP_CODE_COMMENTS = YES
-REFERENCED_BY_RELATION = NO
-REFERENCES_RELATION = YES
-#---------------------------------------------------------------------------
-# configuration options related to the alphabetical class index
-#---------------------------------------------------------------------------
-ALPHABETICAL_INDEX = NO
-COLS_IN_ALPHA_INDEX = 5
-IGNORE_PREFIX =
-#---------------------------------------------------------------------------
-# configuration options related to the HTML output
-#---------------------------------------------------------------------------
-GENERATE_HTML = YES
-HTML_OUTPUT = ../GEOM/geompy_doc
-HTML_FILE_EXTENSION = .html
-HTML_HEADER = ../sources/myheader_py2.html
-HTML_FOOTER =
-HTML_STYLESHEET =
-HTML_ALIGN_MEMBERS = YES
-GENERATE_HTMLHELP = NO
-CHM_FILE =
-HHC_LOCATION =
-GENERATE_CHI = NO
-BINARY_TOC = YES
-TOC_EXPAND = YES
-DISABLE_INDEX = YES
-ENUM_VALUES_PER_LINE = 4
-GENERATE_TREEVIEW = YES
-TREEVIEW_WIDTH = 250
-#---------------------------------------------------------------------------
-# configuration options related to the LaTeX output
-#---------------------------------------------------------------------------
-GENERATE_LATEX = NO
-LATEX_OUTPUT = latex
-LATEX_CMD_NAME = latex
-MAKEINDEX_CMD_NAME = makeindex
-COMPACT_LATEX = NO
-PAPER_TYPE = a4wide
-EXTRA_PACKAGES =
-LATEX_HEADER =
-PDF_HYPERLINKS = NO
-USE_PDFLATEX = NO
-LATEX_BATCHMODE = NO
-#---------------------------------------------------------------------------
-# configuration options related to the RTF output
-#---------------------------------------------------------------------------
-GENERATE_RTF = NO
-RTF_OUTPUT = rtf
-COMPACT_RTF = NO
-RTF_HYPERLINKS = NO
-RTF_STYLESHEET_FILE =
-RTF_EXTENSIONS_FILE =
-#---------------------------------------------------------------------------
-# configuration options related to the man page output
-#---------------------------------------------------------------------------
-GENERATE_MAN = NO
-MAN_OUTPUT = man
-MAN_EXTENSION = .3
-MAN_LINKS = NO
-#---------------------------------------------------------------------------
-# configuration options related to the XML output
-#---------------------------------------------------------------------------
-GENERATE_XML = NO
-XML_SCHEMA =
-XML_DTD =
-#---------------------------------------------------------------------------
-# configuration options for the AutoGen Definitions output
-#---------------------------------------------------------------------------
-GENERATE_AUTOGEN_DEF = NO
-#---------------------------------------------------------------------------
-# configuration options related to the Perl module output
-#---------------------------------------------------------------------------
-GENERATE_PERLMOD = NO
-PERLMOD_LATEX = NO
-PERLMOD_PRETTY = YES
-PERLMOD_MAKEVAR_PREFIX =
-#---------------------------------------------------------------------------
-# Configuration options related to the preprocessor
-#---------------------------------------------------------------------------
-ENABLE_PREPROCESSING = YES
-MACRO_EXPANSION = YES
-EXPAND_ONLY_PREDEF = NO
-SEARCH_INCLUDES = YES
-INCLUDE_PATH =
-INCLUDE_FILE_PATTERNS =
-PREDEFINED =
-EXPAND_AS_DEFINED =
-SKIP_FUNCTION_MACROS = NO
-#---------------------------------------------------------------------------
-# Configuration::addtions related to external references
-#---------------------------------------------------------------------------
-TAGFILES =
-GENERATE_TAGFILE =
-ALLEXTERNALS = NO
-EXTERNAL_GROUPS = YES
-PERL_PATH = /usr/bin/perl
-#---------------------------------------------------------------------------
-# Configuration options related to the dot tool
-#---------------------------------------------------------------------------
-CLASS_DIAGRAMS = YES
-HIDE_UNDOC_RELATIONS = NO
-HAVE_DOT = YES
-CLASS_GRAPH = YES
-COLLABORATION_GRAPH = NO
-TEMPLATE_RELATIONS = YES
-INCLUDE_GRAPH = YES
-INCLUDED_BY_GRAPH = NO
-GRAPHICAL_HIERARCHY = YES
-DOT_IMAGE_FORMAT = jpg
-DOT_PATH =
-DOTFILE_DIRS =
-MAX_DOT_GRAPH_WIDTH = 1024
-MAX_DOT_GRAPH_HEIGHT = 1200
-GENERATE_LEGEND = NO
-DOT_CLEANUP = YES
-#---------------------------------------------------------------------------
-# Configuration::addtions related to the search engine
-#---------------------------------------------------------------------------
-SEARCHENGINE = NO
-CGI_NAME = search.cgi
-CGI_URL =
-DOC_URL =
-DOC_ABSPATH =
-BIN_ABSPATH = /usr/local/bin/
-EXT_DOC_PATHS =
diff --git a/doc/salome/tui/GEOM/sources/static/tree.js b/doc/salome/tui/GEOM/sources/static/tree.js
deleted file mode 100755
index edeb48ce7..000000000
--- a/doc/salome/tui/GEOM/sources/static/tree.js
+++ /dev/null
@@ -1,59 +0,0 @@
-foldersTree = gFld("SALOME v.2.1.0 ", "", "")
- insDoc(foldersTree, gLnk("Main Page", "", "main.html"))
-
-aux1 = insFld(foldersTree, gFld("TUI Reference Guide", ""))
- aux2 = insFld(aux1, gFld("Modules", ""))
- aux3 = insFld(aux2, gFld("SALOME GEOMETRY module", ""))
-/*! insDoc(aux3, gLnk("Overview", "", "overview_Geometry.html"))*/
- aux4 = insFld(aux3, gFld("Packages", ""))
- insDoc(aux4, gLnk("GEOM", "", "namespaceGEOM.html"))
-/*! insDoc(aux3, gLnk("Examples", "", "examples_GEOM.html"))
-*/
-
-/*! Data structures
-*/
- insDoc(aux1, gLnk("Data Structures", "", "annotated.html"))
-
-/*! insDoc(aux1, gLnk("GEOM::GEOM_Gen", "", "interfaceGEOM_1_1GEOM__Gen.html"))
- insDoc(aux1, gLnk("GEOM::GEOM_Shape", "", "interfaceGEOM_1_1GEOM__Shape.html"))
-*/
- insDoc(aux1, gLnk("Class Hierarchy", "", "hierarchy.html"))
-
-/*!
- aux3 = insFld(aux2, gFld("GEOM::GEOM_Gen", "", "interfaceGEOM_1_1GEOM__Gen.html"))
- aux3 = insFld(aux2, gFld("GEOM::GEOM_Shape", "", "interfaceGEOM_1_1GEOM__Shape.html"))
- aux3 = insFld(aux2, gFld("GEOM::AxisStruct", "", "structGEOM_1_1AxisStruct.html"))
- aux3 = insFld(aux2, gFld("GEOM::DirStruct", "", "structGEOM_1_1DirStruct.html"))
- aux3 = insFld(aux2, gFld("GEOM::PointStruct", "", "structGEOM_1_1PointStruct.html"))
-*/
- insDoc(aux1, gLnk("Class methods list", "", "functions.html"))
-/*!
-aux1 = insFld(foldersTree, gFld("Namespace List", "", "namespaces.html"))
- insDoc(aux1, gLnk("GEOM", "", "namespaceGEOM.html"))
-*/
- insDoc(aux1, gLnk("Namespace Members", "", "namespacemembers.html"))
-
- insDoc(aux1, gLnk("File List", "", "files.html"))
-
-/*!
-
- insDoc(aux1, gLnk("GEOM_Gen.idl", "", "GEOM__Gen_8idl.html"))
- insDoc(aux1, gLnk("GEOM_Shape.idl", "", "GEOM__Shape_8idl.html"))
-*/
-
-aux1 = insFld(foldersTree, gFld("IDL/Python mapping", ""))
- insDoc(aux1, gLnk("Mapping of GEOMETRY IDL definitions to Python language", "", "page2.html"))
-
-/*!aux1 = insFld(foldersTree, gFld("Python Commands", "", "geompy_doc/main.html"))
- insDoc(aux1, gLnk("Package geompy", "", "geompy_doc/namespacegeompy.html"))
- insDoc(aux1, gLnk("Namespace Members", "", "geompy_doc/namespacemembers.html"))
- insDoc(aux1, gLnk("File geompy.py", "", "geompy_doc/geompy_8py.html"))
-*/
-
-aux1 = insFld(foldersTree, gFld("Python Commands", "", "geompy_doc/main.html"))
- insDoc(aux1, gLnk("Package List", "", "geompy_doc/namespaces.html"))
- insDoc(aux1, gLnk("Namespace Members", "", "geompy_doc/namespacemembers.html"))
- insDoc(aux1, gLnk("File List", "", "geompy_doc/files.html"))
-
-/*! insDoc(foldersTree, gLnk("Graphical Class Hierarchy", "", "inherits.html"))
-*/
diff --git a/idl/GEOM_Gen.idl b/idl/GEOM_Gen.idl
deleted file mode 100644
index 6bc1582c6..000000000
--- a/idl/GEOM_Gen.idl
+++ /dev/null
@@ -1,2075 +0,0 @@
-// File : GEOM_Gen.idl
-// Author : Sergey RUIN
-
-#ifndef __GEOM_GEN__
-#define __GEOM_GEN__
-
-#include "SALOME_Exception.idl"
-#include "SALOME_Component.idl"
-#include "SALOMEDS.idl"
-
-#include "SALOME_GenericObj.idl"
-
-module GEOM
-{
- /*!
- * Topological types of shapes (like Open Cascade types)
- */
- enum shape_type { COMPOUND, COMPSOLID, SOLID, SHELL,
- FACE, WIRE, EDGE, VERTEX, SHAPE };
-
-
- /*!
- * State of shape relatively geometrical surface like plane, sphere or cylinder.
- * Is used in functions GEOM_IShapesOperations.GetShapesOn()
- */
- enum shape_state
- {
- /*! Shape is on surface */
- ST_ON,
-
- /*!
- * Shape is in the direction defined by the normal and not on surface.
- * For plane it means above the plane,
- * For sphere and cylinder it means outside of volume, bounded by the surface.
- */
- ST_OUT,
-
- /*!
- * Shape is in the direction defined by the normal and on surface.
- * ONOUT = ON || OUT
- */
- ST_ONOUT,
-
- /*!
- * Complementary to ONOUT.
- * For plane it means below the plane,
- * For sphere and cylinder it means inside the volume, bounded by the surface
- * (beyond axis and surface for cylinder and beyond cented and surface for sphere).
- */
- ST_IN,
-
- /*!
- * Complementary to OUT.
- * ONIN = ON || IN
- */
- ST_ONIN
- };
-
- typedef sequence string_array;
- typedef sequence short_array;
- typedef sequence ListOfLong;
- typedef sequence ListOfDouble;
-
- interface GEOM_Object;
-
- typedef sequence ListOfGO;
-
- /*!
- * GEOM_Object: interface of geometric object
- */
- interface GEOM_Object : SALOME::GenericObj
- {
-
- /*!
- * Get an entry of the object in GEOM component.
- */
- string GetEntry();
-
- /*!
- * Get ID of study, where the object is created.
- */
- long GetStudyID();
-
- /*!
- * Get internal type of the object (POINT, BOX, CYLINDER, EXTRUSION...).
- */
- long GetType();
-
- /*!
- * Get a shape_type of the object value.
- */
- shape_type GetShapeType();
-
- /*!
- * Set name of the object.
- * \param theName is a name which will be associated with this object.
- */
- void SetName (in string theName);
-
- /*!
- * Get name of the object associated with this object.
- */
- string GetName();
-
- /*!
- * Set a Study entry where this object was published.
- */
- void SetStudyEntry (in string theEntry);
-
- /*!
- * Get a Study entry where this object was published.
- */
- string GetStudyEntry();
-
- /*!
- * Get a list of all GEOM objects on which were the arguments
- * when this object was constructed and modified.
- * \note This method is supposed to be used by GUI only.
- */
- ListOfGO GetDependency();
-
- /*!
- * Get a list of GEOM objects on which the last function that created or modified the object depends.
- * \note This method is supposed to be used by GUI only.
- */
- ListOfGO GetLastDependency();
-
- /*!
- * Get the TopoDS_Shape, for colocated case only.
- */
- long getShape();
-
- /*!
- ######################################################################
- * Internal methods (For sub shape identification)
- ######################################################################
- */
-
- /*!
- * Get geometric shape of the object as a byte stream
- */
- SALOMEDS::TMPFile GetShapeStream();
-
- /*
- * Returns True if this object is not a sub shape of another object.
- */
- boolean IsMainShape();
-
- /*
- * Get a list of ID's of sub shapes in the main shape.
- * \note Internal method, suppopsed to be used only by GEOM_Client
- */
- ListOfLong GetSubShapeIndices();
-
- /*
- * Get a main shape object to which this object is a sub shape
- * \note Internal method, suppopsed to be used only by GEOM_Client
- */
- GEOM_Object GetMainShape();
-
- /*
- * Return true if geom object representes a shape.
- * For example, method return false for GEOM_MARKER
- */
- boolean IsShape();
- };
-
-
- /*!
- * GEOM_IOperations: basic methods of all geometric operations
- */
- interface GEOM_IOperations : SALOME::GenericObj
- {
- /*!
- * To know, if the operation was successfully performed
- */
- boolean IsDone();
-
- /*!
- * Set the operation error code
- * \param theErrorID is a string describing the error occured
- * \note This method is supposed to be used only by interfaces inheriting from IOperations.
- */
- void SetErrorCode (in string theErrorID);
-
- /*!
- * Get the operation error code
- */
- string GetErrorCode();
-
- /*!
- * Get ID of study, where the operation is defined
- */
- long GetStudyID();
-
- /*!
- * Opens a new transaction
- */
- void StartOperation();
-
- /*!
- * Closes the previously opened trasaction
- */
- void FinishOperation();
-
- /*!
- * Aborts the previously opened transaction
- */
- void AbortOperation();
- };
-
- /*!
- * GEOM_IBasicOperations: interface for basic geometry creation
- * (Point, Vector, Plane, Marker)
- */
- interface GEOM_IBasicOperations : GEOM_IOperations
- {
- /*!
- * Create point by three coordinates.
- * \param theX The X coordinate of the point.
- * \param theY The Y coordinate of the point.
- * \param theZ The Z coordinate of the point.
- * \return New GEOM_Object, containing the created point.
- */
- GEOM_Object MakePointXYZ (in double theX, in double theY, in double theZ);
-
- /*!
- * Create a point, distant from the referenced point
- * on the given distances along the coordinate axes.
- * \param theReference The referenced point.
- * \param theX Displacement from the referenced point along OX axis.
- * \param theY Displacement from the referenced point along OY axis.
- * \param theZ Displacement from the referenced point along OZ axis.
- * \return New GEOM_Object, containing the created point.
- */
- GEOM_Object MakePointWithReference (in GEOM_Object theReference,
- in double theX, in double theY, in double theZ);
-
- /*!
- * Create a point, corresponding to the given parameter on the given curve.
- * \param theRefCurve The referenced curve.
- * \param theParameter Value of parameter on the referenced curve.
- * \return New GEOM_Object, containing the created point.
- */
- GEOM_Object MakePointOnCurve (in GEOM_Object theRefCurve,
- in double theParameter);
-
- /*!
- * Create a vector with the given components.
- * \param theDX X component of the vector.
- * \param theDY Y component of the vector.
- * \param theDZ Z component of the vector.
- * \return New GEOM_Object, containing the created vector.
- */
- GEOM_Object MakeVectorDXDYDZ (in double theDX,
- in double theDY,
- in double theDZ);
-
- /*!
- * Create a vector between two points.
- * \param thePnt1 Start point for the vector.
- * \param thePnt2 End point for the vector.
- * \return New GEOM_Object, containing the created vector.
- */
- GEOM_Object MakeVectorTwoPnt (in GEOM_Object thePnt1, in GEOM_Object thePnt2);
-
- /*!
- * Create a line, passing through the given point
- * and parrallel to the given direction
- * \param thePnt Point. The resulting line will pass through it.
- * \param theDir Direction. The resulting line will be parallel to it.
- * \return New GEOM_Object, containing the created line.
- */
- GEOM_Object MakeLine (in GEOM_Object thePnt, in GEOM_Object theDir);
-
- /*!
- * Create a line, passing through the given points
- * \param thePnt1 First of two points, defining the line.
- * \param thePnt2 Second of two points, defining the line.
- * \return New GEOM_Object, containing the created line.
- */
- GEOM_Object MakeLineTwoPnt (in GEOM_Object thePnt1, in GEOM_Object thePnt2);
-
- /*!
- * Create a plane, passing through the three given points
- * \param thePnt1 First of three points, defining the plane.
- * \param thePnt2 Second of three points, defining the plane.
- * \param thePnt3 Fird of three points, defining the plane.
- * \param theTrimSize Half size of a side of quadrangle face, representing the plane.
- * \return New GEOM_Object, containing the created plane.
- */
- GEOM_Object MakePlaneThreePnt (in GEOM_Object thePnt1,
- in GEOM_Object thePnt2,
- in GEOM_Object thePnt3,
- in double theTrimSize);
-
- /*!
- * Create a plane, passing through the given point
- * and normal to the given vector.
- * \param thePnt Point, the plane has to pass through.
- * \param theVec Vector, defining the plane normal direction.
- * \param theTrimSize Half size of a side of quadrangle face, representing the plane.
- * \return New GEOM_Object, containing the created plane.
- */
- GEOM_Object MakePlanePntVec (in GEOM_Object thePnt,
- in GEOM_Object theVec,
- in double theTrimSize);
-
- /*!
- * Create a plane, similar to the existing one, but with another size of representing face.
- * \param theFace Referenced plane.
- * \param theTrimSize New half size of a side of quadrangle face, representing the plane.
- * \return New GEOM_Object, containing the created plane.
- */
- GEOM_Object MakePlaneFace (in GEOM_Object theFace,
- in double theTrimSize);
-
- /*!
- * Create a local coordinate system.
- * \param theOX,theOY,theOZ Three coordinates of coordinate system origin.
- * \param theXDX,theXDY,theXDZ Three components of OX direction
- * \param theYDX,theYDY,theYDZ Three components of OY direction
- * \return New GEOM_Object, containing the created coordinate system.
- */
- GEOM_Object MakeMarker (in double theOX , in double theOY , in double theOZ,
- in double theXDX, in double theXDY, in double theXDZ,
- in double theYDX, in double theYDY, in double theYDZ);
- };
-
- interface GEOM_ITransformOperations : GEOM_IOperations
- {
- /*!
- * Translate the given object along the vector, specified by its end points.
- * \param theObject The object to be translated.
- * \param thePoint1 Start point of translation vector.
- * \param thePoint2 End point of translation vector.
- * \return theObject.
- */
- GEOM_Object TranslateTwoPoints (in GEOM_Object theObject,
- in GEOM_Object thePoint1,
- in GEOM_Object thePoint2);
-
- /*!
- * Translate the given object along the vector, specified
- * by its end points, creating its copy before the translation.
- * \param theObject The object to be translated.
- * \param thePoint1 Start point of translation vector.
- * \param thePoint2 End point of translation vector.
- * \return New GEOM_Object, containing the translated object.
- */
- GEOM_Object TranslateTwoPointsCopy (in GEOM_Object theObject,
- in GEOM_Object thePoint1,
- in GEOM_Object thePoint2);
-
- /*!
- * Translate the given object along the vector, specified by its components.
- * \param theObject The object to be translated.
- * \param theDX,theDY,theDZ Components of translation vector.
- * \return theObject.
- */
- GEOM_Object TranslateDXDYDZ (in GEOM_Object theObject,
- in double theDX, in double theDY, in double theDZ);
-
- /*!
- * Translate the given object along the vector, specified
- * by its components, creating its copy before the translation.
- * \param theObject The object to be translated.
- * \param theDX,theDY,theDZ Components of translation vector.
- * \return New GEOM_Object, containing the translated object.
- */
- GEOM_Object TranslateDXDYDZCopy (in GEOM_Object theObject,
- in double theDX, in double theDY, in double theDZ);
-
-
- /*!
- * Translate the given object along the given vector.
- * \param theObject The object to be translated.
- * \param theVector Translation vector, giving both direction and distance.
- * \return theObject.
- */
- GEOM_Object TranslateVector (in GEOM_Object theObject,
- in GEOM_Object theVector);
-
- /*!
- * Translate the given object along the given vector,
- * creating its copy before the translation.
- * \param theObject The object to be translated.
- * \param theVector Translation vector, giving both direction and distance.
- * \return New GEOM_Object, containing the translated object.
- */
- GEOM_Object TranslateVectorCopy (in GEOM_Object theObject,
- in GEOM_Object theVector);
-
- /*!
- * Translate the given object along the given vector a given number times
- * \param theObject The object to be translated.
- * \param theVector Direction of the translation.
- * \param theStep Distance to translate on.
- * \param theNbTimes Quantity of translations to be done.
- * \return New GEOM_Object, containing compound of all
- * the shapes, obtained after each translation.
- */
- GEOM_Object MultiTranslate1D (in GEOM_Object theObject,
- in GEOM_Object theVector,
- in double theStep,
- in long theNbTimes);
-
- /*!
- * Conseqently apply two specified translations to theObject specified number of times.
- * \param theObject The object to be translated.
- * \param theVector1 Direction of the first translation.
- * \param theStep1 Step of the first translation.
- * \param theNbTimes1 Quantity of translations to be done along theVector1.
- * \param theVector2 Direction of the second translation.
- * \param theStep2 Step of the second translation.
- * \param theNbTimes2 Quantity of translations to be done along theVector2.
- * \return New GEOM_Object, containing compound of all
- * the shapes, obtained after each translation.
- */
- GEOM_Object MultiTranslate2D (in GEOM_Object theObject,
- in GEOM_Object theVector1,
- in double theStep1,
- in long theNbTimes1,
- in GEOM_Object theVector2,
- in double theStep2,
- in long theNbTimes2);
-
- /*!
- * Rotate the given object around the given axis on the given angle.
- * \param theObject The object to be rotated.
- * \param theAxis Rotation axis.
- * \param theAngle Rotation angle in radians.
- * \return theObject.
- */
- GEOM_Object Rotate (in GEOM_Object theObject,
- in GEOM_Object theAxis,
- in double theAngle);
-
- /*!
- * Rotate the given object around the given axis
- * on the given angle, creating its copy before the rotatation.
- * \param theObject The object to be rotated.
- * \param theAxis Rotation axis.
- * \param theAngle Rotation angle in radians.
- * \return New GEOM_Object, containing the rotated object.
- */
- GEOM_Object RotateCopy (in GEOM_Object theObject,
- in GEOM_Object theAxis,
- in double theAngle);
-
- /*!
- * Rotate the given object around the given axis a given number times.
- * Rotation angle will be 2*PI/theNbTimes.
- * \param theObject The object to be rotated.
- * \param theAxis The rotation axis.
- * \param theNbTimes Quantity of rotations to be done.
- * \return New GEOM_Object, containing compound of all the
- * shapes, obtained after each rotation.
- */
- GEOM_Object MultiRotate1D (in GEOM_Object theObject,
- in GEOM_Object theAxis,
- in long theNbTimes);
-
- /*!
- * Rotate the given object around the
- * given axis on the given angle a given number
- * times and multi-translate each rotation result.
- * Translation direction passes through center of gravity
- * of rotated shape and its projection on the rotation axis.
- * \param theObject The object to be rotated.
- * \param theAxis Rotation axis.
- * \param theAngle Rotation angle in graduces.
- * \param theNbTimes1 Quantity of rotations to be done.
- * \param theStep Translation distance.
- * \param theNbTimes2 Quantity of translations to be done.
- * \return New GEOM_Object, containing compound of all the
- * shapes, obtained after each transformation.
- */
- GEOM_Object MultiRotate2D (in GEOM_Object theObject,
- in GEOM_Object theAxis,
- in double theAngle,
- in long theNbTimes1,
- in double theStep,
- in long theNbTimes2);
-
- /*!
- * Replace the given object by an object,
- * symmetrical to it relatively the given plane.
- * \param theObject The object to be mirrored.
- * \param thePlane Plane of symmetry.
- */
- GEOM_Object MirrorPlane (in GEOM_Object theObject, in GEOM_Object thePlane);
-
- /*!
- * Create an object, symmetrical
- * to the given one relatively the given plane.
- * \param theObject The object to be mirrored.
- * \param thePlane Plane of symmetry.
- * \return New GEOM_Object, containing the mirrored shape.
- */
- GEOM_Object MirrorPlaneCopy (in GEOM_Object theObject, in GEOM_Object thePlane);
-
- /*!
- * Replace the given object by an object,
- * symmetrical to it relatively the given axis.
- * \param theObject The object to be mirrored.
- * \param theAxis Axis of symmetry.
- * \return theObject.
- */
- GEOM_Object MirrorAxis (in GEOM_Object theObject, in GEOM_Object theAxis);
-
- /*!
- * Create an object, symmetrical
- * to the given one relatively the given axis.
- * \param theObject The object to be mirrored.
- * \param theAxis Axis of symmetry.
- * \return New GEOM_Object, containing the mirrored object.
- */
- GEOM_Object MirrorAxisCopy (in GEOM_Object theObject, in GEOM_Object theAxis);
-
- /*!
- * Replace the given object by an object, symmetrical to it relatively the given point.
- * \param theObject The object to be mirrored.
- * \param thePoint Point of symmetry.
- * \return theObject.
- */
- GEOM_Object MirrorPoint (in GEOM_Object theObject, in GEOM_Object thePoint);
-
- /*!
- * Create an object, symmetrical to the given one relatively the given point.
- * \param theObject The object to be mirrored.
- * \param thePoint Point of symmetry.
- * \return New GEOM_Object, containing the mirrored object.
- */
- GEOM_Object MirrorPointCopy (in GEOM_Object theObject, in GEOM_Object thePoint);
-
- /*!
- * Replace the given object by its offset.
- * \param theObject The base object for the offset.
- * \param theOffset Offset value.
- * \return theObject.
- */
- GEOM_Object OffsetShape (in GEOM_Object theObject, in double theOffset);
-
- /*!
- * Create new object as offset of the given one.
- * \param theObject The base object for the offset.
- * \param theOffset Offset value.
- * \return New GEOM_Object, containing the offset object.
- */
- GEOM_Object OffsetShapeCopy (in GEOM_Object theObject, in double theOffset);
-
- /*!
- * Scale the given object by the factor.
- * \param theObject The object to be scaled.
- * \param thePoint Center point for scaling.
- * \param theFactor Scaling factor value.
- * \return theObject.
- */
- GEOM_Object ScaleShape (in GEOM_Object theObject, in GEOM_Object thePoint,
- in double theFactor);
-
- /*!
- * Scale the given object by the factor, creating its copy before the scaling.
- * \param theObject The object to be scaled.
- * \param thePoint Center point for scaling.
- * \param theFactor Scaling factor value.
- * \return New GEOM_Object, containing the scaled shape.
- */
- GEOM_Object ScaleShapeCopy (in GEOM_Object theObject, in GEOM_Object thePoint,
- in double theFactor);
-
- /*!
- * Modify the Location of the given object by LCS
- */
- GEOM_Object PositionShape (in GEOM_Object theObject,
- in GEOM_Object theStartLCS,
- in GEOM_Object theEndLCS);
-
- /*!
- * Modify the Location of the given object by LCS
- * creating its copy before the setting
- */
- GEOM_Object PositionShapeCopy (in GEOM_Object theObject,
- in GEOM_Object theStartLCS,
- in GEOM_Object theEndLCS);
- };
-
- /*!
- * GEOM_I3DPrimOperations: Interface for 3D primitives creation
- * Box, Cylinder, Cone, Sphere, Prism (extrusion),
- * Pipe (extrusion along contour), Revolution, Solid (from shell).
- */
- interface GEOM_I3DPrimOperations : GEOM_IOperations
- {
- /*!
- * Create a box with specified dimensions along the coordinate axes
- * and with edges, parallel to the coordinate axes.
- * Center of the box will be at point (DX/2, DY/2, DZ/2).
- * \param theDX Length of Box edges, parallel to OX axis.
- * \param theDY Length of Box edges, parallel to OY axis.
- * \param theDZ Length of Box edges, parallel to OZ axis.
- * \return New GEOM_Object, containing the created box.
- */
- GEOM_Object MakeBoxDXDYDZ (in double theDX, in double theDY, in double theDZ);
-
- /*!
- * Create a box with two specified opposite vertices,
- * and with edges, parallel to the coordinate axes
- * \param thePnt1 First of two opposite vertices.
- * \param thePnt2 Second of two opposite vertices.
- * \return New GEOM_Object, containing the created box.
- */
- GEOM_Object MakeBoxTwoPnt (in GEOM_Object thePnt1, in GEOM_Object thePnt2);
-
- /*!
- * Create a cylinder with given radius and height at
- * the origin of coordinate system. Axis of the cylinder
- * will be collinear to the OZ axis of the coordinate system.
- * \param theR Cylinder radius.
- * \param theH Cylinder height.
- * \return New GEOM_Object, containing the created cylinder.
- */
- GEOM_Object MakeCylinderRH (in double theR, in double theH);
-
- /*!
- * Create a cylinder with given base point, axis, radius and height.
- * \param thePnt Central point of cylinder base.
- * \param theAxis Cylinder axis.
- * \param theR Cylinder radius.
- * \param theH Cylinder height.
- * \return New GEOM_Object, containing the created cylinder.
- */
- GEOM_Object MakeCylinderPntVecRH (in GEOM_Object thePnt,
- in GEOM_Object theAxis,
- in double theR,
- in double theH);
-
- /*!
- * Create a cone with given height and radiuses at
- * the origin of coordinate system. Axis of the cone will
- * be collinear to the OZ axis of the coordinate system.
- * \param theR1 Radius of the first cone base.
- * \param theR2 Radius of the second cone base.
- * \note If both radiuses are non-zero, the cone will be truncated.
- * \note If the radiuses are equal, a cylinder will be created instead.
- * \param theH Cone height.
- * \return New GEOM_Object, containing the created cone.
- */
- GEOM_Object MakeConeR1R2H (in double theR1, in double theR2, in double theH);
-
- /*!
- * Create a cone with given base point, axis, height and radiuses.
- * \param thePnt Central point of the first cone base.
- * \param theAxis Cone axis.
- * \param theR1 Radius of the first cone base.
- * \param theR2 Radius of the second cone base.
- * \note If both radiuses are non-zero, the cone will be truncated.
- * \note If the radiuses are equal, a cylinder will be created instead.
- * \param theH Cone height.
- * \return New GEOM_Object, containing the created cone.
- */
- GEOM_Object MakeConePntVecR1R2H (in GEOM_Object thePnt,
- in GEOM_Object theAxis,
- in double theR1,
- in double theR2,
- in double theH);
-
- /*!
- * Create a torus with given radiuses at the origin of coordinate system.
- * \param theRMajor Torus major radius.
- * \param theRMinor Torus minor radius.
- * \return New GEOM_Object, containing the created torus.
- */
- GEOM_Object MakeTorusRR (in double theRMajor,
- in double theRMinor);
-
- /*!
- * Create a torus with given center, normal vector and radiuses.
- * \param thePnt Torus central point.
- * \param theVec Torus axis of symmetry.
- * \param theRMajor Torus major radius.
- * \param theRMinor Torus minor radius.
- * \return New GEOM_Object, containing the created torus.
- */
- GEOM_Object MakeTorusPntVecRR (in GEOM_Object thePnt,
- in GEOM_Object theVec,
- in double theRMajor,
- in double theRMinor);
-
- /*!
- * Create a sphere with given radius at the origin of coordinate system.
- * \param theR Sphere radius.
- * \return New GEOM_Object, containing the created sphere.
- */
- GEOM_Object MakeSphereR (in double theR);
-
- /*!
- * Create a sphere with given center and radius.
- * \param thePnt Sphere center.
- * \param theR Sphere radius.
- * \return New GEOM_Object, containing the created .
- */
- GEOM_Object MakeSpherePntR (in GEOM_Object thePnt, in double theR);
-
- /*!
- * Create a shape by extrusion of the base shape along the vector,
- * i.e. all the space, transfixed by the base shape during its translation
- * along the vector on the given distance.
- * \param theBase Base shape to be extruded.
- * \param theVec Direction of extrusion.
- * \param theH Prism dimension along theVec.
- * \return New GEOM_Object, containing the created prism.
- */
- GEOM_Object MakePrismVecH (in GEOM_Object theBase,
- in GEOM_Object theVec,
- in double theH);
-
- /*!
- * Create a shape by extrusion of the base shape along a vector, defined by two points.
- * \param theBase Base shape to be extruded.
- * \param thePoint1 First end of extrusion vector.
- * \param thePoint2 Second end of extrusion vector.
- * \return New GEOM_Object, containing the created prism.
- */
- GEOM_Object MakePrismTwoPnt (in GEOM_Object theBase,
- in GEOM_Object thePoint1,
- in GEOM_Object thePoint2);
-
- /*!
- * Create a shape by extrusion of the base shape along
- * the path shape. The path shape can be a wire or an edge.
- * \param theBase Base shape to be extruded.
- * \param thePath Path shape to extrude the base shape along it.
- * \return New GEOM_Object, containing the created pipe.
- */
- GEOM_Object MakePipe (in GEOM_Object theBase, in GEOM_Object thePath);
-
- /*!
- * Create a shape by revolution of the base shape around the axis
- * on the given angle, i.e. all the space, transfixed by the base
- * shape during its rotation around the axis on the given angle.
- * \param theBase Base shape to be rotated.
- * \param theAxis Rotation axis.
- * \param theAngle Rotation angle in radians.
- * \return New GEOM_Object, containing the created revolution.
- */
- GEOM_Object MakeRevolutionAxisAngle (in GEOM_Object theBase,
- in GEOM_Object theAxis,
- in double theAngle);
-
- /*!
- * Create a filling from the given compound of contours.
- * \param theMinDeg a minimal degree
- * \param theMaxDeg a maximal degree
- * \param theTol2D a 2d tolerance
- * \param theTol3D a 3d tolerance
- * \param theNbIter a number of iteration
- * \return New GEOM_Object, containing the created filling surface.
- */
- GEOM_Object MakeFilling (in GEOM_Object theShape,
- in long theMinDeg, in long theMaxDeg,
- in double theTol2D, in double theTol3D,
- in long theNbIter);
- };
-
- /*!
- * GEOM_IShapesOperations: Interface for Shapes creation:
- * Edge from two points, Wire from edges, Face from wire,
- * Shell from faces, Solid from shells, Compound from shapes
- */
- interface GEOM_IShapesOperations : GEOM_IOperations
- {
- /*!
- * Create a linear edge with specified ends.
- * \param thePnt1 Point for the first end of edge.
- * \param thePnt2 Point for the second end of edge.
- * \return New GEOM_Object, containing the created edge.
- */
- GEOM_Object MakeEdge (in GEOM_Object thePnt1, in GEOM_Object thePnt2);
-
- /*!
- * Create a wire from the set of edges and wires.
- * \param theEdgesAndWires List of edge and/or wires.
- * \return New GEOM_Object, containing the created wire.
- */
- GEOM_Object MakeWire (in ListOfGO theEdgesAndWires);
-
- /*!
- * Create a face on the given wire.
- * \param theWire Wire to build the face on.
- * \param isPlanarWanted If TRUE, only planar face will be built.
- * If impossible, NULL object will be returned.
- * \return New GEOM_Object, containing the created face.
- */
- GEOM_Object MakeFace (in GEOM_Object theWire, in boolean isPlanarWanted);
-
- /*!
- * Create a face on the given wires set.
- * \param theWires List of wires to build the face on.
- * \param isPlanarWanted If TRUE, only planar face will be built.
- * If impossible, NULL object will be returned.
- * \return New GEOM_Object, containing the created face.
- */
- GEOM_Object MakeFaceWires (in ListOfGO theWires, in boolean isPlanarWanted);
-
- /*!
- * Create a shell from the set of faces and shells.
- * \param theFacesAndShells List of faces and/or shells.
- * \return New GEOM_Object, containing the created shell.
- */
- GEOM_Object MakeShell (in ListOfGO theFacesAndShells);
-
- /*!
- * Create a solid, bounded by the given shell.
- * \param theShell Bounding shell.
- * \return New GEOM_Object, containing the created solid.
- */
- GEOM_Object MakeSolidShell (in GEOM_Object theShell);
-
- /*!
- * Create a solid, bounded by the given shells.
- * \param theShells Bounding shells.
- * \return New GEOM_Object, containing the created solid.
- */
- GEOM_Object MakeSolidShells (in ListOfGO theShells);
-
- /*!
- * Create a compound of the given shapes.
- * \param theShapes List of shapes to put in compound.
- * \return New GEOM_Object, containing the created compound.
- */
- GEOM_Object MakeCompound (in ListOfGO theShapes);
-
- /*!
- * Replace coincident faces in theShape by one face.
- * \param theShape Initial shape.
- * \param theTolerance Maximum distance between faces, which can be considered as coincident.
- * \return New GEOM_Object, containing a copy of theShape without coincident faces.
- */
- GEOM_Object MakeGlueFaces (in GEOM_Object theShape, in double theTolerance);
-
- /*!
- * Explode a shape on subshapes of a given type.
- * \param theShape Shape to be exploded.
- * \param theShapeType Type of sub-shapes to be retrieved.
- * \param isSorted If this parameter is TRUE, sub-shapes will be
- * sorted by coordinates of their gravity centers.
- * \return List of sub-shapes of type theShapeType, contained in theShape.
- */
- ListOfGO MakeExplode (in GEOM_Object theShape,
- in long theShapeType,
- in boolean isSorted);
-
- /*!
- * Explode a shape on subshapes of a given type.
- * Does the same, as the above method, but returns IDs of sub-shapes,
- * not GEOM_Objects. It works faster.
- * \param theShape Shape to be exploded.
- * \param theShapeType Type of sub-shapes to be retrieved.
- * \param isSorted If this parameter is TRUE, sub-shapes will be
- * sorted by coordinates of their gravity centers.
- * \return List of IDs of sub-shapes of type theShapeType, contained in theShape.
- */
- ListOfLong SubShapeAllIDs (in GEOM_Object theShape,
- in long theShapeType,
- in boolean isSorted);
-
- /*!
- * Get a sub shape defined by its unique ID inside \a theMainShape
- * \note The sub shape GEOM_Objects can has ONLY ONE function.
- * Don't try to apply modification operations on them.
- */
- GEOM_Object GetSubShape (in GEOM_Object theMainShape,
- in long theID);
-
- /*!
- * Count number of faces in the given shape.
- * \param theShape Shape to count faces in.
- * \return Number of faces in the given shape.
- */
- long NumberOfFaces (in GEOM_Object theShape);
-
- /*!
- * Count number of edges in the given shape.
- * \param theShape Shape to count edges in.
- * \return Number of edges in theShape.
- */
- long NumberOfEdges (in GEOM_Object theShape);
-
- /*!
- * Reverses an orientation the given shape.
- * \param theShape Shape to be reversed.
- * \return The reversed copy of theShape.
- */
- GEOM_Object ChangeOrientation (in GEOM_Object theShape);
-
- /*!
- * Retrieve all free faces from the given shape.
- * Free face is a face, which is not shared between two shells of the shape.
- * \param theShape Shape to find free faces in.
- * \return List of IDs of all free faces, contained in theShape.
- */
- ListOfLong GetFreeFacesIDs (in GEOM_Object theShape);
-
- /*!
- * Get all sub-shapes of theShape1 of the given type, shared with theShape2.
- * \param theShape1 Shape to find sub-shapes in.
- * \param theShape2 Shape to find shared sub-shapes with.
- * \param theShapeType Type of sub-shapes to be retrieved.
- * \return List of sub-shapes of theShape1, shared with theShape2.
- */
- ListOfGO GetSharedShapes (in GEOM_Object theShape1,
- in GEOM_Object theShape2,
- in long theShapeType);
-
- /*!
- * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
- * the specified plane by the certain way, defined through \a theState parameter.
- * \param theShape Shape to find sub-shapes of.
- * \param theShapeType Type of sub-shapes to be retrieved.
- * \param theAx1 Vector (or line, or linear edge), specifying normal
- * direction and location of the plane to find shapes on.
- * \param theState The state of the subshapes to find.
- * \return List of all found sub-shapes.
- */
- ListOfGO GetShapesOnPlane (in GEOM_Object theShape,
- in long theShapeType,
- in GEOM_Object theAx1,
- in shape_state theState);
-
- /*!
- * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
- * the specified cylinder by the certain way, defined through \a theState parameter.
- * \param theShape Shape to find sub-shapes of.
- * \param theShapeType Type of sub-shapes to be retrieved.
- * \param theAxis Vector (or line, or linear edge), specifying
- * axis of the cylinder to find shapes on.
- * \param theRadius Radius of the cylinder to find shapes on.
- * \param theState The state of the subshapes to find.
- * \return List of all found sub-shapes.
- */
- ListOfGO GetShapesOnCylinder (in GEOM_Object theShape,
- in long theShapeType,
- in GEOM_Object theAxis,
- in double theRadius,
- in shape_state theState);
-
- /*!
- * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
- * the specified sphere by the certain way, defined through \a theState parameter.
- * \param theShape Shape to find sub-shapes of.
- * \param theShapeType Type of sub-shapes to be retrieved.
- * \param theCenter Point, specifying center of the sphere to find shapes on.
- * \param theRadius Radius of the sphere to find shapes on.
- * \param theState The state of the subshapes to find.
- * \return List of all found sub-shapes.
- */
- ListOfGO GetShapesOnSphere (in GEOM_Object theShape,
- in long theShapeType,
- in GEOM_Object theCenter,
- in double theRadius,
- in shape_state theState);
-
- /*!
- * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
- * the specified plane by the certain way, defined through \a theState parameter.
- * \param theShape Shape to find sub-shapes of.
- * \param theShapeType Type of sub-shapes to be retrieved.
- * \param theAx1 Vector (or line, or linear edge), specifying normal
- * direction and location of the plane to find shapes on.
- * \param theState The state of the subshapes to find.
- * \return List of IDs of all found sub-shapes.
- */
- ListOfLong GetShapesOnPlaneIDs (in GEOM_Object theShape,
- in long theShapeType,
- in GEOM_Object theAx1,
- in shape_state theState);
-
- /*!
- * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
- * the specified cylinder by the certain way, defined through \a theState parameter.
- * \param theShape Shape to find sub-shapes of.
- * \param theShapeType Type of sub-shapes to be retrieved.
- * \param theAxis Vector (or line, or linear edge), specifying
- * axis of the cylinder to find shapes on.
- * \param theRadius Radius of the cylinder to find shapes on.
- * \param theState The state of the subshapes to find.
- * \return List of IDs of all found sub-shapes.
- */
- ListOfLong GetShapesOnCylinderIDs (in GEOM_Object theShape,
- in long theShapeType,
- in GEOM_Object theAxis,
- in double theRadius,
- in shape_state theState);
-
- /*!
- * Find in \a theShape all sub-shapes of type \a theShapeType, situated relatively
- * the specified sphere by the certain way, defined through \a theState parameter.
- * \param theShape Shape to find sub-shapes of.
- * \param theShapeType Type of sub-shapes to be retrieved.
- * \param theCenter Point, specifying center of the sphere to find shapes on.
- * \param theRadius Radius of the sphere to find shapes on.
- * \param theState The state of the subshapes to find.
- * \return List of IDs of all found sub-shapes.
- */
- ListOfLong GetShapesOnSphereIDs (in GEOM_Object theShape,
- in long theShapeType,
- in GEOM_Object theCenter,
- in double theRadius,
- in shape_state theState);
-
- /*!
- * Get sub-shape(s) of theShapeWhere, which are
- * coincident with \a theShapeWhat or could be a part of it.
- * \param theShapeWhere Shape to find sub-shapes of.
- * \param theShapeWhat Shape, specifying what to find.
- * \return Group of all found sub-shapes or a single found sub-shape.
- */
- GEOM_Object GetInPlace (in GEOM_Object theShapeWhere,
- in GEOM_Object theShapeWhat);
- };
-
- /*!
- * GEOM_IBlocksOperations: Interface for Blocks construction
- * Face from points or edges, Block from faces,
- * Blocks multi-translation and multi-rotation
- */
- interface GEOM_IBlocksOperations : GEOM_IOperations
- {
- /*!
- * Creation of blocks
- */
-
- /*!
- * Create a quadrangle face from four edges. Order of Edges is not
- * important. It is not necessary that edges share the same vertex.
- * \param theEdge1,theEdge2,theEdge3,theEdge4 Edges for the face bound.
- * \return New GEOM_Object, containing the created face.
- */
- GEOM_Object MakeQuad (in GEOM_Object theEdge1,
- in GEOM_Object theEdge2,
- in GEOM_Object theEdge3,
- in GEOM_Object theEdge4);
-
- /*!
- * Create a quadrangle face on two edges.
- * The missing edges will be built by creating the shortest ones.
- * \param theEdge1,theEdge2 Two opposite edges for the face.
- * \return New GEOM_Object, containing the created face.
- */
- GEOM_Object MakeQuad2Edges (in GEOM_Object theEdge1,
- in GEOM_Object theEdge2);
-
- /*!
- * Create a quadrangle face with specified corners.
- * The missing edges will be built by creating the shortest ones.
- * \param thePnt1,thePnt2,thePnt3,thePnt4 Corner vertices for the face.
- * \return New GEOM_Object, containing the created face.
- */
- GEOM_Object MakeQuad4Vertices (in GEOM_Object thePnt1,
- in GEOM_Object thePnt2,
- in GEOM_Object thePnt3,
- in GEOM_Object thePnt4);
-
- /*!
- * Create a hexahedral solid, bounded by the six given faces. Order of
- * faces is not important. It is not necessary that Faces share the same edge.
- * \param theFace1-theFace6 Faces for the hexahedral solid.
- * \return New GEOM_Object, containing the created solid.
- */
- GEOM_Object MakeHexa (in GEOM_Object theFace1,
- in GEOM_Object theFace2,
- in GEOM_Object theFace3,
- in GEOM_Object theFace4,
- in GEOM_Object theFace5,
- in GEOM_Object theFace6);
-
- /*!
- * Create a hexahedral solid between two given faces.
- * The missing faces will be built by creating the smallest ones.
- * \param theFace1,theFace2 Two opposite faces for the hexahedral solid.
- * \return New GEOM_Object, containing the created solid.
- */
- GEOM_Object MakeHexa2Faces (in GEOM_Object theFace1,
- in GEOM_Object theFace2);
-
- /*!
- * Extract elements of blocks and blocks compounds
- */
-
- /*!
- * Get a vertex, found in the given shape by its coordinates.
- * \param theShape Block or a compound of blocks.
- * \param theX,theY,theZ Coordinates of the sought vertex.
- * \param theEpsilon Maximum allowed distance between the resulting
- * vertex and point with the given coordinates.
- * \return New GEOM_Object, containing the found vertex.
- */
- GEOM_Object GetPoint (in GEOM_Object theShape,
- in double theX,
- in double theY,
- in double theZ,
- in double theEpsilon);
-
- /*!
- * Get an edge, found in the given shape by two given vertices.
- * \param theShape Block or a compound of blocks.
- * \param thePoint1,thePoint2 Points, close to the ends of the desired edge.
- * \return New GEOM_Object, containing the found edge.
- */
- GEOM_Object GetEdge (in GEOM_Object theShape,
- in GEOM_Object thePoint1,
- in GEOM_Object thePoint2);
-
- /*!
- * Find an edge of the given shape, which has minimal distance to the given point.
- * \param theShape Block or a compound of blocks.
- * \param thePoint Point, close to the desired edge.
- * \return New GEOM_Object, containing the found edge.
- */
- GEOM_Object GetEdgeNearPoint (in GEOM_Object theShape,
- in GEOM_Object thePoint);
-
- /*!
- * Returns a face, found in the given shape by four given corner vertices.
- * \param theShape Block or a compound of blocks.
- * \param thePoint1-thePoint4 Points, close to the corners of the desired face.
- * \return New GEOM_Object, containing the found face.
- */
- GEOM_Object GetFaceByPoints (in GEOM_Object theShape,
- in GEOM_Object thePoint1,
- in GEOM_Object thePoint2,
- in GEOM_Object thePoint3,
- in GEOM_Object thePoint4);
-
- /*!
- * Get a face of block, found in the given shape by two given edges.
- * \param theShape Block or a compound of blocks.
- * \param theEdge1,theEdge2 Edges, close to the edges of the desired face.
- * \return New GEOM_Object, containing the found face.
- */
- GEOM_Object GetFaceByEdges (in GEOM_Object theShape,
- in GEOM_Object theEdge1,
- in GEOM_Object theEdge2);
-
- /*!
- * Find a face, opposite to the given one in the given block.
- * \param theBlock Must be a hexahedral solid.
- * \param theFace Face of \a theBlock, opposite to the desired face.
- * \return New GEOM_Object, containing the found face.
- */
- GEOM_Object GetOppositeFace (in GEOM_Object theBlock,
- in GEOM_Object theFace);
-
- /*!
- * Find a face of the given shape, which has minimal distance to the given point.
- * \param theShape Block or a compound of blocks.
- * \param thePoint Point, close to the desired face.
- * \return New GEOM_Object, containing the found face.
- */
- GEOM_Object GetFaceNearPoint (in GEOM_Object theShape,
- in GEOM_Object thePoint);
-
- /*!
- * Find a face of block, whose outside normale has minimal angle with the given vector.
- * \param theShape Block or a compound of blocks.
- * \param theVector Vector, close to the normale of the desired face.
- * \return New GEOM_Object, containing the found face.
- */
- GEOM_Object GetFaceByNormale (in GEOM_Object theBlock,
- in GEOM_Object theVector);
-
- /*!
- * Extract blocks from blocks compounds
- */
-
- /*!
- * Check, if the compound contains only specified blocks.
- * \param theCompound The compound to check.
- * \param theMinNbFaces If solid has lower number of faces, it is not a block.
- * \param theMaxNbFaces If solid has higher number of faces, it is not a block.
- * \note If theMaxNbFaces = 0, the maximum number of faces is not restricted.
- * \return TRUE, if the given compound contains only blocks.
- * \return theNbBlocks Number of specified blocks in theCompound.
- */
- boolean IsCompoundOfBlocks (in GEOM_Object theCompound,
- in long theMinNbFaces,
- in long theMaxNbFaces,
- out long theNbBlocks);
-
- /*!
- * Enumeration of Blocks Compound defects.
- */
- enum BCErrorType
- {
- /* Each element of the compound should be a Block */
- NOT_BLOCK,
-
- /* An element is a potential block, but has degenerated and/or seam edge(s). */
- EXTRA_EDGE,
-
- /* A connection between two Blocks should be an entire face or an entire edge */
- INVALID_CONNECTION,
-
- /* The compound should be connexe */
- NOT_CONNECTED,
-
- /* The glue between two quadrangle faces should be applied */
- NOT_GLUED
- };
-
- /*!
- * Description of Blocks Compound defect: type and incriminated sub-shapes.
- */
- struct BCError
- {
- BCErrorType error;
- ListOfLong incriminated;
- };
-
- /*!
- * Sequence of all Blocks Compound defects.
- */
- typedef sequence BCErrors;
-
- /*!
- * Check, if the compound of blocks is given.
- * To be considered as a compound of blocks, the
- * given shape must satisfy the following conditions:
- * - Each element of the compound should be a Block (6 faces and 12 edges).
- * - A connection between two Blocks should be an entire quadrangle face or an entire edge.
- * - The compound should be connexe.
- * - The glue between two quadrangle faces should be applied.
- * \note Single block is also accepted as a valid compound of blocks.
- * \param theCompound The compound to check.
- * \return TRUE, if the given shape is a compound of blocks.
- * \return theErrors Structure, containing discovered errors and incriminated sub-shapes.
- */
- boolean CheckCompoundOfBlocks (in GEOM_Object theCompound,
- out BCErrors theErrors);
-
- /*!
- * Convert sequence of Blocks Compound errors, returned by
- * CheckCompoundOfBlocks(), into string.
- * \param theCompound The bad compound.
- * \param theErrors The sequence of \a theCompound errors.
- * \return String, describing all the errors in form, suitable for printing.
- */
- string PrintBCErrors (in GEOM_Object theCompound,
- in BCErrors theErrors);
-
- /*!
- * Remove all seam and degenerated edges from \a theShape.
- * Unite faces and edges, sharing one surface.
- * \param theShape The compound or single solid to remove irregular edges from.
- * \return Improved shape.
- */
- GEOM_Object RemoveExtraEdges (in GEOM_Object theShape);
-
- /*!
- * Check, if the given shape is a blocks compound.
- * Fix all detected errors.
- * \note Single block can be also fixed by this method.
- * \param theCompound The compound to check and improve.
- * \return Improved compound.
- */
- GEOM_Object CheckAndImprove (in GEOM_Object theCompound);
-
- /*!
- * Get all the blocks, contained in the given compound.
- * \param theCompound The compound to explode.
- * \param theMinNbFaces If solid has lower number of faces, it is not a block.
- * \param theMaxNbFaces If solid has higher number of faces, it is not a block.
- * \note If theMaxNbFaces = 0, the maximum number of faces is not restricted.
- * \return List of GEOM_Objects, containing the retrieved blocks.
- */
- ListOfGO ExplodeCompoundOfBlocks (in GEOM_Object theCompound,
- in long theMinNbFaces,
- in long theMaxNbFaces);
-
- /*!
- * Find block, containing the given point inside its volume or on boundary.
- * \param theCompound Compound, to find block in.
- * \param thePoint Point, close to the desired block. If the point lays on
- * boundary between some blocks, we return block with nearest center.
- * \return New GEOM_Object, containing the found block.
- */
- GEOM_Object GetBlockNearPoint (in GEOM_Object theCompound,
- in GEOM_Object thePoint);
-
- /*!
- * Find block, containing all the elements, passed as the parts, or maximum quantity of them.
- * \param theCompound Compound, to find block in.
- * \param theParts List of faces and/or edges and/or vertices to be parts of the found block.
- * \return New GEOM_Object, containing the found block.
- */
- GEOM_Object GetBlockByParts (in GEOM_Object theCompound,
- in ListOfGO theParts);
-
- /*!
- * Return all blocks, containing all the elements, passed as the parts.
- * \param theCompound Compound, to find blocks in.
- * \param theParts List of faces and/or edges and/or vertices to be parts of the found blocks.
- * \return List of GEOM_Objects, containing the found blocks.
- */
- ListOfGO GetBlocksByParts (in GEOM_Object theCompound,
- in ListOfGO theParts);
-
- /*!
- * Operations on blocks with gluing of result
- */
-
- /*!
- * Multi-transformate block and glue the result.
- * Transformation is defined so, as to superpose theDirFace1 with theDirFace2.
- * \param theBlock Hexahedral solid to be multi-transformed.
- * \param theDirFace1 First direction face global index.
- * \param theDirFace2 Second direction face global index.
- * \param theNbTimes Quantity of transformations to be done.
- * \note Global index of sub-shape can be obtained, using method
- * GEOM_ILocalOperations.GetSubShapeIndex().
- * \return New GEOM_Object, containing the result shape.
- */
- GEOM_Object MakeMultiTransformation1D (in GEOM_Object theBlock,
- in long theDirFace1,
- in long theDirFace2,
- in long theNbTimes);
-
- /*!
- * Multi-transformate block and glue the result.
- * \param theBlock Hexahedral solid to be multi-transformed.
- * \param theDirFace1U,theDirFace2U Direction faces for the first transformation.
- * \param theDirFace1V,theDirFace2V Direction faces for the second transformation.
- * \param theNbTimesU,theNbTimesV Quantity of transformations to be done.
- * \return New GEOM_Object, containing the result shape.
- */
- GEOM_Object MakeMultiTransformation2D (in GEOM_Object theBlock,
- in long theDirFace1U,
- in long theDirFace2U,
- in long theNbTimesU,
- in long theDirFace1V,
- in long theDirFace2V,
- in long theNbTimesV);
-
- /*!
- * Special operation - propagation
- */
-
- /*!
- * Build all possible propagation groups.
- * Propagation group is a set of all edges, opposite to one (main)
- * edge of this group directly or through other opposite edges.
- * Notion of Opposite Edge make sence only on quadrangle face.
- * \param theShape Shape to build propagation groups on.
- * \return List of GEOM_Objects, each of them is a propagation group.
- */
- ListOfGO Propagate (in GEOM_Object theShape);
- };
-
- /*!
- * GEOM_IBooleanOperations: Interface for boolean operations (Cut, Fuse, Common)
- */
- interface GEOM_IBooleanOperations : GEOM_IOperations
- {
- /*!
- * Perform one of boolean operations on two given shapes.
- * \param theShape1 First argument for boolean operation.
- * \param theShape2 Second argument for boolean operation.
- * \param theOperation Indicates the operation to be done:
- * 1 - Common, 2 - Cut, 3 - Fuse, 4 - Section.
- * \return New GEOM_Object, containing the result shape.
- */
- GEOM_Object MakeBoolean (in GEOM_Object theShape1,
- in GEOM_Object theShape2,
- in long theOperation);
-
- /*!
- * Perform partition operation.
- * \param theShapes Shapes to be intersected.
- * \param theTools Shapes to intersect theShapes.
- * \param theKeepInside Shapes, outside which the results will be deleted.
- * Each shape from theKeepInside must belong to theShapes also.
- * \param theRemoveInside Shapes, inside which the results will be deleted.
- * Each shape from theRemoveInside must belong to theShapes also.
- * \param theLimit Type of resulting shapes (corresponding to TopAbs_ShapeEnum).
- * \param theRemoveWebs If TRUE, perform Glue 3D algorithm.
- * \param theMaterials Material indices for each shape. Make sence, only if theRemoveWebs is TRUE.
- * \return New GEOM_Object, containing the result shapes.
- */
- GEOM_Object MakePartition (in ListOfGO theShapes,
- in ListOfGO theTools,
- in ListOfGO theKeepInside,
- in ListOfGO theRemoveInside,
- in short theLimit,
- in boolean theRemoveWebs,
- in ListOfLong theMaterials);
-
- /*!
- * Perform partition of the Shape with the Plane
- * \param theShape Shape to be intersected.
- * \param thePlane Tool shape, to intersect theShape.
- * \return New GEOM_Object, containing the result shape.
- */
- GEOM_Object MakeHalfPartition (in GEOM_Object theShape,
- in GEOM_Object thePlane);
- };
-
- /*!
- * GEOM_ICurvesOperations: Interface for curves creation.
- * Polyline, Circle, Spline (Bezier and Interpolation)
- */
- interface GEOM_ICurvesOperations : GEOM_IOperations
- {
- /*!
- * Create a circle with given center, normal vector and radius.
- * \param thePnt Circle center.
- * \param theVec Vector, normal to the plane of the circle.
- * \param theR Circle radius.
- * \return New GEOM_Object, containing the created circle.
- */
- GEOM_Object MakeCirclePntVecR (in GEOM_Object thePnt,
- in GEOM_Object theVec,
- in double theR);
- /*!
- * Create a circle, passing through three given points
- * \param thePnt1,thePnt2,thePnt3 Points, defining the circle.
- * \return New GEOM_Object, containing the created circle.
- */
- GEOM_Object MakeCircleThreePnt (in GEOM_Object thePnt1,
- in GEOM_Object thePnt2,
- in GEOM_Object thePnt3);
-
- /*!
- * Create an ellipse with given center, normal vector and radiuses.
- * \param thePnt Ellipse center.
- * \param theVec Vector, normal to the plane of the ellipse.
- * \param theRMajor Major ellipse radius.
- * \param theRMinor Minor ellipse radius.
- * \return New GEOM_Object, containing the created ellipse.
- */
- GEOM_Object MakeEllipse (in GEOM_Object thePnt,
- in GEOM_Object theVec,
- in double theRMajor,
- in double theRMinor);
-
- /*!
- * Create an arc of circle, passing through three given points.
- * \param thePnt1 Start point of the arc.
- * \param thePnt2 Middle point of the arc.
- * \param thePnt3 End point of the arc.
- * \return New GEOM_Object, containing the created arc.
- */
- GEOM_Object MakeArc (in GEOM_Object thePnt1,
- in GEOM_Object thePnt2,
- in GEOM_Object thePnt3);
-
- /*!
- * Create a polyline on the set of points.
- * \param thePoints Sequence of points for the polyline.
- * \return New GEOM_Object, containing the created polyline.
- */
- GEOM_Object MakePolyline (in ListOfGO thePoints);
-
- /*!
- * Create bezier curve on the set of points.
- * \param thePoints Sequence of points for the bezier curve.
- * \return New GEOM_Object, containing the created bezier curve.
- */
- GEOM_Object MakeSplineBezier (in ListOfGO thePoints);
-
- /*!
- * Create B-Spline curve on the set of points.
- * \param thePoints Sequence of points for the B-Spline curve.
- * \return New GEOM_Object, containing the created B-Spline curve.
- */
- GEOM_Object MakeSplineInterpolation (in ListOfGO thePoints);
-
- /*!
- * Create a sketcher (wire or face), following the textual description,
- * passed through \a theCommand argument. \n
- * Edges of the resulting wire or face will be arcs of circles and/or linear segments. \n
- * Format of the description string have to be the following:
- *
- * "Sketcher[:F x1 y1]:CMD[:CMD[:CMD...]]"
- *
- * Where:
- * - x1, y1 are coordinates of the first sketcher point (zero by default),
- * - CMD is one of
- * - "R angle" : Set the direction by angle
- * - "D dx dy" : Set the direction by DX & DY
- * .
- * \n
- * - "TT x y" : Create segment by point at X & Y
- * - "T dx dy" : Create segment by point with DX & DY
- * - "L length" : Create segment by direction & Length
- * - "IX x" : Create segment by direction & Intersect. X
- * - "IY y" : Create segment by direction & Intersect. Y
- * .
- * \n
- * - "C radius length" : Create arc by direction, radius and length(in degree)
- * .
- * \n
- * - "WW" : Close Wire (to finish)
- * - "WF" : Close Wire and build face (to finish)
- *
- * \param theCommand String, defining the sketcher in local
- * coordinates of the working plane.
- * \param theWorkingPlane Nine double values, defining origin,
- * OZ and OX directions of the working plane.
- * \return New GEOM_Object, containing the created wire.
- */
- GEOM_Object MakeSketcher (in string theCommand, in ListOfDouble theWorkingPlane);
-
- /*!
- * Create a sketcher (wire or face), following the textual description,
- * passed through \a theCommand argument. \n
- * For format of the description string see the previous method.\n
- * \param theCommand String, defining the sketcher in local
- * coordinates of the working plane.
- * \param theWorkingPlane Planar Face of the working plane.
- * \return New GEOM_Object, containing the created wire.
- */
- GEOM_Object MakeSketcherOnPlane (in string theCommand, in GEOM_Object theWorkingPlane);
- };
-
- /*!
- * GEOM_ILocalOperations: Interface for fillet and chamfer creation.
- */
- interface GEOM_ILocalOperations : GEOM_IOperations
- {
- /*!
- * Perform a fillet on all edges of the given shape.
- * \param theShape Shape, to perform fillet on.
- * \param theR Fillet radius.
- * \return New GEOM_Object, containing the result shape.
- */
- GEOM_Object MakeFilletAll (in GEOM_Object theShape,
- in double theR);
-
- /*!
- * Perform a fillet on the specified edges of the given shape
- * \param theShape Shape, to perform fillet on.
- * \param theR Fillet radius.
- * \param theEdges Global indices of edges to perform fillet on.
- * \note Global index of sub-shape can be obtained, using method GetSubShapeIndex().
- * \return New GEOM_Object, containing the result shape.
- */
- GEOM_Object MakeFilletEdges (in GEOM_Object theShape,
- in double theR,
- in ListOfLong theEdges);
-
- /*!
- * Perform a fillet on all edges of the specified faces of the given shape.
- * \param theShape Shape, to perform fillet on.
- * \param theR Fillet radius.
- * \param theFaces Global indices of faces to perform fillet on.
- * \note Global index of sub-shape can be obtained, using method GetSubShapeIndex().
- * \return New GEOM_Object, containing the result shape.
- */
- GEOM_Object MakeFilletFaces (in GEOM_Object theShape,
- in double theR,
- in ListOfLong theFaces);
-
- /*!
- * Perform a symmetric chamfer on all edges of the given shape.
- * \param theShape Shape, to perform chamfer on.
- * \param theD Chamfer size along each face.
- * \return New GEOM_Object, containing the result shape.
- */
- GEOM_Object MakeChamferAll (in GEOM_Object theShape,
- in double theD);
-
- /*!
- * Perform a chamfer on edges, common to the specified faces.
- * with distance D1 on the Face1
- * \param theShape Shape, to perform chamfer on.
- * \param theD1 Chamfer size along \a theFace1.
- * \param theD2 Chamfer size along \a theFace2.
- * \param theFace1,theFace2 Global indices of two faces of \a theShape.
- * \note Global index of sub-shape can be obtained, using method GetSubShapeIndex().
- * \return New GEOM_Object, containing the result shape.
- */
- GEOM_Object MakeChamferEdge (in GEOM_Object theShape,
- in double theD1, in double theD2,
- in long theFace1, in long theFace2);
-
- /*!
- * Perform a chamfer on all edges of the specified faces.
- * with distance D1 on the first specified face (if several for one edge)
- * \param theShape Shape, to perform chamfer on.
- * \param theD1 Chamfer size along face from \a theFaces. If both faces,
- * connected to the edge, are in \a theFaces, \a theD1
- * will be get along face, which is nearer to \a theFaces beginning.
- * \param theD2 Chamfer size along another of two faces, connected to the edge.
- * \param theFaces Sequence of global indices of faces of \a theShape.
- * \note Global index of sub-shape can be obtained, using method GetSubShapeIndex().
- * \return New GEOM_Object, containing the result shape.
- */
- GEOM_Object MakeChamferFaces (in GEOM_Object theShape,
- in double theD1, in double theD2,
- in ListOfLong theFaces);
-
- /*!
- * Perform an Archimde operation on the given shape with given parameters.
- * The object presenting the resulting face is returned
- * \param theShape Shape to be put in water.
- * \param theWeight Weight og the shape.
- * \param theWaterDensity Density of the water.
- * \param theMeshDeflection Deflection od the mesh, using to compute the section.
- * \return New GEOM_Object, containing a section of \a theShape
- * by a plane, corresponding to water level.
- */
- GEOM_Object MakeArchimede (in GEOM_Object theShape,
- in double theWeight,
- in double theWaterDensity,
- in double theMeshDeflection);
-
- /*!
- * Get global index of \a theSubShape in \a theShape.
- * \param theShape Main shape.
- * \param theSubShape Sub-shape of the main shape.
- * \return global index of \a theSubShape in \a theShape.
- */
- long GetSubShapeIndex (in GEOM_Object theShape, in GEOM_Object theSubShape);
- };
-
- /*!
- * GEOM_IHealingOperations: Interface for shape healing operations.
- * Shape Processing, SuppressFaces, etc.
- */
- interface GEOM_IHealingOperations : GEOM_IOperations
- {
- /*!
- * Apply a sequence of Shape Healing operators to the given object.
- * \param theShapes Shape to be processed.
- * \param theOperators List of names of operators ("FixShape", "SplitClosedFaces", etc.).
- * \param theParameters List of names of parameters
- * ("FixShape.Tolerance3d", "SplitClosedFaces.NbSplitPoints", etc.).
- * \param theValues List of values of parameters, in the same order
- * as parameters are listed in \a theParameters list.
- * \return New GEOM_Object, containing processed shape.
- */
- GEOM_Object ProcessShape (in GEOM_Object theShapes,
- in string_array theOperators,
- in string_array theParameters,
- in string_array theValues);
-
- /*!
- * Get default sequence of operators, their parameters and parameters' values
- * of Shape Process operation. In the current implementation the defaults are
- * read from the file pointed by CSF_ShHealingDefaults environmental variable.
- * \param theOperators Output. Default list of names of operators.
- * \param theParameters Output. Default list of names of parameters.
- * \param theValues Output. List of default values of parameters, in the same order
- * as parameters are listed in \a theParameters list.
- */
- void GetShapeProcessParameters (out string_array theOperators,
- out string_array theParameters,
- out string_array theValues);
- /*!
- * Get parameters and parameters' values for the given Shape Process operation.
- * In the current implementation the defaults are
- * read from the file pointed by CSF_ShHealingDefaults environmental variable.
- * \param theOperator Input. The operator's name.
- * \param theParameters Output. Default list of names of parameters.
- * \param theValues Output. List of default values of parameters, in the same order
- * as parameters are listed in \a theParameters list.
- */
- void GetOperatorParameters (in string theOperator,
- out string_array theParameters,
- out string_array theValues);
-
- /*!
- * Remove faces from the given object (shape).
- * \param theObject Shape to be processed.
- * \param theFaces Indices of faces to be removed, if EMPTY then the method
- * removes ALL faces of the given object.
- * \return New GEOM_Object, containing processed shape.
- */
- GEOM_Object SuppressFaces (in GEOM_Object theObject, in short_array theFaces);
-
- /*!
- * Close an open wire.
- * \param theObject Shape to be processed.
- * \param theWires Indexes of edge(s) and wire(s) to be closed within theObject's shape,
- * if -1, then theObject itself is a wire.
- * \param isCommonVertex If TRUE : closure by creation of a common vertex,
- * If FALS : closure by creation of an edge between ends.
- * \return New GEOM_Object, containing processed shape.
- */
- GEOM_Object CloseContour (in GEOM_Object theObject, in short_array theWires,
- in boolean isCommonVertex);
-
- /*!
- * Remove internal wires and edges from the given object (face).
- * \param theObject Shape to be processed.
- * \param theWires Indices of wires to be removed, if EMPTY then the method
- * removes ALL internal wires of the given object.
- * \return New GEOM_Object, containing processed shape.
- */
- GEOM_Object RemoveIntWires (in GEOM_Object theObject, in short_array theWires);
-
- /*!
- * Remove internal closed contours (holes) from the given object.
- * \param theObject Shape to be processed.
- * \param theWires Indices of wires to be removed, if EMPTY then the method
- * removes ALL internal holes of the given object
- * \return New GEOM_Object, containing processed shape.
- */
- GEOM_Object FillHoles (in GEOM_Object theObject, in short_array theWires);
-
- /*!
- * Sewing of the given object.
- * \param theObject Shape to be processed.
- * \param theTolerance Required tolerance value.
- * \return New GEOM_Object, containing processed shape.
- */
- GEOM_Object Sew (in GEOM_Object theObject, in double theTolerance);
-
- /*!
- * Addition of a point to a given edge object.
- * \param theObject Shape to be processed.
- * \param theEdgeIndex Index of edge to be divided within theObject's shape,
- * if -1, then theObject itself is the edge.
- * \param theValue Value of parameter on edge or length parameter,
- * depending on \a isByParameter.
- * \param isByParameter If TRUE : \a theValue is treated as a curve parameter [0..1],
- * if FALSE : \a theValue is treated as a length parameter [0..1]
- * \return New GEOM_Object, containing processed shape.
- */
- GEOM_Object DivideEdge (in GEOM_Object theObject, in short theEdgeIndex,
- in double theValue, in boolean isByParameter);
-
- /*!
- * Get a list of wires (wrapped in GEOM_Object-s),
- * that constitute a free boundary of the given shape.
- * \param theObject Shape to get free boundary of.
- * \param theClosedWires Output. Closed wires on the free boundary of the given shape.
- * \param theOpenWires Output. Open wires on the free boundary of the given shape.
- * \return FALSE, if an error(s) occured during the method execution.
- */
- boolean GetFreeBoundary (in GEOM_Object theObject,
- out ListOfGO theClosedWires,
- out ListOfGO theOpenWires);
- };
-
- /*!
- * GEOM_IInsertOperations: Interface for shape insert operations (like copy, import).
- *
- */
- interface GEOM_IInsertOperations : GEOM_IOperations
- {
- /*!
- * Create a copy of the given object
- */
- GEOM_Object MakeCopy (in GEOM_Object theOriginal);
-
- /*!
- * Export the given shape into a file with given name.
- * \param theObject Shape to be stored in the file.
- * \param theFileName Name of the file to store the given shape in.
- * \param theFormatName Specify format for the shape storage.
- * Available formats can be obtained with ImportTranslators() method.
- */
- void Export (in GEOM_Object theObject, in string theFileName, in string theFormatName);
-
- /*!
- * Import a shape from the BRep or IGES or STEP file
- * (depends on given format) with given name.
- * \param theFileName The file, containing the shape.
- * \param theFormatName Specify format for the file reading.
- * Available formats can be obtained with ImportTranslators() method.
- * \return New GEOM_Object, containing the imported shape.
- */
- GEOM_Object Import (in string theFileName, in string theFormatName);
-
- /*!
- * Get the supported import formats and corresponding patterns for File dialog.
- * \param theFormats Output. List of formats, available for import.
- * \param thePatterns Output. List of file patterns, corresponding to available formats.
- * \return Returns available formats and patterns through the arguments.
- */
- void ImportTranslators (out string_array theFormats,
- out string_array thePatterns);
-
- /*!
- * Get the supported export formats and corresponding patterns for File dialog.
- * \param theFormats Output. List of formats, available for export.
- * \param thePatterns Output. List of file patterns, corresponding to available formats.
- * \return Returns available formats and patterns through the arguments.
- */
- void ExportTranslators (out string_array theFormats,
- out string_array thePatterns);
- };
-
- /*!
- * GEOM_IMeasureOperations: Interface for measurement (distance, whatis) and
- * properties calculation (like Centre of Mass, Inertia, etc.).
- *
- */
- interface GEOM_IMeasureOperations : GEOM_IOperations
- {
- /*!
- * Get summarized length of all wires,
- * area of surface and volume of the given shape.
- * \param theShape Shape to define properties of.
- * \param theLength Output. Summarized length of all wires of the given shape.
- * \param theSurfArea Output. Area of surface of the given shape.
- * \param theVolume Output. Volume of the given shape.
- * \return Returns shape properties through the last three arguments.
- */
- void GetBasicProperties (in GEOM_Object theShape,
- out double theLength,
- out double theSurfArea,
- out double theVolume);
-
- /*!
- * Get a point, situated at the centre of mass of theShape.
- * \param theShape Shape to define centre of mass of.
- * \return New GEOM_Object, containing the created point.
- */
- GEOM_Object GetCentreOfMass (in GEOM_Object theShape);
-
- /*!
- * Get inertia matrix and moments of inertia of theShape.
- * \param theShape Shape to calculate inertia of.
- * \param I(1-3)(1-3) Output. Components of the inertia matrix of the given shape.
- * \param Ix,Iy,Iz Output. Moments of inertia of the given shape.
- * \return Returns inertia through the last twelve arguments.
- */
- void GetInertia (in GEOM_Object theShape,
- out double I11, out double I12, out double I13,
- out double I21, out double I22, out double I23,
- out double I31, out double I32, out double I33,
- out double Ix , out double Iy , out double Iz);
-
- /*!
- * Get parameters of bounding box of the given shape
- * \param theShape Shape to obtain bounding box of.
- * \param Xmin,Xmax Output. Limits of shape along OX axis.
- * \param Ymin,Ymax Output. Limits of shape along OY axis.
- * \param Zmin,Zmax Output. Limits of shape along OZ axis.
- * \return Returns parameters of bounding box through the last six arguments.
- */
- void GetBoundingBox (in GEOM_Object theShape,
- out double Xmin, out double Xmax,
- out double Ymin, out double Ymax,
- out double Zmin, out double Zmax);
-
- /*!
- * Get min and max tolerances of sub-shapes of theShape
- * \param theShape Shape, to get tolerances of.
- * \param FaceMin,FaceMax Output. Min and max tolerances of the faces.
- * \param EdgeMin,EdgeMax Output. Min and max tolerances of the edges.
- * \param VertMin,VertMax Output. Min and max tolerances of the vertices.
- * \return Returns shape tolerances through the last six arguments.
- */
- void GetTolerance (in GEOM_Object theShape,
- out double FaceMin, out double FaceMax,
- out double EdgeMin, out double EdgeMax,
- out double VertMin, out double VertMax);
-
- /*!
- * Check a topology of the given shape.
- * \param theShape Shape to check validity of.
- * \param theDescription Output. Description of problems in the shape, if they are.
- * \return TRUE, if the shape "seems to be valid" from the topological point of view.
- */
- boolean CheckShape (in GEOM_Object theShape,
- out string theDescription);
-
- /*!
- * Obtain description of the given shape
- * \param theShape Shape to be described.
- * \return Description of the given shape.
- */
- string WhatIs (in GEOM_Object theShape);
-
- /*!
- * Get minimal distance between the given shapes.
- * \param theShape1,theShape2 Shapes to find minimal distance between.
- * \param X1,Y1,Z1 Output. Coordinates of point on theShape1, nearest to theShape2.
- * \param X2,Y2,Z2 Output. Coordinates of point on theShape2, nearest to theShape1.
- * \return Value of the minimal distance between the given shapes.
- */
- double GetMinDistance (in GEOM_Object theShape1, in GEOM_Object theShape2,
- out double X1, out double Y1, out double Z1,
- out double X2, out double Y2, out double Z2);
-
-
- /*!
- * Get point coordinates
- */
- void PointCoordinates (in GEOM_Object theShape, out double X, out double Y, out double Z);
- };
-
-
- /*!
- * GEOM_IGroupOperations: Interface for groups creation.
- */
- interface GEOM_IGroupOperations : GEOM_IOperations
- {
- /*!
- * Creates a new group which will store sub shapes of theMainShape
- * \param theMainShape is a GEOM object on which the group is selected
- * \param theShapeType defines a shape type of the group
- * \return a newly created GEOM group
- */
- GEOM_Object CreateGroup (in GEOM_Object theMainShape, in long theShapeType);
-
- /*!
- * Adds a sub object with ID theSubShapeId to the group
- * \param theGroup is a GEOM group to which the new sub shape is added
- * \param theSubShapeId is a sub shape ID in the main object.
- * \note Use method ILocalOperations.GetSubShapeIndex() to get an ID by the sub shape
- */
- void AddObject (in GEOM_Object theGroup, in long theSubShapeId);
-
- /*!
- * Removes a sub object with ID \a theSubShapeId from the group
- * \param theGroup is a GEOM group from which the sub shape is removed.
- * \param theSubShapeId is a sub shape ID in the main object.
- * \note Use method ILocalOperations.GetSubShapeIndex() to get an ID by the sub shape
- */
- void RemoveObject (in GEOM_Object theGroup, in long theSubShapeId);
-
- /*!
- * Adds to the group all the given shapes. No errors, if some shapes are alredy included.
- * \param theGroup is a GEOM group to which the new sub shapes are added.
- * \param theSubShapes is a list of sub shapes to be added.
- */
- void UnionList (in GEOM_Object theGroup, in ListOfGO theSubShapes);
-
- /*!
- * Removes from the group all the given shapes. No errors, if some shapes are not included.
- * \param theGroup is a GEOM group from which the sub-shapes are removed.
- * \param theSubShapes is a list of sub-shapes to be removed.
- */
- void DifferenceList (in GEOM_Object theGroup, in ListOfGO theSubShapes);
-
- /*!
- * Adds to the group all the given shapes. No errors, if some shapes are alredy included.
- * \param theGroup is a GEOM group to which the new sub shapes are added.
- * \param theSubShapes is a list of IDs of sub shapes to be added.
- */
- void UnionIDs (in GEOM_Object theGroup, in ListOfLong theSubShapes);
-
- /*!
- * Removes from the group all the given shapes. No errors, if some shapes are not included.
- * \param theGroup is a GEOM group from which the sub-shapes are removed.
- * \param theSubShapes is a list of IDs of sub-shapes to be removed.
- */
- void DifferenceIDs (in GEOM_Object theGroup, in ListOfLong theSubShapes);
-
- /*!
- * Returns a type of sub objects stored in the group
- * \param theGroup is a GEOM group which type is returned.
- */
- long GetType (in GEOM_Object theGroup);
-
- /*!
- * Returns a main shape associated with the group
- * \param theGroup is a GEOM group for which a main shape object is requested
- * \return a GEOM object which is a main shape for theGroup
- */
- GEOM_Object GetMainShape (in GEOM_Object theGroup);
-
- /*!
- * Returns a list of sub objects ID stored in the group
- * \param theGroup is a GEOM group for which a list of IDs is requested
- */
- ListOfLong GetObjects (in GEOM_Object theGroup);
- };
-
-
- /*!
- * GEOM_Gen: Interface to access other GEOM interfaces.
- * Also contains some methods to access and manage GEOM objects.
- */
- interface GEOM_Gen : Engines::Component,SALOMEDS::Driver
- {
- /*!
- * Undo/Redo Management
- */
-
- void Undo (in long theStudyID);
-
- void Redo (in long theStudyID);
-
- /*!
- * Publishing manangement
- * Adds in theStudy a object theObject under with a name theName,
- * if theFather is not NULL the object is placed under thFather's SObject.
- * Returns a SObject where theObject is placed
- */
- SALOMEDS::SObject AddInStudy (in SALOMEDS::Study theStudy,
- in GEOM_Object theObject,
- in string theName,
- in GEOM_Object theFather);
-
- /*!
- * Methods to access interfaces for objects creation and transformation
- */
- GEOM_IBasicOperations GetIBasicOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
- GEOM_ITransformOperations GetITransformOperations(in long theStudyID) raises (SALOME::SALOME_Exception);
- GEOM_I3DPrimOperations GetI3DPrimOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
- GEOM_IShapesOperations GetIShapesOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
- GEOM_IBooleanOperations GetIBooleanOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
- GEOM_ICurvesOperations GetICurvesOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
- GEOM_ILocalOperations GetILocalOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
- GEOM_IHealingOperations GetIHealingOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
- GEOM_IInsertOperations GetIInsertOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
- GEOM_IMeasureOperations GetIMeasureOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
- GEOM_IBlocksOperations GetIBlocksOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
- GEOM_IGroupOperations GetIGroupOperations (in long theStudyID) raises (SALOME::SALOME_Exception);
-
- /*!
- * Objects Management
- */
-
- /*!
- * Removes the object from the GEOM component
- * \param theObject is a GEOM object to be removed
- */
- void RemoveObject (in GEOM_Object theObject);
-
- /*!
- * Returns an object defined by the study and its entry in the GEOM component
- * \param theStudyID is a SALOMEDS Study ID
- * \param theEntry is an entry of the requested GEOM object in the GEOM component
- * \note if the object has not previously been created a NULL GEOM object is returned
- */
- GEOM_Object GetObject (in long theStudyID, in string theEntry);
-
- /*!
- * Add a sub shape defined by indices in \a theIndices
- * (contains unique IDs of sub shapes inside theMainShape)
- * \note The sub shape GEOM_Objects can has ONLY ONE function.
- * Don't try to apply modification operations on them.
- * \note Internal method
- */
- GEOM_Object AddSubShape (in GEOM_Object theMainShape, in ListOfLong theIndices);
-
- /*!
- * GEOM object's IOR Management
- */
-
- /*!
- * Returns a GEOM Object defined by its IOR
- * \param theIOR a string containg an IOR of the requested GEOM object
- */
- GEOM_Object GetIORFromString (in string theIOR);
-
- /*!
- * Returns a string which contains an IOR of the GEOM object
- * \param theObject is a GEOM object which IOR is requested
- */
- string GetStringFromIOR (in GEOM_Object theObject);
-
- /*!
- * Returns a name with which a GEOM object was dumped into python script
- * \param theStudyEntry is an entry of the GEOM object in the study
- */
- string GetDumpName (in string theStudyEntry);
-
- /*!
- * Returns all names with which a GEOM objects was dumped
- * into python script to avoid the same names in SMESH script
- */
- string_array GetAllDumpNames();
- };
-};
-
-#endif
diff --git a/resources/GEOMCatalog.xml b/resources/GEOMCatalog.xml
deleted file mode 100644
index b1f71940d..000000000
--- a/resources/GEOMCatalog.xml
+++ /dev/null
@@ -1,4276 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- GEOM
- Geometry
- Geom
- NRI
- 3.0.0
- Geometry component
- 1
- ModuleGeom.png
-
-
-
-
- GEOM
- No comment
-
-
-
-
-
- Undo
-
-
-
- 1
-
-
-
- theStudyID
- long
-
-
-
-
-
-
-
-
- Redo
-
-
-
- 1
-
-
-
- theStudyID
- long
-
-
-
-
-
-
-
-
- AddInStudy
-
-
-
- 1
-
-
-
- theStudy
- Study
-
-
-
- theObject
- GEOM_Object
-
-
-
- theName
- string
-
-
-
- theFather
- GEOM_Object
-
-
-
-
-
- return
- SObject
-
-
-
-
-
-
-
- GetIBasicOperations
-
-
-
- 1
-
-
-
- theStudyID
- long
-
-
-
-
-
- return
- GEOM_IBasicOperations
-
-
-
-
-
-
-
- GetITransformOperations
-
-
-
- 1
-
-
-
- theStudyID
- long
-
-
-
-
-
- return
- GEOM_ITransformOperations
-
-
-
-
-
-
-
- GetI3DPrimOperations
-
-
-
- 1
-
-
-
- theStudyID
- long
-
-
-
-
-
- return
- GEOM_I3DPrimOperations
-
-
-
-
-
-
-
- GetIShapesOperations
-
-
-
- 1
-
-
-
- theStudyID
- long
-
-
-
-
-
- return
- GEOM_IShapesOperations
-
-
-
-
-
-
-
- GetIBooleanOperations
-
-
-
- 1
-
-
-
- theStudyID
- long
-
-
-
-
-
- return
- GEOM_IBooleanOperations
-
-
-
-
-
-
-
- GetICurvesOperations
-
-
-
- 1
-
-
-
- theStudyID
- long
-
-
-
-
-
- return
- GEOM_ICurvesOperations
-
-
-
-
-
-
-
- GetILocalOperations
-
-
-
- 1
-
-
-
- theStudyID
- long
-
-
-
-
-
- return
- GEOM_ILocalOperations
-
-
-
-
-
-
-
- GetIHealingOperations
-
-
-
- 1
-
-
-
- theStudyID
- long
-
-
-
-
-
- return
- GEOM_IHealingOperations
-
-
-
-
-
-
-
- GetIInsertOperations
-
-
-
- 1
-
-
-
- theStudyID
- long
-
-
-
-
-
- return
- GEOM_IInsertOperations
-
-
-
-
-
-
-
- GetIMeasureOperations
-
-
-
- 1
-
-
-
- theStudyID
- long
-
-
-
-
-
- return
- GEOM_IMeasureOperations
-
-
-
-
-
-
-
- GetIBlocksOperations
-
-
-
- 1
-
-
-
- theStudyID
- long
-
-
-
-
-
- return
- GEOM_IBlocksOperations
-
-
-
-
-
-
-
- GetIGroupOperations
-
-
-
- 1
-
-
-
- theStudyID
- long
-
-
-
-
-
- return
- GEOM_IGroupOperations
-
-
-
-
-
-
-
- RemoveObject
-
-
-
- 1
-
-
-
- theObject
- GEOM_Object
-
-
-
-
-
-
-
-
- GetObject
-
-
-
- 1
-
-
-
- theStudyID
- long
-
-
-
- theEntry
- string
-
-
-
-
-
- return
- GEOM_Object
-
-
-
-
-
-
-
- AddSubShape
-
-
-
- 1
-
-
-
- theMainShape
- GEOM_Object
-
-
-
- theIndices
- ListOfLong
-
-
-
-
-
- return
- GEOM_Object
-
-
-
-
-
-
-
- GetIORFromString
-
-
-
- 1
-
-
-
- ior
- string
-
-
-
-
-
- return
- GEOM_Object
-
-
-
-
-
-
-
- GetStringFromIOR
-
-
-
- 1
-
-
-
- theObject
- GEOM_Object
-
-
-
-
-
- return
- string
-
-
-
-
-
-
-
- hostname = localhost
-
-
-
- GEOM_Superv
- GEOM_Superv
- OTHER
- mkr
- 3.0.0
- Supervision wrapper for Geometry component
- 1
-
-
-
- GEOM_Superv
- unknown
-
-
- SetStudyID
- mkr
- 2.1.0
- unknown
- 0
-
-
- theStudyID
- long
- unknown
-
-
-
-
-
-
- CreateListOfGO
- mkr
- 2.1.0
- unknown
- 0
-
-
-
- return
- GEOM_List
- unknown
-
-
-
-
-
- AddItemToListOfGO
- mkr
- 2.1.0
- unknown
- 0
-
-
- theList
- GEOM_List
- unknown
-
-
- theObject
- GEOM_Object
- unknown
-
-
-
-
- theList
- GEOM_List
- unknown
-
-
-
-
-
- CreateListOfLong
- mkr
- 2.1.0
- unknown
- 0
-
-
-
- return
- GEOM_List
- unknown
-
-
-
-
-
- AddItemToListOfLong
- mkr
- 2.1.0
- unknown
- 0
-
-
- theList
- GEOM_List
- unknown
-
-
- theObject
- long
- unknown
-
-
-
-
- theList
- GEOM_List
- unknown
-
-
-
-
-
- CreateListOfDouble
- mkr
- 2.1.0
- unknown
- 0
-
-
-
- return
- GEOM_List
- unknown
-
-
-
-
-
- AddItemToListOfDouble
- mkr
- 2.1.0
- unknown
- 0
-
-
- theList
- GEOM_List
- unknown
-
-
- theObject
- double
- unknown
-
-
-
-
- theList
- GEOM_List
- unknown
-
-
-
-
-
- MakePointXYZ
- mkr
- 2.1.0
- unknown
- 0
-
-
- theX
- double
- unknown
-
-
- theY
- double
- unknown
-
-
- theZ
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakePointWithReference
- mkr
- 2.1.0
- unknown
- 0
-
-
- theReference
- GEOM_Object
- unknown
-
-
- theX
- double
- unknown
-
-
- theY
- double
- unknown
-
-
- theZ
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakePointOnCurve
- mkr
- 2.1.0
- unknown
- 0
-
-
- theRefCurve
- GEOM_Object
- unknown
-
-
- theParameter
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeVectorDXDYDZ
- mkr
- 2.1.0
- unknown
- 0
-
-
- theDX
- double
- unknown
-
-
- theDY
- double
- unknown
-
-
- theDZ
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeVectorTwoPnt
- mkr
- 2.1.0
- unknown
- 0
-
-
- thePnt1
- GEOM_Object
- unknown
-
-
- thePnt2
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeLineTwoPnt
- mkr
- 2.1.0
- unknown
- 0
-
-
- thePnt1
- GEOM_Object
- unknown
-
-
- thePnt2
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakePlaneThreePnt
- mkr
- 2.1.0
- unknown
- 0
-
-
- thePnt1
- GEOM_Object
- unknown
-
-
- thePnt2
- GEOM_Object
- unknown
-
-
- thePnt3
- GEOM_Object
- unknown
-
-
- theTrimSize
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakePlanePntVec
- mkr
- 2.1.0
- unknown
- 0
-
-
- thePnt
- GEOM_Object
- unknown
-
-
- theVec
- GEOM_Object
- unknown
-
-
- theTrimSize
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakePlaneFace
- mkr
- 2.1.0
- unknown
- 0
-
-
- theFace
- GEOM_Object
- unknown
-
-
- theTrimSize
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeMarker
- mkr
- 2.1.0
- unknown
- 0
-
-
- theOX
- double
- unknown
-
-
- theOY
- double
- unknown
-
-
- theOZ
- double
- unknown
-
-
- theXDX
- double
- unknown
-
-
- theXDY
- double
- unknown
-
-
- theXDZ
- double
- unknown
-
-
- theYDX
- double
- unknown
-
-
- theYDY
- double
- unknown
-
-
- theYDZ
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeBox
- mkr
- 2.1.0
- unknown
- 0
-
-
- theX1
- double
- unknown
-
-
- theY1
- double
- unknown
-
-
- theZ1
- double
- unknown
-
-
- theX2
- double
- unknown
-
-
- theY2
- double
- unknown
-
-
- theZ2
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeBoxDXDYDZ
- mkr
- 2.1.0
- unknown
- 0
-
-
- theDX
- double
- unknown
-
-
- theDY
- double
- unknown
-
-
- theDZ
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeBoxTwoPnt
- mkr
- 2.1.0
- unknown
- 0
-
-
- thePnt1
- GEOM_Object
- unknown
-
-
- thePnt2
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeCylinderPntVecRH
- mkr
- 2.1.0
- unknown
- 0
-
-
- thePnt
- GEOM_Object
- unknown
-
-
- theAxis
- GEOM_Object
- unknown
-
-
- theRadius
- double
- unknown
-
-
- theHeight
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeCylinderRH
- mkr
- 2.1.0
- unknown
- 0
-
-
- theR
- double
- unknown
-
-
- theH
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeSphere
- mkr
- 2.1.0
- unknown
- 0
-
-
- theX
- double
- unknown
-
-
- theY
- double
- unknown
-
-
- theZ
- double
- unknown
-
-
- theRadius
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeSphereR
- mkr
- 2.1.0
- unknown
- 0
-
-
- theR
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeSpherePntR
- mkr
- 2.1.0
- unknown
- 0
-
-
- thePnt
- GEOM_Object
- unknown
-
-
- theR
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeTorusPntVecRR
- mkr
- 2.1.0
- unknown
- 0
-
-
- thePnt
- GEOM_Object
- unknown
-
-
- theVec
- GEOM_Object
- unknown
-
-
- theRMajor
- double
- unknown
-
-
- theRMinor
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeTorusRR
- mkr
- 2.1.0
- unknown
- 0
-
-
- theRMajor
- double
- unknown
-
-
- theRMinor
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeConePntVecR1R2H
- mkr
- 2.1.0
- unknown
- 0
-
-
- thePnt
- GEOM_Object
- unknown
-
-
- theAxis
- GEOM_Object
- unknown
-
-
- theR1
- double
- unknown
-
-
- theR2
- double
- unknown
-
-
- theHeight
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeConeR1R2H
- mkr
- 2.1.0
- unknown
- 0
-
-
- theR1
- double
- unknown
-
-
- theR2
- double
- unknown
-
-
- theHeight
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakePrismVecH
- mkr
- 2.1.0
- unknown
- 0
-
-
- theBase
- GEOM_Object
- unknown
-
-
- theVec
- GEOM_Object
- unknown
-
-
- theH
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakePrismTwoPnt
- mkr
- 2.1.0
- unknown
- 0
-
-
- theBase
- GEOM_Object
- unknown
-
-
- thePoint1
- GEOM_Object
- unknown
-
-
- thePoint2
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakePipe
- mkr
- 2.1.0
- unknown
- 0
-
-
- theBase
- GEOM_Object
- unknown
-
-
- thePath
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeRevolutionAxisAngle
- mkr
- 2.1.0
- unknown
- 0
-
-
- theBase
- GEOM_Object
- unknown
-
-
- theAxis
- GEOM_Object
- unknown
-
-
- theAngle
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeFilling
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape
- GEOM_Object
- unknown
-
-
- theMinDeg
- long
- unknown
-
-
- theMaxDeg
- long
- unknown
-
-
- theTol2D
- double
- unknown
-
-
- theTol3D
- double
- unknown
-
-
- theNbIter
- long
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeBoolean
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape1
- GEOM_Object
- unknown
-
-
- theShape2
- GEOM_Object
- unknown
-
-
- theOperation
- long
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeFuse
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape1
- GEOM_Object
- unknown
-
-
- theShape2
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakePartition
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShapes
- GEOM_List
- unknown
-
-
- theTools
- GEOM_List
- unknown
-
-
- theKeepInside
- GEOM_List
- unknown
-
-
- theRemoveInside
- GEOM_List
- unknown
-
-
- theLimit
- short
- unknown
-
-
- theRemoveWebs
- boolean
- unknown
-
-
- theMaterials
- GEOM_List
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeHalfPartition
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape
- GEOM_Object
- unknown
-
-
- thePlane
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeCopy
- mkr
- 2.1.0
- unknown
- 0
-
-
- theOriginal
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- Export
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- theFileName
- string
- unknown
-
-
- theFormatName
- string
- unknown
-
-
-
-
-
-
- Import
- mkr
- 2.1.0
- unknown
- 0
-
-
- theFileName
- string
- unknown
-
-
- theFormatName
- string
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- ImportTranslators
- mkr
- 2.1.0
- unknown
- 0
-
-
-
- theFormats
- string_array
- unknown
-
-
- thePatterns
- string_array
- unknown
-
-
-
-
-
- ExportTranslators
- mkr
- 2.1.0
- unknown
- 0
-
-
-
- theFormats
- string_array
- unknown
-
-
- thePatterns
- string_array
- unknown
-
-
-
-
-
- TranslateTwoPoints
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- thePoint1
- GEOM_Object
- unknown
-
-
- thePoint2
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- TranslateTwoPointsCopy
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- thePoint1
- GEOM_Object
- unknown
-
-
- thePoint2
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- TranslateDXDYDZ
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- theDX
- double
- unknown
-
-
- theDY
- double
- unknown
-
-
- theDZ
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- TranslateDXDYDZCopy
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- theDX
- double
- unknown
-
-
- theDY
- double
- unknown
-
-
- theDZ
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- TranslateVector
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- theVector
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- TranslateVectorCopy
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- theVector
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MultiTranslate1D
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- theVector
- GEOM_Object
- unknown
-
-
- theStep
- double
- unknown
-
-
- theNbTimes
- long
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MultiTranslate2D
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- theVector1
- GEOM_Object
- unknown
-
-
- theStep1
- double
- unknown
-
-
- theNbTimes1
- long
- unknown
-
-
- theVector2
- GEOM_Object
- unknown
-
-
- theStep2
- double
- unknown
-
-
- theNbTimes2
- long
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- Rotate
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- theAxis
- GEOM_Object
- unknown
-
-
- theAngle
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- RotateCopy
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- theAxis
- GEOM_Object
- unknown
-
-
- theAngle
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MultiRotate1D
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- theAxis
- GEOM_Object
- unknown
-
-
- theNbTimes
- long
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MultiRotate2D
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- theAxis
- GEOM_Object
- unknown
-
-
- theAngle
- double
- unknown
-
-
- theNbTimes1
- long
- unknown
-
-
- theStep
- double
- unknown
-
-
- theNbTimes2
- long
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MirrorPlane
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- thePlane
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MirrorPlaneCopy
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- thePlane
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MirrorAxis
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- theAxis
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MirrorAxisCopy
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- theAxis
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MirrorPoint
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- thePoint
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MirrorPointCopy
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- thePoint
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- OffsetShape
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- theOffset
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- OffsetShapeCopy
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- theOffset
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- ScaleShape
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- thePoint
- GEOM_Object
- unknown
-
-
- theFactor
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- ScaleShapeCopy
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- thePoint
- GEOM_Object
- unknown
-
-
- theFactor
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- PositionShape
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- theStartLCS
- GEOM_Object
- unknown
-
-
- theEndLCS
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- PositionShapeCopy
- mkr
- 2.1.0
- unknown
- 0
-
-
- theObject
- GEOM_Object
- unknown
-
-
- theStartLCS
- GEOM_Object
- unknown
-
-
- theEndLCS
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeEdge
- mkr
- 2.1.0
- unknown
- 0
-
-
- thePnt1
- GEOM_Object
- unknown
-
-
- thePnt2
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeWire
- mkr
- 2.1.0
- unknown
- 0
-
-
- theEdgesAndWires
- GEOM_List
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeFace
- mkr
- 2.1.0
- unknown
- 0
-
-
- theWire
- GEOM_Object
- unknown
-
-
- isPlanarWanted
- boolean
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeFaceWires
- mkr
- 2.1.0
- unknown
- 0
-
-
- theWires
- GEOM_List
- unknown
-
-
- isPlanarWanted
- boolean
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeShell
- mkr
- 2.1.0
- unknown
- 0
-
-
- theFacesAndShells
- GEOM_List
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeSolidShell
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShell
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeSolidShells
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShells
- GEOM_List
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeCompound
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShapes
- GEOM_List
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeGlueFaces
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape
- GEOM_Object
- unknown
-
-
- theTolerance
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeExplode
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape
- GEOM_Object
- unknown
-
-
- theShapeType
- long
- unknown
-
-
- isSorted
- boolean
- unknown
-
-
-
-
- return
- GEOM_List
- unknown
-
-
-
-
-
- NumberOfFaces
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape
- GEOM_Object
- unknown
-
-
-
-
- return
- long
- unknown
-
-
-
-
-
- NumberOfEdges
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape
- GEOM_Object
- unknown
-
-
-
-
- return
- long
- unknown
-
-
-
-
-
- ChangeOrientation
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeQuad4Vertices
- mkr
- 2.1.0
- unknown
- 0
-
-
- thePnt1
- GEOM_Object
- unknown
-
-
- thePnt2
- GEOM_Object
- unknown
-
-
- thePnt3
- GEOM_Object
- unknown
-
-
- thePnt4
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeQuad
- mkr
- 2.1.0
- unknown
- 0
-
-
- theEdge1
- GEOM_Object
- unknown
-
-
- theEdge2
- GEOM_Object
- unknown
-
-
- theEdge3
- GEOM_Object
- unknown
-
-
- theEdge4
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeQuad2Edges
- mkr
- 2.1.0
- unknown
- 0
-
-
- theEdge1
- GEOM_Object
- unknown
-
-
- theEdge2
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeHexa
- mkr
- 2.1.0
- unknown
- 0
-
-
- theFace1
- GEOM_Object
- unknown
-
-
- theFace2
- GEOM_Object
- unknown
-
-
- theFace3
- GEOM_Object
- unknown
-
-
- theFace4
- GEOM_Object
- unknown
-
-
- theFace5
- GEOM_Object
- unknown
-
-
- theFace6
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeHexa2Faces
- mkr
- 2.1.0
- unknown
- 0
-
-
- theFace1
- GEOM_Object
- unknown
-
-
- theFace2
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- GetPoint
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape
- GEOM_Object
- unknown
-
-
- theX
- double
- unknown
-
-
- theY
- double
- unknown
-
-
- theZ
- double
- unknown
-
-
- theEpsilon
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- GetEdge
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape
- GEOM_Object
- unknown
-
-
- thePoint1
- GEOM_Object
- unknown
-
-
- thePoint2
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- GetEdgeNearPoint
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape
- GEOM_Object
- unknown
-
-
- thePoint
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- GetFaceByPoints
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape
- GEOM_Object
- unknown
-
-
- thePoint1
- GEOM_Object
- unknown
-
-
- thePoint2
- GEOM_Object
- unknown
-
-
- thePoint3
- GEOM_Object
- unknown
-
-
- thePoint4
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- GetFaceByEdges
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape
- GEOM_Object
- unknown
-
-
- theEdge1
- GEOM_Object
- unknown
-
-
- theEdge2
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- GetOppositeFace
- mkr
- 2.1.0
- unknown
- 0
-
-
- theBlock
- GEOM_Object
- unknown
-
-
- theFace
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- GetFaceNearPoint
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape
- GEOM_Object
- unknown
-
-
- thePoint
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- GetFaceByNormale
- mkr
- 2.1.0
- unknown
- 0
-
-
- theBlock
- GEOM_Object
- unknown
-
-
- theVector
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- IsCompoundOfBlocks
- mkr
- 2.1.0
- unknown
- 0
-
-
- theCompound
- GEOM_Object
- unknown
-
-
- theMinNbFaces
- long
- unknown
-
-
- theMaxNbFaces
- long
- unknown
-
-
-
-
- return
- long
- unknown
-
-
- theNbBlocks
- long
- unknown
-
-
-
-
-
- CheckCompoundOfBlocks
- mkr
- 2.1.0
- unknown
- 0
-
-
- theCompound
- GEOM_Object
- unknown
-
-
-
-
- return
- long
- unknown
-
-
- theErrors
- BCErrors
- unknown
-
-
-
-
-
- PrintBCErrors
- mkr
- 2.1.0
- unknown
- 0
-
-
- theCompound
- GEOM_Object
- unknown
-
-
- theErrors
- BCErrors
- unknown
-
-
-
-
- return
- string
- unknown
-
-
-
-
-
- ExplodeCompoundOfBlocks
- mkr
- 2.1.0
- unknown
- 0
-
-
- theCompound
- GEOM_Object
- unknown
-
-
- theMinNbFaces
- long
- unknown
-
-
- theMaxNbFaces
- long
- unknown
-
-
-
-
- return
- GEOM_List
- unknown
-
-
-
-
-
- GetBlockNearPoint
- mkr
- 2.1.0
- unknown
- 0
-
-
- theCompound
- GEOM_Object
- unknown
-
-
- thePoint
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- GetBlockByParts
- mkr
- 2.1.0
- unknown
- 0
-
-
- theCompound
- GEOM_Object
- unknown
-
-
- theParts
- GEOM_List
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- GetBlocksByParts
- mkr
- 2.1.0
- unknown
- 0
-
-
- theCompound
- GEOM_Object
- unknown
-
-
- theParts
- GEOM_List
- unknown
-
-
-
-
- return
- GEOM_List
- unknown
-
-
-
-
-
- MakeMultiTransformation1D
- mkr
- 2.1.0
- unknown
- 0
-
-
- theBlock
- GEOM_Object
- unknown
-
-
- theDirFace1
- long
- unknown
-
-
- theDirFace2
- long
- unknown
-
-
- theNbTimes
- long
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeMultiTransformation2D
- mkr
- 2.1.0
- unknown
- 0
-
-
- theBlock
- GEOM_Object
- unknown
-
-
- theDirFace1U
- long
- unknown
-
-
- theDirFace2U
- long
- unknown
-
-
- theNbTimesU
- long
- unknown
-
-
- theDirFace1V
- long
- unknown
-
-
- theDirFace2V
- long
- unknown
-
-
- theNbTimesV
- long
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeCirclePntVecR
- mkr
- 2.1.0
- unknown
- 0
-
-
- thePnt
- GEOM_Object
- unknown
-
-
- theVec
- GEOM_Object
- unknown
-
-
- theR
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeCircleThreePnt
- mkr
- 2.1.0
- unknown
- 0
-
-
- thePnt1
- GEOM_Object
- unknown
-
-
- thePnt2
- GEOM_Object
- unknown
-
-
- thePnt3
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeEllipse
- mkr
- 2.1.0
- unknown
- 0
-
-
- thePnt
- GEOM_Object
- unknown
-
-
- theVec
- GEOM_Object
- unknown
-
-
- theRMajor
- double
- unknown
-
-
- theRMinor
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeArc
- mkr
- 2.1.0
- unknown
- 0
-
-
- thePnt1
- GEOM_Object
- unknown
-
-
- thePnt2
- GEOM_Object
- unknown
-
-
- thePnt3
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakePolyline
- mkr
- 2.1.0
- unknown
- 0
-
-
- thePoints
- GEOM_List
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeSplineBezier
- mkr
- 2.1.0
- unknown
- 0
-
-
- thePoints
- GEOM_List
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeSplineInterpolation
- mkr
- 2.1.0
- unknown
- 0
-
-
- thePoints
- GEOM_List
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeSketcher
- mkr
- 2.1.0
- unknown
- 0
-
-
- theCommand
- string
- unknown
-
-
- theWorkingPlane
- GEOM_List
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeFilletAll
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape
- GEOM_Object
- unknown
-
-
- theR
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeFilletEdges
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape
- GEOM_Object
- unknown
-
-
- theR
- double
- unknown
-
-
- theEdges
- GEOM_List
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeFilletFaces
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape
- GEOM_Object
- unknown
-
-
- theR
- double
- unknown
-
-
- theFaces
- GEOM_List
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeChamferAll
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape
- GEOM_Object
- unknown
-
-
- theD
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeChamferEdge
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape
- GEOM_Object
- unknown
-
-
- theD1
- double
- unknown
-
-
- theD2
- double
- unknown
-
-
- theFace1
- long
- unknown
-
-
- theFace2
- long
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeChamferFaces
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape
- GEOM_Object
- unknown
-
-
- theD1
- double
- unknown
-
-
- theD2
- double
- unknown
-
-
- theFaces
- GEOM_List
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- MakeArchimede
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape
- GEOM_Object
- unknown
-
-
- theWeight
- double
- unknown
-
-
- theWaterDensity
- double
- unknown
-
-
- theMeshDeflection
- double
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- GetSubShapeIndex
- mkr
- 2.1.0
- unknown
- 0
-
-
- theShape
- GEOM_Object
- unknown
-
-
- theSubShape
- GEOM_Object
- unknown
-
-
-
-
- return
- long
- unknown
-
-
-
-
-
- CreateGroup
- mkr
- 2.1.0
- unknown
- 0
-
-
- theMainShape
- GEOM_Object
- unknown
-
-
- theShapeType
- long
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- AddObject
- mkr
- 2.1.0
- unknown
- 0
-
-
- theGroup
- GEOM_Object
- unknown
-
-
- theSubShapeId
- long
- unknown
-
-
-
-
-
-
- RemoveObject
- mkr
- 2.1.0
- unknown
- 0
-
-
- theGroup
- GEOM_Object
- unknown
-
-
- theSubShapeId
- long
- unknown
-
-
-
-
-
-
- GetType
- mkr
- 2.1.0
- unknown
- 0
-
-
- theGroup
- GEOM_Object
- unknown
-
-
-
-
- return
- long
- unknown
-
-
-
-
-
- GetMainShape
- mkr
- 2.1.0
- unknown
- 0
-
-
- theGroup
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_Object
- unknown
-
-
-
-
-
- GetObjects
- mkr
- 2.1.0
- unknown
- 0
-
-
- theGroup
- GEOM_Object
- unknown
-
-
-
-
- return
- GEOM_List
- unknown
-
-
-
-
-
-
-
-
-
diff --git a/src/BREPExport/BREPExport.cxx b/src/BREPExport/BREPExport.cxx
deleted file mode 100644
index 0c1d96e4b..000000000
--- a/src/BREPExport/BREPExport.cxx
+++ /dev/null
@@ -1,37 +0,0 @@
-// File: BREPExport.cxx
-// Created: Wed May 19 13:10:05 2004
-// Author: Pavel TELKOV
-//
-
-#include "utilities.h"
-
-#include
-
-#include
-#include
-
-#ifdef WNT
-#include
-#else
-#define SALOME_WNT_EXPORT
-#endif
-
-//=============================================================================
-/*!
- *
- */
-//=============================================================================
-
-extern "C"
-{
-SALOME_WNT_EXPORT
- int Export(const TopoDS_Shape& theShape, const TCollection_AsciiString& theFileName)
- {
- MESSAGE("Export BREP into file " << theFileName.ToCString());
-
- if ( !BRepTools::Write( theShape, theFileName.ToCString() ) )
- return 0;
-
- return 1;
- }
-}
diff --git a/src/BREPImport/BREPImport.cxx b/src/BREPImport/BREPImport.cxx
deleted file mode 100644
index 251ef0d55..000000000
--- a/src/BREPImport/BREPImport.cxx
+++ /dev/null
@@ -1,41 +0,0 @@
-// File: BREPImport.cxx
-// Created: Wed May 19 14:29:52 2004
-// Author: Pavel TELKOV
-//
-
-#include "utilities.h"
-
-#include
-#include
-
-#include
-#include
-
-#ifdef WNT
-#include
-#else
-#define SALOME_WNT_EXPORT
-#endif
-
-//=============================================================================
-/*!
- *
- */
-//=============================================================================
-
-extern "C"
-{
-SALOME_WNT_EXPORT
- TopoDS_Shape Import (const TCollection_AsciiString& theFileName,
- TCollection_AsciiString& theError)
- {
- MESSAGE("Import BREP from file " << theFileName);
- TopoDS_Shape aShape;
- BRep_Builder B;
- BRepTools::Read(aShape, theFileName.ToCString(), B);
- if (aShape.IsNull()) {
- theError = "BREP Import failed";
- }
- return aShape;
- }
-}
diff --git a/src/BasicGUI/BasicGUI_ArcDlg.cxx b/src/BasicGUI/BasicGUI_ArcDlg.cxx
deleted file mode 100644
index 06ed13b55..000000000
--- a/src/BasicGUI/BasicGUI_ArcDlg.cxx
+++ /dev/null
@@ -1,334 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BasicGUI_ArcDlg.cxx
-// Author : Lucien PIGNOLONI
-// Module : GEOM
-// $Header$
-
-#include "BasicGUI_ArcDlg.h"
-
-#include "SUIT_Desktop.h"
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-
-#include
-
-#include
-#include
-#include
-#include
-
-#include "GEOMImpl_Types.hxx"
-
-#include "utilities.h"
-
-using namespace std;
-
-//=================================================================================
-// class : BasicGUI_ArcDlg()
-// purpose : Constructs a BasicGUI_ArcDlg which is a child of 'parent', with the
-// name 'name' and widget flags set to 'f'.
-// The dialog will by default be modeless, unless you set 'modal' to
-// TRUE to construct a modal dialog.
-//=================================================================================
-BasicGUI_ArcDlg::BasicGUI_ArcDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu),
- myGeometryGUI()
-{
- QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_ARC")));
- QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
-
- setCaption(tr("GEOM_ARC_TITLE"));
-
- /***************************************************************/
- GroupConstructors->setTitle(tr("GEOM_ARC"));
- RadioButton1->setPixmap(image0);
- RadioButton2->close(TRUE);
- RadioButton3->close(TRUE);
-
- Group3Pnts = new DlgRef_3Sel_QTD(this, "Group3Pnts");
- Group3Pnts->GroupBox1->setTitle(tr("GEOM_POINTS"));
- Group3Pnts->TextLabel1->setText(tr("GEOM_POINT_I").arg("1"));
- Group3Pnts->TextLabel2->setText(tr("GEOM_POINT_I").arg("2"));
- Group3Pnts->TextLabel3->setText(tr("GEOM_POINT_I").arg("3"));
-
- Group3Pnts->LineEdit1->setReadOnly( true );
- Group3Pnts->LineEdit2->setReadOnly( true );
- Group3Pnts->LineEdit3->setReadOnly( true );
-
- Group3Pnts->PushButton1->setPixmap(image1);
- Group3Pnts->PushButton2->setPixmap(image1);
- Group3Pnts->PushButton3->setPixmap(image1);
-
- Layout1->addWidget( Group3Pnts, 2, 0 );
-
- Init();
-}
-
-
-//=================================================================================
-// function : ~BasicGUI_ArcDlg()
-// purpose : Destroys the object and frees any allocated resources
-//=================================================================================
-BasicGUI_ArcDlg::~BasicGUI_ArcDlg()
-{
-}
-
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BasicGUI_ArcDlg::Init()
-{
- /* init variables */
- // myGeometryGUI->SetState( 0 );
- globalSelection( GEOM_POINT );
-
- myEditCurrentArgument = Group3Pnts->LineEdit1;
- myEditCurrentArgument->setFocus();
-
- myPoint1 = myPoint2 = myPoint3 = GEOM::GEOM_Object::_nil();
-
- /* signals and slots connections */
- connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
-
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
-
- connect(Group3Pnts->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(Group3Pnts->PushButton2, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(Group3Pnts->PushButton3, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
-
- connect(Group3Pnts->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(Group3Pnts->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(Group3Pnts->LineEdit3, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
-
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-
- initName( tr( "GEOM_ARC" ) );
-}
-
-
-//=================================================================================
-// function : ClickOnOk()
-// purpose :
-//=================================================================================
-void BasicGUI_ArcDlg::ClickOnOk()
-{
- if ( ClickOnApply() )
- ClickOnCancel();
-}
-
-//=======================================================================
-// function : ClickOnCancel()
-// purpose :
-//=======================================================================
-void BasicGUI_ArcDlg::ClickOnCancel()
-{
- GEOMBase_Skeleton::ClickOnCancel();
-}
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose :
-//=================================================================================
-bool BasicGUI_ArcDlg::ClickOnApply()
-{
- if ( !onAccept() )
- return false;
-
- initName();
-
- // reset
- myPoint1 = myPoint2 = myPoint3 = GEOM::GEOM_Object::_nil();
- Group3Pnts->LineEdit1->setText( "" );
- Group3Pnts->LineEdit2->setText( "" );
- Group3Pnts->LineEdit3->setText( "" );
- myEditCurrentArgument = Group3Pnts->LineEdit1;
-
- return true;
-}
-
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection as changed or other case
-//=================================================================================
-void BasicGUI_ArcDlg::SelectionIntoArgument()
-{
- myEditCurrentArgument->setText("");
-
- if ( IObjectCount() != 1 )
- {
- if ( myEditCurrentArgument == Group3Pnts->LineEdit1 ) myPoint1 = GEOM::GEOM_Object::_nil();
- else if ( myEditCurrentArgument == Group3Pnts->LineEdit2 ) myPoint2 = GEOM::GEOM_Object::_nil();
- else if ( myEditCurrentArgument == Group3Pnts->LineEdit3 ) myPoint3 = GEOM::GEOM_Object::_nil();
- return;
- }
-
- // nbSel == 1
- Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
- if ( !CORBA::is_nil( aSelectedObject ) && aRes )
- {
- myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
- if ( myEditCurrentArgument == Group3Pnts->LineEdit1 ) myPoint1 = aSelectedObject;
- else if ( myEditCurrentArgument == Group3Pnts->LineEdit2 ) myPoint2 = aSelectedObject;
- else if ( myEditCurrentArgument == Group3Pnts->LineEdit3 ) myPoint3 = aSelectedObject;
- }
-
- displayPreview();
-}
-
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BasicGUI_ArcDlg::SetEditCurrentArgument()
-{
- QPushButton* send = (QPushButton*)sender();
-
- if ( send == Group3Pnts->PushButton1 ) myEditCurrentArgument = Group3Pnts->LineEdit1;
- else if ( send == Group3Pnts->PushButton2 ) myEditCurrentArgument = Group3Pnts->LineEdit2;
- else if ( send == Group3Pnts->PushButton3 ) myEditCurrentArgument = Group3Pnts->LineEdit3;
-
- myEditCurrentArgument->setFocus();
- SelectionIntoArgument();
-}
-
-
-//=================================================================================
-// function : LineEditReturnPressed()
-// purpose :
-//=================================================================================
-void BasicGUI_ArcDlg::LineEditReturnPressed()
-{
- QLineEdit* send = (QLineEdit*)sender();
- if ( send == Group3Pnts->LineEdit1 ||
- send == Group3Pnts->LineEdit2 ||
- send == Group3Pnts->LineEdit3 )
- {
- myEditCurrentArgument = send;
- GEOMBase_Skeleton::LineEditReturnPressed();
- }
-}
-
-
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void BasicGUI_ArcDlg::ActivateThisDialog()
-{
- GEOMBase_Skeleton::ActivateThisDialog();
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-
- // myGeometryGUI->SetState( 0 );
- globalSelection( GEOM_POINT );
-
- myEditCurrentArgument = Group3Pnts->LineEdit1;
- myEditCurrentArgument->setFocus();
-
- Group3Pnts->LineEdit1->setText( "" );
- Group3Pnts->LineEdit2->setText( "" );
- Group3Pnts->LineEdit3->setText( "" );
- myPoint1 = myPoint2 = myPoint3 = GEOM::GEOM_Object::_nil();
-}
-
-//=================================================================================
-// function : DeactivateActiveDialog()
-// purpose : public slot to deactivate if active
-//=================================================================================
-void BasicGUI_ArcDlg::DeactivateActiveDialog()
-{
- // myGeometryGUI->SetState( -1 );
- GEOMBase_Skeleton::DeactivateActiveDialog();
-}
-
-//=================================================================================
-// function : enterEvent()
-// purpose :
-//=================================================================================
-void BasicGUI_ArcDlg::enterEvent(QEvent* e)
-{
- if ( !GroupConstructors->isEnabled() )
- ActivateThisDialog();
-}
-
-//=================================================================================
-// function : createOperation
-// purpose :
-//=================================================================================
-GEOM::GEOM_IOperations_ptr BasicGUI_ArcDlg::createOperation()
-{
- return myGeometryGUI->GetGeomGen()->GetICurvesOperations( getStudyId() );
-}
-
-//=================================================================================
-// function : isEqual
-// purpose : it may also be needed to check for min distance between gp_Pnt-s...
-//=================================================================================
-static bool isEqual( const GEOM::GEOM_Object_var& thePnt1, const GEOM::GEOM_Object_var& thePnt2 )
-{
- return thePnt1->_is_equivalent( thePnt2 );
-}
-
-//=================================================================================
-// function : isValid
-// purpose :
-//=================================================================================
-bool BasicGUI_ArcDlg::isValid( QString& msg )
-{
- return !myPoint1->_is_nil() && !myPoint2->_is_nil() && !myPoint3->_is_nil() &&
- !isEqual( myPoint1, myPoint2 ) && !isEqual( myPoint1, myPoint3 ) && !isEqual( myPoint2, myPoint3 );
-}
-
-//=================================================================================
-// function : execute
-// purpose :
-//=================================================================================
-bool BasicGUI_ArcDlg::execute( ObjectList& objects )
-{
- GEOM::GEOM_Object_var anObj = GEOM::GEOM_ICurvesOperations::_narrow( getOperation() )->MakeArc( myPoint1, myPoint2, myPoint3 );
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
- return true;
-}
-
-//=================================================================================
-// function : closeEvent
-// purpose :
-//=================================================================================
-void BasicGUI_ArcDlg::closeEvent( QCloseEvent* e )
-{
- // myGeometryGUI->SetState( -1 );
- GEOMBase_Skeleton::closeEvent( e );
-}
diff --git a/src/BasicGUI/BasicGUI_CircleDlg.cxx b/src/BasicGUI/BasicGUI_CircleDlg.cxx
deleted file mode 100644
index 503489d1b..000000000
--- a/src/BasicGUI/BasicGUI_CircleDlg.cxx
+++ /dev/null
@@ -1,435 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BasicGUI_CircleDlg.cxx
-// Author : Lucien PIGNOLONI
-// Module : GEOM
-// $Header$
-
-#include "BasicGUI_CircleDlg.h"
-
-#include "SUIT_Desktop.h"
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-
-#include
-
-#include "GEOMImpl_Types.hxx"
-
-#include "utilities.h"
-
-//=================================================================================
-// class : BasicGUI_CircleDlg()
-// purpose : Constructs a BasicGUI_CircleDlg which is a child of 'parent', with the
-// name 'name' and widget flags set to 'f'.
-// The dialog will by default be modeless, unless you set 'modal' to
-// TRUE to construct a modal dialog.
-//=================================================================================
-BasicGUI_CircleDlg::BasicGUI_CircleDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu),
- myGeometryGUI(theGeometryGUI)
-{
- QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_CIRCLE_PV")));
- QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_CIRCLE_PNTS")));
- QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
-
- setCaption(tr("GEOM_CIRCLE_TITLE"));
-
- /***************************************************************/
- GroupConstructors->setTitle(tr("GEOM_CIRCLE"));
- RadioButton1->setPixmap(image0);
- RadioButton2->setPixmap(image2);
- RadioButton3->close(TRUE);
-
- GroupPntVecR = new DlgRef_2Sel1Spin(this, "GroupPntVecR");
- GroupPntVecR->GroupBox1->setTitle(tr("GEOM_ARGUMENTS"));
-
- GroupPntVecR->TextLabel1->setText(tr("GEOM_CENTER_POINT"));
- GroupPntVecR->TextLabel2->setText(tr("GEOM_VECTOR"));
- GroupPntVecR->TextLabel3->setText(tr("GEOM_RADIUS"));
- GroupPntVecR->PushButton1->setPixmap(image1);
- GroupPntVecR->PushButton2->setPixmap(image1);
-
- GroupPntVecR->LineEdit1->setReadOnly( true );
- GroupPntVecR->LineEdit2->setReadOnly( true );
-
- Group3Pnts = new DlgRef_3Sel_QTD(this, "Group3Pnts");
- Group3Pnts->GroupBox1->setTitle(tr("GEOM_3_POINTS"));
- Group3Pnts->TextLabel1->setText(tr("GEOM_POINT1"));
- Group3Pnts->TextLabel2->setText(tr("GEOM_POINT2"));
- Group3Pnts->TextLabel3->setText(tr("GEOM_POINT3"));
- Group3Pnts->PushButton1->setPixmap(image1);
- Group3Pnts->PushButton2->setPixmap(image1);
- Group3Pnts->PushButton3->setPixmap(image1);
-
- Group3Pnts->LineEdit1->setReadOnly( true );
- Group3Pnts->LineEdit2->setReadOnly( true );
- Group3Pnts->LineEdit3->setReadOnly( true );
-
- Layout1->addWidget( GroupPntVecR, 2, 0 );
- Layout1->addWidget( Group3Pnts, 2, 0 );
- /***************************************************************/
-
- Init();
-}
-
-
-//=================================================================================
-// function : ~BasicGUI_CircleDlg()
-// purpose : Destroys the object and frees any allocated resources
-//=================================================================================
-BasicGUI_CircleDlg::~BasicGUI_CircleDlg()
-{
-}
-
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BasicGUI_CircleDlg::Init()
-{
- /* init variables */
- myEditCurrentArgument = GroupPntVecR->LineEdit1;
-
- myPoint = myDir = myPoint1 = myPoint2 = myPoint3 = GEOM::GEOM_Object::_nil();
-
- // myGeometryGUI->SetState( 0 );
-
- /* Get setting of step value from file configuration */
- SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
- double aStep = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
-
- /* min, max, step and decimals for spin boxes & initial values */
- GroupPntVecR->SpinBox_DX->RangeStepAndValidator(0.001, 999.999, aStep, 3);
- GroupPntVecR->SpinBox_DX->SetValue( 100 );
-
- /* signals and slots connections */
- connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
-
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
- connect(GroupConstructors, SIGNAL(clicked(int)), this, SLOT(ConstructorsClicked(int)));
-
- connect(GroupPntVecR->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(GroupPntVecR->PushButton2, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(Group3Pnts->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(Group3Pnts->PushButton2, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(Group3Pnts->PushButton3, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
-
- connect(GroupPntVecR->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(GroupPntVecR->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
-
- connect(GroupPntVecR->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox()));
- connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPntVecR->SpinBox_DX, SLOT(SetStep(double)));
-
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-
- initName( tr( "GEOM_CIRCLE" ) );
-
- Group3Pnts->hide();
- ConstructorsClicked( 0 );
-}
-
-//=================================================================================
-// function : ConstructorsClicked()
-// purpose : Radio button management
-//=================================================================================
-void BasicGUI_CircleDlg::ConstructorsClicked( int constructorId )
-{
- disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0 );
- myPoint = myDir = myPoint1 = myPoint2 = myPoint3 = GEOM::GEOM_Object::_nil();
-
- switch ( constructorId )
- {
- case 0:
- {
- Group3Pnts->hide();
- resize(0, 0);
- GroupPntVecR->show();
-
- myEditCurrentArgument = GroupPntVecR->LineEdit1;
- GroupPntVecR->LineEdit1->setText("");
- GroupPntVecR->LineEdit2->setText("");
- break;
- }
- case 1:
- {
- GroupPntVecR->hide();
- resize( 0, 0 );
- Group3Pnts->show();
-
- myEditCurrentArgument = Group3Pnts->LineEdit1;
- Group3Pnts->LineEdit1->setText("");
- Group3Pnts->LineEdit2->setText("");
- Group3Pnts->LineEdit3->setText("");
- break;
- }
- }
-
- myEditCurrentArgument->setFocus();
- globalSelection( GEOM_POINT );
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-}
-
-//=================================================================================
-// function : ClickOnOk()
-// purpose :
-//=================================================================================
-void BasicGUI_CircleDlg::ClickOnOk()
-{
- if ( ClickOnApply() )
- ClickOnCancel();
-}
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose :
-//=================================================================================
-bool BasicGUI_CircleDlg::ClickOnApply()
-{
- if ( !onAccept() )
- return false;
-
- initName();
- ConstructorsClicked( getConstructorId() );
- return true;
-}
-
-//=======================================================================
-// function : ClickOnCancel()
-// purpose :
-//=======================================================================
-void BasicGUI_CircleDlg::ClickOnCancel()
-{
- GEOMBase_Skeleton::ClickOnCancel();
-}
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection as changed or other case
-//=================================================================================
-void BasicGUI_CircleDlg::SelectionIntoArgument()
-{
- myEditCurrentArgument->setText("");
-
- if ( IObjectCount() != 1 )
- {
- if ( myEditCurrentArgument == GroupPntVecR->LineEdit1 ) myPoint = GEOM::GEOM_Object::_nil();
- else if ( myEditCurrentArgument == GroupPntVecR->LineEdit2 ) myDir = GEOM::GEOM_Object::_nil();
- else if ( myEditCurrentArgument == Group3Pnts->LineEdit1 ) myPoint1 = GEOM::GEOM_Object::_nil();
- else if ( myEditCurrentArgument == Group3Pnts->LineEdit2 ) myPoint2 = GEOM::GEOM_Object::_nil();
- else if ( myEditCurrentArgument == Group3Pnts->LineEdit3 ) myPoint3 = GEOM::GEOM_Object::_nil();
- return;
- }
-
- // nbSel == 1
- Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
- if ( !CORBA::is_nil( aSelectedObject ) && aRes )
- {
- myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
- if ( myEditCurrentArgument == GroupPntVecR->LineEdit1 ) myPoint = aSelectedObject;
- else if ( myEditCurrentArgument == GroupPntVecR->LineEdit2 ) myDir = aSelectedObject;
- else if ( myEditCurrentArgument == Group3Pnts->LineEdit1 ) myPoint1 = aSelectedObject;
- else if ( myEditCurrentArgument == Group3Pnts->LineEdit2 ) myPoint2 = aSelectedObject;
- else if ( myEditCurrentArgument == Group3Pnts->LineEdit3 ) myPoint3 = aSelectedObject;
- }
-
- displayPreview();
-}
-
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BasicGUI_CircleDlg::SetEditCurrentArgument()
-{
- QPushButton* send = (QPushButton*)sender();
-
- if ( send == GroupPntVecR->PushButton1 ) myEditCurrentArgument = GroupPntVecR->LineEdit1;
- else if ( send == GroupPntVecR->PushButton2 ) myEditCurrentArgument = GroupPntVecR->LineEdit2;
- else if ( send == Group3Pnts->PushButton1 ) myEditCurrentArgument = Group3Pnts->LineEdit1;
- else if ( send == Group3Pnts->PushButton2 ) myEditCurrentArgument = Group3Pnts->LineEdit2;
- else if ( send == Group3Pnts->PushButton3 ) myEditCurrentArgument = Group3Pnts->LineEdit3;
-
- myEditCurrentArgument->setFocus();
-
- if ( myEditCurrentArgument == GroupPntVecR->LineEdit2 )
- globalSelection( GEOM_LINE );
- else
- globalSelection( GEOM_POINT );
- SelectionIntoArgument();
-}
-
-//=================================================================================
-// function : LineEditReturnPressed()
-// purpose :
-//=================================================================================
-void BasicGUI_CircleDlg::LineEditReturnPressed()
-{
- QLineEdit* send = (QLineEdit*)sender();
- if ( send == GroupPntVecR->LineEdit1 ||
- send == GroupPntVecR->LineEdit2 ||
- send == Group3Pnts->LineEdit1 ||
- send == Group3Pnts->LineEdit2 ||
- send == Group3Pnts->LineEdit3 )
- {
- myEditCurrentArgument = send;
- GEOMBase_Skeleton::LineEditReturnPressed();
- }
-}
-
-
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void BasicGUI_CircleDlg::ActivateThisDialog()
-{
- GEOMBase_Skeleton::ActivateThisDialog();
- globalSelection( GEOM_POINT );
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-
- // myGeometryGUI->SetState( 0 );
-
- ConstructorsClicked( getConstructorId() );
-}
-
-
-//=================================================================================
-// function : enterEvent()
-// purpose :
-//=================================================================================
-void BasicGUI_CircleDlg::enterEvent(QEvent* e)
-{
- if ( !GroupConstructors->isEnabled() )
- ActivateThisDialog();
-}
-
-//=================================================================================
-// function : DeactivateActiveDialog()
-// purpose : public slot to deactivate if active
-//=================================================================================
-void BasicGUI_CircleDlg::DeactivateActiveDialog()
-{
- // myGeometryGUI->SetState( -1 );
- GEOMBase_Skeleton::DeactivateActiveDialog();
-}
-
-//=================================================================================
-// function : ValueChangedInSpinBox()
-// purpose :
-//=================================================================================
-void BasicGUI_CircleDlg::ValueChangedInSpinBox()
-{
- displayPreview();
-}
-
-//=================================================================================
-// function : getRadius()
-// purpose :
-//=================================================================================
-double BasicGUI_CircleDlg::getRadius() const
-{
- return GroupPntVecR->SpinBox_DX->GetValue();
-}
-
-//=================================================================================
-// function : createOperation
-// purpose :
-//=================================================================================
-GEOM::GEOM_IOperations_ptr BasicGUI_CircleDlg::createOperation()
-{
- return myGeometryGUI->GetGeomGen()->GetICurvesOperations( getStudyId() );
-}
-
-//=================================================================================
-// function : isEqual
-// purpose : it may also be needed to check for min distance between gp_Pnt-s...
-//=================================================================================
-static bool isEqual( const GEOM::GEOM_Object_var& thePnt1, const GEOM::GEOM_Object_var& thePnt2 )
-{
- return thePnt1->_is_equivalent( thePnt2 );
-}
-
-//=================================================================================
-// function : isValid
-// purpose :
-//=================================================================================
-bool BasicGUI_CircleDlg::isValid( QString& msg )
-{
- const int id = getConstructorId();
- if ( id == 0 )
- return !myPoint->_is_nil() && !myDir->_is_nil() && getRadius() > 0;
- else if ( id == 1 )
- return !myPoint1->_is_nil() && !myPoint2->_is_nil() && !myPoint3->_is_nil() &&
- !isEqual( myPoint1, myPoint2 ) && !isEqual( myPoint1, myPoint3 ) && !isEqual( myPoint2, myPoint3 );
- return false;
-}
-
-//=================================================================================
-// function : execute
-// purpose :
-//=================================================================================
-bool BasicGUI_CircleDlg::execute( ObjectList& objects )
-{
- bool res = false;
-
- GEOM::GEOM_Object_var anObj;
-
- switch ( getConstructorId() )
- {
- case 0 :
- anObj = GEOM::GEOM_ICurvesOperations::_narrow( getOperation() )->MakeCirclePntVecR( myPoint, myDir, getRadius() );
- res = true;
- break;
- case 1 :
- anObj = GEOM::GEOM_ICurvesOperations::_narrow( getOperation() )->MakeCircleThreePnt( myPoint1, myPoint2, myPoint3 );
- res = true;
- break;
- }
-
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
-
- return res;
-}
-
-//=================================================================================
-// function : closeEvent
-// purpose :
-//=================================================================================
-void BasicGUI_CircleDlg::closeEvent( QCloseEvent* e )
-{
- // myGeometryGUI->SetState( -1 );
- GEOMBase_Skeleton::closeEvent( e );
-}
-
diff --git a/src/BasicGUI/BasicGUI_CurveDlg.cxx b/src/BasicGUI/BasicGUI_CurveDlg.cxx
deleted file mode 100644
index 598c5f47b..000000000
--- a/src/BasicGUI/BasicGUI_CurveDlg.cxx
+++ /dev/null
@@ -1,393 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 OPEN CASCADE
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BasicGUI_CurveDlg.cxx
-// Author : Nicolas REJNERI
-// Module : GEOM
-// $Header$
-
-#include "BasicGUI_CurveDlg.h"
-
-#include "SUIT_Desktop.h"
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-
-#include
-
-#include "utilities.h"
-
-#include "SALOME_ListIteratorOfListIO.hxx"
-#include "SALOME_ListIO.hxx"
-
-#include "GEOMImpl_Types.hxx"
-
-using namespace std;
-#include
-
-//=================================================================================
-// class : BasicGUI_CurveDlg()
-// purpose : Constructs a BasicGUI_CurveDlg which is a child of 'parent', with the
-// name 'name' and widget flags set to 'f'.
-// The dialog will by default be modeless, unless you set 'modal' to
-// TRUE to construct a modal dialog.
-//=================================================================================
-BasicGUI_CurveDlg::BasicGUI_CurveDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu),
- myGeometryGUI(theGeometryGUI)
-{
- QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_POLYLINE")));
- QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_SPLINE")));
- QPixmap image3(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BEZIER")));
-
- QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
-
- setCaption(tr("GEOM_CURVE_TITLE"));
-
- /***************************************************************/
- RadioButton1->setPixmap( image0 );
- RadioButton2->setPixmap( image3 );
- RadioButton3->setPixmap( image2 );
-
- GroupPoints = new DlgRef_1Sel_QTD( this, "GroupPoints" );
- GroupPoints->GroupBox1->setTitle( tr( "GEOM_NODES" ) );
- GroupPoints->TextLabel1->setText( tr("GEOM_POINTS") );
- GroupPoints->PushButton1->setPixmap(image1);
-
- GroupPoints->LineEdit1->setReadOnly( true );
-
- Layout1->addWidget(GroupPoints, 2, 0);
- /***************************************************************/
-
- Init();
-}
-
-
-//=================================================================================
-// function : ~BasicGUI_CurveDlg()
-// purpose : Destroys the object and frees any allocated resources
-//=================================================================================
-BasicGUI_CurveDlg::~BasicGUI_CurveDlg()
-{
-}
-
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BasicGUI_CurveDlg::Init()
-{
- /* init variables */
- myEditCurrentArgument = GroupPoints->LineEdit1;
-
- myPoints = new GEOM::ListOfGO();
- myPoints->length( 0 );
-
- globalSelection( GEOM_POINT );
-
- /* signals and slots connections */
- connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
-
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
- connect(GroupConstructors, SIGNAL(clicked(int)), this, SLOT(ConstructorsClicked(int)));
-
- connect(GroupPoints->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(GroupPoints->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
-
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-
- initName( tr( "GEOM_CURVE" ) );
- ConstructorsClicked( 0 );
-}
-
-//=================================================================================
-// function : ConstructorsClicked()
-// purpose :
-//=================================================================================
-void BasicGUI_CurveDlg::ConstructorsClicked( int id )
-{
- QString aTitle = tr( id == 0 ? "GEOM_POLYLINE" : id == 1 ? "GEOM_BEZIER" : "GEOM_INTERPOL" );
- GroupConstructors->setTitle( aTitle );
-
- myPoints = new GEOM::ListOfGO();
- myPoints->length( 0 );
-
- myEditCurrentArgument->setText("");
-}
-
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BasicGUI_CurveDlg::SetEditCurrentArgument()
-{
- if ( sender() == GroupPoints->PushButton1 )
- myEditCurrentArgument = GroupPoints->LineEdit1;
- myEditCurrentArgument->setFocus();
- SelectionIntoArgument();
-}
-
-
-//=================================================================================
-// function : LineEditReturnPressed()
-// purpose :
-//=================================================================================
-void BasicGUI_CurveDlg::LineEditReturnPressed()
-{
- if ( sender() == GroupPoints->LineEdit1 )
- {
- myEditCurrentArgument = GroupPoints->LineEdit1;
- GEOMBase_Skeleton::LineEditReturnPressed();
- }
-}
-
-//=================================================================================
-// function : ClickOnOk()
-// purpose :
-//=================================================================================
-void BasicGUI_CurveDlg::ClickOnOk()
-{
- if ( ClickOnApply() )
- ClickOnCancel();
-}
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose :
-//=================================================================================
-bool BasicGUI_CurveDlg::ClickOnApply()
-{
- if ( !onAccept() )
- return false;
-
- initName();
- ConstructorsClicked( getConstructorId() );
- return true;
-}
-
-//=======================================================================
-// function : ClickOnCancel()
-// purpose :
-//=======================================================================
-void BasicGUI_CurveDlg::ClickOnCancel()
-{
- GEOMBase_Skeleton::ClickOnCancel();
-}
-
-//=================================================================================
-/*! function : isPointInList()
- * purpose : Check is point (theObject) in the list \a thePoints.
- * \author enk
- * \retval -1, if point not in list, else 1 in list
- */
-//=================================================================================
-static int isPointInList(list& thePoints,
- GEOM::GEOM_Object_var& theObject)
-{
- int len = thePoints.size();
-
- if(len<1){
- return -1;
- }
-
- for(list::iterator i=thePoints.begin();i!=thePoints.end();i++)
- if (string((*i)->GetEntry()) == string(theObject->GetEntry())){
- return 1;
- }
-
- return -1;
-}
-//=================================================================================
-/*! function : removeUnnecessaryPnt()
- * purpose : Remove unnecessary point from list \a theOldPoints
- * \author enk
- * \li \a theOldPoints - ordered sequence with unnecessary point
- * \li \a theNewPoints - not ordered sequence with necessary points
- */
-//=================================================================================
-static void removeUnnecessaryPnt(list& theOldPoints,
- GEOM::ListOfGO_var& theNewPoints)
-{
- for(list::iterator i=theOldPoints.begin();i!=theOldPoints.end();i++){
- bool found = false;
- for (int j=0;jlength() && !found ; j++){
- if(string((*i)->GetEntry()) == string(theNewPoints[j]->GetEntry())){
- found = true;
- }
- }
- if(!found){
- theOldPoints.remove(*i);
- return;
- }
- }
-}
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection as changed or other case
-//=================================================================================
-void BasicGUI_CurveDlg::SelectionIntoArgument()
-{
- myEditCurrentArgument->setText("");
-
- Standard_Boolean aRes = Standard_False;
- int i = 0;
- int IOC = IObjectCount();
- bool is_append = myPoints->length() < IOC; // if true - add point, else remove
- myPoints->length( IOC ); // this length may be greater than number of objects,
- // that will actually be put into myPoints
- for ( SALOME_ListIteratorOfListIO anIt( selectedIO() ); anIt.More(); anIt.Next() )
- {
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( anIt.Value(), aRes );
- if ( !CORBA::is_nil( aSelectedObject ) && aRes )
- {
- //TopoDS_Shape aPointShape;
- //if ( myGeomBase->GetShape( aSelectedObject, aPointShape, TopAbs_VERTEX ) )
- int pos = isPointInList(myOrderedSel,aSelectedObject);
- if(is_append && pos==-1)
- myOrderedSel.push_back(aSelectedObject);
- myPoints[i++] = aSelectedObject;
- }
- }
-
- myPoints->length( i ); // this is the right length, smaller of equal to the previously set
- if(IOC == 0)
- myOrderedSel.clear();
- else
- removeUnnecessaryPnt(myOrderedSel,myPoints);
-
- if(myOrderedSel.size() == myPoints->length()){
- int k=0;
- for (list::iterator j=myOrderedSel.begin();j!=myOrderedSel.end();j++)
- myPoints[k++] = *j;
- } else {
- cout << "ERROR: Ordered sequence size != selection sequence size! ("<length()<<")"<LineEdit1->setText( QString::number( i ) + "_" + tr( "GEOM_POINT" ) + tr( "_S_" ) );
-
- displayPreview();
-}
-
-
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void BasicGUI_CurveDlg::ActivateThisDialog()
-{
- GEOMBase_Skeleton::ActivateThisDialog();
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-
- // myGeometryGUI->SetState( 0 );
-
- globalSelection( GEOM_POINT );
- ConstructorsClicked( getConstructorId() );
-}
-
-//=================================================================================
-// function : DeactivateActiveDialog()
-// purpose : public slot to deactivate if active
-//=================================================================================
-void BasicGUI_CurveDlg::DeactivateActiveDialog()
-{
- // myGeometryGUI->SetState( -1 );
- GEOMBase_Skeleton::DeactivateActiveDialog();
-}
-
-//=================================================================================
-// function : enterEvent()
-// purpose :
-//=================================================================================
-void BasicGUI_CurveDlg::enterEvent(QEvent* e)
-{
- if ( !GroupConstructors->isEnabled() )
- ActivateThisDialog();
-}
-
-//=================================================================================
-// function : createOperation
-// purpose :
-//=================================================================================
-GEOM::GEOM_IOperations_ptr BasicGUI_CurveDlg::createOperation()
-{
- return myGeometryGUI->GetGeomGen()->GetICurvesOperations( getStudyId() );
-}
-
-//=================================================================================
-// function : isValid
-// purpose :
-//=================================================================================
-bool BasicGUI_CurveDlg::isValid( QString& msg )
-{
- return myPoints->length() > 1;
-}
-
-//=================================================================================
-// function : execute
-// purpose :
-//=================================================================================
-bool BasicGUI_CurveDlg::execute( ObjectList& objects )
-{
- bool res = false;
-
- GEOM::GEOM_Object_var anObj;
-
- switch ( getConstructorId() )
- {
- case 0 :
- anObj = GEOM::GEOM_ICurvesOperations::_narrow( getOperation() )->MakePolyline( myPoints );
- res = true;
- break;
- case 1 :
- anObj = GEOM::GEOM_ICurvesOperations::_narrow( getOperation() )->MakeSplineBezier( myPoints );
- res = true;
- break;
- case 2 :
- anObj = GEOM::GEOM_ICurvesOperations::_narrow( getOperation() )->MakeSplineInterpolation( myPoints );
- res = true;
- break;
- }
-
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
-
- return res;
-}
-
-//=================================================================================
-// function : closeEvent
-// purpose :
-//=================================================================================
-void BasicGUI_CurveDlg::closeEvent( QCloseEvent* e )
-{
- // myGeometryGUI->SetState( -1 );
- GEOMBase_Skeleton::closeEvent( e );
-}
-
diff --git a/src/BasicGUI/BasicGUI_EllipseDlg.cxx b/src/BasicGUI/BasicGUI_EllipseDlg.cxx
deleted file mode 100644
index 85cf7a7e1..000000000
--- a/src/BasicGUI/BasicGUI_EllipseDlg.cxx
+++ /dev/null
@@ -1,348 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 OPEN CASCADE
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BasicGUI_EllipseDlg.cxx
-// Author : Nicolas REJNERI
-// Module : GEOM
-// $Header$
-
-#include "BasicGUI_EllipseDlg.h"
-
-#include "SUIT_Desktop.h"
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-
-#include
-
-#include "GEOMImpl_Types.hxx"
-
-#include "utilities.h"
-
-using namespace std;
-
-//=================================================================================
-// class : BasicGUI_EllipseDlg()
-// purpose : Constructs a BasicGUI_EllipseDlg which is a child of 'parent', with the
-// name 'name' and widget flags set to 'f'.
-// The dialog will by default be modeless, unless you set 'modal' to
-// TRUE to construct a modal dialog.
-//=================================================================================
-BasicGUI_EllipseDlg::BasicGUI_EllipseDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
-{
- QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_ELLIPSE_PV")));
- QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
-
- setCaption(tr("GEOM_ELLIPSE_TITLE"));
-
- /***************************************************************/
- GroupConstructors->setTitle(tr("GEOM_ELLIPSE"));
- RadioButton1->setPixmap(image0);
- RadioButton2->close(TRUE);
- RadioButton3->close(TRUE);
-
- GroupPoints = new DlgRef_2Sel2Spin(this, "GroupPoints");
- GroupPoints->GroupBox1->setTitle(tr("GEOM_ARGUMENTS"));
- GroupPoints->TextLabel1->setText(tr("GEOM_CENTER"));
- GroupPoints->TextLabel2->setText(tr("GEOM_VECTOR"));
- GroupPoints->TextLabel3->setText(tr("GEOM_RADIUS_MAJOR"));
- GroupPoints->TextLabel4->setText(tr("GEOM_RADIUS_MINOR"));
- GroupPoints->PushButton1->setPixmap(image1);
- GroupPoints->PushButton2->setPixmap(image1);
-
- GroupPoints->LineEdit1->setReadOnly( true );
- GroupPoints->LineEdit2->setReadOnly( true );
-
- Layout1->addWidget(GroupPoints, 2, 0);
- /***************************************************************/
-
- Init();
-}
-
-
-//=================================================================================
-// function : ~BasicGUI_EllipseDlg()
-// purpose : Destroys the object and frees any allocated resources
-//=================================================================================
-BasicGUI_EllipseDlg::~BasicGUI_EllipseDlg()
-{
-}
-
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BasicGUI_EllipseDlg::Init()
-{
- /* init variables */
- myEditCurrentArgument = GroupPoints->LineEdit1;
- globalSelection( GEOM_POINT );
-
- myPoint = myDir = GEOM::GEOM_Object::_nil();
-
- // myGeometryGUI->SetState( 0 );
-
- /* Get setting of step value from file configuration */
- SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
- double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
-
- double aMajorR( 200. ), aMinorR( 100. );
-
- /* min, max, step and decimals for spin boxes & initial values */
- GroupPoints->SpinBox_DX->RangeStepAndValidator( 0.001, 999.999, step, 3 );
- GroupPoints->SpinBox_DY->RangeStepAndValidator( 0.001, 999.999, step, 3 );
- GroupPoints->SpinBox_DX->SetValue( aMajorR );
- GroupPoints->SpinBox_DY->SetValue( aMinorR );
-
- /* signals and slots connections */
- connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
-
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
-
- connect(GroupPoints->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(GroupPoints->PushButton2, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
-
- connect(GroupPoints->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(GroupPoints->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
-
- connect(GroupPoints->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(GroupPoints->SpinBox_DY, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
-
- connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPoints->SpinBox_DY, SLOT(SetStep(double)));
-
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-
- initName( tr( "GEOM_ELLIPSE" ) );
-}
-
-
-//=================================================================================
-// function : ClickOnOk()
-// purpose :
-//=================================================================================
-void BasicGUI_EllipseDlg::ClickOnOk()
-{
- if ( ClickOnApply() )
- ClickOnCancel();
-}
-
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose :
-//=================================================================================
-bool BasicGUI_EllipseDlg::ClickOnApply()
-{
- if ( !onAccept() )
- return false;
-
- initName();
-
- // reset
- myPoint = myDir = GEOM::GEOM_Object::_nil();
- GroupPoints->LineEdit1->setText( "" );
- GroupPoints->LineEdit2->setText( "" );
- myEditCurrentArgument = GroupPoints->LineEdit1;
- globalSelection( GEOM_POINT );
-
- return true;
-}
-
-//=======================================================================
-// function : ClickOnCancel()
-// purpose :
-//=======================================================================
-void BasicGUI_EllipseDlg::ClickOnCancel()
-{
- GEOMBase_Skeleton::ClickOnCancel();
-}
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection as changed or other case
-//=================================================================================
-void BasicGUI_EllipseDlg::SelectionIntoArgument()
-{
- myEditCurrentArgument->setText("");
-
- if ( IObjectCount() != 1 )
- {
- if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) myPoint = GEOM::GEOM_Object::_nil();
- else if ( myEditCurrentArgument == GroupPoints->LineEdit2 ) myDir = GEOM::GEOM_Object::_nil();
- return;
- }
-
- Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
- if ( !CORBA::is_nil( aSelectedObject ) && aRes )
- {
- myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
- if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) myPoint = aSelectedObject;
- else if ( myEditCurrentArgument == GroupPoints->LineEdit2 ) myDir = aSelectedObject;
- }
-
- displayPreview();
-}
-
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BasicGUI_EllipseDlg::SetEditCurrentArgument()
-{
- QPushButton* send = (QPushButton*)sender();
-
- if ( send == GroupPoints->PushButton1 ) myEditCurrentArgument = GroupPoints->LineEdit1;
- else if ( send == GroupPoints->PushButton2 ) myEditCurrentArgument = GroupPoints->LineEdit2;
-
- myEditCurrentArgument->setFocus();
- if ( myEditCurrentArgument == GroupPoints->LineEdit2 )
- globalSelection( GEOM_LINE );
- else
- globalSelection( GEOM_POINT );
- SelectionIntoArgument();
-}
-
-//=================================================================================
-// function : LineEditReturnPressed()
-// purpose :
-//=================================================================================
-void BasicGUI_EllipseDlg::LineEditReturnPressed()
-{
- QLineEdit* send = (QLineEdit*)sender();
- if ( send == GroupPoints->LineEdit1 ||
- send == GroupPoints->LineEdit2 )
- {
- myEditCurrentArgument = send;
- GEOMBase_Skeleton::LineEditReturnPressed();
- }
-}
-
-
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void BasicGUI_EllipseDlg::ActivateThisDialog()
-{
- GEOMBase_Skeleton::ActivateThisDialog();
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-
- GroupPoints->LineEdit1->setFocus();
- myEditCurrentArgument = GroupPoints->LineEdit1;
-
- GroupPoints->LineEdit1->setText( "" );
- GroupPoints->LineEdit2->setText( "" );
-
- myPoint = myDir = GEOM::GEOM_Object::_nil();
- globalSelection( GEOM_POINT );
-}
-
-//=================================================================================
-// function : DeactivateActiveDialog()
-// purpose : public slot to deactivate if active
-//=================================================================================
-void BasicGUI_EllipseDlg::DeactivateActiveDialog()
-{
- // myGeometryGUI->SetState( -1 );
- GEOMBase_Skeleton::DeactivateActiveDialog();
-}
-
-//=================================================================================
-// function : enterEvent()
-// purpose :
-//=================================================================================
-void BasicGUI_EllipseDlg::enterEvent(QEvent* e)
-{
- if ( !GroupConstructors->isEnabled() )
- ActivateThisDialog();
-}
-
-//=================================================================================
-// function : ValueChangedInSpinBox()
-// purpose :
-//=================================================================================
-void BasicGUI_EllipseDlg::ValueChangedInSpinBox(double newValue)
-{
- displayPreview();
-}
-
-//=================================================================================
-// function : createOperation
-// purpose :
-//=================================================================================
-GEOM::GEOM_IOperations_ptr BasicGUI_EllipseDlg::createOperation()
-{
- return myGeometryGUI->GetGeomGen()->GetICurvesOperations( getStudyId() );
-}
-
-//=================================================================================
-// function : isValid
-// purpose :
-//=================================================================================
-bool BasicGUI_EllipseDlg::isValid( QString& msg )
-{
- double aMajorR = GroupPoints->SpinBox_DX->GetValue();
- double aMinorR = GroupPoints->SpinBox_DY->GetValue();
- if ( aMajorR < aMinorR )
- {
- msg = tr( "GEOM_ELLIPSE_ERROR_1" );
- return false;
- }
- return !myPoint->_is_nil() && !myDir->_is_nil();
-}
-
-//=================================================================================
-// function : execute
-// purpose :
-//=================================================================================
-bool BasicGUI_EllipseDlg::execute( ObjectList& objects )
-{
- double aMajorR = GroupPoints->SpinBox_DX->GetValue();
- double aMinorR = GroupPoints->SpinBox_DY->GetValue();
- GEOM::GEOM_Object_var anObj = GEOM::GEOM_ICurvesOperations::_narrow( getOperation() )->MakeEllipse( myPoint, myDir, aMajorR, aMinorR );
-
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
-
- return true;
-}
-
-//=================================================================================
-// function : closeEvent
-// purpose :
-//=================================================================================
-void BasicGUI_EllipseDlg::closeEvent( QCloseEvent* e )
-{
- // myGeometryGUI->SetState( -1 );
- GEOMBase_Skeleton::closeEvent( e );
-}
-
diff --git a/src/BasicGUI/BasicGUI_LineDlg.cxx b/src/BasicGUI/BasicGUI_LineDlg.cxx
deleted file mode 100644
index 308f66146..000000000
--- a/src/BasicGUI/BasicGUI_LineDlg.cxx
+++ /dev/null
@@ -1,296 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BasicGUI_LineDlg.cxx
-// Author : Lucien PIGNOLONI
-// Module : GEOM
-// $Header$
-
-#include "BasicGUI_LineDlg.h"
-
-#include "SUIT_Desktop.h"
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-
-#include
-
-#include "GEOMImpl_Types.hxx"
-
-#include "utilities.h"
-
-using namespace std;
-
-//=================================================================================
-// class : BasicGUI_LineDlg()
-// purpose : Constructs a BasicGUI_LineDlg which is a child of 'parent', with the
-// name 'name' and widget flags set to 'f'.
-// The dialog will by default be modeless, unless you set 'modal' to
-// TRUE to construct a modal dialog.
-//=================================================================================
-BasicGUI_LineDlg::BasicGUI_LineDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
-{
- QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM",tr("ICON_DLG_LINE_2P")));
- QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM",tr("ICON_SELECT")));
-
- setCaption(tr("GEOM_LINE_TITLE"));
-
- /***************************************************************/
- GroupConstructors->setTitle(tr("GEOM_LINE"));
- RadioButton1->setPixmap(image0);
- RadioButton2->close(TRUE);
- RadioButton3->close(TRUE);
-
- GroupPoints = new DlgRef_2Sel_QTD(this, "GroupPoints");
- GroupPoints->GroupBox1->setTitle(tr("GEOM_POINTS"));
- GroupPoints->TextLabel1->setText(tr("GEOM_POINT_I").arg("1"));
- GroupPoints->TextLabel2->setText(tr("GEOM_POINT_I").arg("2"));
- GroupPoints->PushButton1->setPixmap(image1);
- GroupPoints->PushButton2->setPixmap(image1);
-
- GroupPoints->LineEdit1->setReadOnly( true );
- GroupPoints->LineEdit2->setReadOnly( true );
-
- Layout1->addWidget(GroupPoints, 2, 0);
- /***************************************************************/
-
- Init();
-}
-
-
-//=================================================================================
-// function : ~BasicGUI_LineDlg()
-// purpose : Destroys the object and frees any allocated resources
-//=================================================================================
-BasicGUI_LineDlg::~BasicGUI_LineDlg()
-{
-}
-
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BasicGUI_LineDlg::Init()
-{
- /* init variables */
- myEditCurrentArgument = GroupPoints->LineEdit1;
-
- myPoint1 = myPoint2 = GEOM::GEOM_Object::_nil();
-
- // myGeometryGUI->SetState( 0 );
- globalSelection( GEOM_POINT );
-
- /* signals and slots connections */
- connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
-
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
-
- connect(GroupPoints->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(GroupPoints->PushButton2, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
-
- connect(GroupPoints->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(GroupPoints->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
-
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-
- initName( tr("GEOM_LINE") );
-}
-
-
-//=================================================================================
-// function : ClickOnOk()
-// purpose :
-//=================================================================================
-void BasicGUI_LineDlg::ClickOnOk()
-{
- if ( ClickOnApply() )
- ClickOnCancel();
-}
-
-//=======================================================================
-// function : ClickOnCancel()
-// purpose :
-//=======================================================================
-void BasicGUI_LineDlg::ClickOnCancel()
-{
- GEOMBase_Skeleton::ClickOnCancel();
-}
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose :
-//=================================================================================
-bool BasicGUI_LineDlg::ClickOnApply()
-{
- if ( !onAccept() )
- return false;
-
- initName();
- return true;
-}
-
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection as changed or other case
-//=================================================================================
-void BasicGUI_LineDlg::SelectionIntoArgument()
-{
- myEditCurrentArgument->setText("");
-
- if ( IObjectCount() != 1 )
- {
- if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) myPoint1 = GEOM::GEOM_Object::_nil();
- else if ( myEditCurrentArgument == GroupPoints->LineEdit2 ) myPoint2 = GEOM::GEOM_Object::_nil();
- return;
- }
-
- // nbSel == 1
- Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
- if ( !CORBA::is_nil( aSelectedObject ) && aRes )
- {
- myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
- if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) myPoint1 = aSelectedObject;
- else if ( myEditCurrentArgument == GroupPoints->LineEdit2 ) myPoint2 = aSelectedObject;
- }
-
- displayPreview();
-}
-
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BasicGUI_LineDlg::SetEditCurrentArgument()
-{
- QPushButton* send = (QPushButton*)sender();
- if ( send == GroupPoints->PushButton1 ) myEditCurrentArgument = GroupPoints->LineEdit1;
- else if ( send == GroupPoints->PushButton2 ) myEditCurrentArgument = GroupPoints->LineEdit2;
- myEditCurrentArgument->setFocus();
- SelectionIntoArgument();
-}
-
-
-//=================================================================================
-// function : LineEditReturnPressed()
-// purpose :
-//=================================================================================
-void BasicGUI_LineDlg::LineEditReturnPressed()
-{
- QLineEdit* send = (QLineEdit*)sender();
- if ( send == GroupPoints->LineEdit1 ) myEditCurrentArgument = GroupPoints->LineEdit1;
- else if ( send == GroupPoints->LineEdit2 ) myEditCurrentArgument = GroupPoints->LineEdit2;
- else return;
- GEOMBase_Skeleton::LineEditReturnPressed();
-}
-
-
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void BasicGUI_LineDlg::ActivateThisDialog()
-{
- GEOMBase_Skeleton::ActivateThisDialog();
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-
- // myGeometryGUI->SetState( 0 );
- globalSelection( GEOM_POINT );
-
- myEditCurrentArgument = GroupPoints->LineEdit1;
- myEditCurrentArgument->setFocus();
-
- GroupPoints->LineEdit1->setText( "" );
- GroupPoints->LineEdit2->setText( "" );
- myPoint1 = myPoint2 = GEOM::GEOM_Object::_nil();
-}
-
-//=================================================================================
-// function : DeactivateActiveDialog()
-// purpose : public slot to deactivate if active
-//=================================================================================
-void BasicGUI_LineDlg::DeactivateActiveDialog()
-{
- // myGeometryGUI->SetState( -1 );
- GEOMBase_Skeleton::DeactivateActiveDialog();
-}
-
-//=================================================================================
-// function : enterEvent()
-// purpose :
-//=================================================================================
-void BasicGUI_LineDlg::enterEvent(QEvent* e)
-{
- if ( !GroupConstructors->isEnabled() )
- ActivateThisDialog();
-}
-
-//=================================================================================
-// function : createOperation
-// purpose :
-//=================================================================================
-GEOM::GEOM_IOperations_ptr BasicGUI_LineDlg::createOperation()
-{
- return myGeometryGUI->GetGeomGen()->GetIBasicOperations( getStudyId() );
-}
-
-//=================================================================================
-// function : isValid
-// purpose :
-//=================================================================================
-bool BasicGUI_LineDlg::isValid( QString& msg )
-{
- return !myPoint1->_is_nil() && !myPoint2->_is_nil();
-}
-
-//=================================================================================
-// function : execute
-// purpose :
-//=================================================================================
-bool BasicGUI_LineDlg::execute( ObjectList& objects )
-{
- GEOM::GEOM_Object_var anObj = GEOM::GEOM_IBasicOperations::_narrow( getOperation() )->MakeLineTwoPnt( myPoint1, myPoint2 );
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
- return true;
-}
-
-//=================================================================================
-// function : closeEvent
-// purpose :
-//=================================================================================
-void BasicGUI_LineDlg::closeEvent( QCloseEvent* e )
-{
- // myGeometryGUI->SetState( -1 );
- GEOMBase_Skeleton::closeEvent( e );
-}
-
diff --git a/src/BasicGUI/BasicGUI_MarkerDlg.cxx b/src/BasicGUI/BasicGUI_MarkerDlg.cxx
deleted file mode 100644
index a276a0655..000000000
--- a/src/BasicGUI/BasicGUI_MarkerDlg.cxx
+++ /dev/null
@@ -1,748 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BasicGUI_MarkerDlg.cxx
-// Author : Sergey LITONIN
-// Module : GEOM
-// $Header$
-
-#include "BasicGUI_MarkerDlg.h"
-#include "DlgRef_SpinBox.h"
-
-#include "SUIT_Desktop.h"
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-
-#include
-
-#include "GEOMImpl_Types.hxx"
-#include "utilities.h"
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-//=================================================================================
-// class : BasicGUI_MarkerDlg()
-// purpose : Constructor
-//=================================================================================
-BasicGUI_MarkerDlg::BasicGUI_MarkerDlg( GeometryGUI* theGeometryGUI, QWidget* theParent )
-: GEOMBase_Skeleton( theParent, "BasicGUI_MarkerDlg", false,
- WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
-{
- QPixmap iconCS1 ( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_MARKER" ) ) );
- QPixmap iconCS2 ( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_MARKER2" ) ) );
- QPixmap iconCS3 ( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_MARKER3" ) ) );
- QPixmap iconSelect( SUIT_Session::session()->resourceMgr()->loadPixmap( "GEOM", tr( "ICON_SELECT" ) ) );
-
- setCaption( tr( "CAPTION" ) );
-
- GroupConstructors->setTitle( tr( "LOCALCS" ) );
- RadioButton1->setPixmap( iconCS1 );
- RadioButton2->setPixmap( iconCS2 );
- RadioButton3->setPixmap( iconCS3 );
-
- Group1 = new DlgRef_1Sel_QTD(this, "Group1");
- Group1->GroupBox1->setTitle(tr("GEOM_ARGUMENTS"));
- Group1->TextLabel1->setText(tr("GEOM_OBJECT"));
- Group1->PushButton1->setPixmap(iconSelect);
-
- Group2 = new DlgRef_3Sel_QTD(this, "Group2");
- Group2->GroupBox1->setTitle(tr("GEOM_ARGUMENTS"));
- Group2->TextLabel1->setText(tr("GEOM_POINT"));
- Group2->TextLabel2->setText(tr("XDIR"));
- Group2->TextLabel3->setText(tr("YDIR"));
- Group2->PushButton1->setPixmap(iconSelect);
- Group2->PushButton2->setPixmap(iconSelect);
- Group2->PushButton3->setPixmap(iconSelect);
-
- aMainGrp = new QGroupBox( 1, Qt::Horizontal, this );
- aMainGrp->setFrameStyle( QFrame::NoFrame );
- aMainGrp->setInsideMargin( 0 );
-
- QGroupBox* anOriGrp = new QGroupBox( 1, Qt::Vertical, tr( "ORIGIN" ), aMainGrp );
- new QLabel( tr( "GEOM_X" ), anOriGrp );
- myData[ X ] = new DlgRef_SpinBox( anOriGrp );
- new QLabel( tr( "GEOM_Y" ), anOriGrp );
- myData[ Y ] = new DlgRef_SpinBox( anOriGrp );
- new QLabel( tr( "GEOM_Z" ), anOriGrp );
- myData[ Z ] = new DlgRef_SpinBox( anOriGrp );
-
- QGroupBox* aXAxisGrp = new QGroupBox( 1, Qt::Vertical, tr( "XDIR" ), aMainGrp );
- new QLabel( tr( "DX" ), aXAxisGrp );
- myData[ DX1 ] = new DlgRef_SpinBox( aXAxisGrp );
- new QLabel( tr( "DY" ), aXAxisGrp );
- myData[ DY1 ] = new DlgRef_SpinBox( aXAxisGrp );
- new QLabel( tr( "DZ" ), aXAxisGrp );
- myData[ DZ1 ] = new DlgRef_SpinBox( aXAxisGrp );
-
- QGroupBox* anYAxisGrp = new QGroupBox( 1, Qt::Vertical, tr( "YDIR" ), aMainGrp );
- new QLabel( tr( "DX" ), anYAxisGrp );
- myData[ DX2 ] = new DlgRef_SpinBox( anYAxisGrp );
- new QLabel( tr( "DY" ), anYAxisGrp );
- myData[ DY2 ] = new DlgRef_SpinBox( anYAxisGrp );
- new QLabel( tr( "DZ" ), anYAxisGrp );
- myData[ DZ2 ] = new DlgRef_SpinBox( anYAxisGrp );
-
- Layout1->addWidget( aMainGrp, 2, 0 );
- Layout1->addWidget( Group1, 2, 0 );
- Layout1->addWidget( Group2, 2, 0 );
-
- Init();
-}
-
-
-//=================================================================================
-// function : ~BasicGUI_MarkerDlg()
-// purpose : Destroys the object and frees any allocated resources
-//=================================================================================
-BasicGUI_MarkerDlg::~BasicGUI_MarkerDlg()
-{
-}
-
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BasicGUI_MarkerDlg::Init()
-{
- myBlockPreview = false;
- myConstructorId = -1;
- myEditCurrentArgument = Group1->LineEdit1;
- Group1->LineEdit1->setReadOnly( true );
- Group2->LineEdit1->setReadOnly( true );
- Group2->LineEdit2->setReadOnly( true );
- Group2->LineEdit3->setReadOnly( true );
-
- connect(GroupConstructors, SIGNAL(clicked(int)), this, SLOT(ConstructorsClicked(int)));
- connect(Group1->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(Group2->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(Group2->PushButton2, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(Group2->PushButton3, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
-
- connect(Group1->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(Group2->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(Group2->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(Group2->LineEdit3, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
-
- connect( buttonCancel, SIGNAL( clicked() ), this, SLOT( onClose() ) );
- connect( myGeometryGUI, SIGNAL( SignalDeactivateActiveDialog() ), this, SLOT( onDeactivate() ) );
- connect( myGeometryGUI, SIGNAL( SignalCloseAllDialogs() ), this, SLOT( onClose() ) );
-
- connect( buttonOk, SIGNAL( clicked() ), this, SLOT( onOk() ) );
- connect( buttonApply, SIGNAL( clicked() ), this, SLOT( onApply() ) );
-
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL( currentSelectionChanged() ), this, SLOT( onSelectionDone() ) );
-
- initName( tr( "LCS_NAME" ) );
-
- SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
- double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
-
- for ( DataMap::iterator anIter = myData.begin(); anIter != myData.end(); ++anIter )
- {
- anIter.data()->RangeStepAndValidator( -999.999, 999.999, step, 3 );
- connect( anIter.data(), SIGNAL( valueChanged( double ) ),
- this, SLOT( onValueChanged( double ) ) );
- }
-
- myBlockPreview = true;
- for ( DataMap::iterator anIter = myData.begin(); anIter != myData.end(); ++anIter )
- anIter.data()->SetValue( 0 );
- myData[ DX1 ]->SetValue( 1 );
- myData[ DY2 ]->SetValue( 1 );
- myBlockPreview = false;
-
- ConstructorsClicked( 0 );
-
-
- //@
- /*
- QAD_ViewFrame* aFrame = QAD_Application::getDesktop()->getActiveApp()->
- getActiveStudy()->getActiveStudyFrame()->getRightFrame()->getViewFrame();
-
- VTKViewer_ViewFrame* aVTKFrame = dynamic_cast( aFrame );
- if ( aVTKFrame )
- {
- aVTKFrame->AdjustTrihedrons( true );
- return;
- }
-
- OCCViewer_ViewFrame* aOCCFrame = dynamic_cast( aFrame );
- if ( aOCCFrame )
- aOCCFrame->AdjustTrihedrons( true );
- */
-}
-
-//=================================================================================
-// function : ConstructorsClicked()
-// purpose : Radio button management
-//=================================================================================
-void BasicGUI_MarkerDlg::ConstructorsClicked( int constructorId )
-{
- if ( myConstructorId == constructorId && myConstructorId == 0 )
- {
- localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
- activate( GEOM_MARKER );
- displayPreview();
- return;
- }
-
- myConstructorId = constructorId;
-
- disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
-
- switch (constructorId)
- {
- case 0:
- {
- Group1->hide();
- Group2->hide();
- resize(0, 0);
- aMainGrp->show();
- localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
- activate( GEOM_MARKER );
- break;
- }
- case 1:
- {
- Group2->hide();
- aMainGrp->hide();
- resize(0, 0);
- Group1->show();
-
- globalSelection( GEOM_ALLGEOM );
- myEditCurrentArgument = Group1->LineEdit1;
- Group1->LineEdit1->setText("");
- break;
- }
- case 2:
- {
- aMainGrp->hide();
- Group1->show();
- resize(0, 0);
- Group2->show();
-
- globalSelection( GEOM_POINT );
- myEditCurrentArgument = Group2->LineEdit1;
- Group2->LineEdit1->setText("");
- Group2->LineEdit2->setText("");
- Group2->LineEdit3->setText("");
- break;
- }
- }
-
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(onSelectionDone()));
- onSelectionDone();
-}
-
-//=================================================================================
-// function : onOk()
-// purpose :
-//=================================================================================
-void BasicGUI_MarkerDlg::onOk()
-{
- if ( onApply() )
- onClose();
-}
-
-//=======================================================================
-// function : onClose()
-// purpose :
-//=======================================================================
-void BasicGUI_MarkerDlg::onClose()
-{
- GEOMBase_Skeleton::ClickOnCancel();
-}
-
-//=================================================================================
-// function : onApply()
-// purpose :
-//=================================================================================
-bool BasicGUI_MarkerDlg::onApply()
-{
- if ( !onAccept() )
- return false;
-
- initName();
- ConstructorsClicked( getConstructorId() );
-
- return true;
-}
-
-//=================================================================================
-// function : onSelectionDone0()
-// purpose : Reaction on selection when first method of creation is current one
-//=================================================================================
-void BasicGUI_MarkerDlg::onSelectionDone0()
-{
- if ( IObjectCount() == 1 )
- {
-
- Standard_Boolean aRes = Standard_False;
- Handle(SALOME_InteractiveObject) anIO = firstIObject();
- GEOM::GEOM_Object_var aSelectedObj = GEOMBase::ConvertIOinGEOMObject( anIO, aRes );
-
- if ( aRes && !aSelectedObj->_is_nil() )
- {
- TopoDS_Shape aShape;
- if ( myGeomBase->GetShape( aSelectedObj, aShape, TopAbs_SHAPE ) && !aShape.IsNull() )
- {
- if ( aSelectedObj->GetType() == GEOM_MARKER && aShape.ShapeType() == TopAbs_FACE )
- {
- TopoDS_Face aFace = TopoDS::Face( aShape );
- Handle(Geom_Plane) aPlane = Handle(Geom_Plane)::DownCast( BRep_Tool::Surface( aFace ) );
-
- if ( !aPlane.IsNull() )
- {
- gp_Ax3 anAx3 = aPlane->Pln().Position();
- gp_Pnt aLoc = anAx3.Location();
- gp_Dir aXDir = anAx3.XDirection();
- gp_Dir aYDir = anAx3.YDirection();
-
- myData[ X ]->SetValue( aLoc.X() );
- myData[ Y ]->SetValue( aLoc.Y() );
- myData[ Z ]->SetValue( aLoc.Z() );
-
- myData[ DX1 ]->SetValue( aXDir.X() );
- myData[ DY1 ]->SetValue( aXDir.Y() );
- myData[ DZ1 ]->SetValue( aXDir.Z() );
-
- myData[ DX2 ]->SetValue( aYDir.X() );
- myData[ DY2 ]->SetValue( aYDir.Y() );
- myData[ DZ2 ]->SetValue( aYDir.Z() );
- ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->clearSelected();
- }
- }
- else
- {
- TColStd_IndexedMapOfInteger aMap;
- ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( anIO, aMap );
- if ( aMap.Extent() == 1 )
- {
- int anIndex = aMap( 1 );
- TopTools_IndexedMapOfShape aShapes;
- TopExp::MapShapes( aShape, aShapes );
- aShape = aShapes.FindKey( anIndex );
- ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->clearSelected();
- }
-
-
- if ( !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
- {
- gp_Pnt aPnt = BRep_Tool::Pnt( TopoDS::Vertex( aShape ) );
- myData[ X ]->SetValue( aPnt.X() );
- myData[ Y ]->SetValue( aPnt.Y() );
- myData[ Z ]->SetValue( aPnt.Z() );
- }
- }
- }
- }
- }
-
- displayPreview();
-}
-
-
-//=================================================================================
-// function : onSelectionDone()
-// purpose : Called when selection as changed or other case
-//=================================================================================
-void BasicGUI_MarkerDlg::onSelectionDone()
-{
- if ( getConstructorId() == 0 )
- {
- onSelectionDone0();
- return;
- }
-
-
- myEditCurrentArgument->setText("");
- QString aName;
-
- if ( IObjectCount() == 1 ) {
- Standard_Boolean aRes = Standard_False;
- Handle(SALOME_InteractiveObject) anIO = firstIObject();
- GEOM::GEOM_Object_var aSelectedObj = GEOMBase::ConvertIOinGEOMObject( anIO, aRes );
-
- if ( !CORBA::is_nil( aSelectedObj ) && aRes ) {
- aName = GEOMBase::GetName( aSelectedObj );
- TopoDS_Shape aShape;
- if ( myGeomBase->GetShape( aSelectedObj, aShape, TopAbs_SHAPE ) ) {
- GEOM::short_array anIndexes;
-
- TColStd_IndexedMapOfInteger aMap;
- ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( anIO, aMap );
-
- if ( !aMap.IsEmpty() ) {
- int anIndex = aMap( 1 );
- TopTools_IndexedMapOfShape aShapes;
- TopExp::MapShapes( aShape, aShapes );
- aShape = aShapes.FindKey( anIndex );
- }
-
- if ( getConstructorId() == 1 ) {
- if ( !aShape.IsNull() ) {
- gp_Pnt aPnt;
- if (aShape.ShapeType() == TopAbs_VERTEX) {
- aPnt = BRep_Tool::Pnt(TopoDS::Vertex(aShape));
- }
- else {
- GProp_GProps aSystem;
- if (aShape.ShapeType() == TopAbs_EDGE || aShape.ShapeType() == TopAbs_WIRE)
- BRepGProp::LinearProperties(aShape, aSystem);
- else if (aShape.ShapeType() == TopAbs_FACE || aShape.ShapeType() == TopAbs_SHELL)
- BRepGProp::SurfaceProperties(aShape, aSystem);
- else
- BRepGProp::VolumeProperties(aShape, aSystem);
-
- aPnt = aSystem.CentreOfMass();
- }
-
- gp_Ax3 anAx3;
- anAx3.Transform(aShape.Location().Transformation());
- if(aShape.ShapeType() == TopAbs_FACE) {
- Handle(Geom_Surface) aGS = BRep_Tool::Surface( TopoDS::Face( aShape ) );
- if (!aGS.IsNull() && aGS->IsKind( STANDARD_TYPE( Geom_Plane ) ) ) {
- Handle(Geom_Plane) aGPlane = Handle(Geom_Plane)::DownCast( aGS );
- gp_Pln aPln = aGPlane->Pln();
- anAx3 = aPln.Position();
- }
- }
-
- gp_Dir aDirX = anAx3.XDirection();
- gp_Dir aDirY = anAx3.YDirection();
-
- myData[ X ]->SetValue( aPnt.X() );
- myData[ Y ]->SetValue( aPnt.Y() );
- myData[ Z ]->SetValue( aPnt.Z() );
-
- myData[ DX1 ]->SetValue( aDirX.X() );
- myData[ DY1 ]->SetValue( aDirX.Y() );
- myData[ DZ1 ]->SetValue( aDirX.Z() );
-
- myData[ DX2 ]->SetValue( aDirY.X() );
- myData[ DY2 ]->SetValue( aDirY.Y() );
- myData[ DZ2 ]->SetValue( aDirY.Z() );
-
- myEditCurrentArgument->setText( aName );
- }
- else {
- myData[ X ]->SetValue( 0 );
- myData[ Y ]->SetValue( 0 );
- myData[ Z ]->SetValue( 0 );
-
- myData[ DX1 ]->SetValue( 0 );
- myData[ DY1 ]->SetValue( 0 );
- myData[ DZ1 ]->SetValue( 0 );
-
- myData[ DX2 ]->SetValue( 0 );
- myData[ DY2 ]->SetValue( 0 );
- myData[ DZ2 ]->SetValue( 0 );
- }
- }
- else if ( getConstructorId() == 2 ) {
- if (myEditCurrentArgument == Group2->LineEdit1) {
- if ( !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX ) {
- gp_Pnt aPnt = BRep_Tool::Pnt( TopoDS::Vertex( aShape ) );
- myData[ X ]->SetValue( aPnt.X() );
- myData[ Y ]->SetValue( aPnt.Y() );
- myData[ Z ]->SetValue( aPnt.Z() );
- myEditCurrentArgument->setText( aName );
- }
- else {
- myData[ X ]->SetValue( 0 );
- myData[ Y ]->SetValue( 0 );
- myData[ Z ]->SetValue( 0 );
- }
- }
- else if (myEditCurrentArgument == Group2->LineEdit2) {
- if ( !aShape.IsNull() && aShape.ShapeType() == TopAbs_EDGE ) {
- gp_Pnt aP1 = BRep_Tool::Pnt(TopExp::FirstVertex(TopoDS::Edge(aShape)));
- gp_Pnt aP2 = BRep_Tool::Pnt(TopExp::LastVertex(TopoDS::Edge(aShape)));
- gp_Dir aDir(gp_Vec(aP1, aP2));
-
- myData[ DX1 ]->SetValue( aDir.X() );
- myData[ DY1 ]->SetValue( aDir.Y() );
- myData[ DZ1 ]->SetValue( aDir.Z() );
- myEditCurrentArgument->setText( aName );
- }
- else {
- myData[ DX1 ]->SetValue( 0 );
- myData[ DY1 ]->SetValue( 0 );
- myData[ DZ1 ]->SetValue( 0 );
- }
- }
- else if (myEditCurrentArgument == Group2->LineEdit3) {
- if ( !aShape.IsNull() && aShape.ShapeType() == TopAbs_EDGE ) {
- gp_Pnt aP1 = BRep_Tool::Pnt(TopExp::FirstVertex(TopoDS::Edge(aShape)));
- gp_Pnt aP2 = BRep_Tool::Pnt(TopExp::LastVertex(TopoDS::Edge(aShape)));
- gp_Dir aDir(gp_Vec(aP1, aP2));
-
- myData[ DX2 ]->SetValue( aDir.X() );
- myData[ DY2 ]->SetValue( aDir.Y() );
- myData[ DZ2 ]->SetValue( aDir.Z() );
- myEditCurrentArgument->setText( aName );
- }
- else {
- myData[ DX2 ]->SetValue( 0 );
- myData[ DY2 ]->SetValue( 0 );
- myData[ DZ2 ]->SetValue( 0 );
- }
- }
- }
- }
- }
- }
- else {
- if ( getConstructorId() == 1 ) {
- myData[ X ]->SetValue( 0 );
- myData[ Y ]->SetValue( 0 );
- myData[ Z ]->SetValue( 0 );
-
- myData[ DX1 ]->SetValue( 0 );
- myData[ DY1 ]->SetValue( 0 );
- myData[ DZ1 ]->SetValue( 0 );
-
- myData[ DX2 ]->SetValue( 0 );
- myData[ DY2 ]->SetValue( 0 );
- myData[ DZ2 ]->SetValue( 0 );
- }
- else if ( getConstructorId() == 2 ) {
- if (myEditCurrentArgument == Group2->LineEdit1) {
- myData[ X ]->SetValue( 0 );
- myData[ Y ]->SetValue( 0 );
- myData[ Z ]->SetValue( 0 );
- }
- else if (myEditCurrentArgument == Group2->LineEdit2) {
- myData[ DX1 ]->SetValue( 0 );
- myData[ DY1 ]->SetValue( 0 );
- myData[ DZ1 ]->SetValue( 0 );
- }
- else if (myEditCurrentArgument == Group2->LineEdit3) {
- myData[ DX2 ]->SetValue( 0 );
- myData[ DY2 ]->SetValue( 0 );
- myData[ DZ2 ]->SetValue( 0 );
- }
- }
- }
-
- displayPreview();
-}
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BasicGUI_MarkerDlg::SetEditCurrentArgument()
-{
- QPushButton* send = (QPushButton*)sender();
-
- if(send == Group1->PushButton1) {
- myEditCurrentArgument = Group1->LineEdit1;
- globalSelection( GEOM_ALLGEOM );
- }
- else if(send == Group2->PushButton1) {
- myEditCurrentArgument = Group2->LineEdit1;
- globalSelection( GEOM_POINT );
- }
- else if(send == Group2->PushButton2) {
- myEditCurrentArgument = Group2->LineEdit2;
- globalSelection( GEOM_LINE );
- }
- else if(send == Group2->PushButton3) {
- myEditCurrentArgument = Group2->LineEdit3;
- globalSelection( GEOM_LINE );
- }
-
- myEditCurrentArgument->setFocus();
- onSelectionDone();
-}
-
-//=================================================================================
-// function : LineEditReturnPressed()
-// purpose :
-//=================================================================================
-void BasicGUI_MarkerDlg::LineEditReturnPressed()
-{
- QLineEdit* send = (QLineEdit*)sender();
-
- myEditCurrentArgument = send;
- GEOMBase_Skeleton::LineEditReturnPressed();
-}
-
-//=================================================================================
-// function : onActivate()
-// purpose :
-//=================================================================================
-void BasicGUI_MarkerDlg::onActivate()
-{
- GEOMBase_Skeleton::ActivateThisDialog();
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL( currentSelectionChanged() ), this, SLOT( onSelectionDone() ) );
-
- ConstructorsClicked( getConstructorId() );
-}
-
-//=================================================================================
-// function : onDeactivate()
-// purpose : public slot to deactivate if active
-//=================================================================================
-void BasicGUI_MarkerDlg::onDeactivate()
-{
- GEOMBase_Skeleton::DeactivateActiveDialog();
-}
-
-//=================================================================================
-// function : enterEvent()
-// purpose :
-//=================================================================================
-void BasicGUI_MarkerDlg::enterEvent(QEvent* e)
-{
- if ( !GroupConstructors->isEnabled() )
- onActivate();
-}
-
-//=================================================================================
-// function : createOperation
-// purpose :
-//=================================================================================
-GEOM::GEOM_IOperations_ptr BasicGUI_MarkerDlg::createOperation()
-{
- return myGeometryGUI->GetGeomGen()->GetIBasicOperations( getStudyId() );
-}
-
-//=================================================================================
-// function : isValid
-// purpose :
-//=================================================================================
-bool BasicGUI_MarkerDlg::isValid( QString& msg )
-{
- const int id = getConstructorId();
- gp_Vec v1( myData[ DX1 ]->GetValue(), myData[ DY1 ]->GetValue(), myData[ DZ1 ]->GetValue() ),
- v2( myData[ DX2 ]->GetValue(), myData[ DY2 ]->GetValue(), myData[ DZ2 ]->GetValue() );
-
- bool isOk = false;
- // we will got exception if the magnitude of any of the 2 vectors <= gp::Resolution()
- // Vectors shouldn't be checked for being orthogonal here!
- if ( v1.Magnitude() > gp::Resolution() && v2.Magnitude() > gp::Resolution() ) {
- isOk = !v1.IsParallel( v2, Precision::Angular() );
- if ( !isOk )
- msg += tr( "VEC_PARALLEL" );
- }
-
- switch ( id )
- {
- case 0:
- return isOk;
- case 1:
- return !Group1->LineEdit1->text().isEmpty() && isOk;
- case 2:
- return !Group2->LineEdit1->text().isEmpty() &&
- !Group2->LineEdit2->text().isEmpty() &&
- !Group2->LineEdit3->text().isEmpty() && isOk;
- }
- return false;
-}
-
-//=================================================================================
-// function : execute
-// purpose :
-//=================================================================================
-bool BasicGUI_MarkerDlg::execute( ObjectList& objects )
-{
- GEOM::GEOM_Object_var anObj = GEOM::GEOM_IBasicOperations::_narrow(
- getOperation() )->MakeMarker( myData[ X ]->GetValue(), myData[ Y ]->GetValue(), myData[ Z ]->GetValue(),
- myData[ DX1 ]->GetValue(), myData[ DY1 ]->GetValue(), myData[ DZ1 ]->GetValue(),
- myData[ DX2 ]->GetValue(), myData[ DY2 ]->GetValue(), myData[ DZ2 ]->GetValue() );
-
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
-
- return true;
-}
-
-//=================================================================================
-// function : closeEvent
-// purpose :
-//=================================================================================
-void BasicGUI_MarkerDlg::closeEvent( QCloseEvent* e )
-{
- GEOMBase_Skeleton::closeEvent( e );
-}
-
-//=================================================================================
-// function : onValueChanged
-// purpose :
-//=================================================================================
-void BasicGUI_MarkerDlg::onValueChanged( double )
-{
- displayPreview();
-}
-
-//=================================================================================
-// function : displayPreview
-// purpose :
-//=================================================================================
-void BasicGUI_MarkerDlg::displayPreview ( const bool activate,
- const bool update,
- const bool toRemoveFromEngine,
- const double lineWidth )
-{
- if ( !myBlockPreview )
- {
- GEOMBase_Skeleton::displayPreview( activate, update, toRemoveFromEngine, lineWidth );
- if ( myConstructorId == 0 )
- {
- GEOMBase_Skeleton::activate( GEOM_MARKER );
- }
- }
-}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/BasicGUI/BasicGUI_PlaneDlg.cxx b/src/BasicGUI/BasicGUI_PlaneDlg.cxx
deleted file mode 100644
index eee53f1d4..000000000
--- a/src/BasicGUI/BasicGUI_PlaneDlg.cxx
+++ /dev/null
@@ -1,507 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BasicGUI_PlaneDlg.cxx
-// Author : Lucien PIGNOLONI
-// Module : GEOM
-// $Header$
-
-#include "BasicGUI_PlaneDlg.h"
-
-#include "SUIT_Desktop.h"
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-
-#include
-
-#include "GEOMImpl_Types.hxx"
-
-using namespace std;
-
-//=================================================================================
-// class : BasicGUI_PlaneDlg()
-// purpose : Constructs a BasicGUI_PlaneDlg which is a child of 'parent', with the
-// name 'name' and widget flags set to 'f'.
-// The dialog will by default be modeless, unless you set 'modal' to
-// TRUE to construct a modal dialog.
-//=================================================================================
-BasicGUI_PlaneDlg::BasicGUI_PlaneDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
-{
- QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_PLANE_PV")));
- QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_PLANE_3PNTS")));
- QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_PLANE_FACE")));
- QPixmap image3(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
-
- setCaption(tr("GEOM_PLANE_TITLE"));
-
- /***************************************************************/
- GroupConstructors->setTitle(tr("GEOM_PLANE"));
- RadioButton1->setPixmap(image0);
- RadioButton2->setPixmap(image1);
- RadioButton3->setPixmap(image2);
-
- GroupPntDir = new DlgRef_2Sel1Spin(this, "GroupPointDirection");
- GroupPntDir->GroupBox1->setTitle(tr("GEOM_PLANE_PV"));
- GroupPntDir->TextLabel1->setText(tr("GEOM_POINT"));
- GroupPntDir->TextLabel2->setText(tr("GEOM_VECTOR"));
- GroupPntDir->TextLabel3->setText(tr("GEOM_PLANE_SIZE"));
- GroupPntDir->PushButton1->setPixmap(image3);
- GroupPntDir->PushButton2->setPixmap(image3);
- GroupPntDir->LineEdit1->setReadOnly( true );
- GroupPntDir->LineEdit2->setReadOnly( true );
-
- Group3Pnts = new DlgRef_3Sel1Spin(this, "Group3Pnts");
- Group3Pnts->GroupBox1->setTitle(tr("GEOM_3_POINTS"));
- Group3Pnts->TextLabel1->setText(tr("GEOM_POINT1"));
- Group3Pnts->TextLabel2->setText(tr("GEOM_POINT2"));
- Group3Pnts->TextLabel3->setText(tr("GEOM_POINT3"));
- Group3Pnts->TextLabel4->setText(tr("GEOM_PLANE_SIZE"));
- Group3Pnts->PushButton1->setPixmap(image3);
- Group3Pnts->PushButton2->setPixmap(image3);
- Group3Pnts->PushButton3->setPixmap(image3);
-
- Group3Pnts->LineEdit1->setReadOnly( true );
- Group3Pnts->LineEdit2->setReadOnly( true );
- Group3Pnts->LineEdit3->setReadOnly( true );
-
- GroupFace = new DlgRef_1Sel1Spin(this, "GroupFace");
- GroupFace->GroupBox1->setTitle(tr("GEOM_FACE"));
- GroupFace->TextLabel1->setText(tr("GEOM_SELECTION"));
- GroupFace->TextLabel2->setText(tr("GEOM_PLANE_SIZE"));
- GroupFace->PushButton1->setPixmap(image3);
-
- GroupFace->LineEdit1->setReadOnly( true );
-
- Layout1->addWidget(GroupPntDir, 2, 0);
- Layout1->addWidget(Group3Pnts, 2, 0);
- Layout1->addWidget(GroupFace, 2, 0);
- /***************************************************************/
-
- Init();
-}
-
-
-//=================================================================================
-// function : ~BasicGUI_PlaneDlg()
-// purpose : Destroys the object and frees any allocated resources
-//=================================================================================
-BasicGUI_PlaneDlg::~BasicGUI_PlaneDlg()
-{
-}
-
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BasicGUI_PlaneDlg::Init()
-{
- /* init variables */
- myEditCurrentArgument = GroupPntDir->LineEdit1;
-
- myPoint = myDir = myPoint1 = myPoint2 = myPoint3 = myFace = GEOM::GEOM_Object::_nil();
-
- // myGeometryGUI->SetState( 0 );
-
- /* Get setting of step value from file configuration */
- SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
- double aStep = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
-
- double aTrimSize = 2000.0;
-
- /* min, max, step and decimals for spin boxes */
- GroupPntDir->SpinBox_DX->RangeStepAndValidator( 0.001, 10000000.0, aStep, 3 );
- GroupPntDir->SpinBox_DX->SetValue( aTrimSize );
- Group3Pnts->SpinBox_DX->RangeStepAndValidator(0.001, 10000000.0, aStep, 3);
- Group3Pnts->SpinBox_DX->SetValue( aTrimSize );
- GroupFace->SpinBox_DX->RangeStepAndValidator(0.001, 10000000.0, aStep, 3);
- GroupFace->SpinBox_DX->SetValue( aTrimSize );
-
- /* signals and slots connections */
- connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
-
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
- connect(GroupConstructors, SIGNAL(clicked(int)), this, SLOT(ConstructorsClicked(int)));
-
- connect(GroupPntDir->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(GroupPntDir->PushButton2, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(Group3Pnts->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(Group3Pnts->PushButton2, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(Group3Pnts->PushButton3, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(GroupFace->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
-
- connect(GroupPntDir->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(GroupPntDir->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(Group3Pnts->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(Group3Pnts->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(Group3Pnts->LineEdit3, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(GroupFace->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
-
- connect(GroupPntDir->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(Group3Pnts->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(GroupFace->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
-
- connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupPntDir->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), Group3Pnts->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupFace->SpinBox_DX, SLOT(SetStep(double)));
-
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-
- initName( tr( "GEOM_PLANE" ) );
-
- Group3Pnts->hide();
- GroupFace->hide();
- ConstructorsClicked( 0 );
-}
-
-
-//=================================================================================
-// function : ConstructorsClicked()
-// purpose : Radio button management
-//=================================================================================
-void BasicGUI_PlaneDlg::ConstructorsClicked(int constructorId)
-{
- disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
- myPoint = myDir = myPoint1 = myPoint2 = myPoint3 = myFace = GEOM::GEOM_Object::_nil();
-
- switch ( constructorId )
- {
- case 0: /* plane from a point and a direction (vector, edge...) */
- {
- Group3Pnts->hide();
- GroupFace->hide();
- resize(0, 0);
- GroupPntDir->show();
-
- myEditCurrentArgument = GroupPntDir->LineEdit1;
- GroupPntDir->LineEdit1->setText(tr(""));
- GroupPntDir->LineEdit2->setText(tr(""));
-
- /* for the first argument */
- globalSelection( GEOM_POINT );
- break;
- }
- case 1: /* plane from 3 points */
- {
- GroupPntDir->hide();
- GroupFace->hide();
- resize(0, 0);
- Group3Pnts->show();
-
- myEditCurrentArgument = Group3Pnts->LineEdit1;
- Group3Pnts->LineEdit1->setText("");
- Group3Pnts->LineEdit2->setText("");
- Group3Pnts->LineEdit3->setText("");
-
- /* for the first argument */
- globalSelection( GEOM_POINT );
- break;
- }
- case 2: /* plane from a planar face selection */
- {
- GroupPntDir->hide();
- Group3Pnts->hide();
- resize(0, 0);
- GroupFace->show();
-
- myEditCurrentArgument = GroupFace->LineEdit1;
- GroupFace->LineEdit1->setText(tr(""));
-
- /* for the first argument */
- globalSelection( GEOM_PLANE );
- break;
- }
- }
-
- myEditCurrentArgument->setFocus();
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-}
-
-
-//=================================================================================
-// function : ClickOnOk()
-// purpose :
-//=================================================================================
-void BasicGUI_PlaneDlg::ClickOnOk()
-{
- if ( ClickOnApply() )
- ClickOnCancel();
-}
-
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose :
-//=================================================================================
-bool BasicGUI_PlaneDlg::ClickOnApply()
-{
- if ( !onAccept() )
- return false;
-
- initName();
- ConstructorsClicked( getConstructorId() );
- return true;
-}
-
-//=======================================================================
-// function : ClickOnCancel()
-// purpose :
-//=======================================================================
-void BasicGUI_PlaneDlg::ClickOnCancel()
-{
- GEOMBase_Skeleton::ClickOnCancel();
-}
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection has changed
-//=================================================================================
-void BasicGUI_PlaneDlg::SelectionIntoArgument()
-{
- myEditCurrentArgument->setText("");
-
- if ( IObjectCount() != 1 )
- {
- if ( myEditCurrentArgument == GroupPntDir->LineEdit1 ) myPoint = GEOM::GEOM_Object::_nil();
- else if ( myEditCurrentArgument == GroupPntDir->LineEdit2 ) myDir = GEOM::GEOM_Object::_nil();
- else if ( myEditCurrentArgument == Group3Pnts->LineEdit1 ) myPoint1 = GEOM::GEOM_Object::_nil();
- else if ( myEditCurrentArgument == Group3Pnts->LineEdit2 ) myPoint2 = GEOM::GEOM_Object::_nil();
- else if ( myEditCurrentArgument == Group3Pnts->LineEdit3 ) myPoint3 = GEOM::GEOM_Object::_nil();
- else if ( myEditCurrentArgument == GroupFace->LineEdit1 ) myFace = GEOM::GEOM_Object::_nil();
- return;
- }
-
- // nbSel == 1
- Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
- if ( !CORBA::is_nil( aSelectedObject ) && aRes )
- {
- myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
- if ( myEditCurrentArgument == GroupPntDir->LineEdit1 ) myPoint = aSelectedObject;
- else if ( myEditCurrentArgument == GroupPntDir->LineEdit2 ) myDir = aSelectedObject;
- else if ( myEditCurrentArgument == Group3Pnts->LineEdit1 ) myPoint1 = aSelectedObject;
- else if ( myEditCurrentArgument == Group3Pnts->LineEdit2 ) myPoint2 = aSelectedObject;
- else if ( myEditCurrentArgument == Group3Pnts->LineEdit3 ) myPoint3 = aSelectedObject;
- else if ( myEditCurrentArgument == GroupFace->LineEdit1 ) myFace = aSelectedObject;
- }
-
- displayPreview();
-}
-
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BasicGUI_PlaneDlg::SetEditCurrentArgument()
-{
- QPushButton* send = (QPushButton*)sender();
-
- if ( send == GroupPntDir->PushButton1 ) myEditCurrentArgument = GroupPntDir->LineEdit1;
- else if ( send == GroupPntDir->PushButton2 ) myEditCurrentArgument = GroupPntDir->LineEdit2;
- else if ( send == Group3Pnts->PushButton1 ) myEditCurrentArgument = Group3Pnts->LineEdit1;
- else if ( send == Group3Pnts->PushButton2 ) myEditCurrentArgument = Group3Pnts->LineEdit2;
- else if ( send == Group3Pnts->PushButton3 ) myEditCurrentArgument = Group3Pnts->LineEdit3;
- else if ( send == GroupFace->PushButton1 ) myEditCurrentArgument = GroupFace->LineEdit1;
-
- myEditCurrentArgument->setFocus();
-
- if ( myEditCurrentArgument == GroupPntDir->LineEdit2 )
- globalSelection( GEOM_LINE );
- else if ( myEditCurrentArgument == GroupFace->LineEdit1 )
- globalSelection( GEOM_PLANE );
- else
- globalSelection( GEOM_POINT );
-
- SelectionIntoArgument();
-}
-
-
-//=================================================================================
-// function : LineEditReturnPressed()
-// purpose :
-//=================================================================================
-void BasicGUI_PlaneDlg::LineEditReturnPressed()
-{
- QLineEdit* send = (QLineEdit*)sender();
- if ( send == GroupPntDir->LineEdit1 ||
- send == GroupPntDir->LineEdit2 ||
- send == Group3Pnts->LineEdit1 ||
- send == Group3Pnts->LineEdit2 ||
- send == Group3Pnts->LineEdit3 ||
- send == GroupFace->LineEdit1 )
- {
- myEditCurrentArgument = send;
- GEOMBase_Skeleton::LineEditReturnPressed();
- }
-}
-
-
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void BasicGUI_PlaneDlg::ActivateThisDialog()
-{
- GEOMBase_Skeleton::ActivateThisDialog();
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-
- // myGeometryGUI->SetState( 0 );
-
- ConstructorsClicked( getConstructorId() );
-}
-
-//=================================================================================
-// function : DeactivateActiveDialog()
-// purpose : public slot to deactivate if active
-//=================================================================================
-void BasicGUI_PlaneDlg::DeactivateActiveDialog()
-{
- // myGeometryGUI->SetState( -1 );
- GEOMBase_Skeleton::DeactivateActiveDialog();
-}
-
-//=================================================================================
-// function : enterEvent()
-// purpose :
-//=================================================================================
-void BasicGUI_PlaneDlg::enterEvent(QEvent* e)
-{
- if ( !GroupConstructors->isEnabled() )
- ActivateThisDialog();
-}
-
-
-//=================================================================================
-// function : ValueChangedInSpinBox()
-// purpose :
-//=================================================================================
-void BasicGUI_PlaneDlg::ValueChangedInSpinBox(double newValue)
-{
- displayPreview();
-}
-
-//=================================================================================
-// function : getSize()
-// purpose :
-//=================================================================================
-double BasicGUI_PlaneDlg::getSize() const
-{
- switch ( getConstructorId() )
- {
- case 0 : return GroupPntDir->SpinBox_DX->GetValue();
- case 1 : return Group3Pnts->SpinBox_DX->GetValue();
- case 2 : return GroupFace->SpinBox_DX->GetValue();
- }
- return 0.;
-}
-
-//=================================================================================
-// function : createOperation
-// purpose :
-//=================================================================================
-GEOM::GEOM_IOperations_ptr BasicGUI_PlaneDlg::createOperation()
-{
- return myGeometryGUI->GetGeomGen()->GetIBasicOperations( getStudyId() );
-}
-
-//=================================================================================
-// function : isEqual
-// purpose : it may also be needed to check for min distance between gp_Pnt-s...
-//=================================================================================
-static bool isEqual( const GEOM::GEOM_Object_var& thePnt1, const GEOM::GEOM_Object_var& thePnt2 )
-{
- return thePnt1->_is_equivalent( thePnt2 );
-}
-
-//=================================================================================
-// function : isValid
-// purpose :
-//=================================================================================
-bool BasicGUI_PlaneDlg::isValid( QString& msg )
-{
- const int id = getConstructorId();
- if ( getSize() <= 0 )
- {
- msg = QString( "Please, enter size greater than 0." );
- return false;
- }
- if ( id == 0 )
- return !CORBA::is_nil( myPoint ) && !CORBA::is_nil( myDir );
- else if ( id == 1 )
- return !CORBA::is_nil( myPoint1 ) && !CORBA::is_nil( myPoint2 ) && !CORBA::is_nil( myPoint3 ) &&
- !isEqual( myPoint1, myPoint2 ) && !isEqual( myPoint1, myPoint3 ) && !isEqual( myPoint2, myPoint3 );
- else if ( id == 2 )
- return !CORBA::is_nil( myFace );
- return false;
-}
-
-//=================================================================================
-// function : execute
-// purpose :
-//=================================================================================
-bool BasicGUI_PlaneDlg::execute( ObjectList& objects )
-{
- bool res = false;
-
- GEOM::GEOM_Object_var anObj;
-
- switch ( getConstructorId() )
- {
- case 0 :
- anObj = GEOM::GEOM_IBasicOperations::_narrow( getOperation() )->MakePlanePntVec( myPoint, myDir, getSize() );
- res = true;
- break;
- case 1 :
- anObj = GEOM::GEOM_IBasicOperations::_narrow( getOperation() )->MakePlaneThreePnt( myPoint1, myPoint2, myPoint3, getSize() );
- res = true;
- break;
- case 2 :
- anObj = GEOM::GEOM_IBasicOperations::_narrow( getOperation() )->MakePlaneFace( myFace, getSize() );
- res = true;
- break;
- }
-
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
-
- return res;
-}
-
-//=================================================================================
-// function : closeEvent
-// purpose :
-//=================================================================================
-void BasicGUI_PlaneDlg::closeEvent( QCloseEvent* e )
-{
- // myGeometryGUI->SetState( -1 );
- GEOMBase_Skeleton::closeEvent( e );
-}
-
diff --git a/src/BasicGUI/BasicGUI_PointDlg.cxx b/src/BasicGUI/BasicGUI_PointDlg.cxx
deleted file mode 100644
index 29b7bf62e..000000000
--- a/src/BasicGUI/BasicGUI_PointDlg.cxx
+++ /dev/null
@@ -1,571 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BasicGUI_PointDlg.cxx
-// Author : Lucien PIGNOLONI
-// Module : GEOM
-// $Header$
-
-#include "BasicGUI_PointDlg.h"
-
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-
-#include "GEOMImpl_Types.hxx"
-
-#include
-
-#include "utilities.h"
-
-#include
-#include
-#include
-#include
-#include
-#include
-
-#include
-using namespace std;
-//=================================================================================
-// class : BasicGUI_PointDlg()
-// purpose : Constructs a BasicGUI_PointDlg which is a child of 'parent', with the
-// name 'name' and widget flags set to 'f'.
-// The dialog will by default be modeless, unless you set 'modal' to
-// TRUE to construct a modal dialog.
-//=================================================================================
-BasicGUI_PointDlg::BasicGUI_PointDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, modal, fl ), myGeometryGUI(theGeometryGUI)
-{
- QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_POINT")));
- QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_POINT_EDGE")));
- QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
- QPixmap image3(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_POINT_REF")));
-
- setCaption(tr("GEOM_POINT_TITLE"));
-
- QGroupBox* aFrame = new QGroupBox( 1, Qt::Horizontal, this );
- aFrame->setInsideMargin( 0 );
- aFrame->setFrameStyle( QFrame::NoFrame );
-
- /***************************************************************/
- GroupConstructors->setTitle(tr("GEOM_POINTS"));
- RadioButton1->setPixmap(image0);
- RadioButton2->setPixmap(image3);
- RadioButton3->setPixmap(image1);
-
- GroupXYZ = new DlgRef_3Spin( aFrame, "GroupXYZ" );
- GroupXYZ->GroupBox1->setTitle(tr("GEOM_COORDINATES"));
- GroupXYZ->TextLabel1->setText(tr("GEOM_X"));
- GroupXYZ->TextLabel2->setText(tr("GEOM_Y"));
- GroupXYZ->TextLabel3->setText(tr("GEOM_Z"));
-
- GroupOnCurve = new DlgRef_1Sel1Spin( aFrame, "GroupOnCurve" );
- GroupOnCurve->GroupBox1->setTitle(tr("GEOM_PARAM_POINT"));
- GroupOnCurve->TextLabel1->setText(tr("GEOM_EDGE"));
- GroupOnCurve->TextLabel2->setText(tr("GEOM_PARAMETER"));
- GroupOnCurve->PushButton1->setPixmap(image2);
-
- GroupRefPoint = new DlgRef_1Sel3Spin( aFrame, "GoupRefPoint" );
- GroupRefPoint->GroupBox1->setTitle(tr("GEOM_REF_POINT"));
- GroupRefPoint->TextLabel1->setText(tr("GEOM_POINT"));
- GroupRefPoint->PushButton1->setPixmap(image2);
- GroupRefPoint->TextLabel2->setText(tr("GEOM_DX"));
- GroupRefPoint->TextLabel3->setText(tr("GEOM_DY"));
- GroupRefPoint->TextLabel4->setText(tr("GEOM_DZ"));
-
- Layout1->addWidget( aFrame, 2, 0 );
- /***************************************************************/
-
- myCoordGrp = new QGroupBox( 2, Qt::Horizontal, tr( "GEOM_COORDINATES" ), aFrame );
- new QLabel( tr( "GEOM_X" ), myCoordGrp );
- myX = new QLineEdit( myCoordGrp );
- new QLabel( tr( "GEOM_Y" ), myCoordGrp );
- myY = new QLineEdit( myCoordGrp );
- new QLabel( tr( "GEOM_Z" ), myCoordGrp );
- myZ = new QLineEdit( myCoordGrp );
-
- myX->setReadOnly( true );
- myY->setReadOnly( true );
- myZ->setReadOnly( true );
-
- myX->setEnabled( false );
- myY->setEnabled( false );
- myZ->setEnabled( false );
-
- QPalette aPal = myX->palette();
- aPal.setColor( QPalette::Disabled, QColorGroup::Text, QColor( 0, 0, 0 ) ) ;
- myX->setPalette( aPal );
- myY->setPalette( aPal );
- myZ->setPalette( aPal );
-
- Init();
-}
-
-
-//=======================================================================
-// function : ~BasicGUI_PointDlg()
-// purpose : Destructor
-//=======================================================================
-BasicGUI_PointDlg::~BasicGUI_PointDlg()
-{
-}
-
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BasicGUI_PointDlg::Init()
-{
- GroupOnCurve->LineEdit1->setReadOnly( true );
- GroupRefPoint->LineEdit1->setReadOnly( true );
-
- myEdge = GEOM::GEOM_Object::_nil();
- myRefPoint = GEOM::GEOM_Object::_nil();
-
- myEditCurrentArgument = 0;
-
- // myGeometryGUI->SetState( 0 );
-
- /* Get setting of step value from file configuration */
- SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
- double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
-
- /* min, max, step and decimals for spin boxes */
- GroupXYZ->SpinBox_DX->RangeStepAndValidator(-999.999, 999.999, step, 3);
- GroupXYZ->SpinBox_DY->RangeStepAndValidator(-999.999, 999.999, step, 3);
- GroupXYZ->SpinBox_DZ->RangeStepAndValidator(-999.999, 999.999, step, 3);
- GroupXYZ->SpinBox_DX->SetValue(0.0);
- GroupXYZ->SpinBox_DY->SetValue(0.0);
- GroupXYZ->SpinBox_DZ->SetValue(0.0);
-
- GroupRefPoint->SpinBox_DX->RangeStepAndValidator(-999.999, 999.999, step, 3);
- GroupRefPoint->SpinBox_DY->RangeStepAndValidator(-999.999, 999.999, step, 3);
- GroupRefPoint->SpinBox_DZ->RangeStepAndValidator(-999.999, 999.999, step, 3);
- GroupRefPoint->SpinBox_DX->SetValue(0.0);
- GroupRefPoint->SpinBox_DY->SetValue(0.0);
- GroupRefPoint->SpinBox_DZ->SetValue(0.0);
-
- step = 0.1;
- GroupOnCurve->SpinBox_DX->RangeStepAndValidator(0., 1., step, 3);
- GroupOnCurve->SpinBox_DX->SetValue( 0.5 );
-
- /* signals and slots connections */
- connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
-
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
- connect(GroupConstructors, SIGNAL(clicked(int)), this, SLOT(ConstructorsClicked(int)));
-
- connect(GroupOnCurve->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(GroupOnCurve->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
-
- connect(GroupOnCurve->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(GroupXYZ->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(GroupXYZ->SpinBox_DY, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(GroupXYZ->SpinBox_DZ, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(GroupRefPoint->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(GroupRefPoint->SpinBox_DY, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(GroupRefPoint->SpinBox_DZ, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
-
- connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupOnCurve->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupXYZ->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupXYZ->SpinBox_DY, SLOT(SetStep(double)));
- connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupXYZ->SpinBox_DZ, SLOT(SetStep(double)));
- connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupRefPoint->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupRefPoint->SpinBox_DY, SLOT(SetStep(double)));
- connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupRefPoint->SpinBox_DZ, SLOT(SetStep(double)));
-
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-
- initName( tr("GEOM_VERTEX") );
-
- ConstructorsClicked( 0 );
-}
-
-
-//=================================================================================
-// function : ConstructorsClicked()
-// purpose : Radio button management
-//=================================================================================
-void BasicGUI_PointDlg::ConstructorsClicked(int constructorId)
-{
- switch ( constructorId )
- {
- case 0:
- {
- localSelection( GEOM::GEOM_Object::_nil(), TopAbs_VERTEX );
-
- GroupRefPoint->hide();
- GroupOnCurve->hide();
-
- GroupXYZ->show();
-
- myCoordGrp->hide();
- break;
- }
- case 1:
- {
- myEditCurrentArgument = GroupRefPoint->LineEdit1;
- myEditCurrentArgument->setText("");
- myRefPoint = GEOM::GEOM_Object::_nil();
-
- globalSelection( GEOM_POINT );
-
- GroupXYZ->hide();
- GroupOnCurve->hide();
-
- GroupRefPoint->show();
-
- myCoordGrp->show();
- break;
- }
- case 2:
- {
- myEditCurrentArgument = GroupOnCurve->LineEdit1;
- myEditCurrentArgument->setText("");
- myEdge = GEOM::GEOM_Object::_nil();
-
- globalSelection( GEOM_EDGE );
-
- GroupXYZ->hide();
- GroupRefPoint->hide();
-
- GroupOnCurve->show();
-
- myCoordGrp->show();
- break;
- }
- }
-
- myX->setText( "" );
- myY->setText( "" );
- myZ->setText( "" );
-
- qApp->processEvents();
- updateGeometry();
- resize( minimumSize() );
-
- SelectionIntoArgument();
-}
-
-
-//=================================================================================
-// function : ClickOnOk()
-// purpose :
-//=================================================================================
-void BasicGUI_PointDlg::ClickOnOk()
-{
- if ( onAccept() )
- ClickOnCancel();
-}
-
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose :
-//=================================================================================
-bool BasicGUI_PointDlg::ClickOnApply()
-{
- if ( !onAccept() )
- return false;
-
- initName();
- ConstructorsClicked( getConstructorId() );
- return true;
-}
-
-
-//=======================================================================
-// function : ClickOnCancel()
-// purpose :
-//=======================================================================
-void BasicGUI_PointDlg::ClickOnCancel()
-{
- GEOMBase_Skeleton::ClickOnCancel();
-}
-
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection as changed (for constructors not using local context)
-//=================================================================================
-void BasicGUI_PointDlg::SelectionIntoArgument()
-{
- const int id = getConstructorId();
-
- if ( ( id == 1 || id == 2 ) && myEditCurrentArgument != 0 )
- {
- myEditCurrentArgument->setText("");
- myX->setText( "" );
- myY->setText( "" );
- myZ->setText( "" );
- myRefPoint = myEdge = GEOM::GEOM_Object::_nil();
- }
-
- if ( IObjectCount() == 1 )
- {
- Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
- if ( !CORBA::is_nil( aSelectedObject ) && aRes )
- {
- if ( id == 0 )
- {
- // get CORBA reference to data object
- TopoDS_Shape aShape = myGeometryGUI->GetShapeReader().GetShape( myGeometryGUI->GetGeomGen(), aSelectedObject );
- if ( !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
- {
- gp_Pnt aPnt = BRep_Tool::Pnt( TopoDS::Vertex( aShape ) );
- GroupXYZ->SpinBox_DX->SetValue( aPnt.X() );
- GroupXYZ->SpinBox_DY->SetValue( aPnt.Y() );
- GroupXYZ->SpinBox_DZ->SetValue( aPnt.Z() );
- }
- }
- else if ( id == 1 )
- {
- myRefPoint = aSelectedObject;
- GroupRefPoint->LineEdit1->setText( GEOMBase::GetName( aSelectedObject ) );
- }
- else if ( id == 2 )
- {
- myEdge = aSelectedObject;
- GroupOnCurve->LineEdit1->setText( GEOMBase::GetName( aSelectedObject ) );
- }
- }
- }
-
- displayPreview();
-}
-
-
-//=================================================================================
-// function : LineEditReturnPressed()
-// purpose :
-//=================================================================================
-void BasicGUI_PointDlg::LineEditReturnPressed()
-{
- QLineEdit* send = (QLineEdit*)sender();
- if ( send == GroupRefPoint->LineEdit1 || send == GroupOnCurve->LineEdit1 )
- {
- myEditCurrentArgument = send;
- GEOMBase_Skeleton::LineEditReturnPressed();
- }
-}
-
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BasicGUI_PointDlg::SetEditCurrentArgument()
-{
- QPushButton* send = (QPushButton*)sender();
-
- if ( send == GroupRefPoint->PushButton1 )
- {
- GroupRefPoint->LineEdit1->setFocus();
- myEditCurrentArgument = GroupRefPoint->LineEdit1;
-
- globalSelection( GEOM_POINT );
- }
- else if ( send == GroupOnCurve->PushButton1 )
- {
- GroupOnCurve->LineEdit1->setFocus();
- myEditCurrentArgument = GroupOnCurve->LineEdit1;
-
- globalSelection( GEOM_EDGE );
- }
-}
-
-
-//=================================================================================
-// function : enterEvent()
-// purpose : to reactivate this dialog box when mouse enter onto the window
-//=================================================================================
-void BasicGUI_PointDlg::enterEvent(QEvent* e)
-{
- if ( !GroupConstructors->isEnabled() )
- ActivateThisDialog();
-}
-
-
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void BasicGUI_PointDlg::ActivateThisDialog( )
-{
- GEOMBase_Skeleton::ActivateThisDialog();
- // myGeometryGUI->SetState( 0 );
- ConstructorsClicked( getConstructorId() );
-}
-
-
-//=================================================================================
-// function : DeactivateActiveDialog()
-// purpose : public slot to deactivate if active
-//=================================================================================
-void BasicGUI_PointDlg::DeactivateActiveDialog()
-{
- // myGeometryGUI->SetState( -1 );
- GEOMBase_Skeleton::DeactivateActiveDialog();
-}
-
-
-//=================================================================================
-// function : ValueChangedInSpinBox()
-// purpose :
-//=================================================================================
-void BasicGUI_PointDlg::ValueChangedInSpinBox(double newValue)
-{
- displayPreview();
-}
-
-//=======================================================================
-// funcion : getParameter()
-// purpose :
-//=======================================================================
-double BasicGUI_PointDlg::getParameter() const
-{
- return GroupOnCurve->SpinBox_DX->GetValue();
-}
-
-//=================================================================================
-// function : OnPointSelected
-// purpose :
-//=================================================================================
-void BasicGUI_PointDlg::OnPointSelected( const gp_Pnt& thePnt )
-{
- if ( getConstructorId() == 0 )
- {
- GroupXYZ->SpinBox_DX->SetValue( thePnt.X() );
- GroupXYZ->SpinBox_DY->SetValue( thePnt.Y() );
- GroupXYZ->SpinBox_DZ->SetValue( thePnt.Z() );
-
- displayPreview();
- }
-}
-
-//=================================================================================
-// function : createOperation
-// purpose :
-//=================================================================================
-GEOM::GEOM_IOperations_ptr BasicGUI_PointDlg::createOperation()
-{
- return myGeometryGUI->GetGeomGen()->GetIBasicOperations( getStudyId() );
-}
-
-//=================================================================================
-// function : isValid
-// purpose :
-//=================================================================================
-bool BasicGUI_PointDlg::isValid( QString& msg )
-{
- const int id = getConstructorId();
- if ( id == 0 )
- return true;
- else if ( id == 1 )
- return !myRefPoint->_is_nil();
- else if ( id == 2 )
- return !myEdge->_is_nil();
- return false;
-}
-
-//=================================================================================
-// function : execute
-// purpose :
-//=================================================================================
-bool BasicGUI_PointDlg::execute( ObjectList& objects )
-{
- bool res = false;
-
- GEOM::GEOM_Object_var anObj;
-
- switch ( getConstructorId() )
- {
- case 0 :
- {
- double x = GroupXYZ->SpinBox_DX->GetValue();
- double y = GroupXYZ->SpinBox_DY->GetValue();
- double z = GroupXYZ->SpinBox_DZ->GetValue();
-
- anObj = GEOM::GEOM_IBasicOperations::_narrow( getOperation() )->MakePointXYZ( x,y,z );
- res = true;
- break;
- }
- case 1 :
- {
- double dx = GroupRefPoint->SpinBox_DX->GetValue();
- double dy = GroupRefPoint->SpinBox_DY->GetValue();
- double dz = GroupRefPoint->SpinBox_DZ->GetValue();
-
- anObj = GEOM::GEOM_IBasicOperations::_narrow( getOperation() )->MakePointWithReference( myRefPoint, dx, dy, dz );
- res = true;
- break;
- }
- case 2 :
- anObj = GEOM::GEOM_IBasicOperations::_narrow( getOperation() )->MakePointOnCurve( myEdge, getParameter() );
- res = true;
- break;
- }
-
- if ( getConstructorId() == 1 || getConstructorId() == 2 )
- {
- TopoDS_Shape aShape;
- if ( GEOMBase::GetShape( anObj, aShape ) && !aShape.IsNull() && aShape.ShapeType() == TopAbs_VERTEX )
- {
- gp_Pnt aPnt = BRep_Tool::Pnt( TopoDS::Vertex( aShape ) );
- myX->setText( QString( "%1" ).arg( aPnt.X() ) );
- myY->setText( QString( "%1" ).arg( aPnt.Y() ) );
- myZ->setText( QString( "%1" ).arg( aPnt.Z() ) );
- }
- else
- {
- myX->setText( "" );
- myY->setText( "" );
- myZ->setText( "" );
- }
- }
-
- if ( !anObj->_is_nil() )
- {
- //printf( "--> a valid point is created\n" );
- objects.push_back( anObj._retn() );
- }
-
- return res;
-}
-
-//=================================================================================
-// function : closeEvent
-// purpose :
-//=================================================================================
-void BasicGUI_PointDlg::closeEvent( QCloseEvent* e )
-{
- // myGeometryGUI->SetState( -1 );
- GEOMBase_Skeleton::closeEvent( e );
-}
diff --git a/src/BasicGUI/BasicGUI_VectorDlg.cxx b/src/BasicGUI/BasicGUI_VectorDlg.cxx
deleted file mode 100644
index 3581fca1a..000000000
--- a/src/BasicGUI/BasicGUI_VectorDlg.cxx
+++ /dev/null
@@ -1,416 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BasicGUI_VectorDlg.cxx
-// Author : Lucien PIGNOLONI
-// Module : GEOM
-// $Header$
-
-#include "BasicGUI_VectorDlg.h"
-
-#include "SUIT_Desktop.h"
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-
-#include
-
-#include "GEOMImpl_Types.hxx"
-
-#include "utilities.h"
-
-using namespace std;
-
-//=================================================================================
-// class : BasicGUI_VectorDlg()
-// purpose : Constructs a BasicGUI_VectorDlg which is a child of 'parent', with the
-// name 'name' and widget flags set to 'f'.
-// The dialog will by default be modeless, unless you set 'modal' to
-// TRUE to construct a modal dialog.
-//=================================================================================
-BasicGUI_VectorDlg::BasicGUI_VectorDlg(GeometryGUI* theGeometryGUI, QWidget* parent, const char* name, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, modal, fl ), myGeometryGUI(theGeometryGUI)
-{
- QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_VECTOR_2P")));
- QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_VECTOR_DXYZ")));
- QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
-
- setCaption(tr("GEOM_VECTOR_TITLE"));
-
- /***************************************************************/
- GroupConstructors->setTitle(tr("GEOM_VECTOR"));
- RadioButton1->setPixmap(image0);
- RadioButton2->setPixmap(image1);
- RadioButton3->close(TRUE);
-
- GroupPoints = new DlgRef_2Sel_QTD(this, "GroupPoints");
- GroupPoints->GroupBox1->setTitle(tr("GEOM_POINTS"));
- GroupPoints->TextLabel1->setText(tr("GEOM_POINT_I").arg("1"));
- GroupPoints->TextLabel2->setText(tr("GEOM_POINT_I").arg("2"));
- GroupPoints->PushButton1->setPixmap(image2);
- GroupPoints->PushButton2->setPixmap(image2);
-
- GroupPoints->LineEdit1->setReadOnly( true );
- GroupPoints->LineEdit2->setReadOnly( true );
-
- GroupDimensions = new DlgRef_3Spin1Check(this, "GroupDimensions");
- GroupDimensions->GroupBox1->setTitle(tr("GEOM_COORDINATES"));
- GroupDimensions->TextLabel1->setText(tr("GEOM_DX"));
- GroupDimensions->TextLabel2->setText(tr("GEOM_DY"));
- GroupDimensions->TextLabel3->setText(tr("GEOM_DZ"));
- GroupDimensions->CheckBox1->setText(tr("GEOM_REVERSE_VECTOR"));
-
- Layout1->addWidget(GroupPoints, 2, 0);
- Layout1->addWidget(GroupDimensions, 2, 0);
- /***************************************************************/
-
- /* Initialisations */
- Init();
-}
-
-
-//=================================================================================
-// function : ~BasicGUI_VectorDlg()
-// purpose : Destroys the object and frees any allocated resources
-//=================================================================================
-BasicGUI_VectorDlg::~BasicGUI_VectorDlg()
-{
-}
-
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BasicGUI_VectorDlg::Init()
-{
- /* init variables */
- myEditCurrentArgument = GroupPoints->LineEdit1;
-
- myPoint1 = GEOM::GEOM_Object::_nil();
- myPoint2 = GEOM::GEOM_Object::_nil();
-
- /* Get setting of step value from file configuration */
- SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
- double step = resMgr->doubleValue( "Geometry", "SettingsGeomStep", 100);
-
- /* min, max, step and decimals for spin boxes */
- GroupDimensions->SpinBox_DX->RangeStepAndValidator(-999.999, 999.999, step, 3);
- GroupDimensions->SpinBox_DY->RangeStepAndValidator(-999.999, 999.999, step, 3);
- GroupDimensions->SpinBox_DZ->RangeStepAndValidator(-999.999, 999.999, step, 3);
-
- double dx( 0. ), dy( 0. ), dz( 200. );
- GroupDimensions->SpinBox_DX->SetValue( dx );
- GroupDimensions->SpinBox_DY->SetValue( dy );
- GroupDimensions->SpinBox_DZ->SetValue( dz );
-
- GroupDimensions->CheckBox1->setChecked(FALSE);
-
- /* signals and slots connections */
- connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
-
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
- connect(GroupConstructors, SIGNAL(clicked(int)), this, SLOT(ConstructorsClicked(int)));
-
- connect(GroupPoints->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(GroupPoints->PushButton2, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
-
- connect(GroupPoints->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(GroupPoints->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
-
- connect(GroupDimensions->SpinBox_DX, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(GroupDimensions->SpinBox_DY, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(GroupDimensions->SpinBox_DZ, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
-
- connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DX, SLOT(SetStep(double)));
- connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DY, SLOT(SetStep(double)));
- connect(myGeometryGUI, SIGNAL(SignalDefaultStepValueChanged(double)), GroupDimensions->SpinBox_DZ, SLOT(SetStep(double)));
-
- connect(GroupDimensions->CheckBox1, SIGNAL(stateChanged(int)), this, SLOT(ReverseVector(int)));
-
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-
- initName( tr("GEOM_VECTOR") );
-
- GroupDimensions->hide();
- ConstructorsClicked( 0 );
-}
-
-
-//=================================================================================
-// function : ConstructorsClicked()
-// purpose : Radio button management
-//=================================================================================
-void BasicGUI_VectorDlg::ConstructorsClicked( int constructorId )
-{
- disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
- myPoint1 = GEOM::GEOM_Object::_nil();
- myPoint2 = GEOM::GEOM_Object::_nil();
-
- switch (constructorId)
- {
- case 0:
- {
- GroupDimensions->hide();
- resize(0, 0);
- GroupPoints->show();
-
- myEditCurrentArgument = GroupPoints->LineEdit1;
- GroupPoints->LineEdit1->setText("");
- GroupPoints->LineEdit2->setText("");
-
- globalSelection( GEOM_POINT );
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
- break;
- }
- case 1:
- {
- GroupPoints->hide();
- resize( 0, 0 );
- GroupDimensions->show();
-
- double dx( 0. ), dy( 0. ), dz( 0. );
- GroupDimensions->SpinBox_DX->SetValue( dx );
- GroupDimensions->SpinBox_DY->SetValue( dy );
- GroupDimensions->SpinBox_DZ->SetValue( dz );
-
- GroupDimensions->CheckBox1->setChecked( FALSE );
- break;
- }
- }
-
- displayPreview();
-}
-
-
-//=================================================================================
-// function : ClickOnOk()
-// purpose :
-//=================================================================================
-void BasicGUI_VectorDlg::ClickOnOk()
-{
- if ( ClickOnApply() )
- ClickOnCancel();
-}
-
-//=======================================================================
-// function : ClickOnCancel()
-// purpose :
-//=======================================================================
-void BasicGUI_VectorDlg::ClickOnCancel()
-{
- GEOMBase_Skeleton::ClickOnCancel();
-}
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose :
-//=================================================================================
-bool BasicGUI_VectorDlg::ClickOnApply()
-{
- buttonApply->setFocus();
-
- if ( !onAccept() )
- return false;
-
- initName();
- if ( getConstructorId() != 1 )
- ConstructorsClicked( getConstructorId() );
- return true;
-}
-
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection as changed or other case
-//=================================================================================
-void BasicGUI_VectorDlg::SelectionIntoArgument()
-{
- myEditCurrentArgument->setText("");
-
- if ( IObjectCount() != 1 )
- {
- if ( myEditCurrentArgument == GroupPoints->LineEdit1 )
- myPoint1 = GEOM::GEOM_Object::_nil();
- else if ( myEditCurrentArgument == GroupPoints->LineEdit2 )
- myPoint2 = GEOM::GEOM_Object::_nil();
- return;
- }
-
- // nbSel == 1
- Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
- if ( !CORBA::is_nil( aSelectedObject ) && aRes )
- {
- myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
- if ( myEditCurrentArgument == GroupPoints->LineEdit1 ) myPoint1 = aSelectedObject;
- else if ( myEditCurrentArgument == GroupPoints->LineEdit2 ) myPoint2 = aSelectedObject;
- }
-
- displayPreview();
-}
-
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BasicGUI_VectorDlg::SetEditCurrentArgument()
-{
- QPushButton* send = (QPushButton*)sender();
- if ( send == GroupPoints->PushButton1 ) myEditCurrentArgument = GroupPoints->LineEdit1;
- else if ( send == GroupPoints->PushButton2 ) myEditCurrentArgument = GroupPoints->LineEdit2;
- myEditCurrentArgument->setFocus();
- SelectionIntoArgument();
-}
-
-
-//=================================================================================
-// function : LineEditReturnPressed()
-// purpose :
-//=================================================================================
-void BasicGUI_VectorDlg::LineEditReturnPressed()
-{
- QLineEdit* send = (QLineEdit*)sender();
- if ( send == GroupPoints->LineEdit1 ) myEditCurrentArgument = GroupPoints->LineEdit1;
- else if ( send == GroupPoints->LineEdit2 ) myEditCurrentArgument = GroupPoints->LineEdit2;
- else return;
- GEOMBase_Skeleton::LineEditReturnPressed();
-}
-
-
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void BasicGUI_VectorDlg::ActivateThisDialog()
-{
- GEOMBase_Skeleton::ActivateThisDialog();
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-
- ConstructorsClicked( getConstructorId() );
-}
-
-//=================================================================================
-// function : DeactivateActiveDialog()
-// purpose : public slot to deactivate if active
-//=================================================================================
-void BasicGUI_VectorDlg::DeactivateActiveDialog()
-{
- // myGeometryGUI->SetState( -1 );
- GEOMBase_Skeleton::DeactivateActiveDialog();
-}
-
-//=================================================================================
-// function : enterEvent()
-// purpose :
-//=================================================================================
-void BasicGUI_VectorDlg::enterEvent(QEvent* e)
-{
- if ( !GroupConstructors->isEnabled() )
- ActivateThisDialog();
-}
-
-//=================================================================================
-// function : ValueChangedInSpinBox()
-// purpose :
-//=================================================================================
-void BasicGUI_VectorDlg::ValueChangedInSpinBox( double newValue )
-{
- displayPreview();
-}
-
-//=================================================================================
-// function : ReverseVector()
-// purpose : 'state' not used here
-//=================================================================================
-void BasicGUI_VectorDlg::ReverseVector(int state)
-{
- double dx = -GroupDimensions->SpinBox_DX->GetValue();
- double dy = -GroupDimensions->SpinBox_DY->GetValue();
- double dz = -GroupDimensions->SpinBox_DZ->GetValue();
-
- GroupDimensions->SpinBox_DX->SetValue( dx );
- GroupDimensions->SpinBox_DY->SetValue( dy );
- GroupDimensions->SpinBox_DZ->SetValue( dz );
-
- displayPreview();
-}
-
-//=================================================================================
-// function : createOperation
-// purpose :
-//=================================================================================
-GEOM::GEOM_IOperations_ptr BasicGUI_VectorDlg::createOperation()
-{
- return myGeometryGUI->GetGeomGen()->GetIBasicOperations( getStudyId() );
-}
-
-//=================================================================================
-// function : isValid
-// purpose :
-//=================================================================================
-bool BasicGUI_VectorDlg::isValid( QString& msg )
-{
- return getConstructorId() == 0 ? !myPoint1->_is_nil() && !myPoint2->_is_nil(): true;
-}
-
-//=================================================================================
-// function : execute
-// purpose :
-//=================================================================================
-bool BasicGUI_VectorDlg::execute( ObjectList& objects )
-{
- bool res = false;
-
- GEOM::GEOM_Object_var anObj;
-
- switch ( getConstructorId() ) {
- case 0 :
- anObj = GEOM::GEOM_IBasicOperations::_narrow( getOperation() )->MakeVectorTwoPnt( myPoint1, myPoint2 );
- res = true;
- break;
-
- case 1 :
- {
- double dx = GroupDimensions->SpinBox_DX->GetValue();
- double dy = GroupDimensions->SpinBox_DY->GetValue();
- double dz = GroupDimensions->SpinBox_DZ->GetValue();
- anObj = GEOM::GEOM_IBasicOperations::_narrow( getOperation() )->MakeVectorDXDYDZ( dx,dy,dz );
- res = true;
- break;
- }
- }
-
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
-
- return res;
-}
-
diff --git a/src/BasicGUI/BasicGUI_WorkingPlaneDlg.cxx b/src/BasicGUI/BasicGUI_WorkingPlaneDlg.cxx
deleted file mode 100644
index cf56ed78c..000000000
--- a/src/BasicGUI/BasicGUI_WorkingPlaneDlg.cxx
+++ /dev/null
@@ -1,468 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BasicGUI_WorkingPlaneDlg.cxx
-// Author : Lucien PIGNOLONI
-// Module : GEOM
-
-#include "BasicGUI_WorkingPlaneDlg.h"
-
-#include "GEOMBase.h"
-
-#include "SUIT_Desktop.h"
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-#include "GEOMImpl_Types.hxx"
-
-#include
-#include
-
-using namespace std;
-
-//=================================================================================
-// class : BasicGUI_WorkingPlaneDlg()
-// purpose : Constructs a BasicGUI_WorkingPlaneDlg which is a child of 'parent', with the
-// name 'name' and widget flags set to 'f'.
-// The dialog will by default be modeless, unless you set 'modal' to
-// TRUE to construct a modal dialog.
-//=================================================================================
-BasicGUI_WorkingPlaneDlg::BasicGUI_WorkingPlaneDlg(GeometryGUI* theGeometryGUI , QWidget* parent, const char* name, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu), myGeometryGUI(theGeometryGUI)
-{
- QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
- QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_WPLANE_FACE")));
- QPixmap image2(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_WPLANE_VECTOR")));
- QPixmap image3(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_WPLANE_ORIGIN")));
-
- setCaption(tr("GEOM_WPLANE_TITLE"));
-
- /***************************************************************/
- GroupConstructors->setTitle(tr("GEOM_WPLANE"));
- RadioButton1->setPixmap(image1);
- RadioButton2->setPixmap(image2);
- RadioButton3->setPixmap(image3);
-
- Group1 = new DlgRef_1Sel_QTD(this, "Group1");
- Group1->GroupBox1->setTitle(tr("GEOM_WPLANE_FACE"));
- Group1->TextLabel1->setText(tr("GEOM_SELECTION"));
- Group1->PushButton1->setPixmap(image0);
- Group1->LineEdit1->setReadOnly( true );
-
- Group2 = new DlgRef_2Sel_QTD(this, "Group2");
- Group2->GroupBox1->setTitle(tr("GEOM_WPLANE_VECTOR"));
- Group2->TextLabel1->setText(tr("GEOM_WPLANE_VX"));
- Group2->TextLabel2->setText(tr("GEOM_WPLANE_VZ"));
- Group2->PushButton1->setPixmap(image0);
- Group2->PushButton2->setPixmap(image0);
- Group2->LineEdit1->setReadOnly( true );
- Group2->LineEdit2->setReadOnly( true );
-
- Group3 = new DlgRef_3Check_QTD(this, "Group3");
- Group3->GroupBox1->setTitle(tr("GEOM_WPLANE_ORIGIN"));
- Group3->RadioButton1->setText(tr("GEOM_WPLANE_OXY"));
- Group3->RadioButton2->setText(tr("GEOM_WPLANE_OYZ"));
- Group3->RadioButton3->setText(tr("GEOM_WPLANE_OZX"));
-
- Layout1->addWidget(Group1, 1, 0);
- Layout1->addWidget(Group2, 1, 0);
- Layout1->addWidget(Group3, 1, 0);
- /***************************************************************/
-
- Init();
-}
-
-//=================================================================================
-// function : ~BasicGUI_WorkingPlaneDlg()
-// purpose : Destroys the object and frees any allocated resources
-//=================================================================================
-BasicGUI_WorkingPlaneDlg::~BasicGUI_WorkingPlaneDlg()
-{
-}
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BasicGUI_WorkingPlaneDlg::Init()
-{
- /* init variables */
- myEditCurrentArgument = Group1->LineEdit1;
- myWPlane = myGeometryGUI->GetWorkingPlane();
-
- // myGeometryGUI->SetState( 0 );
-
- myFace = GEOM::GEOM_Object::_nil();
- myVectX = GEOM::GEOM_Object::_nil();
- myVectZ = GEOM::GEOM_Object::_nil();
-
- aOriginType = 1;
-
- /* Filter definition */
- globalSelection( GEOM_PLANE );
-
- /* signals and slots connections */
- connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeometryGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeometryGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
- connect(GroupConstructors, SIGNAL(clicked(int)), this, SLOT(ConstructorsClicked(int)));
-
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
-
- connect(Group1->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(Group1->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
-
- connect(Group2->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(Group2->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(Group2->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(Group2->PushButton2, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
-
- connect(Group3->GroupBox1, SIGNAL(clicked(int)), this, SLOT(GroupClicked(int)));
-
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-
- initName( tr( "GEOM_WPLANE" ) );
- ConstructorsClicked(0);
-}
-
-//=================================================================================
-// function : ConstructorsClicked()
-// purpose : Radio button management
-//=================================================================================
-void BasicGUI_WorkingPlaneDlg::ConstructorsClicked(int constructorId)
-{
- disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(), 0, this, 0);
- // myGeometryGUI->SetState( 0 );
-
- switch (constructorId)
- {
- case 0:
- {
- globalSelection( GEOM_PLANE );
-
- Group2->hide();
- Group3->hide();
- resize(0, 0);
- Group1->show();
-
- myEditCurrentArgument = Group1->LineEdit1;
- Group1->LineEdit1->setText("");
- myFace = GEOM::GEOM_Object::_nil();
-
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
- break;
- }
- case 1:
- {
- globalSelection( GEOM_LINE );
-
- Group1->hide();
- Group3->hide();
- resize(0, 0);
- Group2->show();
-
- myEditCurrentArgument = Group2->LineEdit1;
- Group2->LineEdit1->setText("");
- Group2->LineEdit2->setText("");
- myVectX = GEOM::GEOM_Object::_nil();
- myVectZ = GEOM::GEOM_Object::_nil();
-
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
- break;
- }
- case 2:
- {
- Group1->hide();
- Group2->hide();
- resize(0, 0);
- Group3->show();
-
- Group3->RadioButton1->setChecked(true);
- aOriginType = 1;
- break;
- }
- }
- displayPreview();
-}
-
-//=================================================================================
-// function : GroupClicked()
-// purpose : Radio button management
-//=================================================================================
-void BasicGUI_WorkingPlaneDlg::GroupClicked(int groupId)
-{
- aOriginType = groupId;
-}
-
-//=================================================================================
-// function : ClickOnOk()
-// purpose :
-//=================================================================================
-void BasicGUI_WorkingPlaneDlg::ClickOnOk()
-{
- if ( ClickOnApply() )
- ClickOnCancel();
-}
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose :
-//=================================================================================
-bool BasicGUI_WorkingPlaneDlg::ClickOnApply()
-{
- buttonApply->setFocus();
- myGeometryGUI->application()->putInfo(tr(""));
- const int id = getConstructorId();
-
- if (id == 0) {
- if ( !CORBA::is_nil( myFace ) ) {
- TopoDS_Face aPlaneShape;
- if ( GEOMBase::GetShape( myFace, aPlaneShape, TopAbs_FACE ) ) {
- Handle(Geom_Surface) aGS = BRep_Tool::Surface( TopoDS::Face( aPlaneShape ) );
- if ( !aGS.IsNull() && aGS->IsKind( STANDARD_TYPE( Geom_Plane ) ) ) {
- Handle(Geom_Plane) aGPlane = Handle(Geom_Plane)::DownCast( aGS );
- gp_Pln aPln = aGPlane->Pln();
-
- myWPlane = aPln.Position();
- myGeometryGUI->SetWorkingPlane(myWPlane);
- myGeometryGUI->ActiveWorkingPlane();
- return true;
- }
- }
- }
- } else if (id == 1) {
- if ( CORBA::is_nil( myVectX ) || CORBA::is_nil( myVectZ ) ) {
- showError( "Two vectors have to be selected" );
- return false;
- }
-
- TopoDS_Edge aVectX, aVectZ;
- TopoDS_Vertex V1, V2;
- gp_Vec aVX, aVZ;
- if (GEOMBase::GetShape( myVectX, aVectX, TopAbs_EDGE ) &&
- GEOMBase::GetShape( myVectZ, aVectZ, TopAbs_EDGE )) {
- TopExp::Vertices(aVectZ, V1, V2, Standard_True);
- if (!V1.IsNull() && !V2.IsNull())
- aVZ = gp_Vec(BRep_Tool::Pnt(V1), BRep_Tool::Pnt(V2));
- else {
- showError( "Bad OZ vector" );
- return false;
- }
-
- TopExp::Vertices(aVectX, V1, V2, Standard_True);
- if (!V1.IsNull() && !V2.IsNull())
- aVX = gp_Vec(BRep_Tool::Pnt(V1), BRep_Tool::Pnt(V2));
- else {
- showError( "Bad OX vector" );
- return false;
- }
-
- gp_Dir aDirZ = gp_Dir(aVZ.X(), aVZ.Y(), aVZ.Z());
- gp_Dir aDirX = gp_Dir(aVX.X(), aVX.Y(), aVX.Z());
-
- if (aDirX.IsParallel(aDirZ, Precision::Confusion())) {
- showError( "Parallel vectors selected" );
- return false;
- }
-
- myWPlane = gp_Ax3(BRep_Tool::Pnt(V1), aDirZ, aDirX);
-
- myGeometryGUI->SetWorkingPlane(myWPlane);
- myGeometryGUI->ActiveWorkingPlane();
- return true;
- }
- } else if (id == 2) {
- gp_Pnt P1 = gp_Pnt(0., 0., 0.);
- gp_Dir aDirZ, aDirX;
-
- if (aOriginType == 1) {
- aDirZ = gp_Dir(0., 0., 1.);
- aDirX = gp_Dir(1., 0., 0.);
- }
- else if (aOriginType == 2) {
- aDirZ = gp_Dir(1., 0., 0.);
- aDirX = gp_Dir(0., 1., 0.);
- }
- else if (aOriginType == 0) {
- aDirZ = gp_Dir(0., 1., 0.);
- aDirX = gp_Dir(0., 0., 1.);
- }
-
- myWPlane = gp_Ax3(P1, aDirZ, aDirX);
-
- myGeometryGUI->SetWorkingPlane(myWPlane);
- myGeometryGUI->ActiveWorkingPlane();
- return true;
- }
- return false;
-}
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection as changed or other case
-//=================================================================================
-void BasicGUI_WorkingPlaneDlg::SelectionIntoArgument()
-{
- myEditCurrentArgument->setText("");
-
- const int id = getConstructorId();
- if ( IObjectCount() != 1 ) {
- if(id == 0)
- myFace = GEOM::GEOM_Object::_nil();
- else if(id == 1) {
- if (myEditCurrentArgument == Group2->LineEdit1)
- myVectX = GEOM::GEOM_Object::_nil();
- else if (myEditCurrentArgument == Group2->LineEdit2)
- myVectZ = GEOM::GEOM_Object::_nil();
- }
- return;
- }
-
- // nbSel == 1
- Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(firstIObject(), aRes);
-
- if(!aRes || CORBA::is_nil( aSelectedObject ))
- return;
-
- if(myEditCurrentArgument == Group1->LineEdit1)
- myFace = aSelectedObject;
- else if(myEditCurrentArgument == Group2->LineEdit1)
- myVectX = aSelectedObject;
- else if(myEditCurrentArgument == Group2->LineEdit2)
- myVectZ = aSelectedObject;
-
- myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
-}
-
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BasicGUI_WorkingPlaneDlg::SetEditCurrentArgument()
-{
- QPushButton* send = (QPushButton*)sender();
-
- if(send == Group1->PushButton1) {
- myEditCurrentArgument = Group1->LineEdit1;
- globalSelection( GEOM_PLANE );
- }
- else if(send == Group2->PushButton1) {
- myEditCurrentArgument = Group2->LineEdit1;
- globalSelection( GEOM_LINE );
- }
- else if(send == Group2->PushButton2) {
- myEditCurrentArgument = Group2->LineEdit2;
- globalSelection( GEOM_LINE );
- }
-
- myEditCurrentArgument->setFocus();
- SelectionIntoArgument();
-}
-
-
-//=================================================================================
-// function : LineEditReturnPressed()
-// purpose :
-//=================================================================================
-void BasicGUI_WorkingPlaneDlg::LineEditReturnPressed()
-{
- QLineEdit* send = (QLineEdit*)sender();
- if(send == Group1->LineEdit1 || send == Group2->LineEdit1 || send == Group2->LineEdit2) {
- myEditCurrentArgument = send;
- GEOMBase_Skeleton::LineEditReturnPressed();
- }
-}
-
-
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void BasicGUI_WorkingPlaneDlg::ActivateThisDialog( )
-{
- GEOMBase_Skeleton::ActivateThisDialog();
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-
- ConstructorsClicked( getConstructorId() );
-}
-
-
-//=================================================================================
-// function : DeactivateActiveDialog()
-// purpose : public slot to deactivate if active
-//=================================================================================
-void BasicGUI_WorkingPlaneDlg::DeactivateActiveDialog()
-{
- // myGeometryGUI->SetState( -1 );
- GEOMBase_Skeleton::DeactivateActiveDialog();
-}
-
-//=======================================================================
-// function : ClickOnCancel()
-// purpose :
-//=======================================================================
-void BasicGUI_WorkingPlaneDlg::ClickOnCancel()
-{
- GEOMBase_Skeleton::ClickOnCancel();
-}
-
-//=================================================================================
-// function : enterEvent()
-// purpose :
-//=================================================================================
-void BasicGUI_WorkingPlaneDlg::enterEvent(QEvent* e)
-{
- if ( !GroupConstructors->isEnabled() )
- ActivateThisDialog();
-}
-
-//=================================================================================
-// function : closeEvent
-// purpose :
-//=================================================================================
-void BasicGUI_WorkingPlaneDlg::closeEvent( QCloseEvent* e )
-{
- // myGeometryGUI->SetState( -1 );
- GEOMBase_Skeleton::closeEvent( e );
-}
diff --git a/src/BlocksGUI/BlocksGUI_BlockDlg.cxx b/src/BlocksGUI/BlocksGUI_BlockDlg.cxx
deleted file mode 100644
index 059c8facd..000000000
--- a/src/BlocksGUI/BlocksGUI_BlockDlg.cxx
+++ /dev/null
@@ -1,400 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 CEA
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.salome-platform.org or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BlocksGUI_BlockDlg.cxx
-// Author : Julia DOROVSKIKH
-// Module : GEOM
-// $Header$
-
-#include "BlocksGUI_BlockDlg.h"
-
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-
-#include "GEOMImpl_Types.hxx"
-
-using namespace std;
-
-#include
-
-//=================================================================================
-// class : BlocksGUI_BlockDlg()
-// purpose : Constructs a BlocksGUI_BlockDlg which is a child of 'parent'.
-//=================================================================================
-BlocksGUI_BlockDlg::BlocksGUI_BlockDlg (QWidget* parent,
- bool modal)
- : GEOMBase_Skeleton(parent, "BlockDlg", modal,
- WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
-{
- QPixmap image0 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_DLG_BLOCK_2F")));
- QPixmap image1 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_DLG_BLOCK_6F")));
- QPixmap imageS (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_SELECT")));
-
- setCaption(tr("GEOM_BLOCK_TITLE"));
-
- /***************************************************************/
- GroupConstructors->setTitle(tr("GEOM_BLOCK"));
-
- RadioButton1->setPixmap(image0);
- RadioButton2->setPixmap(image1);
- RadioButton3->close(TRUE);
-
- // Create first group
- Group2F = new DlgRef_2Sel_QTD(this, "Group2F");
- Group2F->GroupBox1->setTitle(tr("GEOM_ARGUMENTS"));
- Group2F->TextLabel1->setText(tr("FACE_1"));
- Group2F->TextLabel2->setText(tr("FACE_2"));
- Group2F->PushButton1->setPixmap(imageS);
- Group2F->PushButton2->setPixmap(imageS);
-
- // Create second group
- Group6F = new DlgRef_6Sel_QTD(this, "Group2F");
- Group6F->GroupBox1->setTitle(tr("GEOM_ARGUMENTS"));
- Group6F->TextLabel1->setText(tr("FACE_1"));
- Group6F->TextLabel2->setText(tr("FACE_2"));
- Group6F->TextLabel3->setText(tr("FACE_3"));
- Group6F->TextLabel4->setText(tr("FACE_4"));
- Group6F->TextLabel5->setText(tr("FACE_5"));
- Group6F->TextLabel6->setText(tr("FACE_6"));
- Group6F->PushButton1->setPixmap(imageS);
- Group6F->PushButton2->setPixmap(imageS);
- Group6F->PushButton3->setPixmap(imageS);
- Group6F->PushButton4->setPixmap(imageS);
- Group6F->PushButton5->setPixmap(imageS);
- Group6F->PushButton6->setPixmap(imageS);
-
- // Add groups to layout
- Layout1->addWidget(Group2F, 2, 0);
- Layout1->addWidget(Group6F, 2, 0);
- /***************************************************************/
-
- Init();
-}
-
-//=================================================================================
-// function : ~BlocksGUI_BlockDlg()
-// purpose : Destroys the object and frees any allocated resources
-//=================================================================================
-BlocksGUI_BlockDlg::~BlocksGUI_BlockDlg()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BlocksGUI_BlockDlg::Init()
-{
- // init variables
- Group2F->LineEdit1->setReadOnly(true);
- Group2F->LineEdit2->setReadOnly(true);
-
- Group6F->LineEdit1->setReadOnly(true);
- Group6F->LineEdit2->setReadOnly(true);
- Group6F->LineEdit3->setReadOnly(true);
- Group6F->LineEdit4->setReadOnly(true);
- Group6F->LineEdit5->setReadOnly(true);
- Group6F->LineEdit6->setReadOnly(true);
-
- // signals and slots connections
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
- connect(GroupConstructors, SIGNAL(clicked(int)), this, SLOT(ConstructorsClicked(int)));
-
- connect(Group2F->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(Group2F->PushButton2, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
-
- connect(Group6F->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(Group6F->PushButton2, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(Group6F->PushButton3, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(Group6F->PushButton4, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(Group6F->PushButton5, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(Group6F->PushButton6, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
-
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-
- // init controls and fields
- initName(tr("GEOM_BLOCK"));
-
- myConstructorId = -1;
- ConstructorsClicked(0);
-}
-
-//=================================================================================
-// function : ConstructorsClicked()
-// purpose : Radio button management
-//=================================================================================
-void BlocksGUI_BlockDlg::ConstructorsClicked (int constructorId)
-{
- if (myConstructorId == constructorId)
- return;
-
- myConstructorId = constructorId;
-
- switch (constructorId) {
- case 0:
- Group6F->hide();
- resize(0, 0);
- Group2F->show();
-
- myEditCurrentArgument = Group2F->LineEdit1;
- Group2F->LineEdit1->setText(tr(""));
- Group2F->LineEdit2->setText(tr(""));
- break;
- case 1:
- Group2F->hide();
- resize(0, 0);
- Group6F->show();
-
- myEditCurrentArgument = Group6F->LineEdit1;
- Group6F->LineEdit1->setText(tr(""));
- Group6F->LineEdit2->setText(tr(""));
- Group6F->LineEdit3->setText(tr(""));
- Group6F->LineEdit4->setText(tr(""));
- Group6F->LineEdit5->setText(tr(""));
- Group6F->LineEdit6->setText(tr(""));
- break;
- default:
- break;
- }
-
- // init fields
- myFace1 = myFace2 = GEOM::GEOM_Object::_nil();
- myFace3 = myFace4 = myFace5 = myFace6 = myFace1;
-
- globalSelection(GEOM_FACE);
- SelectionIntoArgument();
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-}
-
-//=================================================================================
-// function : ClickOnOk()
-// purpose :
-//=================================================================================
-void BlocksGUI_BlockDlg::ClickOnOk()
-{
- if (ClickOnApply())
- ClickOnCancel();
-}
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose :
-//=================================================================================
-bool BlocksGUI_BlockDlg::ClickOnApply()
-{
- if (!onAccept())
- return false;
-
- initName();
- return true;
-}
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection as changed or other case
-//=================================================================================
-void BlocksGUI_BlockDlg::SelectionIntoArgument()
-{
- erasePreview();
- myEditCurrentArgument->setText("");
-
- if (IObjectCount() != 1)
- {
- if (myEditCurrentArgument == Group2F->LineEdit1 ||
- myEditCurrentArgument == Group6F->LineEdit1)
- myFace1 = GEOM::GEOM_Object::_nil();
- else if (myEditCurrentArgument == Group2F->LineEdit2 ||
- myEditCurrentArgument == Group6F->LineEdit2)
- myFace2 = GEOM::GEOM_Object::_nil();
- else if (myEditCurrentArgument == Group6F->LineEdit3)
- myFace3 = GEOM::GEOM_Object::_nil();
- else if (myEditCurrentArgument == Group6F->LineEdit4)
- myFace4 = GEOM::GEOM_Object::_nil();
- else if (myEditCurrentArgument == Group6F->LineEdit5)
- myFace5 = GEOM::GEOM_Object::_nil();
- else if (myEditCurrentArgument == Group6F->LineEdit6)
- myFace6 = GEOM::GEOM_Object::_nil();
- return;
- }
-
- // nbSel == 1
- Standard_Boolean testResult = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject =
- GEOMBase::ConvertIOinGEOMObject( firstIObject(), testResult );
-
- if (!testResult || CORBA::is_nil( aSelectedObject ))
- return;
-
- if (myEditCurrentArgument == Group2F->LineEdit1 ||
- myEditCurrentArgument == Group6F->LineEdit1)
- myFace1 = aSelectedObject;
- else if (myEditCurrentArgument == Group2F->LineEdit2 ||
- myEditCurrentArgument == Group6F->LineEdit2)
- myFace2 = aSelectedObject;
- else if (myEditCurrentArgument == Group6F->LineEdit3)
- myFace3 = aSelectedObject;
- else if (myEditCurrentArgument == Group6F->LineEdit4)
- myFace4 = aSelectedObject;
- else if (myEditCurrentArgument == Group6F->LineEdit5)
- myFace5 = aSelectedObject;
- else if (myEditCurrentArgument == Group6F->LineEdit6)
- myFace6 = aSelectedObject;
-
- myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
-
- displayPreview();
-}
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BlocksGUI_BlockDlg::SetEditCurrentArgument()
-{
- QPushButton* aSender = (QPushButton*)sender();
-
- if (aSender == Group2F->PushButton1) {
- myEditCurrentArgument = Group2F->LineEdit1;
- } else if (aSender == Group2F->PushButton2) {
- myEditCurrentArgument = Group2F->LineEdit2;
-
- } else if (aSender == Group6F->PushButton1) {
- myEditCurrentArgument = Group6F->LineEdit1;
- } else if (aSender == Group6F->PushButton2) {
- myEditCurrentArgument = Group6F->LineEdit2;
- } else if (aSender == Group6F->PushButton3) {
- myEditCurrentArgument = Group6F->LineEdit3;
- } else if (aSender == Group6F->PushButton4) {
- myEditCurrentArgument = Group6F->LineEdit4;
- } else if (aSender == Group6F->PushButton5) {
- myEditCurrentArgument = Group6F->LineEdit5;
- } else if (aSender == Group6F->PushButton6) {
- myEditCurrentArgument = Group6F->LineEdit6;
- }
-
- globalSelection(GEOM_FACE);
-
- myEditCurrentArgument->setFocus();
- SelectionIntoArgument();
-}
-
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void BlocksGUI_BlockDlg::ActivateThisDialog()
-{
- GEOMBase_Skeleton::ActivateThisDialog();
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument()));
-
- globalSelection(GEOM_FACE);
-
- SelectionIntoArgument();
-}
-
-//=================================================================================
-// function : enterEvent()
-// purpose :
-//=================================================================================
-void BlocksGUI_BlockDlg::enterEvent (QEvent* e)
-{
- if (!GroupConstructors->isEnabled())
- ActivateThisDialog();
-}
-
-//=================================================================================
-// function : DeactivateActiveDialog()
-// purpose : public slot to deactivate if active
-//=================================================================================
-//void BlocksGUI_BlockDlg::DeactivateActiveDialog()
-//{
-// GEOMBase_Skeleton::DeactivateActiveDialog();
-//}
-
-//=================================================================================
-// function : createOperation
-// purpose :
-//=================================================================================
-GEOM::GEOM_IOperations_ptr BlocksGUI_BlockDlg::createOperation()
-{
- return getGeomEngine()->GetIBlocksOperations(getStudyId());
-}
-
-//=================================================================================
-// function : isValid
-// purpose :
-//=================================================================================
-bool BlocksGUI_BlockDlg::isValid (QString&)
-{
- switch (getConstructorId()) {
- case 0:
- return !(myFace1->_is_nil() || myFace2->_is_nil());
- case 1:
- return !(myFace1->_is_nil() || myFace2->_is_nil() ||
- myFace3->_is_nil() || myFace4->_is_nil() ||
- myFace5->_is_nil() || myFace6->_is_nil());
- default:
- return false;
- }
- return false;
-}
-
-//=================================================================================
-// function : execute
-// purpose :
-//=================================================================================
-bool BlocksGUI_BlockDlg::execute (ObjectList& objects)
-{
- bool res = false;
-
- GEOM::GEOM_Object_var anObj;
-
- switch (getConstructorId()) {
- case 0:
- if (!CORBA::is_nil(myFace1) && !CORBA::is_nil(myFace2)) {
- anObj = GEOM::GEOM_IBlocksOperations::_narrow(getOperation())->
- MakeHexa2Faces(myFace1, myFace2);
- res = true;
- }
- break;
- case 1:
- if (!CORBA::is_nil(myFace1) && !CORBA::is_nil(myFace2) &&
- !CORBA::is_nil(myFace3) && !CORBA::is_nil(myFace4) &&
- !CORBA::is_nil(myFace5) && !CORBA::is_nil(myFace6)) {
- anObj = GEOM::GEOM_IBlocksOperations::_narrow(getOperation())->
- MakeHexa(myFace1, myFace2, myFace3, myFace4, myFace5, myFace6);
- res = true;
- }
- break;
- }
-
- if (!anObj->_is_nil())
- objects.push_back(anObj._retn());
-
- return res;
-}
diff --git a/src/BlocksGUI/BlocksGUI_ExplodeDlg.cxx b/src/BlocksGUI/BlocksGUI_ExplodeDlg.cxx
deleted file mode 100644
index 9ebdd93ec..000000000
--- a/src/BlocksGUI/BlocksGUI_ExplodeDlg.cxx
+++ /dev/null
@@ -1,505 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 CEA
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.salome-platform.org or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BlocksGUI_ExplodeDlg.cxx
-// Author : Julia DOROVSKIKH
-// Module : GEOM
-// $Header$
-
-#include "BlocksGUI_ExplodeDlg.h"
-
-#include "DlgRef_SpinBox.h"
-
-#include "GEOM_Displayer.h"
-
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-#include "OCCViewer_ViewModel.h"
-#include "SALOME_ListIteratorOfListIO.hxx"
-
-#include "utilities.h"
-
-#include
-
-#include
-#include
-#include
-#include
-
-//=================================================================================
-// class : BlocksGUI_ExplodeDlg()
-// purpose : Constructs a BlocksGUI_ExplodeDlg which is a child of 'parent'.
-//=================================================================================
-BlocksGUI_ExplodeDlg::BlocksGUI_ExplodeDlg (QWidget* parent,
- bool modal)
- : GEOMBase_Skeleton(parent, "ExplodeDlg", modal,
- WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
-{
- QPixmap image1 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BLOCK_EXPLODE")));
- QPixmap imageS (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
-
- setCaption(tr("GEOM_BLOCK_EXPLODE_TITLE"));
-
- /***************************************************************/
- GroupConstructors->setTitle(tr("GEOM_BLOCK_EXPLODE"));
-
- RadioButton1->setPixmap(image1);
- RadioButton2->close(TRUE);
- RadioButton3->close(TRUE);
-
- // Create first group
- myGrp1 = new QGroupBox(1, Qt::Horizontal, tr("GEOM_ARGUMENTS"), this);
-
- QGroupBox* aSelGrp = new QGroupBox(3, Qt::Horizontal, myGrp1);
- aSelGrp->setFrameStyle(QFrame::NoFrame);
- aSelGrp->setInsideMargin(0);
-
- new QLabel(tr("GEOM_MAIN_OBJECT"), aSelGrp);
- mySelBtn = new QPushButton(aSelGrp);
- mySelBtn->setPixmap(imageS);
- mySelName = new QLineEdit(aSelGrp);
- mySelName->setReadOnly(true);
-
- QGroupBox* aSpinGrp = new QGroupBox(2, Qt::Horizontal, myGrp1);
- aSpinGrp->setFrameStyle(QFrame::NoFrame);
- aSpinGrp->setInsideMargin(0);
-
- new QLabel(tr("NB_FACES_MIN"), aSpinGrp);
- mySpinBoxMin = new DlgRef_SpinBox(aSpinGrp);
-
- new QLabel(tr("NB_FACES_MAX"), aSpinGrp);
- mySpinBoxMax = new DlgRef_SpinBox(aSpinGrp);
-
- QGroupBox* anInfoGrp = new QGroupBox(2, Qt::Horizontal, myGrp1);
- anInfoGrp->setFrameStyle(QFrame::NoFrame);
- anInfoGrp->setInsideMargin(0);
-
- myBlocksNb = new QTextEdit(anInfoGrp);
- myBlocksNb->setReadOnly(true);
-
- QGroupBox* aCheckGrp = new QGroupBox(3, Qt::Horizontal, myGrp1);
- aCheckGrp->setFrameStyle(QFrame::NoFrame);
- aCheckGrp->setInsideMargin(0);
-
- myCheckBtn = new QCheckBox(aCheckGrp, "CheckButton1");
- myCheckBtn->setText(tr("GEOM_SUBSHAPE_SELECT"));
-
- // Add groups to layout
- Layout1->addWidget(myGrp1, 1, 0);
- /***************************************************************/
-
- Init();
-}
-
-//=================================================================================
-// function : ~BlocksGUI_ExplodeDlg()
-// purpose : Destroys the object and frees any allocated resources
-//=================================================================================
-BlocksGUI_ExplodeDlg::~BlocksGUI_ExplodeDlg()
-{
- // no need to delete child widgets, Qt does it all for us
- clearTemporary();
-}
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BlocksGUI_ExplodeDlg::Init()
-{
- // Set range of spinboxes
- double SpecificStep = 1.0;
- mySpinBoxMin->RangeStepAndValidator(0.0, 999.0, SpecificStep, 3);
- mySpinBoxMax->RangeStepAndValidator(0.0, 999.0, SpecificStep, 3);
-
- if (SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType()
- != OCCViewer_Viewer::Type())
- myCheckBtn->setEnabled(false);
-
- // signals and slots connections
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
-
- connect(mySelBtn, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
-
- connect(mySpinBoxMin, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
- connect(mySpinBoxMax, SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
-
- connect(myCheckBtn, SIGNAL(stateChanged(int)), this, SLOT(SubShapeToggled()));
-
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-
- myConstructorId = -1;
- ConstructorsClicked(0);
-}
-
-//=================================================================================
-// function : ConstructorsClicked()
-// purpose : Radio button management
-//=================================================================================
-void BlocksGUI_ExplodeDlg::ConstructorsClicked (int constructorId)
-{
- if (myConstructorId == constructorId)
- return;
-
- myConstructorId = constructorId;
-
- switch (constructorId) {
- case 0:
- myGrp1->show();
- mySpinBoxMin->SetValue(6.0);
- mySpinBoxMax->SetValue(6.0);
- myCheckBtn->setChecked(FALSE);
- break;
- default:
- break;
- }
-
- // init fields
- myEditCurrentArgument = mySelName;
- myObject = GEOM::GEOM_Object::_nil();
-
- activateSelection();
-}
-
-//=================================================================================
-// function : ClickOnOk()
-// purpose :
-//=================================================================================
-void BlocksGUI_ExplodeDlg::ClickOnOk()
-{
- if (ClickOnApply())
- ClickOnCancel();
-}
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose :
-//=================================================================================
-bool BlocksGUI_ExplodeDlg::ClickOnApply()
-{
- SUIT_Session::session()->activeApplication()->putInfo(tr(""));
-
- // Explode all sub shapes
- if (isAllSubShapes()) {
- // More than 30 subshapes : ask confirmation
- if (myNbBlocks > 30) {
- const QString caption = tr("GEOM_CONFIRM");
- const QString text = tr("GEOM_CONFIRM_INFO").arg(myNbBlocks);
- const QString button0 = tr("GEOM_BUT_EXPLODE");
- const QString button1 = tr("GEOM_BUT_CANCEL");
-
- if (QMessageBox::warning(this, caption, text, button0, button1) != 0)
- return false; /* aborted */
- }
- }
-
- if (!onAccept())
- return false;
-
- activateSelection();
-
- return true;
-}
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection has changed
-//=================================================================================
-void BlocksGUI_ExplodeDlg::SelectionIntoArgument()
-{
- if (!isAllSubShapes())
- return;
-
- myObject = GEOM::GEOM_Object::_nil();
- mySelName->setText("");
-
- if (IObjectCount() == 1) {
- Standard_Boolean aResult = Standard_False;
- GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject(firstIObject(), aResult);
-
- if ( aResult && !anObj->_is_nil() && GEOMBase::IsShape( anObj ) ) {
- myObject = anObj;
- mySelName->setText(GEOMBase::GetName(anObj));
- }
- }
-
- updateButtonState();
-}
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BlocksGUI_ExplodeDlg::SetEditCurrentArgument()
-{
- QPushButton* aSender = (QPushButton*)sender();
-
- if (mySelBtn == aSender) {
- mySelName->setFocus();
- myEditCurrentArgument = mySelName;
- myCheckBtn->setChecked(FALSE);
- }
-
- activateSelection();
-}
-
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void BlocksGUI_ExplodeDlg::ActivateThisDialog()
-{
- GEOMBase_Skeleton::ActivateThisDialog();
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-
- activateSelection();
-}
-
-//=================================================================================
-// function : enterEvent()
-// purpose :
-//=================================================================================
-void BlocksGUI_ExplodeDlg::enterEvent (QEvent* e)
-{
- if (!GroupConstructors->isEnabled())
- this->ActivateThisDialog();
-}
-
-//=================================================================================
-// function : ValueChangedInSpinBox()
-// purpose :
-//=================================================================================
-void BlocksGUI_ExplodeDlg::ValueChangedInSpinBox (double newValue)
-{
- if (!isAllSubShapes())
- activateSelection();
- else
- updateButtonState();
-}
-
-//=================================================================================
-// function : SubShapeToggled()
-// purpose : Allow user selection of all or only selected sub shapes
-// : Called when 'myCheckBtn' state change
-//=================================================================================
-void BlocksGUI_ExplodeDlg::SubShapeToggled()
-{
- activateSelection();
-}
-
-//=================================================================================
-// function : activateSelection
-// purpose : Redisplay preview and Activate selection
-//=================================================================================
-void BlocksGUI_ExplodeDlg::activateSelection()
-{
- clearTemporary();
- erasePreview(true);
-
- if (isAllSubShapes()) { // Sub-shapes selection disabled
- disconnect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
- globalSelection( GEOM_ALLSHAPES );
- if (myObject->_is_nil()) {
- SelectionIntoArgument();
- }
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
- } else {
- displayPreview(true, true, false);
- globalSelection(GEOM_PREVIEW);
- }
-}
-
-//=================================================================================
-// function : updateButtonState
-// purpose :
-//=================================================================================
-void BlocksGUI_ExplodeDlg::updateButtonState()
-{
- if (SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType()
- != OCCViewer_Viewer::Type() || myObject->_is_nil()) {
- myCheckBtn->setChecked(FALSE);
- myCheckBtn->setEnabled(FALSE);
- } else {
- myCheckBtn->setEnabled(TRUE);
- }
-
- myNbBlocks = 0;
-
- if (myObject->_is_nil()) {
- myBlocksNb->setText("");
- } else {
- bool isOnlyBlocks = GEOM::GEOM_IBlocksOperations::_narrow
- (getOperation())->IsCompoundOfBlocks(myObject,
- (int)mySpinBoxMin->GetValue(),
- (int)mySpinBoxMax->GetValue(),
- myNbBlocks);
- if (isOnlyBlocks)
- myBlocksNb->setText(tr("GEOM_NB_BLOCKS_NO_OTHERS").arg(myNbBlocks));
- else
- myBlocksNb->setText(tr("GEOM_NB_BLOCKS_SOME_OTHERS").arg(myNbBlocks));
- }
-}
-
-//=================================================================================
-// function : isAllSubShapes
-// purpose :
-//=================================================================================
-bool BlocksGUI_ExplodeDlg::isAllSubShapes() const
-{
- return !myCheckBtn->isChecked() || !myCheckBtn->isEnabled();
-}
-
-//=================================================================================
-// function : createOperation
-// purpose :
-//=================================================================================
-GEOM::GEOM_IOperations_ptr BlocksGUI_ExplodeDlg::createOperation()
-{
- return getGeomEngine()->GetIBlocksOperations(getStudyId());
-}
-
-//=================================================================================
-// function : isValid()
-// purpose : Verify validity of input data
-//=================================================================================
-bool BlocksGUI_ExplodeDlg::isValid (QString&)
-{
- switch (getConstructorId()) {
- case 0:
- if (IsPreview())
- return !myObject->_is_nil();
- else
- return !myObject->_is_nil() && (isAllSubShapes() || IObjectCount());
- default:
- return false;
- }
-
- return false;
-}
-
-//=================================================================================
-// function : execute
-// purpose :
-//=================================================================================
-bool BlocksGUI_ExplodeDlg::execute (ObjectList& objects)
-{
- GEOM::ListOfGO_var aList;
-
- switch (getConstructorId()) {
- case 0:
- aList = GEOM::GEOM_IBlocksOperations::_narrow(getOperation())->ExplodeCompoundOfBlocks
- (myObject,
- (int)mySpinBoxMin->GetValue(),
- (int)mySpinBoxMax->GetValue());
- break;
- }
-
- if (!aList->length())
- return false;
-
- if (IsPreview()) {
- clearTemporary();
-
- // Store objects. They will be put in study when "Apply" is pressed
- for (int i = 0, n = aList->length(); i < n; i++) {
- objects.push_back(GEOM::GEOM_Object::_duplicate(aList[i]));
- myTmpObjs.push_back(GEOM::GEOM_Object::_duplicate(aList[i]));
- }
-
- return objects.size() ? true : false;
- }
-
- // Throw away sub-shapes not selected by user if not in preview mode
- // and manual selection is active
- if (!isAllSubShapes())
- {
- QMap selected;
-
- // Get names of selected objects
- SALOME_ListIteratorOfListIO it (selectedIO());
- for (; it.More(); it.Next()) {
- selected.insert(it.Value()->getName(), 0);
- }
-
- // Iterate through result and select objects with names from selection
- ObjectList toRemoveFromEnggine;
- ObjectList::iterator anIter;
- for (anIter = myTmpObjs.begin(); anIter != myTmpObjs.end(); ++anIter) {
- if (selected.contains(myGeomGUI->getApp()->orb()->object_to_string(*anIter)))
- objects.push_back(*anIter);
- else
- toRemoveFromEnggine.push_back(*anIter);
- }
-
- // Remove from engine useless objects
- ObjectList::iterator anIter2 = toRemoveFromEnggine.begin();
- for (; anIter2 != toRemoveFromEnggine.end(); ++anIter2)
- getGeomEngine()->RemoveObject(*anIter2);
-
- myTmpObjs.clear();
-
- } else {
- for (int i = 0, n = aList->length(); i < n; i++)
- objects.push_back(GEOM::GEOM_Object::_duplicate(aList[i]));
- }
-
- return objects.size();
-}
-
-//=================================================================================
-// function : clearTemporary
-// purpose : Remove temporary objects from engine
-//=================================================================================
-void BlocksGUI_ExplodeDlg::clearTemporary()
-{
- ObjectList::iterator anIter;
- for (anIter = myTmpObjs.begin(); anIter != myTmpObjs.end(); ++anIter)
- getGeomEngine()->RemoveObject(*anIter);
-
- myTmpObjs.clear();
-}
-
-//================================================================
-// Function : getFather
-// Purpose : Get father object for object to be added in study
-// ( called with addInStudy method )
-//================================================================
-GEOM::GEOM_Object_ptr BlocksGUI_ExplodeDlg::getFather (GEOM::GEOM_Object_ptr)
-{
- return myObject;
-}
-
-//================================================================
-// Function : getNewObjectName
-// Purpose : Redefine this method to return proper name for a new object
-//================================================================
-const char* BlocksGUI_ExplodeDlg::getNewObjectName() const
-{
- return "";
-}
diff --git a/src/BlocksGUI/BlocksGUI_PropagateDlg.cxx b/src/BlocksGUI/BlocksGUI_PropagateDlg.cxx
deleted file mode 100644
index de52f9992..000000000
--- a/src/BlocksGUI/BlocksGUI_PropagateDlg.cxx
+++ /dev/null
@@ -1,319 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BlocksGUI_PropagateDlg.cxx
-// Author : VKN
-// Module : GEOM
-// $Header$
-
-#include "BlocksGUI_PropagateDlg.h"
-#include "GEOMImpl_Types.hxx"
-
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-
-#include
-
-#include
-
-using namespace std;
-
-//=================================================================================
-// class : BlocksGUI_PropagateDlg()
-// purpose : Constructs a BlocksGUI_PropagateDlg which is a child of 'parent', with the
-// name 'name' and widget flags set to 'f'.
-// The dialog will by default be modeless, unless you set 'modal' to
-// TRUE to construct a modal dialog.
-//=================================================================================
-BlocksGUI_PropagateDlg::BlocksGUI_PropagateDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
-{
- QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_PROPAGATE")));
- QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
-
- setCaption(tr("GEOM_PROPAGATE_TITLE"));
-
- /***************************************************************/
- GroupConstructors->setTitle(tr("GEOM_PROPAGATE_TITLE"));
- RadioButton1->setPixmap(image0);
- RadioButton2->close(TRUE);
- RadioButton3->close(TRUE);
-
- QGroupBox* aMainGrp = new QGroupBox( 1, Qt::Horizontal, tr( "GEOM_SELECTED_SHAPE" ), this );
- QGroupBox* aSelGrp = new QGroupBox(3, Qt::Horizontal, aMainGrp);
- aSelGrp->setFrameStyle(QFrame::NoFrame);
- aSelGrp->setInsideMargin(0);
-
- new QLabel(tr("GEOM_OBJECT"), aSelGrp);
- mySelBtn = new QPushButton(aSelGrp);
- mySelBtn->setPixmap(image1);
- mySelName = new QLineEdit(aSelGrp);
- mySelName->setReadOnly(true);
-
- Layout1->addWidget(aMainGrp, 1, 0);
-
- /***************************************************************/
-
- Init();
-}
-
-
-//=================================================================================
-// function : ~BlocksGUI_PropagateDlg()
-// purpose : Destroys the object and frees any allocated resources
-//=================================================================================
-BlocksGUI_PropagateDlg::~BlocksGUI_PropagateDlg()
-{
-}
-
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BlocksGUI_PropagateDlg::Init()
-{
- /* init variables */
-
- myObject = GEOM::GEOM_Object::_nil();
- ResultName->setText( "" );
-
- //myGeomGUI->SetState( 0 );
-
- /* signals and slots connections */
- connect(buttonCancel, SIGNAL(clicked()), this, SLOT(ClickOnCancel()));
- connect(myGeomGUI, SIGNAL(SignalDeactivateActiveDialog()), this, SLOT(DeactivateActiveDialog()));
- connect(myGeomGUI, SIGNAL(SignalCloseAllDialogs()), this, SLOT(ClickOnCancel()));
-
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
-
- connect(mySelBtn, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(mySelName, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
-
- activateSelection();
-}
-
-
-//=================================================================================
-// function : ClickOnOk()
-// purpose : Same than click on apply but close this dialog.
-//=================================================================================
-void BlocksGUI_PropagateDlg::ClickOnOk()
-{
- if ( ClickOnApply() )
- ClickOnCancel();
-}
-
-
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose :
-//=================================================================================
-bool BlocksGUI_PropagateDlg::ClickOnApply()
-{
- if ( !onAccept() )
- return false;
-
- initName();
-
- mySelName->setText("");
- myObject = GEOM::GEOM_Object::_nil();
-
- activateSelection();
-
- return true;
-}
-
-
-//=================================================================================
-// function : ClickOnCancel()
-// purpose :
-//=================================================================================
-void BlocksGUI_PropagateDlg::ClickOnCancel()
-{
- GEOMBase_Skeleton::ClickOnCancel();
-}
-
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection
-//=================================================================================
-void BlocksGUI_PropagateDlg::SelectionIntoArgument()
-{
- mySelName->setText("");
- myObject = GEOM::GEOM_Object::_nil();
-
- if ( IObjectCount() == 1 ) {
- Handle(SALOME_InteractiveObject) anIO = firstIObject();
- Standard_Boolean aRes;
- myObject = GEOMBase::ConvertIOinGEOMObject( anIO, aRes );
- if ( aRes )
- mySelName->setText( GEOMBase::GetName( myObject ) );
- }
-}
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BlocksGUI_PropagateDlg::SetEditCurrentArgument()
-{
- const QObject* send = sender();
- if ( send == mySelBtn ) {
- mySelName->setFocus();
- }
- activateSelection();
-}
-
-
-//=================================================================================
-// function : LineEditReturnPressed()
-// purpose :
-//=================================================================================
-void BlocksGUI_PropagateDlg::LineEditReturnPressed()
-{
- const QObject* send = sender();
- if( send == mySelName ) {
- GEOMBase_Skeleton::LineEditReturnPressed();
- }
-}
-
-
-//=================================================================================
-// function : DeactivateActiveDialog()
-// purpose :
-//=================================================================================
-void BlocksGUI_PropagateDlg::DeactivateActiveDialog()
-{
- //myGeomGUI->SetState( -1 );
- GEOMBase_Skeleton::DeactivateActiveDialog();
-}
-
-
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void BlocksGUI_PropagateDlg::ActivateThisDialog()
-{
- GEOMBase_Skeleton::ActivateThisDialog();
-
- mySelName->setText("");
- myObject = GEOM::GEOM_Object::_nil();
-
- //myGeomGUI->SetState( 0 );
- activateSelection();
-}
-
-
-//=================================================================================
-// function : enterEvent()
-// purpose : Mouse enter onto the dialog to activate it
-//=================================================================================
-void BlocksGUI_PropagateDlg::enterEvent(QEvent* e)
-{
- if ( !GroupConstructors->isEnabled() )
- ActivateThisDialog();
-}
-
-
-//=================================================================================
-// function : closeEvent()
-// purpose :
-//=================================================================================
-void BlocksGUI_PropagateDlg::closeEvent(QCloseEvent* e)
-{
- //myGeomGUI->SetState( -1 );
- GEOMBase_Skeleton::closeEvent( e );
-}
-
-//=================================================================================
-// function : createOperation
-// purpose :
-//=================================================================================
-GEOM::GEOM_IOperations_ptr BlocksGUI_PropagateDlg::createOperation()
-{
- return getGeomEngine()->GetIBlocksOperations( getStudyId() );
-}
-
-//=================================================================================
-// function : isValid
-// purpose :
-//=================================================================================
-bool BlocksGUI_PropagateDlg::isValid( QString& msg )
-{
- return !myObject->_is_nil() ;
-}
-
-//=================================================================================
-// function : execute
-// purpose :
-//=================================================================================
-bool BlocksGUI_PropagateDlg::execute( ObjectList& objects )
-{
-
- GEOM::ListOfGO_var aList = GEOM::GEOM_IBlocksOperations::_narrow( getOperation() )->Propagate( myObject );
- ResultName->setText( "" );
-
- if ( !aList->length() )
- return false;
-
- for ( int i = 0, n = aList->length(); i < n; i++ )
- {
- objects.push_back(aList[i]._retn());
- }
-
- return objects.size() ? true : false;
-}
-
-//=================================================================================
-// function : activateSelection
-// purpose : Activate selection
-//=================================================================================
-void BlocksGUI_PropagateDlg::activateSelection()
-{
- TColStd_MapOfInteger aMap;
- aMap.Add( GEOM_SOLID );
- aMap.Add( GEOM_COMPOUND );
- globalSelection( aMap );
- if (myObject->_is_nil()) {
- SelectionIntoArgument();
- }
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-}
-
-//================================================================
-// Function : getFather
-// Purpose : Get father object for object to be added in study
-// ( called with addInStudy method )
-//================================================================
-GEOM::GEOM_Object_ptr BlocksGUI_PropagateDlg::getFather (GEOM::GEOM_Object_ptr)
-{
- return myObject;
-}
-
diff --git a/src/BlocksGUI/BlocksGUI_QuadFaceDlg.cxx b/src/BlocksGUI/BlocksGUI_QuadFaceDlg.cxx
deleted file mode 100644
index 72f017df2..000000000
--- a/src/BlocksGUI/BlocksGUI_QuadFaceDlg.cxx
+++ /dev/null
@@ -1,413 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 CEA
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.salome-platform.org or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BlocksGUI_QuadFaceDlg.cxx
-// Author : Julia DOROVSKIKH
-// Module : GEOM
-// $Header$
-
-#include "BlocksGUI_QuadFaceDlg.h"
-#include "GEOMImpl_Types.hxx"
-
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-
-//using namespace std;
-
-#include
-
-//=================================================================================
-// class : BlocksGUI_QuadFaceDlg()
-// purpose : Constructs a BlocksGUI_QuadFaceDlg which is a child of 'parent'.
-//=================================================================================
-BlocksGUI_QuadFaceDlg::BlocksGUI_QuadFaceDlg (QWidget* parent,
- bool modal)
- : GEOMBase_Skeleton(parent, "QuadFaceDlg", modal,
- WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
-{
- QPixmap image1 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_QUAD_FACE_4_VERT")));
- QPixmap image2 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_QUAD_FACE_2_EDGE")));
- QPixmap image3 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_QUAD_FACE_4_EDGE")));
- QPixmap imageS (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
-
- setCaption(tr("GEOM_QUAD_FACE_TITLE"));
-
- /***************************************************************/
- GroupConstructors->setTitle(tr("GEOM_QUAD_FACE"));
-
- RadioButton1->setPixmap(image1);
- RadioButton2->setPixmap(image2);
- RadioButton3->setPixmap(image3);
-
- // Create first group
- myGrp1 = new QGroupBox(1, Qt::Horizontal, tr("GEOM_ARGUMENTS"), this);
-
- QGroupBox* aSelGrp1 = new QGroupBox(3, Qt::Horizontal, myGrp1);
- aSelGrp1->setFrameStyle(QFrame::NoFrame);
- aSelGrp1->setInsideMargin(0);
-
- createSelWg(tr("VERTEX_1"), imageS, aSelGrp1, Vertex1);
- createSelWg(tr("VERTEX_2"), imageS, aSelGrp1, Vertex2);
- createSelWg(tr("VERTEX_3"), imageS, aSelGrp1, Vertex3);
- createSelWg(tr("VERTEX_4"), imageS, aSelGrp1, Vertex4);
-
- // Create second group
- myGrp2 = new QGroupBox(1, Qt::Horizontal, tr("GEOM_ARGUMENTS"), this);
-
- QGroupBox* aSelGrp2 = new QGroupBox(3, Qt::Horizontal, myGrp2);
- aSelGrp2->setFrameStyle(QFrame::NoFrame);
- aSelGrp2->setInsideMargin(0);
-
- createSelWg(tr("EDGE_1"), imageS, aSelGrp2, Edge12);
- createSelWg(tr("EDGE_2"), imageS, aSelGrp2, Edge22);
-
- // Create fird group
- myGrp3 = new QGroupBox(1, Qt::Horizontal, tr("GEOM_ARGUMENTS"), this);
-
- QGroupBox* aSelGrp3 = new QGroupBox(3, Qt::Horizontal, myGrp3);
- aSelGrp3->setFrameStyle(QFrame::NoFrame);
- aSelGrp3->setInsideMargin(0);
-
- createSelWg(tr("EDGE_1"), imageS, aSelGrp3, Edge14);
- createSelWg(tr("EDGE_2"), imageS, aSelGrp3, Edge24);
- createSelWg(tr("EDGE_3"), imageS, aSelGrp3, Edge34);
- createSelWg(tr("EDGE_4"), imageS, aSelGrp3, Edge44);
-
- (new QLabel(myGrp3))->setSizePolicy(
- QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding));
-
- // Add groups to layout
- Layout1->addWidget(myGrp1, 2, 0);
- Layout1->addWidget(myGrp2, 2, 0);
- Layout1->addWidget(myGrp3, 2, 0);
- /***************************************************************/
-
- Init();
-}
-
-//=================================================================================
-// function : ~BlocksGUI_QuadFaceDlg()
-// purpose : Destroys the object and frees any allocated resources
-//=================================================================================
-BlocksGUI_QuadFaceDlg::~BlocksGUI_QuadFaceDlg()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BlocksGUI_QuadFaceDlg::Init()
-{
- // signals and slots connections
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
- connect(GroupConstructors, SIGNAL(clicked(int)), this, SLOT(ConstructorsClicked(int)));
-
- QMap::iterator anIterBtn;
- for (anIterBtn = mySelBtn.begin(); anIterBtn != mySelBtn.end(); ++anIterBtn)
- connect(anIterBtn.data(), SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
-
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-
- // init controls and fields
- initName(tr("GEOM_QUAD_FACE"));
-
- myConstructorId = -1;
- ConstructorsClicked(0);
-}
-
-//=================================================================================
-// function : ConstructorsClicked()
-// purpose : Radio button management
-//=================================================================================
-void BlocksGUI_QuadFaceDlg::ConstructorsClicked (int constructorId)
-{
- if (myConstructorId == constructorId)
- return;
-
- myConstructorId = constructorId;
-
- switch (constructorId) {
- case 0:
- myGrp2->hide();
- myGrp3->hide();
- myGrp1->show();
- myEditCurrentArgument = mySelName[Vertex1];
- break;
- case 1:
- myGrp1->hide();
- myGrp3->hide();
- myGrp2->show();
- myEditCurrentArgument = mySelName[Edge12];
- break;
- case 2:
- myGrp1->hide();
- myGrp2->hide();
- myGrp3->show();
- myEditCurrentArgument = mySelName[Edge14];
- break;
- default:
- break;
- }
-
- // clear line edits
- QMap::iterator anIterLE;
- for (anIterLE = mySelName.begin(); anIterLE != mySelName.end(); ++anIterLE)
- anIterLE.data()->setText("");
-
- // init fields
- myShape1 = myShape2 = GEOM::GEOM_Object::_nil();
- myShape3 = myShape4 = myShape1;
-
- activateSelection();
-}
-
-//=================================================================================
-// function : ClickOnOk()
-// purpose :
-//=================================================================================
-void BlocksGUI_QuadFaceDlg::ClickOnOk()
-{
- if (ClickOnApply())
- ClickOnCancel();
-}
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose :
-//=================================================================================
-bool BlocksGUI_QuadFaceDlg::ClickOnApply()
-{
- if (!onAccept())
- return false;
-
- initName();
- return true;
-}
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection has changed
-//=================================================================================
-void BlocksGUI_QuadFaceDlg::SelectionIntoArgument()
-{
- erasePreview();
- myEditCurrentArgument->setText("");
-
- // Get index of current selection focus
- int aCurrFocus = -1;
- QMap::iterator anIter;
- for (anIter = mySelName.begin(); anIter != mySelName.end(); ++anIter) {
- if (myEditCurrentArgument == anIter.data()) {
- aCurrFocus = anIter.key();
- break;
- }
- }
-
- GEOM::GEOM_Object_var anObj;
- Standard_Boolean aResult = Standard_False;
- if (IObjectCount() == 1) {
- anObj = GEOMBase::ConvertIOinGEOMObject(firstIObject(), aResult);
- if (aResult) {
- if (anObj->_is_nil()) {
- aResult = Standard_False;
- } else {
- mySelName[aCurrFocus]->setText(GEOMBase::GetName(anObj));
- }
- } else {
- anObj = GEOM::GEOM_Object::_nil();
- }
- }
-
- if (aCurrFocus == Vertex1 || aCurrFocus == Edge12 || aCurrFocus == Edge14) {
- myShape1 = anObj;
- } else if (aCurrFocus == Vertex2 || aCurrFocus == Edge22 || aCurrFocus == Edge24) {
- myShape2 = anObj;
- } else if (aCurrFocus == Vertex3 || aCurrFocus == Edge34) {
- myShape3 = anObj;
- } else if (aCurrFocus == Vertex4 || aCurrFocus == Edge44) {
- myShape4 = anObj;
- } else {
- return;
- }
-
- displayPreview();
-}
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BlocksGUI_QuadFaceDlg::SetEditCurrentArgument()
-{
- QPushButton* aSender = (QPushButton*)sender();
-
- QMap::iterator anIter;
- for (anIter = mySelBtn.begin(); anIter != mySelBtn.end(); ++anIter) {
- if (anIter.data() == aSender) {
- mySelName[anIter.key()]->setFocus();
- myEditCurrentArgument = mySelName[anIter.key()];
- }
- }
-
- activateSelection();
-}
-
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void BlocksGUI_QuadFaceDlg::ActivateThisDialog()
-{
- GEOMBase_Skeleton::ActivateThisDialog();
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-
- activateSelection();
- displayPreview();
-}
-
-//=================================================================================
-// function : enterEvent()
-// purpose :
-//=================================================================================
-void BlocksGUI_QuadFaceDlg::enterEvent (QEvent* e)
-{
- if (!GroupConstructors->isEnabled())
- this->ActivateThisDialog();
-}
-
-//=================================================================================
-// function : DeactivateActiveDialog()
-// purpose :
-//=================================================================================
-//void BlocksGUI_QuadFaceDlg::DeactivateActiveDialog()
-//{
-// // disconnect selection
-// GEOMBase_Skeleton::DeactivateActiveDialog();
-//}
-
-//=================================================================================
-// function : createSelWg()
-// purpose :
-//=================================================================================
-void BlocksGUI_QuadFaceDlg::createSelWg (const QString& theLbl,
- QPixmap& thePix,
- QWidget* theParent,
- const int theId)
-{
- new QLabel(theLbl, theParent);
- mySelBtn[theId] = new QPushButton(theParent);
- mySelBtn[theId]->setPixmap(thePix);
- mySelName[theId] = new QLineEdit(theParent);
- mySelName[theId]->setReadOnly(true);
-}
-
-//=================================================================================
-// function : activateSelection
-// purpose : Activate selection in accordance with myEditCurrentArgument
-//=================================================================================
-void BlocksGUI_QuadFaceDlg::activateSelection()
-{
- if (myEditCurrentArgument == mySelName[Vertex1] ||
- myEditCurrentArgument == mySelName[Vertex2] ||
- myEditCurrentArgument == mySelName[Vertex3] ||
- myEditCurrentArgument == mySelName[Vertex4]) {
-
- globalSelection(GEOM_POINT);
-
- } else {
- globalSelection(GEOM_EDGE);
- }
-
- SelectionIntoArgument();
-}
-
-//=================================================================================
-// function : createOperation
-// purpose :
-//=================================================================================
-GEOM::GEOM_IOperations_ptr BlocksGUI_QuadFaceDlg::createOperation()
-{
- return getGeomEngine()->GetIBlocksOperations(getStudyId());
-}
-
-//=================================================================================
-// function : isValid
-// purpose : Verify validity of input data
-//=================================================================================
-bool BlocksGUI_QuadFaceDlg::isValid (QString&)
-{
- switch (getConstructorId()) {
- case 0:
- return (!myShape1->_is_nil() && !myShape2->_is_nil() &&
- !myShape3->_is_nil() && !myShape4->_is_nil());
- case 1:
- return (!myShape1->_is_nil() && !myShape2->_is_nil());
- case 2:
- return (!myShape1->_is_nil() && !myShape2->_is_nil() &&
- !myShape3->_is_nil() && !myShape4->_is_nil());
- default:
- return false;
- }
- return false;
-}
-
-//=================================================================================
-// function : execute
-// purpose :
-//=================================================================================
-bool BlocksGUI_QuadFaceDlg::execute (ObjectList& objects)
-{
- bool res = false;
-
- GEOM::GEOM_Object_var anObj;
-
- switch (getConstructorId()) {
- case 0:
- anObj = GEOM::GEOM_IBlocksOperations::_narrow(getOperation())->MakeQuad4Vertices
- (myShape1, myShape2, myShape3, myShape4);
- res = true;
- break;
- case 1:
- anObj = GEOM::GEOM_IBlocksOperations::_narrow(getOperation())->MakeQuad2Edges
- (myShape1, myShape2);
- res = true;
- break;
- case 2:
- anObj = GEOM::GEOM_IBlocksOperations::_narrow(getOperation())->MakeQuad
- (myShape1, myShape2, myShape3, myShape4);
- res = true;
- break;
- default:
- break;
- }
-
- if (!anObj->_is_nil())
- objects.push_back(anObj._retn());
-
- return res;
-}
diff --git a/src/BlocksGUI/BlocksGUI_TrsfDlg.cxx b/src/BlocksGUI/BlocksGUI_TrsfDlg.cxx
deleted file mode 100644
index 7dca35c48..000000000
--- a/src/BlocksGUI/BlocksGUI_TrsfDlg.cxx
+++ /dev/null
@@ -1,520 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 CEA
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.salome-platform.org or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BlocksGUI_TrsfDlg.cxx
-// Author : Julia DOROVSKIKH
-// Module : GEOM
-// $Header$
-
-#include "BlocksGUI_TrsfDlg.h"
-
-#include "DlgRef_SpinBox.h"
-
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-#include "OCCViewer_ViewModel.h"
-
-#include
-
-#include
-
-//=================================================================================
-// class : BlocksGUI_TrsfDlg()
-// purpose : Constructs a BlocksGUI_TrsfDlg which is a child of 'parent'.
-//=================================================================================
-BlocksGUI_TrsfDlg::BlocksGUI_TrsfDlg (QWidget* parent,
- bool modal)
- : GEOMBase_Skeleton(parent, "TrsfDlg", modal,
- WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
-{
- QPixmap image1 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BLOCK_MULTITRSF_SIMPLE")));
- QPixmap image2 (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BLOCK_MULTITRSF_DOUBLE")));
- QPixmap imageS (SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
-
- setCaption(tr("GEOM_BLOCK_MULTITRSF_TITLE"));
-
- /***************************************************************/
- GroupConstructors->setTitle(tr("GEOM_BLOCK_MULTITRSF"));
-
- RadioButton1->setPixmap(image1);
- RadioButton2->setPixmap(image2);
- RadioButton3->close(TRUE);
-
- // Create first group
- myGrp1 = new QGroupBox(1, Qt::Horizontal, tr("GEOM_BLOCK_MULTITRSF_SIMPLE"), this);
-
- QGroupBox* aSelGrp1 = new QGroupBox(3, Qt::Horizontal, myGrp1);
- aSelGrp1->setFrameStyle(QFrame::NoFrame);
- aSelGrp1->setInsideMargin(0);
-
- createSelWg(tr("GEOM_MAIN_OBJECT"), imageS, aSelGrp1, MainObj1);
- createSelWg(tr("FACE_1"), imageS, aSelGrp1, Face1);
- createSelWg(tr("FACE_2"), imageS, aSelGrp1, Face2);
-
- QGroupBox* aSpinGrp1 = new QGroupBox(1, Qt::Vertical, myGrp1);
- aSpinGrp1->setFrameStyle(QFrame::NoFrame);
- aSpinGrp1->setInsideMargin(0);
-
- new QLabel(tr("GEOM_NB_TIMES"), aSpinGrp1);
- mySpinBox[SpinBox1] = new DlgRef_SpinBox(aSpinGrp1);
-
- // Create second group
- myGrp2 = new QGroupBox(1, Qt::Horizontal, tr("GEOM_BLOCK_MULTITRSF_DOUBLE"), this);
-
- // U trsf
- QGroupBox* aSelGrp2U = new QGroupBox(3, Qt::Horizontal, myGrp2);
- aSelGrp2U->setFrameStyle(QFrame::NoFrame);
- aSelGrp2U->setInsideMargin(0);
-
- createSelWg(tr("GEOM_MAIN_OBJECT"), imageS, aSelGrp2U, MainObj2);
- createSelWg(tr("FACE_1U"), imageS, aSelGrp2U, Face1U);
- createSelWg(tr("FACE_2U"), imageS, aSelGrp2U, Face2U);
-
- QGroupBox* aSpinGrp2U = new QGroupBox(1, Qt::Vertical, myGrp2);
- aSpinGrp2U->setFrameStyle(QFrame::NoFrame);
- aSpinGrp2U->setInsideMargin(0);
-
- new QLabel(tr("GEOM_NB_TIMES_U"), aSpinGrp2U);
- mySpinBox[SpinBox2U] = new DlgRef_SpinBox(aSpinGrp2U);
-
- // V trsf
- QGroupBox* aSelGrp2V = new QGroupBox(3, Qt::Horizontal, myGrp2);
- aSelGrp2V->setFrameStyle(QFrame::NoFrame);
- aSelGrp2V->setInsideMargin(0);
-
- createSelWg(tr("FACE_1V"), imageS, aSelGrp2V, Face1V);
- createSelWg(tr("FACE_2V"), imageS, aSelGrp2V, Face2V);
-
- QGroupBox* aSpinGrp2V = new QGroupBox(1, Qt::Vertical, myGrp2);
- aSpinGrp2V->setFrameStyle(QFrame::NoFrame);
- aSpinGrp2V->setInsideMargin(0);
-
- new QLabel(tr("GEOM_NB_TIMES_V"), aSpinGrp2V);
- mySpinBox[SpinBox2V] = new DlgRef_SpinBox(aSpinGrp2V);
-
- (new QLabel(myGrp2))->setSizePolicy(QSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding));
-
- // Add groups to layout
- Layout1->addWidget( myGrp1, 2, 0 );
- Layout1->addWidget( myGrp2, 2, 0 );
- /***************************************************************/
-
- Init();
-}
-
-//=================================================================================
-// function : ~BlocksGUI_TrsfDlg()
-// purpose : Destroys the object and frees any allocated resources
-//=================================================================================
-BlocksGUI_TrsfDlg::~BlocksGUI_TrsfDlg()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BlocksGUI_TrsfDlg::Init()
-{
- // Set range of spinboxes
- double SpecificStep = 1.0;
- QMap::iterator anIter;
- for (anIter = mySpinBox.begin(); anIter != mySpinBox.end(); ++anIter) {
- anIter.data()->RangeStepAndValidator(1.0, 999.999, SpecificStep, 3);
- }
-
- // signals and slots connections
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
- connect(GroupConstructors, SIGNAL(clicked(int)), this, SLOT(ConstructorsClicked(int)));
-
- QMap::iterator anIterBtn;
- for (anIterBtn = mySelBtn.begin(); anIterBtn != mySelBtn.end(); ++anIterBtn)
- connect(anIterBtn.data(), SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
-
- QMap::iterator anIterSpin;
- for (anIterSpin = mySpinBox.begin(); anIterSpin != mySpinBox.end(); ++anIterSpin)
- connect(anIterSpin.data(), SIGNAL(valueChanged(double)), this, SLOT(ValueChangedInSpinBox(double)));
-
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-
- // init controls and fields
- initName(tr("GEOM_BLOCK_MULTITRSF"));
-
- myConstructorId = -1;
- ConstructorsClicked(0);
-}
-
-//=================================================================================
-// function : ConstructorsClicked()
-// purpose : Radio button management
-//=================================================================================
-void BlocksGUI_TrsfDlg::ConstructorsClicked (int constructorId)
-{
- if (myConstructorId == constructorId)
- return;
-
- myConstructorId = constructorId;
-
- switch (constructorId) {
- case 0:
- myGrp2->hide();
- myGrp1->show();
- mySpinBox[SpinBox1]->SetValue(2.0);
- myEditCurrentArgument = mySelName[MainObj1];
- myFaces[Face1] = -1;
- myFaces[Face2] = -1;
- break;
- case 1:
- myGrp1->hide();
- myGrp2->show();
- mySpinBox[SpinBox2U]->SetValue(2.0);
- mySpinBox[SpinBox2V]->SetValue(2.0);
- myEditCurrentArgument = mySelName[MainObj2];
- myFaces[Face1U] = -1;
- myFaces[Face2U] = -1;
- myFaces[Face1V] = -1;
- myFaces[Face2V] = -1;
- break;
- default:
- break;
- }
-
- // clear line edits
- QMap::iterator anIterLE;
- for (anIterLE = mySelName.begin(); anIterLE != mySelName.end(); ++anIterLE)
- anIterLE.data()->setText("");
-
- // init fields
- myShape = GEOM::GEOM_Object::_nil();
-
- activateSelection();
-// enableWidgets();
-// displayPreview();
-}
-
-//=================================================================================
-// function : ClickOnOk()
-// purpose :
-//=================================================================================
-void BlocksGUI_TrsfDlg::ClickOnOk()
-{
- if (ClickOnApply())
- ClickOnCancel();
-}
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose :
-//=================================================================================
-bool BlocksGUI_TrsfDlg::ClickOnApply()
-{
- if (!onAccept())
- return false;
-
- initName();
- return true;
-}
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection has changed
-//=================================================================================
-void BlocksGUI_TrsfDlg::SelectionIntoArgument()
-{
- erasePreview();
- myEditCurrentArgument->setText("");
-
- // Get index of current selection focus
- int aCurrFocus = -1;
- QMap::iterator anIter;
- for (anIter = mySelName.begin(); anIter != mySelName.end(); ++anIter) {
- if (myEditCurrentArgument == anIter.data()) {
- aCurrFocus = anIter.key();
- break;
- }
- }
-
- // If selection of main object is activated
- if (aCurrFocus == MainObj1 || aCurrFocus == MainObj2) {
- if (IObjectCount() == 1) {
- Standard_Boolean aResult = Standard_False;
- GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject(firstIObject(), aResult);
-
- if (aResult && !anObj->_is_nil() && GEOMBase::IsShape( anObj ) ) {
- myShape = anObj;
- mySelName[aCurrFocus]->setText(GEOMBase::GetName(anObj));
- enableWidgets();
- return;
- }
- }
-
- myShape = GEOM::GEOM_Object::_nil();
- enableWidgets();
- }
- // If face selection is activated
- else if (aCurrFocus == Face1 || aCurrFocus == Face2 ||
- aCurrFocus == Face1U || aCurrFocus == Face2U ||
- aCurrFocus == Face1V || aCurrFocus == Face2V) {
- if (IObjectCount() == 1) {
- Standard_Boolean aResult = Standard_False;
- GEOM::GEOM_Object_var anObj =
- GEOMBase::ConvertIOinGEOMObject(firstIObject(), aResult);
-
- if ( aResult && !anObj->_is_nil() && GEOMBase::IsShape( anObj ) ) {
- TColStd_IndexedMapOfInteger anIndexes;
- ((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr()->GetIndexes( firstIObject(), anIndexes );
-
- if (anIndexes.Extent() == 1) {
- int anIndex = anIndexes(1);
- QString aFaceName = QString(GEOMBase::GetName(anObj)) + ":%1";
- myEditCurrentArgument->setText(aFaceName.arg(anIndex));
- myFaces[aCurrFocus] = anIndex;
- displayPreview();
- return;
- }
- }
- }
-
- myFaces[aCurrFocus] = -1;
- }
-}
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BlocksGUI_TrsfDlg::SetEditCurrentArgument()
-{
- QPushButton* aSender = (QPushButton*)sender();
-
- QMap::iterator anIter;
- for (anIter = mySelBtn.begin(); anIter != mySelBtn.end(); ++anIter) {
- if (anIter.data() == aSender) {
- mySelName[anIter.key()]->setFocus();
- myEditCurrentArgument = mySelName[anIter.key()];
- break;
- }
- }
-
- activateSelection();
-}
-
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void BlocksGUI_TrsfDlg::ActivateThisDialog()
-{
- GEOMBase_Skeleton::ActivateThisDialog();
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-
- activateSelection();
- displayPreview();
-}
-
-//=================================================================================
-// function : enterEvent()
-// purpose :
-//=================================================================================
-void BlocksGUI_TrsfDlg::enterEvent (QEvent* e)
-{
- if (!GroupConstructors->isEnabled())
- this->ActivateThisDialog();
-}
-
-//=================================================================================
-// function : DeactivateActiveDialog()
-// purpose :
-//=================================================================================
-//void BlocksGUI_TrsfDlg::DeactivateActiveDialog()
-//{
-// // disconnect selection
-// GEOMBase_Skeleton::DeactivateActiveDialog();
-//}
-
-//=================================================================================
-// function : ValueChangedInSpinBox()
-// purpose :
-//=================================================================================
-void BlocksGUI_TrsfDlg::ValueChangedInSpinBox (double newValue)
-{
- displayPreview();
-}
-
-//=================================================================================
-// function : createSelWg()
-// purpose :
-//=================================================================================
-void BlocksGUI_TrsfDlg::createSelWg (const QString& theLbl,
- QPixmap& thePix,
- QWidget* theParent,
- const int theId)
-{
- new QLabel(theLbl, theParent);
- mySelBtn[theId] = new QPushButton(theParent);
- mySelBtn[theId]->setPixmap(thePix);
- mySelName[theId] = new QLineEdit(theParent);
- mySelName[theId]->setReadOnly(true);
-}
-
-//=================================================================================
-// function : activateSelection
-// purpose : Activate selection in accordance with myEditCurrentArgument
-//=================================================================================
-void BlocksGUI_TrsfDlg::activateSelection()
-{
- if (!myShape->_is_nil() &&
- (myEditCurrentArgument == mySelName[ Face1 ] ||
- myEditCurrentArgument == mySelName[ Face2 ] ||
- myEditCurrentArgument == mySelName[ Face1U ] ||
- myEditCurrentArgument == mySelName[ Face2U ] ||
- myEditCurrentArgument == mySelName[ Face1V ] ||
- myEditCurrentArgument == mySelName[ Face2V ])) {
-
- // Local selection is available only in the OCC Viewer
- if (SUIT_Session::session()->activeApplication()->desktop()->activeWindow()->getViewManager()->getType()
- == OCCViewer_Viewer::Type()) {
- localSelection(myShape, TopAbs_FACE);
- } else {
- return;
- }
- } else {
- globalSelection( GEOM_ALLSHAPES );
- }
-
- SelectionIntoArgument();
-}
-
-//=================================================================================
-// function : enableWidgets
-// purpose : Enable widgets of faces in accordance with value of main object
-//=================================================================================
-void BlocksGUI_TrsfDlg::enableWidgets()
-{
- int anId = getConstructorId();
-
- bool toEnable = !myShape->_is_nil();
-
- if (anId == 0) {
- mySelName[Face1]->setEnabled(toEnable);
- mySelName[Face2]->setEnabled(toEnable);
- mySelBtn[Face1]->setEnabled(toEnable);
- mySelBtn[Face2]->setEnabled(toEnable);
-
- if (!toEnable) {
- mySelName[Face1]->setText("");
- mySelName[Face2]->setText("");
- myFaces[Face1] = -1;
- myFaces[Face2] = -1;
- }
- } else if (anId == 1) {
- mySelName[Face1U]->setEnabled(toEnable);
- mySelName[Face2U]->setEnabled(toEnable);
- mySelName[Face1V]->setEnabled(toEnable);
- mySelName[Face2V]->setEnabled(toEnable);
- mySelBtn[Face1U]->setEnabled(toEnable);
- mySelBtn[Face2U]->setEnabled(toEnable);
- mySelBtn[Face1V]->setEnabled(toEnable);
- mySelBtn[Face2V]->setEnabled(toEnable);
-
- if (!toEnable) {
- mySelName[Face1U]->setText("");
- mySelName[Face2U]->setText("");
- mySelName[Face1V]->setText("");
- mySelName[Face2V]->setText("");
- myFaces[Face1U] = -1;
- myFaces[Face2U] = -1;
- myFaces[Face1V] = -1;
- myFaces[Face2V] = -1;
- }
- }
-}
-
-//=================================================================================
-// function : createOperation
-// purpose :
-//=================================================================================
-GEOM::GEOM_IOperations_ptr BlocksGUI_TrsfDlg::createOperation()
-{
- return getGeomEngine()->GetIBlocksOperations(getStudyId());
-}
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose : Verify validity of input data
-//=================================================================================
-bool BlocksGUI_TrsfDlg::isValid (QString&)
-{
- switch (getConstructorId()) {
- case 0:
- return !myShape->_is_nil() && myFaces[Face1] > 0;
- case 1:
- return !myShape->_is_nil() && myFaces[Face1U] > 0 && myFaces[Face1V] > 0;
- default:
- return false;
- }
- return false;
-}
-
-//=================================================================================
-// function : execute
-// purpose :
-//=================================================================================
-bool BlocksGUI_TrsfDlg::execute (ObjectList& objects)
-{
- bool res = false;
-
- GEOM::GEOM_Object_var anObj;
-
- switch (getConstructorId()) {
- case 0:
- anObj = GEOM::GEOM_IBlocksOperations::_narrow(getOperation())->MakeMultiTransformation1D
- (myShape,
- myFaces[Face1],
- myFaces[Face2],
- (int)mySpinBox[SpinBox1]->GetValue());
- res = true;
- break;
- case 1:
- anObj = GEOM::GEOM_IBlocksOperations::_narrow(getOperation())->MakeMultiTransformation2D
- (myShape,
- myFaces[Face1U],
- myFaces[Face2U],
- (int)mySpinBox[SpinBox2U]->GetValue(),
- myFaces[Face1V],
- myFaces[Face2V],
- (int)mySpinBox[SpinBox2V]->GetValue());
- res = true;
- break;
- }
-
- if (!anObj->_is_nil())
- objects.push_back(anObj._retn());
-
- return res;
-}
diff --git a/src/BooleanGUI/BooleanGUI_Dialog.cxx b/src/BooleanGUI/BooleanGUI_Dialog.cxx
deleted file mode 100644
index a50f0881c..000000000
--- a/src/BooleanGUI/BooleanGUI_Dialog.cxx
+++ /dev/null
@@ -1,289 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BooleanGUI_Dialog.cxx
-// Author : Lucien PIGNOLONI
-// Module : GEOM
-// $Header$
-
-#include "BooleanGUI_Dialog.h"
-#include "BooleanGUI.h"
-#include "DlgRef_2Sel_QTD.h"
-
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-
-#include
-
-using namespace std;
-
-//=================================================================================
-// class : BooleanGUI_Dialog()
-// purpose : Constructs a BooleanGUI_Dialog which is a child of 'parent', with the
-// name 'name' and widget flags set to 'f'.
-// The dialog will by default be modeless, unless you set 'modal' to
-// TRUE to construct a modal dialog.
-//=================================================================================
-BooleanGUI_Dialog::BooleanGUI_Dialog( const int theOperation, QWidget* parent, const char* name, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, modal, fl),
- myOperation( theOperation )
-{
- QPixmap image0;
- QString aTitle, aCaption;
- switch ( myOperation )
- {
- case BooleanGUI::COMMON:
- image0 = QPixmap( SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_COMMON")));
- aTitle = tr("GEOM_COMMON");
- aCaption = tr("GEOM_COMMON_TITLE");
- break;
- case BooleanGUI::CUT:
- image0 = QPixmap( SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_CUT")));
- aTitle = tr("GEOM_CUT");
- aCaption = tr("GEOM_CUT_TITLE");
- break;
- case BooleanGUI::FUSE:
- image0 = QPixmap( SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_FUSE")));
- aTitle = tr("GEOM_FUSE");
- aCaption = tr("GEOM_FUSE_TITLE");
- break;
- case BooleanGUI::SECTION:
- image0 = QPixmap( SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_SECTION")));
- aTitle = tr("GEOM_SECTION");
- aCaption = tr("GEOM_SECTION_TITLE");
- break;
- }
- QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
-
- setCaption( aCaption );
-
- /***************************************************************/
- GroupConstructors->setTitle( aTitle );
- RadioButton1->setPixmap( image0 );
- RadioButton2->close(TRUE);
- RadioButton3->close(TRUE);
-
- myGroup = new DlgRef_2Sel_QTD(this, "GroupCommon");
- myGroup->GroupBox1->setTitle(tr("GEOM_ARGUMENTS"));
- if ( myOperation != BooleanGUI::CUT )
- {
- myGroup->TextLabel1->setText(tr("GEOM_OBJECT_I").arg("1"));
- myGroup->TextLabel2->setText(tr("GEOM_OBJECT_I").arg("2"));
- }
- else
- {
- myGroup->TextLabel1->setText(tr("GEOM_MAIN_OBJECT"));
- myGroup->TextLabel2->setText(tr("GEOM_TOOL_OBJECT"));
- }
-
- myGroup->PushButton1->setPixmap(image1);
- myGroup->PushButton2->setPixmap(image1);
- myGroup->LineEdit1->setReadOnly( true );
- myGroup->LineEdit2->setReadOnly( true );
-
- Layout1->addWidget(myGroup, 2, 0);
- /***************************************************************/
-
- /* Initialisation */
- Init();
-}
-
-
-//=================================================================================
-// function : ~BooleanGUI_Dialog()
-// purpose : Destroys the object and frees any allocated resources
-//=================================================================================
-BooleanGUI_Dialog::~BooleanGUI_Dialog()
-{
-}
-
-
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BooleanGUI_Dialog::Init()
-{
- /* init variables */
- myEditCurrentArgument = myGroup->LineEdit1;
-
- /* signals and slots connections */
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
-
- connect(myGroup->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(myGroup->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
-
- connect(myGroup->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(myGroup->PushButton2, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
-
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-
- initName( GroupConstructors->title() );
-
- globalSelection( GEOM_ALLSHAPES );
-}
-
-
-//=================================================================================
-// function : ClickOnOk()
-// purpose :
-//=================================================================================
-void BooleanGUI_Dialog::ClickOnOk()
-{
- if ( ClickOnApply() )
- ClickOnCancel();
-}
-
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose :
-//=================================================================================
-bool BooleanGUI_Dialog::ClickOnApply()
-{
- if ( !onAccept() )
- return false;
-
- initName();
- return true;
-}
-
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection has changed
-//=================================================================================
-void BooleanGUI_Dialog::SelectionIntoArgument()
-{
- myEditCurrentArgument->setText( "" );
-
- if ( IObjectCount() != 1 )
- {
- if ( myEditCurrentArgument == myGroup->LineEdit1 ) myObject1 = GEOM::GEOM_Object::_nil();
- else if ( myEditCurrentArgument == myGroup->LineEdit2 ) myObject2 = GEOM::GEOM_Object::_nil();
- return;
- }
-
- // nbSel == 1
- Standard_Boolean aRes = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject( firstIObject(), aRes );
- if ( !CORBA::is_nil( aSelectedObject ) && aRes && GEOMBase::IsShape( aSelectedObject ) )
- {
- myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
- if ( myEditCurrentArgument == myGroup->LineEdit1 ) myObject1 = aSelectedObject;
- else if ( myEditCurrentArgument == myGroup->LineEdit2 ) myObject2 = aSelectedObject;
- }
-}
-
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BooleanGUI_Dialog::SetEditCurrentArgument()
-{
- QPushButton* send = (QPushButton*)sender();
-
- if ( send == myGroup->PushButton1 ) myEditCurrentArgument = myGroup->LineEdit1;
- else if ( send == myGroup->PushButton2 ) myEditCurrentArgument = myGroup->LineEdit2;
-
- myEditCurrentArgument->setFocus();
- SelectionIntoArgument();
-}
-
-
-
-//=================================================================================
-// function : LineEditReturnPressed()
-// purpose :
-//=================================================================================
-void BooleanGUI_Dialog::LineEditReturnPressed()
-{
- QLineEdit* send = (QLineEdit*)sender();
- if ( send == myGroup->LineEdit1 || send == myGroup->LineEdit2 )
- {
- myEditCurrentArgument = send;
- GEOMBase_Skeleton::LineEditReturnPressed();
- }
-}
-
-
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void BooleanGUI_Dialog::ActivateThisDialog()
-{
- GEOMBase_Skeleton::ActivateThisDialog();
- globalSelection( GEOM_ALLSHAPES );
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-}
-
-
-//=================================================================================
-// function : enterEvent()
-// purpose : when mouse enter onto the QWidget
-//=================================================================================
-void BooleanGUI_Dialog::enterEvent(QEvent * e)
-{
- if ( !GroupConstructors->isEnabled() )
- ActivateThisDialog();
-}
-
-//=================================================================================
-// function : createOperation
-// purpose :
-//=================================================================================
-GEOM::GEOM_IOperations_ptr BooleanGUI_Dialog::createOperation()
-{
- return getGeomEngine()->GetIBooleanOperations( getStudyId() );
-}
-
-//=================================================================================
-// function : isValid
-// purpose :
-//=================================================================================
-bool BooleanGUI_Dialog::isValid( QString& msg )
-{
- return !CORBA::is_nil( myObject1 ) && !CORBA::is_nil( myObject2 );
-}
-
-//=================================================================================
-// function : execute
-// purpose :
-//=================================================================================
-bool BooleanGUI_Dialog::execute( ObjectList& objects )
-{
- GEOM::GEOM_Object_var anObj;
-
- anObj = GEOM::GEOM_IBooleanOperations::_narrow( getOperation() )->MakeBoolean( myObject1, myObject2, myOperation );
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
-
- return true;
-}
diff --git a/src/BuildGUI/BuildGUI_CompoundDlg.cxx b/src/BuildGUI/BuildGUI_CompoundDlg.cxx
deleted file mode 100644
index df8814144..000000000
--- a/src/BuildGUI/BuildGUI_CompoundDlg.cxx
+++ /dev/null
@@ -1,227 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BuildGUI_CompoundDlg.cxx
-// Author : Lucien PIGNOLONI
-// Module : GEOM
-// $Header$
-
-#include "BuildGUI_CompoundDlg.h"
-#include "GEOMImpl_Types.hxx"
-
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-
-#include
-
-//=================================================================================
-// class : BuildGUI_CompoundDlg()
-// purpose : Constructs a BuildGUI_CompoundDlg which is a child of 'parent', with the
-// name 'name' and widget flags set to 'f'.
-// The dialog will by default be modeless, unless you set 'modal' to
-// TRUE to construct a modal dialog.
-//=================================================================================
-BuildGUI_CompoundDlg::BuildGUI_CompoundDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
-{
- QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BUILD_COMPOUND")));
- QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
-
- setCaption(tr("GEOM_COMPOUND_TITLE"));
-
- /***************************************************************/
- GroupConstructors->setTitle(tr("GEOM_COMPOUND"));
- RadioButton1->setPixmap(image0);
- RadioButton2->close(TRUE);
- RadioButton3->close(TRUE);
-
- GroupShapes = new DlgRef_1Sel_QTD(this, "GroupShapes");
- GroupShapes->GroupBox1->setTitle(tr("GEOM_ARGUMENTS"));
- GroupShapes->TextLabel1->setText(tr("GEOM_OBJECTS"));
- GroupShapes->PushButton1->setPixmap(image1);
- GroupShapes->LineEdit1->setReadOnly( true );
-
- Layout1->addWidget(GroupShapes, 2, 0);
- /***************************************************************/
-
- /* Initialisations */
- Init();
-}
-
-
-//=================================================================================
-// function : ~BuildGUI_CompoundDlg()
-// purpose : Destroys the object and frees any allocated resources
-//=================================================================================
-BuildGUI_CompoundDlg::~BuildGUI_CompoundDlg()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BuildGUI_CompoundDlg::Init()
-{
- /* init variables */
- myEditCurrentArgument = GroupShapes->LineEdit1;
- GroupShapes->LineEdit1->setReadOnly( true );
-
- myOkShapes = false;
-
- /* signals and slots connections */
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
- connect(GroupShapes->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-
- globalSelection( GEOM_ALLSHAPES );
-
- initName( tr( "GEOM_COMPOUND" ) );
-}
-
-
-//=================================================================================
-// function : ClickOnOk()
-// purpose :
-//=================================================================================
-void BuildGUI_CompoundDlg::ClickOnOk()
-{
- if ( ClickOnApply() )
- ClickOnCancel();
-}
-
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose :
-//=================================================================================
-bool BuildGUI_CompoundDlg::ClickOnApply()
-{
- if ( !onAccept() )
- return false;
-
- initName();
- return true;
-}
-
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection as changed or other case
-//=================================================================================
-void BuildGUI_CompoundDlg::SelectionIntoArgument()
-{
- myEditCurrentArgument->setText( "" );
- QString aString = ""; /* name of selection */
-
- myOkShapes = false;
- int nbSel = GEOMBase::GetNameOfSelectedIObjects( selectedIO(), aString, true );
- if ( nbSel == 0 )
- return;
- if ( nbSel != 1 )
- aString = QString( "%1_objects").arg( nbSel );
-
- GEOMBase::ConvertListOfIOInListOfGO( selectedIO(), myShapes, true );
- myEditCurrentArgument->setText( aString );
- myOkShapes = true;
-}
-
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BuildGUI_CompoundDlg::SetEditCurrentArgument()
-{
- QPushButton* send = (QPushButton*)sender();
- if (send != GroupShapes->PushButton1)
- return;
-
- myEditCurrentArgument = GroupShapes->LineEdit1;
-
- myEditCurrentArgument->setFocus();
- SelectionIntoArgument();
-}
-
-
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void BuildGUI_CompoundDlg::ActivateThisDialog()
-{
- GEOMBase_Skeleton::ActivateThisDialog();
- globalSelection( GEOM_ALLSHAPES );
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-}
-
-
-//=================================================================================
-// function : enterEvent()
-// purpose :
-//=================================================================================
-void BuildGUI_CompoundDlg::enterEvent(QEvent* e)
-{
- if ( !GroupConstructors->isEnabled() )
- ActivateThisDialog();
-}
-
-//=================================================================================
-// function : createOperation
-// purpose :
-//=================================================================================
-GEOM::GEOM_IOperations_ptr BuildGUI_CompoundDlg::createOperation()
-{
- return getGeomEngine()->GetIShapesOperations( getStudyId() );
-}
-
-//=================================================================================
-// function : isValid
-// purpose :
-//=================================================================================
-bool BuildGUI_CompoundDlg::isValid( QString& )
-{
- return myOkShapes;
-}
-
-//=================================================================================
-// function : execute
-// purpose :
-//=================================================================================
-bool BuildGUI_CompoundDlg::execute( ObjectList& objects )
-{
- GEOM::GEOM_Object_var anObj;
-
- anObj = GEOM::GEOM_IShapesOperations::_narrow( getOperation() )->MakeCompound( myShapes );
-
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
-
- return true;
-}
diff --git a/src/BuildGUI/BuildGUI_EdgeDlg.cxx b/src/BuildGUI/BuildGUI_EdgeDlg.cxx
deleted file mode 100644
index ae8150407..000000000
--- a/src/BuildGUI/BuildGUI_EdgeDlg.cxx
+++ /dev/null
@@ -1,283 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BuildGUI_EdgeDlg.cxx
-// Author : Lucien PIGNOLONI
-// Module : GEOM
-// $Header$
-
-#include "BuildGUI_EdgeDlg.h"
-
-#include
-#include
-
-#include "utilities.h"
-#include "GEOMImpl_Types.hxx"
-
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-
-#include
-
-//=================================================================================
-// class : BuildGUI_EdgeDlg()
-// purpose : Constructs a BuildGUI_EdgeDlg which is a child of 'parent', with the
-// name 'name' and widget flags set to 'f'.
-// The dialog will by default be modeless, unless you set 'modal' to
-// TRUE to construct a modal dialog.
-//=================================================================================
-BuildGUI_EdgeDlg::BuildGUI_EdgeDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
-{
- QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BUILD_EDGE")));
- QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
-
- setCaption(tr("GEOM_EDGE_TITLE"));
-
- /***************************************************************/
- GroupConstructors->setTitle(tr("GEOM_EDGE"));
- RadioButton1->setPixmap(image0);
- RadioButton2->close(TRUE);
- RadioButton3->close(TRUE);
-
- GroupPoints = new DlgRef_2Sel_QTD(this, "GroupPoints");
- GroupPoints->GroupBox1->setTitle(tr("GEOM_POINTS"));
- GroupPoints->TextLabel1->setText(tr("GEOM_POINT_I").arg("1"));
- GroupPoints->TextLabel2->setText(tr("GEOM_POINT_I").arg("2"));
- GroupPoints->PushButton1->setPixmap(image1);
- GroupPoints->PushButton2->setPixmap(image1);
-
- GroupPoints->LineEdit1->setReadOnly( true );
- GroupPoints->LineEdit2->setReadOnly( true );
-
- Layout1->addWidget(GroupPoints, 2, 0);
- /***************************************************************/
-
- /* Initialisations */
- Init();
-}
-
-
-//=================================================================================
-// function : ~BuildGUI_EdgeDlg()
-// purpose : Destroys the object and frees any allocated resources
-//=================================================================================
-BuildGUI_EdgeDlg::~BuildGUI_EdgeDlg()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BuildGUI_EdgeDlg::Init()
-{
- /* init variables */
- myEditCurrentArgument = GroupPoints->LineEdit1;
- GroupPoints->LineEdit1->setReadOnly( true );
- GroupPoints->LineEdit2->setReadOnly( true );
-
- myOkPoint1 = myOkPoint2 = false;
-
- globalSelection( GEOM_POINT );
-
- /* signals and slots connections */
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
-
- connect(GroupPoints->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(GroupPoints->PushButton2, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
-
- connect(GroupPoints->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(GroupPoints->LineEdit2, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
-
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-
- initName( tr( "GEOM_EDGE") );
-}
-
-
-//=================================================================================
-// function : ClickOnOk()
-// purpose :
-//=================================================================================
-void BuildGUI_EdgeDlg::ClickOnOk()
-{
- if ( ClickOnApply() )
- ClickOnCancel();
-}
-
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose :
-//=================================================================================
-bool BuildGUI_EdgeDlg::ClickOnApply()
-{
- if ( !onAccept() )
- return false;
-
- initName();
- return true;
-}
-
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection as changed or other case
-//=================================================================================
-void BuildGUI_EdgeDlg::SelectionIntoArgument()
-{
- erasePreview();
- myEditCurrentArgument->setText("");
-
- if(IObjectCount() != 1) {
- if(myEditCurrentArgument == GroupPoints->LineEdit1)
- myOkPoint1 = false;
- else if(myEditCurrentArgument == GroupPoints->LineEdit2)
- myOkPoint2 = false;
- return;
- }
-
- // nbSel == 1
- Standard_Boolean testResult = Standard_False;
- GEOM::GEOM_Object_var aSelectedObject = GEOMBase::ConvertIOinGEOMObject(firstIObject(), testResult );
-
- if(!testResult)
- return;
-
- if(myEditCurrentArgument == GroupPoints->LineEdit1) {
- myPoint1 = aSelectedObject;
- myOkPoint1 = true;
- }
- else if(myEditCurrentArgument == GroupPoints->LineEdit2) {
- myPoint2 = aSelectedObject;
- myOkPoint2 = true;
- }
-
- myEditCurrentArgument->setText( GEOMBase::GetName( aSelectedObject ) );
-
- displayPreview();
-}
-
-
-//=================================================================================
-// function : LineEditReturnPressed()
-// purpose :
-//=================================================================================
-void BuildGUI_EdgeDlg::LineEditReturnPressed()
-{
- QLineEdit* send = (QLineEdit*)sender();
- if(send == GroupPoints->LineEdit1 || send == GroupPoints->LineEdit2)
- {
- myEditCurrentArgument = send;
- GEOMBase_Skeleton::LineEditReturnPressed();
- }
-}
-
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BuildGUI_EdgeDlg::SetEditCurrentArgument()
-{
-
- QPushButton* send = (QPushButton*)sender();
- globalSelection();
-
- if(send == GroupPoints->PushButton1) {
- myEditCurrentArgument = GroupPoints->LineEdit1;
- globalSelection( GEOM_POINT );
- }
- else if(send == GroupPoints->PushButton2) {
- myEditCurrentArgument = GroupPoints->LineEdit2;
- globalSelection( GEOM_POINT );
- }
-
- myEditCurrentArgument->setFocus();
- SelectionIntoArgument();
-}
-
-
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void BuildGUI_EdgeDlg::ActivateThisDialog()
-{
- GEOMBase_Skeleton::ActivateThisDialog();
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
- globalSelection( GEOM_POINT );
- displayPreview();
-}
-
-
-//=================================================================================
-// function : enterEvent()
-// purpose :
-//=================================================================================
-void BuildGUI_EdgeDlg::enterEvent(QEvent* e)
-{
- if ( !GroupConstructors->isEnabled() )
- ActivateThisDialog();
-}
-
-//=================================================================================
-// function : createOperation
-// purpose :
-//=================================================================================
-GEOM::GEOM_IOperations_ptr BuildGUI_EdgeDlg::createOperation()
-{
- return getGeomEngine()->GetIShapesOperations( getStudyId() );
-}
-
-//=================================================================================
-// function : isValid
-// purpose :
-//=================================================================================
-bool BuildGUI_EdgeDlg::isValid( QString& )
-{
- return myOkPoint1 && myOkPoint2;
-}
-
-//=================================================================================
-// function : execute
-// purpose :
-//=================================================================================
-bool BuildGUI_EdgeDlg::execute( ObjectList& objects )
-{
- GEOM::GEOM_Object_var anObj;
-
- anObj = GEOM::GEOM_IShapesOperations::_narrow( getOperation() )->MakeEdge( myPoint1, myPoint2 );
-
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
-
- return true;
-}
diff --git a/src/BuildGUI/BuildGUI_FaceDlg.cxx b/src/BuildGUI/BuildGUI_FaceDlg.cxx
deleted file mode 100644
index 3b7a2c08a..000000000
--- a/src/BuildGUI/BuildGUI_FaceDlg.cxx
+++ /dev/null
@@ -1,243 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BuildGUI_FaceDlg.cxx
-// Author : Lucien PIGNOLONI
-// Module : GEOM
-// $Header$
-
-#include "BuildGUI_FaceDlg.h"
-#include "GEOMImpl_Types.hxx"
-
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-
-//Qt includes
-#include
-#include
-
-using namespace std;
-
-//=================================================================================
-// class : BuildGUI_FaceDlg()
-// purpose : Constructs a BuildGUI_FaceDlg which is a child of 'parent', with the
-// name 'name' and widget flags set to 'f'.
-// The dialog will by default be modeless, unless you set 'modal' to
-// TRUE to construct a modal dialog.
-//=================================================================================
-BuildGUI_FaceDlg::BuildGUI_FaceDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
-{
- QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BUILD_FACE")));
- QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
-
- setCaption(tr("GEOM_FACE_TITLE"));
-
- /***************************************************************/
- GroupConstructors->setTitle(tr("GEOM_FACE"));
- RadioButton1->setPixmap(image0);
- RadioButton2->close(TRUE);
- RadioButton3->close(TRUE);
-
- GroupWire = new DlgRef_1Sel1Check_QTD(this, "GroupWire");
- GroupWire->GroupBox1->setTitle(tr("GEOM_FACE_FFW"));
- GroupWire->TextLabel1->setText(tr("GEOM_WIRES"));
- GroupWire->CheckButton1->setText(tr("GEOM_FACE_OPT"));
- GroupWire->PushButton1->setPixmap(image1);
-
- Layout1->addWidget(GroupWire, 2, 0);
- /***************************************************************/
-
- /* Initialisations */
- Init();
-}
-
-
-//=================================================================================
-// function : ~BuildGUI_FaceDlg()
-// purpose : Destroys the object and frees any allocated resources
-//=================================================================================
-BuildGUI_FaceDlg::~BuildGUI_FaceDlg()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BuildGUI_FaceDlg::Init()
-{
- /* init variables */
- myEditCurrentArgument = GroupWire->LineEdit1;
- GroupWire->LineEdit1->setReadOnly( true );
-
- GroupWire->CheckButton1->setChecked(TRUE);
-
- globalSelection( GEOM_WIRE );
-
- /* signals and slots connections */
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
- connect(GroupWire->LineEdit1, SIGNAL(returnPressed()), this, SLOT(LineEditReturnPressed()));
- connect(GroupWire->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-
- initName(tr("GEOM_FACE"));
-}
-
-
-//=================================================================================
-// function : ClickOnOk()
-// purpose :
-//=================================================================================
-void BuildGUI_FaceDlg::ClickOnOk()
-{
- if ( ClickOnApply() )
- ClickOnCancel();
-}
-
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose :
-//=================================================================================
-bool BuildGUI_FaceDlg::ClickOnApply()
-{
- if ( !onAccept() )
- return false;
-
- initName();
- return true;
-}
-
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection as changed or other case
-//=================================================================================
-void BuildGUI_FaceDlg::SelectionIntoArgument()
-{
- myEditCurrentArgument->setText("");
- QString aName;
-
- int aNbSel = GEOMBase::GetNameOfSelectedIObjects(selectedIO(), aName);
-
- if(aNbSel < 1)
- {
- myWires.length(0);
- return;
- }
-
- GEOMBase::ConvertListOfIOInListOfGO(selectedIO(), myWires);
- if (!myWires.length())
- return;
- if(aNbSel != 1)
- aName = tr("%1_wires").arg(aNbSel);
-
- myEditCurrentArgument->setText( aName );
-
- myEditCurrentArgument->setText( aName );
-}
-
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BuildGUI_FaceDlg::SetEditCurrentArgument()
-{
- QPushButton* send = (QPushButton*)sender();
- if (send != GroupWire->PushButton1)
- return;
-
- globalSelection( GEOM_WIRE );
- myEditCurrentArgument = GroupWire->LineEdit1;
-
- myEditCurrentArgument->setFocus();
- SelectionIntoArgument();
-}
-
-
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void BuildGUI_FaceDlg::ActivateThisDialog()
-{
- GEOMBase_Skeleton::ActivateThisDialog();
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
- globalSelection( GEOM_WIRE );
-}
-
-
-//=================================================================================
-// function : enterEvent()
-// purpose :
-//=================================================================================
-void BuildGUI_FaceDlg::enterEvent(QEvent* e)
-{
- if ( !GroupConstructors->isEnabled() )
- ActivateThisDialog();
-}
-
-//=================================================================================
-// function : createOperation
-// purpose :
-//=================================================================================
-GEOM::GEOM_IOperations_ptr BuildGUI_FaceDlg::createOperation()
-{
- return getGeomEngine()->GetIShapesOperations( getStudyId() );
-}
-
-//=================================================================================
-// function : isValid
-// purpose :
-//=================================================================================
-bool BuildGUI_FaceDlg::isValid( QString& )
-{
- return (myWires.length() != 0);
-}
-
-//=================================================================================
-// function : execute
-// purpose :
-//=================================================================================
-bool BuildGUI_FaceDlg::execute( ObjectList& objects )
-{
- GEOM::GEOM_Object_var anObj;
-
- bool isPlanarWanted = GroupWire->CheckButton1->isChecked();
- anObj = GEOM::GEOM_IShapesOperations::_narrow(
- getOperation() )->MakeFaceWires( myWires, isPlanarWanted );
-
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
-
- return true;
-}
-
diff --git a/src/BuildGUI/BuildGUI_ShellDlg.cxx b/src/BuildGUI/BuildGUI_ShellDlg.cxx
deleted file mode 100644
index 5972e2994..000000000
--- a/src/BuildGUI/BuildGUI_ShellDlg.cxx
+++ /dev/null
@@ -1,246 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BuildGUI_ShellDlg.cxx
-// Author : Damien COQUERET
-// Module : GEOM
-// $Header:
-
-#include "BuildGUI_ShellDlg.h"
-#include "GEOMImpl_Types.hxx"
-
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-
-#include "TColStd_MapOfInteger.hxx"
-
-#include
-
-//=================================================================================
-// class : BuildGUI_ShellDlg()
-// purpose : Constructs a BuildGUI_ShellDlg which is a child of 'parent', with the
-// name 'name' and widget flags set to 'f'.
-// The dialog will by default be modeless, unless you set 'modal' to
-// TRUE to construct a modal dialog.
-//=================================================================================
-BuildGUI_ShellDlg::BuildGUI_ShellDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
-{
- QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_DLG_BUILD_SHELL")));
- QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_SELECT")));
-
- setCaption(tr("GEOM_SHELL_TITLE"));
-
- /***************************************************************/
- GroupConstructors->setTitle(tr("GEOM_SHELL"));
- RadioButton1->setPixmap(image0);
- RadioButton2->close(TRUE);
- RadioButton3->close(TRUE);
-
- GroupShell = new DlgRef_1Sel_QTD(this, "GroupShell");
- GroupShell->GroupBox1->setTitle(tr("GEOM_ARGUMENTS"));
- GroupShell->TextLabel1->setText(tr("GEOM_OBJECTS"));
- GroupShell->PushButton1->setPixmap(image1);
- GroupShell->LineEdit1->setReadOnly( true );
-
- Layout1->addWidget(GroupShell, 2, 0);
- /***************************************************************/
-
- /* Initialisations */
- Init();
-}
-
-
-//=================================================================================
-// function : ~BuildGUI_ShellDlg()
-// purpose : Destroys the object and frees any allocated resources
-//=================================================================================
-BuildGUI_ShellDlg::~BuildGUI_ShellDlg()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BuildGUI_ShellDlg::Init()
-{
- /* init variables */
- myEditCurrentArgument = GroupShell->LineEdit1;
- GroupShell->LineEdit1->setReadOnly( true );
-
- myOkFacesAndShells = false;
-
- TColStd_MapOfInteger aMap;
- aMap.Add(GEOM_SHELL);
- aMap.Add(GEOM_FACE);
- globalSelection( aMap );
-
- /* signals and slots connections */
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
-
- connect(GroupShell->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
-
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-
- initName(tr("GEOM_SHELL"));
-}
-
-
-//=================================================================================
-// function : ClickOnOk()
-// purpose :
-//=================================================================================
-void BuildGUI_ShellDlg::ClickOnOk()
-{
- if ( ClickOnApply() )
- ClickOnCancel();
-}
-
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose :
-//=================================================================================
-bool BuildGUI_ShellDlg::ClickOnApply()
-{
- if ( !onAccept() )
- return false;
-
- initName();
- return true;
-}
-
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection as changed or other case
-//=================================================================================
-void BuildGUI_ShellDlg::SelectionIntoArgument()
-{
- myEditCurrentArgument->setText( "" );
- QString aString;
-
- myOkFacesAndShells = false;
- int nbSel = GEOMBase::GetNameOfSelectedIObjects( selectedIO(), aString, true );
- if ( nbSel == 0 )
- return;
- if ( nbSel != 1 )
- aString = QString( "%1_objects ").arg( nbSel );
-
- GEOMBase::ConvertListOfIOInListOfGO( selectedIO(), myFacesAndShells, true );
- if ( !myFacesAndShells.length() )
- return;
-
- myEditCurrentArgument->setText( aString );
- myOkFacesAndShells = true;
-}
-
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BuildGUI_ShellDlg::SetEditCurrentArgument()
-{
- QPushButton* send = (QPushButton*)sender();
- if (send != GroupShell->PushButton1)
- return;
-
- TColStd_MapOfInteger aMap;
- aMap.Add(GEOM_SHELL);
- aMap.Add(GEOM_FACE);
- globalSelection( aMap );
- myEditCurrentArgument = GroupShell->LineEdit1;
-
- myEditCurrentArgument->setFocus();
- SelectionIntoArgument();
-}
-
-
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void BuildGUI_ShellDlg::ActivateThisDialog()
-{
- GEOMBase_Skeleton::ActivateThisDialog();
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
- TColStd_MapOfInteger aMap;
- aMap.Add(GEOM_SHELL);
- aMap.Add(GEOM_FACE);
- globalSelection( aMap );
-}
-
-
-//=================================================================================
-// function : enterEvent()
-// purpose :
-//=================================================================================
-void BuildGUI_ShellDlg::enterEvent(QEvent* e)
-{
- if ( !GroupConstructors->isEnabled() )
- ActivateThisDialog();
-}
-
-//=================================================================================
-// function : createOperation
-// purpose :
-//=================================================================================
-GEOM::GEOM_IOperations_ptr BuildGUI_ShellDlg::createOperation()
-{
- return getGeomEngine()->GetIShapesOperations( getStudyId() );
-}
-
-//=================================================================================
-// function : isValid
-// purpose :
-//=================================================================================
-bool BuildGUI_ShellDlg::isValid( QString& )
-{
- return myOkFacesAndShells;
-}
-
-//=================================================================================
-// function : execute
-// purpose :
-//=================================================================================
-bool BuildGUI_ShellDlg::execute( ObjectList& objects )
-{
- GEOM::GEOM_Object_var anObj;
-
- anObj = GEOM::GEOM_IShapesOperations::_narrow(
- getOperation() )->MakeShell( myFacesAndShells );
-
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
-
- return true;
-}
-
diff --git a/src/BuildGUI/BuildGUI_SolidDlg.cxx b/src/BuildGUI/BuildGUI_SolidDlg.cxx
deleted file mode 100644
index f871dbf79..000000000
--- a/src/BuildGUI/BuildGUI_SolidDlg.cxx
+++ /dev/null
@@ -1,262 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BuildGUI_SolidDlg.cxx
-// Author : Damien COQUERET
-// Module : GEOM
-// $Header:
-
-#include "BuildGUI_SolidDlg.h"
-#include "GEOMImpl_Types.hxx"
-
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-
-//Qt includes
-#include
-#include
-
-//=================================================================================
-// class : BuildGUI_SolidDlg()
-// purpose : Constructs a BuildGUI_SolidDlg which is a child of 'parent', with the
-// name 'name' and widget flags set to 'f'.
-// The dialog will by default be modeless, unless you set 'modal' to
-// TRUE to construct a modal dialog.
-//=================================================================================
-BuildGUI_SolidDlg::BuildGUI_SolidDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
-{
- QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_DLG_BUILD_SOLID")));
- QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM", tr("ICON_SELECT")));
-
- setCaption(tr("GEOM_SOLID_TITLE"));
-
- /***************************************************************/
- GroupConstructors->setTitle(tr("GEOM_SOLID"));
- RadioButton1->setPixmap(image0);
- RadioButton2->close(TRUE);
- RadioButton3->close(TRUE);
-
- GroupSolid = new DlgRef_1Sel1Check_QTD(this, "GroupSolid");
- GroupSolid->GroupBox1->setTitle(tr("GEOM_ARGUMENTS"));
- GroupSolid->TextLabel1->setText(tr("GEOM_OBJECTS"));
- GroupSolid->CheckButton1->setText(tr("GEOM_CREATE_SINGLE_SOLID"));
- GroupSolid->PushButton1->setPixmap(image1);
- GroupSolid->LineEdit1->setReadOnly( true );
-
- Layout1->addWidget(GroupSolid, 2, 0);
- /***************************************************************/
-
- /* Initialisations */
- Init();
-}
-
-
-//=================================================================================
-// function : ~BuildGUI_SolidDlg()
-// purpose : Destroys the object and frees any allocated resources
-//=================================================================================
-BuildGUI_SolidDlg::~BuildGUI_SolidDlg()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BuildGUI_SolidDlg::Init()
-{
- /* init variables */
- myEditCurrentArgument = GroupSolid->LineEdit1;
- GroupSolid->LineEdit1->setReadOnly( true );
- GroupSolid->CheckButton1->setChecked( true );
-
- myOkShells = false;
-
- globalSelection( GEOM_SHELL );
-
- /* signals and slots connections */
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
-
- connect(GroupSolid->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(GroupSolid->CheckButton1, SIGNAL(toggled(bool)), this, SLOT(EnableNameField(bool)));
-
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-
- initName(tr("GEOM_SOLID"));
-}
-
-
-//=================================================================================
-// function : ClickOnOk()
-// purpose :
-//=================================================================================
-void BuildGUI_SolidDlg::ClickOnOk()
-{
- if ( ClickOnApply() )
- ClickOnCancel();
-}
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose :
-//=================================================================================
-bool BuildGUI_SolidDlg::ClickOnApply()
-{
- if ( !onAccept() )
- return false;
-
- initName();
- return true;
-}
-
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection as changed or other case
-//=================================================================================
-void BuildGUI_SolidDlg::SelectionIntoArgument()
-{
- myEditCurrentArgument->setText("");
- QString aString = "";
-
- myOkShells = false;
- int nbSel = GEOMBase::GetNameOfSelectedIObjects(selectedIO(), aString);
- if (nbSel == 0)
- return;
- if(nbSel != 1)
- aString = tr("%1_objects").arg(nbSel);
-
- GEOMBase::ConvertListOfIOInListOfGO(selectedIO(), myShells);
- if (!myShells.length())
- return;
-
- myEditCurrentArgument->setText(aString);
- myOkShells = true;
-}
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BuildGUI_SolidDlg::SetEditCurrentArgument()
-{
- QPushButton* send = (QPushButton*)sender();
- if(send != GroupSolid->PushButton1)
- return;
-
- globalSelection( GEOM_SHELL );
- myEditCurrentArgument = GroupSolid->LineEdit1;
-
- myEditCurrentArgument->setFocus();
- SelectionIntoArgument();
-}
-
-
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void BuildGUI_SolidDlg::ActivateThisDialog()
-{
- GEOMBase_Skeleton::ActivateThisDialog();
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
- globalSelection( GEOM_SHELL );
-}
-
-
-//=================================================================================
-// function : enterEvent()
-// purpose :
-//=================================================================================
-void BuildGUI_SolidDlg::enterEvent(QEvent* e)
-{
- if ( !GroupConstructors->isEnabled() )
- ActivateThisDialog();
-}
-
-
-//=================================================================================
-// function : EnableNameField()
-// purpose :
-//=================================================================================
-void BuildGUI_SolidDlg::EnableNameField(bool toEnable)
-{
- this->GroupBoxName->setEnabled(toEnable);
-}
-
-//=================================================================================
-// function : createOperation
-// purpose :
-//=================================================================================
-GEOM::GEOM_IOperations_ptr BuildGUI_SolidDlg::createOperation()
-{
- return getGeomEngine()->GetIShapesOperations( getStudyId() );
-}
-
-//=================================================================================
-// function : isValid
-// purpose :
-//=================================================================================
-bool BuildGUI_SolidDlg::isValid( QString& )
-{
- return myOkShells;
-}
-
-//=================================================================================
-// function : execute
-// purpose :
-//=================================================================================
-bool BuildGUI_SolidDlg::execute( ObjectList& objects )
-{
- bool toCreateSingleSolid = GroupSolid->CheckButton1->isChecked();
-
- if ( toCreateSingleSolid )
- {
- GEOM::GEOM_Object_var anObj = GEOM::GEOM_IShapesOperations::_narrow(
- getOperation() )->MakeSolidShells( myShells );
-
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
- }
- else
- {
- for ( int i = 0, n = myShells.length(); i< n; i++ )
- {
- GEOM::GEOM_Object_var anObj = GEOM::GEOM_IShapesOperations::_narrow(
- getOperation() )->MakeSolidShell( myShells[ i ] );
-
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
- }
- }
-
- return true;
-}
-
diff --git a/src/BuildGUI/BuildGUI_WireDlg.cxx b/src/BuildGUI/BuildGUI_WireDlg.cxx
deleted file mode 100644
index 425cb14a0..000000000
--- a/src/BuildGUI/BuildGUI_WireDlg.cxx
+++ /dev/null
@@ -1,245 +0,0 @@
-// GEOM GEOMGUI : GUI for Geometry component
-//
-// Copyright (C) 2003 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
-// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
-//
-// This library is free software; you can redistribute it and/or
-// modify it under the terms of the GNU Lesser General Public
-// License as published by the Free Software Foundation; either
-// version 2.1 of the License.
-//
-// This library is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-// Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public
-// License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-//
-// See http://www.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org
-//
-//
-//
-// File : BuildGUI_WireDlg.cxx
-// Author : Lucien PIGNOLONI
-// Module : GEOM
-// $Header$
-
-#include "BuildGUI_WireDlg.h"
-#include "GEOMImpl_Types.hxx"
-
-#include "SUIT_Session.h"
-#include "SalomeApp_Application.h"
-#include "SalomeApp_SelectionMgr.h"
-
-#include "TColStd_MapOfInteger.hxx"
-
-#include
-
-//=================================================================================
-// class : BuildGUI_WireDlg()
-// purpose : Constructs a BuildGUI_WireDlg which is a child of 'parent', with the
-// name 'name' and widget flags set to 'f'.
-// The dialog will by default be modeless, unless you set 'modal' to
-// TRUE to construct a modal dialog.
-//=================================================================================
-BuildGUI_WireDlg::BuildGUI_WireDlg(QWidget* parent, const char* name, bool modal, WFlags fl)
- :GEOMBase_Skeleton(parent, name, modal, WStyle_Customize | WStyle_NormalBorder | WStyle_Title | WStyle_SysMenu)
-{
- QPixmap image0(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_DLG_BUILD_WIRE")));
- QPixmap image1(SUIT_Session::session()->resourceMgr()->loadPixmap("GEOM",tr("ICON_SELECT")));
-
- setCaption(tr("GEOM_WIRE_TITLE"));
-
- /***************************************************************/
- GroupConstructors->setTitle(tr("GEOM_WIRE"));
- RadioButton1->setPixmap(image0);
- RadioButton2->close(TRUE);
- RadioButton3->close(TRUE);
-
- GroupPoints = new DlgRef_1Sel_QTD(this, "GroupPoints");
- GroupPoints->GroupBox1->setTitle(tr("GEOM_WIRE_CONNECT"));
- GroupPoints->TextLabel1->setText(tr("GEOM_OBJECTS"));
- GroupPoints->PushButton1->setPixmap(image1);
- GroupPoints->LineEdit1->setReadOnly( true );
-
- Layout1->addWidget(GroupPoints, 2, 0);
- /***************************************************************/
-
- /* Initialisations */
- Init();
-}
-
-
-//=================================================================================
-// function : ~BuildGUI_WireDlg()
-// purpose : Destroys the object and frees any allocated resources
-//=================================================================================
-BuildGUI_WireDlg::~BuildGUI_WireDlg()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
-
-//=================================================================================
-// function : Init()
-// purpose :
-//=================================================================================
-void BuildGUI_WireDlg::Init()
-{
- /* init variables */
- myEditCurrentArgument = GroupPoints->LineEdit1;
- GroupPoints->LineEdit1->setReadOnly( true );
-
- myOkEdgesAndWires = false;
-
- TColStd_MapOfInteger aMap;
- aMap.Add(GEOM_WIRE);
- aMap.Add(GEOM_EDGE);
- globalSelection( aMap );
-
- /* signals and slots connections */
- connect(buttonOk, SIGNAL(clicked()), this, SLOT(ClickOnOk()));
- connect(buttonApply, SIGNAL(clicked()), this, SLOT(ClickOnApply()));
- connect(GroupPoints->PushButton1, SIGNAL(clicked()), this, SLOT(SetEditCurrentArgument()));
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
-
- initName(tr("GEOM_WIRE"));
-}
-
-
-//=================================================================================
-// function : ClickOnOk()
-// purpose :
-//=================================================================================
-void BuildGUI_WireDlg::ClickOnOk()
-{
- if ( ClickOnApply() )
- ClickOnCancel();
-}
-
-
-//=================================================================================
-// function : ClickOnApply()
-// purpose :
-//=================================================================================
-bool BuildGUI_WireDlg::ClickOnApply()
-{
- if ( !onAccept() )
- return false;
-
- initName();
- return true;
-}
-
-
-//=================================================================================
-// function : SelectionIntoArgument()
-// purpose : Called when selection as changed or other case
-//=================================================================================
-void BuildGUI_WireDlg::SelectionIntoArgument()
-{
- myEditCurrentArgument->setText("");
- QString aString = ""; /* name of selection */
-
- myOkEdgesAndWires = false;
- int nbSel = GEOMBase::GetNameOfSelectedIObjects(selectedIO(), aString);
-
- if(nbSel == 0)
- return;
- if(nbSel != 1)
- aString = tr("%1_objects").arg(nbSel);
-
- GEOMBase::ConvertListOfIOInListOfGO(selectedIO(), myEdgesAndWires);
- if (!myEdgesAndWires.length())
- return;
-
- myEditCurrentArgument->setText(aString);
- myOkEdgesAndWires = true;
-}
-
-
-//=================================================================================
-// function : SetEditCurrentArgument()
-// purpose :
-//=================================================================================
-void BuildGUI_WireDlg::SetEditCurrentArgument()
-{
- QPushButton* send = (QPushButton*)sender();
- if (send != GroupPoints->PushButton1)
- return;
-
- TColStd_MapOfInteger aMap;
- aMap.Add(GEOM_WIRE);
- aMap.Add(GEOM_EDGE);
- globalSelection( aMap );
- myEditCurrentArgument = GroupPoints->LineEdit1;
-
- myEditCurrentArgument->setFocus();
- SelectionIntoArgument();
-}
-
-
-//=================================================================================
-// function : ActivateThisDialog()
-// purpose :
-//=================================================================================
-void BuildGUI_WireDlg::ActivateThisDialog()
-{
- GEOMBase_Skeleton::ActivateThisDialog();
- connect(((SalomeApp_Application*)(SUIT_Session::session()->activeApplication()))->selectionMgr(),
- SIGNAL(currentSelectionChanged()), this, SLOT(SelectionIntoArgument())) ;
- TColStd_MapOfInteger aMap;
- aMap.Add(GEOM_WIRE);
- aMap.Add(GEOM_EDGE);
- globalSelection( aMap );
-}
-
-
-//=================================================================================
-// function : enterEvent()
-// purpose :
-//=================================================================================
-void BuildGUI_WireDlg::enterEvent(QEvent* e)
-{
- if ( !GroupConstructors->isEnabled() )
- ActivateThisDialog();
-}
-
-//=================================================================================
-// function : createOperation
-// purpose :
-//=================================================================================
-GEOM::GEOM_IOperations_ptr BuildGUI_WireDlg::createOperation()
-{
- return getGeomEngine()->GetIShapesOperations( getStudyId() );
-}
-
-//=================================================================================
-// function : isValid
-// purpose :
-//=================================================================================
-bool BuildGUI_WireDlg::isValid( QString& )
-{
- return myOkEdgesAndWires;
-}
-
-//=================================================================================
-// function : execute
-// purpose :
-//=================================================================================
-bool BuildGUI_WireDlg::execute( ObjectList& objects )
-{
- GEOM::GEOM_Object_var anObj;
-
- anObj = GEOM::GEOM_IShapesOperations::_narrow(
- getOperation() )->MakeWire( myEdgesAndWires );
-
- if ( !anObj->_is_nil() )
- objects.push_back( anObj._retn() );
-
- return true;
-}
-
diff --git a/src/DlgRef/DlgRef_1List1Spin1Btn_QTD.cxx b/src/DlgRef/DlgRef_1List1Spin1Btn_QTD.cxx
deleted file mode 100644
index 271cd6d1c..000000000
--- a/src/DlgRef/DlgRef_1List1Spin1Btn_QTD.cxx
+++ /dev/null
@@ -1,73 +0,0 @@
-/****************************************************************************
-** Form implementation generated from reading ui file 'DlgRef_1List1Spin1Btn_QTD.ui'
-**
-** Created: Wed Mar 17 11:29:24 2004
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#include "DlgRef_1List1Spin1Btn_QTD.h"
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-/*
- * Constructs a DlgRef_1List1Spin1Btn_QTD which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'.
- */
-DlgRef_1List1Spin1Btn_QTD::DlgRef_1List1Spin1Btn_QTD( QWidget* parent, const char* name, WFlags fl )
- : QWidget( parent, name, fl )
-{
- if ( !name )
- setName( "DlgRef_1List1Spin1Btn_QTD" );
- resize( 204, 148 );
- setCaption( trUtf8( "DlgRef_3Sel4Spin2Check_QTD" ) );
- DlgRef_1List1Spin1Btn_QTDLayout = new QGridLayout( this, 1, 1, 11, 6, "DlgRef_1List1Spin1Btn_QTDLayout");
-
- GroupBox1 = new QGroupBox( this, "GroupBox1" );
- GroupBox1->setTitle( trUtf8( "" ) );
- GroupBox1->setColumnLayout(0, Qt::Vertical );
- GroupBox1->layout()->setSpacing( 6 );
- GroupBox1->layout()->setMargin( 11 );
- GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
- GroupBox1Layout->setAlignment( Qt::AlignTop );
- QSpacerItem* spacer = new QSpacerItem( 0, 23, QSizePolicy::Minimum, QSizePolicy::Expanding );
- GroupBox1Layout->addItem( spacer, 3, 1 );
-
- ListView1 = new QListView( GroupBox1, "ListView1" );
-
- GroupBox1Layout->addMultiCellWidget( ListView1, 0, 3, 0, 0 );
-
- TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
- TextLabel1->setText( trUtf8( "TL1" ) );
-
- GroupBox1Layout->addWidget( TextLabel1, 0, 1 );
-
- SpinBox1 = new QSpinBox( GroupBox1, "SpinBox1" );
-
- GroupBox1Layout->addWidget( SpinBox1, 1, 1 );
-
- PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
- PushButton1->setText( trUtf8( "" ) );
-
- GroupBox1Layout->addWidget( PushButton1, 2, 1 );
-
- DlgRef_1List1Spin1Btn_QTDLayout->addWidget( GroupBox1, 0, 0 );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-DlgRef_1List1Spin1Btn_QTD::~DlgRef_1List1Spin1Btn_QTD()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
diff --git a/src/DlgRef/DlgRef_1List1Spin1Btn_QTD.h b/src/DlgRef/DlgRef_1List1Spin1Btn_QTD.h
deleted file mode 100644
index 140977959..000000000
--- a/src/DlgRef/DlgRef_1List1Spin1Btn_QTD.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/****************************************************************************
-** Form interface generated from reading ui file 'DlgRef_1List1Spin1Btn_QTD.ui'
-**
-** Created: Wed Mar 17 11:29:24 2004
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#ifndef DLGREF_1LIST1SPIN1BTN_QTD_H
-#define DLGREF_1LIST1SPIN1BTN_QTD_H
-
-#include
-#include
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QGroupBox;
-class QLabel;
-class QListView;
-class QListViewItem;
-class QPushButton;
-class QSpinBox;
-
-#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
-#define DLGREF_WNT_EXPORT __declspec( dllexport )
-#else
-#define DLGREF_WNT_EXPORT
-#endif
-
-class DLGREF_WNT_EXPORT DlgRef_1List1Spin1Btn_QTD : public QWidget
-{
- Q_OBJECT
-
-public:
- DlgRef_1List1Spin1Btn_QTD( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
- ~DlgRef_1List1Spin1Btn_QTD();
-
- QGroupBox* GroupBox1;
- QListView* ListView1;
- QLabel* TextLabel1;
- QSpinBox* SpinBox1;
- QPushButton* PushButton1;
-
-
-protected:
- QGridLayout* DlgRef_1List1Spin1Btn_QTDLayout;
- QGridLayout* GroupBox1Layout;
-};
-
-#endif // DLGREF_1LIST1SPIN1BTN_QTD_H
diff --git a/src/DlgRef/DlgRef_1Sel1Check1List_QTD.cxx b/src/DlgRef/DlgRef_1Sel1Check1List_QTD.cxx
deleted file mode 100644
index b629360ef..000000000
--- a/src/DlgRef/DlgRef_1Sel1Check1List_QTD.cxx
+++ /dev/null
@@ -1,91 +0,0 @@
-/****************************************************************************
-** Form implementation generated from reading ui file 'DlgRef_1Sel1Check1List_QTD.ui'
-**
-** Created: lun oct 27 16:18:55 2003
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#include "DlgRef_1Sel1Check1List_QTD.h"
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-/*
- * Constructs a DlgRef_1Sel1Check1List_QTD which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'.
- */
-DlgRef_1Sel1Check1List_QTD::DlgRef_1Sel1Check1List_QTD( QWidget* parent, const char* name, WFlags fl )
- : QWidget( parent, name, fl )
-{
- if ( !name )
- setName( "DlgRef_1Sel1Check1List_QTD" );
- resize( 129, 104 );
- setCaption( trUtf8( "DlgRef_1Sel1Check1List_QTD" ) );
- DlgRef_1Sel1Check1List_QTDLayout = new QGridLayout( this, 1, 1, 0, 6, "DlgRef_1Sel1Check1List_QTDLayout");
-
- GroupBox1 = new QGroupBox( this, "GroupBox1" );
- GroupBox1->setTitle( trUtf8( "" ) );
- GroupBox1->setColumnLayout(0, Qt::Vertical );
- GroupBox1->layout()->setSpacing( 6 );
- GroupBox1->layout()->setMargin( 11 );
- GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
- GroupBox1Layout->setAlignment( Qt::AlignTop );
-
- Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1");
- QSpacerItem* spacer = new QSpacerItem( 0, 166, QSizePolicy::Minimum, QSizePolicy::Expanding );
- Layout1->addItem( spacer, 3, 2 );
-
- CheckButton1 = new QRadioButton( GroupBox1, "CheckButton1" );
- CheckButton1->setText( trUtf8( "" ) );
-
- Layout1->addMultiCellWidget( CheckButton1, 2, 2, 0, 2 );
-
- TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
- TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel2->sizePolicy().hasHeightForWidth() ) );
- TextLabel2->setText( trUtf8( "TL2" ) );
-
- Layout1->addMultiCellWidget( TextLabel2, 1, 1, 0, 1 );
-
- ComboBox1 = new QComboBox( FALSE, GroupBox1, "ComboBox1" );
- ComboBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, ComboBox1->sizePolicy().hasHeightForWidth() ) );
-
- Layout1->addWidget( ComboBox1, 1, 2 );
-
- LineEdit1 = new QLineEdit( GroupBox1, "LineEdit1" );
-
- Layout1->addWidget( LineEdit1, 0, 2 );
-
- TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
- TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
- TextLabel1->setText( trUtf8( "TL1" ) );
-
- Layout1->addWidget( TextLabel1, 0, 0 );
-
- PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
- PushButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton1->sizePolicy().hasHeightForWidth() ) );
- PushButton1->setText( trUtf8( "" ) );
-
- Layout1->addWidget( PushButton1, 0, 1 );
-
- GroupBox1Layout->addLayout( Layout1, 0, 0 );
-
- DlgRef_1Sel1Check1List_QTDLayout->addWidget( GroupBox1, 0, 0 );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-DlgRef_1Sel1Check1List_QTD::~DlgRef_1Sel1Check1List_QTD()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
diff --git a/src/DlgRef/DlgRef_1Sel1Check1List_QTD.h b/src/DlgRef/DlgRef_1Sel1Check1List_QTD.h
deleted file mode 100644
index ac7fad08b..000000000
--- a/src/DlgRef/DlgRef_1Sel1Check1List_QTD.h
+++ /dev/null
@@ -1,53 +0,0 @@
-/****************************************************************************
-** Form interface generated from reading ui file 'DlgRef_1Sel1Check1List_QTD.ui'
-**
-** Created: lun oct 27 16:18:55 2003
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#ifndef DLGREF_1SEL1CHECK1LIST_QTD_H
-#define DLGREF_1SEL1CHECK1LIST_QTD_H
-
-#include
-#include
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QComboBox;
-class QGroupBox;
-class QLabel;
-class QLineEdit;
-class QPushButton;
-class QRadioButton;
-
-#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
-#define DLGREF_WNT_EXPORT __declspec( dllexport )
-#else
-#define DLGREF_WNT_EXPORT
-#endif
-
-class DLGREF_WNT_EXPORT DlgRef_1Sel1Check1List_QTD : public QWidget
-{
- Q_OBJECT
-
-public:
- DlgRef_1Sel1Check1List_QTD( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
- ~DlgRef_1Sel1Check1List_QTD();
-
- QGroupBox* GroupBox1;
- QRadioButton* CheckButton1;
- QLabel* TextLabel2;
- QComboBox* ComboBox1;
- QLineEdit* LineEdit1;
- QLabel* TextLabel1;
- QPushButton* PushButton1;
-
-
-protected:
- QGridLayout* DlgRef_1Sel1Check1List_QTDLayout;
- QGridLayout* GroupBox1Layout;
- QGridLayout* Layout1;
-};
-
-#endif // DLGREF_1SEL1CHECK1LIST_QTD_H
diff --git a/src/DlgRef/DlgRef_1Sel1Check_QTD.cxx b/src/DlgRef/DlgRef_1Sel1Check_QTD.cxx
deleted file mode 100644
index 7010f4115..000000000
--- a/src/DlgRef/DlgRef_1Sel1Check_QTD.cxx
+++ /dev/null
@@ -1,83 +0,0 @@
-/****************************************************************************
-** Form implementation generated from reading ui file 'DlgRef_1Sel1Check_QTD.ui'
-**
-** Created: Thu May 20 11:55:05 2004
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#include "DlgRef_1Sel1Check_QTD.h"
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-/*
- * Constructs a DlgRef_1Sel1Check_QTD which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'.
- */
-DlgRef_1Sel1Check_QTD::DlgRef_1Sel1Check_QTD( QWidget* parent, const char* name, WFlags fl )
- : QWidget( parent, name, fl )
-{
- if ( !name )
- setName( "DlgRef_1Sel1Check_QTD" );
- resize( 382, 219 );
- setCaption( trUtf8( "DlgRef_1Sel1Check_QTD" ) );
- DlgRef_1Sel1Check_QTDLayout = new QGridLayout( this, 1, 1, 0, 6, "DlgRef_1Sel1Check_QTDLayout");
-
- GroupBox1 = new QGroupBox( this, "GroupBox1" );
- GroupBox1->setTitle( trUtf8( "" ) );
- GroupBox1->setColumnLayout(0, Qt::Vertical );
- GroupBox1->layout()->setSpacing( 6 );
- GroupBox1->layout()->setMargin( 11 );
- GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
- GroupBox1Layout->setAlignment( Qt::AlignTop );
-
- Layout3 = new QGridLayout( 0, 1, 1, 0, 6, "Layout3");
-
- TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
- TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
- TextLabel1->setText( trUtf8( "TL1" ) );
-
- Layout3->addWidget( TextLabel1, 0, 0 );
-
- PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
- PushButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton1->sizePolicy().hasHeightForWidth() ) );
- PushButton1->setText( trUtf8( "" ) );
-
- Layout3->addWidget( PushButton1, 0, 1 );
-
- CheckButton1 = new QCheckBox( GroupBox1, "CheckButton1" );
- CheckButton1->setText( trUtf8( "" ) );
-
- Layout3->addMultiCellWidget( CheckButton1, 1, 1, 0, 2 );
- QSpacerItem* spacer = new QSpacerItem( 0, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
- Layout3->addItem( spacer, 2, 2 );
-
- LineEdit1 = new QLineEdit( GroupBox1, "LineEdit1" );
-
- Layout3->addWidget( LineEdit1, 0, 2 );
-
- GroupBox1Layout->addLayout( Layout3, 0, 0 );
-
- DlgRef_1Sel1Check_QTDLayout->addWidget( GroupBox1, 0, 0 );
-
- // tab order
- setTabOrder( PushButton1, LineEdit1 );
- setTabOrder( LineEdit1, CheckButton1 );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-DlgRef_1Sel1Check_QTD::~DlgRef_1Sel1Check_QTD()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
diff --git a/src/DlgRef/DlgRef_1Sel1Check_QTD.h b/src/DlgRef/DlgRef_1Sel1Check_QTD.h
deleted file mode 100644
index 0c5ad2b99..000000000
--- a/src/DlgRef/DlgRef_1Sel1Check_QTD.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/****************************************************************************
-** Form interface generated from reading ui file 'DlgRef_1Sel1Check_QTD.ui'
-**
-** Created: Thu May 20 11:55:05 2004
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#ifndef DLGREF_1SEL1CHECK_QTD_H
-#define DLGREF_1SEL1CHECK_QTD_H
-
-#include
-#include
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QCheckBox;
-class QGroupBox;
-class QLabel;
-class QLineEdit;
-class QPushButton;
-
-#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
-#define DLGREF_WNT_EXPORT __declspec( dllexport )
-#else
-#define DLGREF_WNT_EXPORT
-#endif
-
-class DLGREF_WNT_EXPORT DlgRef_1Sel1Check_QTD : public QWidget
-{
- Q_OBJECT
-
-public:
- DlgRef_1Sel1Check_QTD( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
- ~DlgRef_1Sel1Check_QTD();
-
- QGroupBox* GroupBox1;
- QLabel* TextLabel1;
- QPushButton* PushButton1;
- QCheckBox* CheckButton1;
- QLineEdit* LineEdit1;
-
-
-protected:
- QGridLayout* DlgRef_1Sel1Check_QTDLayout;
- QGridLayout* GroupBox1Layout;
- QGridLayout* Layout3;
-};
-
-#endif // DLGREF_1SEL1CHECK_QTD_H
diff --git a/src/DlgRef/DlgRef_1Sel1Spin1Check_QTD.cxx b/src/DlgRef/DlgRef_1Sel1Spin1Check_QTD.cxx
deleted file mode 100644
index 86f49fb17..000000000
--- a/src/DlgRef/DlgRef_1Sel1Spin1Check_QTD.cxx
+++ /dev/null
@@ -1,95 +0,0 @@
-/****************************************************************************
-** Form implementation generated from reading ui file 'DlgRef_1Sel1Spin1Check_QTD.ui'
-**
-** Created: Mon May 24 15:59:03 2004
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#include "DlgRef_1Sel1Spin1Check_QTD.h"
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-/*
- * Constructs a DlgRef_1Sel1Spin1Check_QTD which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'.
- */
-DlgRef_1Sel1Spin1Check_QTD::DlgRef_1Sel1Spin1Check_QTD( QWidget* parent, const char* name, WFlags fl )
- : QWidget( parent, name, fl )
-{
- if ( !name )
- setName( "DlgRef_1Sel1Spin1Check_QTD" );
- resize( 163, 109 );
- setCaption( trUtf8( "DlgRef_1Sel1Spin1Check_QTD" ) );
- DlgRef_1Sel1Spin1Check_QTDLayout = new QGridLayout( this, 1, 1, 0, 6, "DlgRef_1Sel1Spin1Check_QTDLayout");
-
- GroupBox1 = new QGroupBox( this, "GroupBox1" );
- GroupBox1->setTitle( trUtf8( "" ) );
- GroupBox1->setColumnLayout(0, Qt::Vertical );
- GroupBox1->layout()->setSpacing( 6 );
- GroupBox1->layout()->setMargin( 11 );
- GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
- GroupBox1Layout->setAlignment( Qt::AlignTop );
-
- Layout8 = new QGridLayout( 0, 1, 1, 0, 6, "Layout8");
-
- Layout2 = new QGridLayout( 0, 1, 1, 0, 6, "Layout2");
-
- SpinBox1 = new QSpinBox( GroupBox1, "SpinBox1" );
- SpinBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox1->sizePolicy().hasHeightForWidth() ) );
-
- Layout2->addWidget( SpinBox1, 0, 1 );
-
- TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
- TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel2->sizePolicy().hasHeightForWidth() ) );
- TextLabel2->setText( trUtf8( "TL2" ) );
-
- Layout2->addWidget( TextLabel2, 0, 0 );
-
- Layout8->addMultiCellLayout( Layout2, 1, 1, 0, 2 );
-
- TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
- TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
- TextLabel1->setText( trUtf8( "TL1" ) );
-
- Layout8->addWidget( TextLabel1, 0, 0 );
-
- LineEdit1 = new QLineEdit( GroupBox1, "LineEdit1" );
-
- Layout8->addWidget( LineEdit1, 0, 2 );
-
- PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
- PushButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton1->sizePolicy().hasHeightForWidth() ) );
- PushButton1->setText( trUtf8( "" ) );
-
- Layout8->addWidget( PushButton1, 0, 1 );
-
- CheckButton1 = new QCheckBox( GroupBox1, "CheckButton1" );
- CheckButton1->setText( trUtf8( "" ) );
-
- Layout8->addMultiCellWidget( CheckButton1, 2, 2, 0, 2 );
- QSpacerItem* spacer = new QSpacerItem( 0, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
- Layout8->addItem( spacer, 3, 2 );
-
- GroupBox1Layout->addLayout( Layout8, 0, 0 );
-
- DlgRef_1Sel1Spin1Check_QTDLayout->addWidget( GroupBox1, 0, 0 );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-DlgRef_1Sel1Spin1Check_QTD::~DlgRef_1Sel1Spin1Check_QTD()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
diff --git a/src/DlgRef/DlgRef_1Sel1Spin1Check_QTD.h b/src/DlgRef/DlgRef_1Sel1Spin1Check_QTD.h
deleted file mode 100644
index a14bb56e6..000000000
--- a/src/DlgRef/DlgRef_1Sel1Spin1Check_QTD.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/****************************************************************************
-** Form interface generated from reading ui file 'DlgRef_1Sel1Spin1Check_QTD.ui'
-**
-** Created: Mon May 24 15:59:03 2004
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#ifndef DLGREF_1SEL1SPIN1CHECK_QTD_H
-#define DLGREF_1SEL1SPIN1CHECK_QTD_H
-
-#include
-#include
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QCheckBox;
-class QGroupBox;
-class QLabel;
-class QLineEdit;
-class QPushButton;
-class QSpinBox;
-
-class DlgRef_1Sel1Spin1Check_QTD : public QWidget
-{
- Q_OBJECT
-
-public:
- DlgRef_1Sel1Spin1Check_QTD( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
- ~DlgRef_1Sel1Spin1Check_QTD();
-
- QGroupBox* GroupBox1;
- QSpinBox* SpinBox1;
- QLabel* TextLabel2;
- QLabel* TextLabel1;
- QLineEdit* LineEdit1;
- QPushButton* PushButton1;
- QCheckBox* CheckButton1;
-
-
-protected:
- QGridLayout* DlgRef_1Sel1Spin1Check_QTDLayout;
- QGridLayout* GroupBox1Layout;
- QGridLayout* Layout8;
- QGridLayout* Layout2;
-};
-
-#endif // DLGREF_1SEL1SPIN1CHECK_QTD_H
diff --git a/src/DlgRef/DlgRef_1Sel1Spin_QTD.cxx b/src/DlgRef/DlgRef_1Sel1Spin_QTD.cxx
deleted file mode 100644
index 34846e0e9..000000000
--- a/src/DlgRef/DlgRef_1Sel1Spin_QTD.cxx
+++ /dev/null
@@ -1,89 +0,0 @@
-/****************************************************************************
-** Form implementation generated from reading ui file 'DlgRef_1Sel1Spin_QTD.ui'
-**
-** Created: mar sep 23 16:05:08 2003
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#include "DlgRef_1Sel1Spin_QTD.h"
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-/*
- * Constructs a DlgRef_1Sel1Spin_QTD which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'.
- */
-DlgRef_1Sel1Spin_QTD::DlgRef_1Sel1Spin_QTD( QWidget* parent, const char* name, WFlags fl )
- : QWidget( parent, name, fl )
-{
- if ( !name )
- setName( "DlgRef_1Sel1Spin_QTD" );
- resize( 129, 87 );
- setCaption( trUtf8( "DlgRef_1Sel1Spin_QTD" ) );
- DlgRef_1Sel1Spin_QTDLayout = new QGridLayout( this, 1, 1, 0, 6, "DlgRef_1Sel1Spin_QTDLayout");
-
- GroupBox1 = new QGroupBox( this, "GroupBox1" );
- GroupBox1->setTitle( trUtf8( "" ) );
- GroupBox1->setColumnLayout(0, Qt::Vertical );
- GroupBox1->layout()->setSpacing( 6 );
- GroupBox1->layout()->setMargin( 11 );
- GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
- GroupBox1Layout->setAlignment( Qt::AlignTop );
-
- Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1");
-
- PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
- PushButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton1->sizePolicy().hasHeightForWidth() ) );
- PushButton1->setText( trUtf8( "" ) );
-
- Layout1->addWidget( PushButton1, 0, 1 );
-
- TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
- TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
- TextLabel1->setText( trUtf8( "TL1" ) );
-
- Layout1->addWidget( TextLabel1, 0, 0 );
-
- LineEdit1 = new QLineEdit( GroupBox1, "LineEdit1" );
-
- Layout1->addWidget( LineEdit1, 0, 2 );
-
- Layout2 = new QGridLayout( 0, 1, 1, 0, 6, "Layout2");
-
- TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
- TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel2->sizePolicy().hasHeightForWidth() ) );
- TextLabel2->setText( trUtf8( "TL2" ) );
-
- Layout2->addWidget( TextLabel2, 0, 0 );
-
- SpinBox1 = new QSpinBox( GroupBox1, "SpinBox1" );
- SpinBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox1->sizePolicy().hasHeightForWidth() ) );
-
- Layout2->addWidget( SpinBox1, 0, 1 );
-
- Layout1->addMultiCellLayout( Layout2, 1, 1, 0, 2 );
- QSpacerItem* spacer = new QSpacerItem( 0, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
- Layout1->addItem( spacer, 2, 2 );
-
- GroupBox1Layout->addLayout( Layout1, 0, 0 );
-
- DlgRef_1Sel1Spin_QTDLayout->addWidget( GroupBox1, 0, 0 );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-DlgRef_1Sel1Spin_QTD::~DlgRef_1Sel1Spin_QTD()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
diff --git a/src/DlgRef/DlgRef_1Sel1Spin_QTD.h b/src/DlgRef/DlgRef_1Sel1Spin_QTD.h
deleted file mode 100644
index b70d054c2..000000000
--- a/src/DlgRef/DlgRef_1Sel1Spin_QTD.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/****************************************************************************
-** Form interface generated from reading ui file 'DlgRef_1Sel1Spin_QTD.ui'
-**
-** Created: mar sep 23 16:05:08 2003
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#ifndef DLGREF_1SEL1SPIN_QTD_H
-#define DLGREF_1SEL1SPIN_QTD_H
-
-#include
-#include
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QGroupBox;
-class QLabel;
-class QLineEdit;
-class QPushButton;
-class QSpinBox;
-#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
-#define DLGREF_WNT_EXPORT __declspec( dllexport )
-#else
-#define DLGREF_WNT_EXPORT
-#endif
-class DLGREF_WNT_EXPORT DlgRef_1Sel1Spin_QTD : public QWidget
-{
- Q_OBJECT
-
-public:
- DlgRef_1Sel1Spin_QTD( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
- ~DlgRef_1Sel1Spin_QTD();
-
- QGroupBox* GroupBox1;
- QPushButton* PushButton1;
- QLabel* TextLabel1;
- QLineEdit* LineEdit1;
- QLabel* TextLabel2;
- QSpinBox* SpinBox1;
-
-
-protected:
- QGridLayout* DlgRef_1Sel1Spin_QTDLayout;
- QGridLayout* GroupBox1Layout;
- QGridLayout* Layout1;
- QGridLayout* Layout2;
-};
-
-#endif // DLGREF_1SEL1SPIN_QTD_H
diff --git a/src/DlgRef/DlgRef_1Sel2Spin_QTD.cxx b/src/DlgRef/DlgRef_1Sel2Spin_QTD.cxx
deleted file mode 100644
index 9e0e82546..000000000
--- a/src/DlgRef/DlgRef_1Sel2Spin_QTD.cxx
+++ /dev/null
@@ -1,100 +0,0 @@
-/****************************************************************************
-** Form implementation generated from reading ui file 'DlgRef_1Sel2Spin_QTD.ui'
-**
-** Created: jeu oct 2 11:08:05 2003
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#include "DlgRef_1Sel2Spin_QTD.h"
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-/*
- * Constructs a DlgRef_1Sel2Spin_QTD which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'.
- */
-DlgRef_1Sel2Spin_QTD::DlgRef_1Sel2Spin_QTD( QWidget* parent, const char* name, WFlags fl )
- : QWidget( parent, name, fl )
-{
- if ( !name )
- setName( "DlgRef_1Sel2Spin_QTD" );
- resize( 129, 115 );
- setCaption( trUtf8( "DlgRef_1Sel2Spin_QTD" ) );
- DlgRef_1Sel2Spin_QTDLayout = new QGridLayout( this, 1, 1, 0, 6, "DlgRef_1Sel2Spin_QTDLayout");
-
- GroupBox1 = new QGroupBox( this, "GroupBox1" );
- GroupBox1->setTitle( trUtf8( "" ) );
- GroupBox1->setColumnLayout(0, Qt::Vertical );
- GroupBox1->layout()->setSpacing( 6 );
- GroupBox1->layout()->setMargin( 11 );
- GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
- GroupBox1Layout->setAlignment( Qt::AlignTop );
-
- Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1");
-
- Layout2 = new QGridLayout( 0, 1, 1, 0, 6, "Layout2");
-
- TextLabel3 = new QLabel( GroupBox1, "TextLabel3" );
- TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );
- TextLabel3->setText( trUtf8( "TL3" ) );
-
- Layout2->addWidget( TextLabel3, 1, 0 );
-
- SpinBox1 = new QSpinBox( GroupBox1, "SpinBox1" );
- SpinBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox1->sizePolicy().hasHeightForWidth() ) );
-
- Layout2->addWidget( SpinBox1, 0, 1 );
-
- TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
- TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel2->sizePolicy().hasHeightForWidth() ) );
- TextLabel2->setText( trUtf8( "TL2" ) );
-
- Layout2->addWidget( TextLabel2, 0, 0 );
-
- SpinBox2 = new QSpinBox( GroupBox1, "SpinBox2" );
- SpinBox2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox2->sizePolicy().hasHeightForWidth() ) );
-
- Layout2->addWidget( SpinBox2, 1, 1 );
-
- Layout1->addMultiCellLayout( Layout2, 1, 1, 0, 2 );
-
- LineEdit1 = new QLineEdit( GroupBox1, "LineEdit1" );
-
- Layout1->addWidget( LineEdit1, 0, 2 );
- QSpacerItem* spacer = new QSpacerItem( 0, 30, QSizePolicy::Minimum, QSizePolicy::Expanding );
- Layout1->addItem( spacer, 2, 2 );
-
- PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
- PushButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton1->sizePolicy().hasHeightForWidth() ) );
- PushButton1->setText( trUtf8( "" ) );
-
- Layout1->addWidget( PushButton1, 0, 1 );
-
- TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
- TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
- TextLabel1->setText( trUtf8( "TL1" ) );
-
- Layout1->addWidget( TextLabel1, 0, 0 );
-
- GroupBox1Layout->addLayout( Layout1, 0, 0 );
-
- DlgRef_1Sel2Spin_QTDLayout->addWidget( GroupBox1, 0, 0 );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-DlgRef_1Sel2Spin_QTD::~DlgRef_1Sel2Spin_QTD()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
diff --git a/src/DlgRef/DlgRef_1Sel2Spin_QTD.h b/src/DlgRef/DlgRef_1Sel2Spin_QTD.h
deleted file mode 100644
index 82cae8783..000000000
--- a/src/DlgRef/DlgRef_1Sel2Spin_QTD.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/****************************************************************************
-** Form interface generated from reading ui file 'DlgRef_1Sel2Spin_QTD.ui'
-**
-** Created: jeu oct 2 11:08:05 2003
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#ifndef DLGREF_1SEL2SPIN_QTD_H
-#define DLGREF_1SEL2SPIN_QTD_H
-
-#include
-#include
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QGroupBox;
-class QLabel;
-class QLineEdit;
-class QPushButton;
-class QSpinBox;
-
-class DlgRef_1Sel2Spin_QTD : public QWidget
-{
- Q_OBJECT
-
-public:
- DlgRef_1Sel2Spin_QTD( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
- ~DlgRef_1Sel2Spin_QTD();
-
- QGroupBox* GroupBox1;
- QLabel* TextLabel3;
- QSpinBox* SpinBox1;
- QLabel* TextLabel2;
- QSpinBox* SpinBox2;
- QLineEdit* LineEdit1;
- QPushButton* PushButton1;
- QLabel* TextLabel1;
-
-
-protected:
- QGridLayout* DlgRef_1Sel2Spin_QTDLayout;
- QGridLayout* GroupBox1Layout;
- QGridLayout* Layout1;
- QGridLayout* Layout2;
-};
-
-#endif // DLGREF_1SEL2SPIN_QTD_H
diff --git a/src/DlgRef/DlgRef_1Sel3Check_QTD.cxx b/src/DlgRef/DlgRef_1Sel3Check_QTD.cxx
deleted file mode 100644
index 7f35197cc..000000000
--- a/src/DlgRef/DlgRef_1Sel3Check_QTD.cxx
+++ /dev/null
@@ -1,95 +0,0 @@
-/****************************************************************************
-** Form implementation generated from reading ui file 'DlgRef_1Sel3Check_QTD.ui'
-**
-** Created: Thu May 20 10:15:08 2004
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#include "DlgRef_1Sel3Check_QTD.h"
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-/*
- * Constructs a DlgRef_1Sel3Check_QTD which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'.
- */
-DlgRef_1Sel3Check_QTD::DlgRef_1Sel3Check_QTD( QWidget* parent, const char* name, WFlags fl )
- : QWidget( parent, name, fl )
-{
- if ( !name )
- setName( "DlgRef_1Sel3Check_QTD" );
- resize( 163, 116 );
- setCaption( trUtf8( "DlgRef_1Sel3Check_QTD" ) );
- DlgRef_1Sel3Check_QTDLayout = new QGridLayout( this, 1, 1, 0, 6, "DlgRef_1Sel3Check_QTDLayout");
-
- GroupBox1 = new QGroupBox( this, "GroupBox1" );
- GroupBox1->setTitle( trUtf8( "" ) );
- GroupBox1->setColumnLayout(0, Qt::Vertical );
- GroupBox1->layout()->setSpacing( 6 );
- GroupBox1->layout()->setMargin( 11 );
- GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
- GroupBox1Layout->setAlignment( Qt::AlignTop );
-
- Layout6 = new QGridLayout( 0, 1, 1, 0, 6, "Layout6");
- QSpacerItem* spacer = new QSpacerItem( 0, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
- Layout6->addItem( spacer, 4, 2 );
-
- LineEdit1 = new QLineEdit( GroupBox1, "LineEdit1" );
-
- Layout6->addWidget( LineEdit1, 0, 2 );
-
- CheckButton2 = new QCheckBox( GroupBox1, "CheckButton2" );
- CheckButton2->setText( trUtf8( "" ) );
-
- Layout6->addMultiCellWidget( CheckButton2, 2, 2, 0, 2 );
-
- CheckButton1 = new QCheckBox( GroupBox1, "CheckButton1" );
- CheckButton1->setText( trUtf8( "" ) );
-
- Layout6->addMultiCellWidget( CheckButton1, 1, 1, 0, 2 );
-
- CheckButton3 = new QCheckBox( GroupBox1, "CheckButton3" );
- CheckButton3->setText( trUtf8( "" ) );
-
- Layout6->addMultiCellWidget( CheckButton3, 3, 3, 0, 2 );
-
- PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
- PushButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton1->sizePolicy().hasHeightForWidth() ) );
- PushButton1->setText( trUtf8( "" ) );
-
- Layout6->addWidget( PushButton1, 0, 1 );
-
- TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
- TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
- TextLabel1->setText( trUtf8( "TL1" ) );
-
- Layout6->addWidget( TextLabel1, 0, 0 );
-
- GroupBox1Layout->addLayout( Layout6, 0, 0 );
-
- DlgRef_1Sel3Check_QTDLayout->addWidget( GroupBox1, 0, 0 );
-
- // tab order
- setTabOrder( PushButton1, LineEdit1 );
- setTabOrder( LineEdit1, CheckButton1 );
- setTabOrder( CheckButton1, CheckButton2 );
- setTabOrder( CheckButton2, CheckButton3 );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-DlgRef_1Sel3Check_QTD::~DlgRef_1Sel3Check_QTD()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
diff --git a/src/DlgRef/DlgRef_1Sel3Check_QTD.h b/src/DlgRef/DlgRef_1Sel3Check_QTD.h
deleted file mode 100644
index a63e25ea7..000000000
--- a/src/DlgRef/DlgRef_1Sel3Check_QTD.h
+++ /dev/null
@@ -1,46 +0,0 @@
-/****************************************************************************
-** Form interface generated from reading ui file 'DlgRef_1Sel3Check_QTD.ui'
-**
-** Created: Thu May 20 10:15:07 2004
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#ifndef DLGREF_1SEL3CHECK_QTD_H
-#define DLGREF_1SEL3CHECK_QTD_H
-
-#include
-#include
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QCheckBox;
-class QGroupBox;
-class QLabel;
-class QLineEdit;
-class QPushButton;
-
-class DlgRef_1Sel3Check_QTD : public QWidget
-{
- Q_OBJECT
-
-public:
- DlgRef_1Sel3Check_QTD( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
- ~DlgRef_1Sel3Check_QTD();
-
- QGroupBox* GroupBox1;
- QLineEdit* LineEdit1;
- QCheckBox* CheckButton2;
- QCheckBox* CheckButton1;
- QCheckBox* CheckButton3;
- QPushButton* PushButton1;
- QLabel* TextLabel1;
-
-
-protected:
- QGridLayout* DlgRef_1Sel3Check_QTDLayout;
- QGridLayout* GroupBox1Layout;
- QGridLayout* Layout6;
-};
-
-#endif // DLGREF_1SEL3CHECK_QTD_H
diff --git a/src/DlgRef/DlgRef_1Sel3Spin_QTD.cxx b/src/DlgRef/DlgRef_1Sel3Spin_QTD.cxx
deleted file mode 100644
index a4c3cb2d8..000000000
--- a/src/DlgRef/DlgRef_1Sel3Spin_QTD.cxx
+++ /dev/null
@@ -1,111 +0,0 @@
-/****************************************************************************
-** Form implementation generated from reading ui file 'DlgRef_1Sel3Spin_QTD.ui'
-**
-** Created: ven oct 24 15:55:11 2003
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#include "DlgRef_1Sel3Spin_QTD.h"
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-/*
- * Constructs a DlgRef_1Sel3Spin_QTD which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'.
- */
-DlgRef_1Sel3Spin_QTD::DlgRef_1Sel3Spin_QTD( QWidget* parent, const char* name, WFlags fl )
- : QWidget( parent, name, fl )
-{
- if ( !name )
- setName( "DlgRef_1Sel3Spin_QTD" );
- resize( 129, 143 );
- setCaption( trUtf8( "DlgRef_1Sel3Spin_QTD" ) );
- DlgRef_1Sel3Spin_QTDLayout = new QGridLayout( this, 1, 1, 0, 6, "DlgRef_1Sel3Spin_QTDLayout");
-
- GroupBox1 = new QGroupBox( this, "GroupBox1" );
- GroupBox1->setTitle( trUtf8( "" ) );
- GroupBox1->setColumnLayout(0, Qt::Vertical );
- GroupBox1->layout()->setSpacing( 6 );
- GroupBox1->layout()->setMargin( 11 );
- GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
- GroupBox1Layout->setAlignment( Qt::AlignTop );
-
- Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1");
-
- TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
- TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
- TextLabel1->setText( trUtf8( "TL1" ) );
-
- Layout1->addWidget( TextLabel1, 0, 0 );
-
- PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
- PushButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton1->sizePolicy().hasHeightForWidth() ) );
- PushButton1->setText( trUtf8( "" ) );
-
- Layout1->addWidget( PushButton1, 0, 1 );
-
- LineEdit1 = new QLineEdit( GroupBox1, "LineEdit1" );
-
- Layout1->addWidget( LineEdit1, 0, 2 );
- QSpacerItem* spacer = new QSpacerItem( 0, 150, QSizePolicy::Minimum, QSizePolicy::Expanding );
- Layout1->addItem( spacer, 2, 2 );
-
- Layout2 = new QGridLayout( 0, 1, 1, 0, 6, "Layout2");
-
- SpinBox2 = new QSpinBox( GroupBox1, "SpinBox2" );
- SpinBox2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox2->sizePolicy().hasHeightForWidth() ) );
-
- Layout2->addWidget( SpinBox2, 1, 1 );
-
- TextLabel3 = new QLabel( GroupBox1, "TextLabel3" );
- TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );
- TextLabel3->setText( trUtf8( "TL3" ) );
-
- Layout2->addWidget( TextLabel3, 1, 0 );
-
- SpinBox3 = new QSpinBox( GroupBox1, "SpinBox3" );
- SpinBox3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox3->sizePolicy().hasHeightForWidth() ) );
-
- Layout2->addWidget( SpinBox3, 2, 1 );
-
- SpinBox1 = new QSpinBox( GroupBox1, "SpinBox1" );
- SpinBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox1->sizePolicy().hasHeightForWidth() ) );
-
- Layout2->addWidget( SpinBox1, 0, 1 );
-
- TextLabel4 = new QLabel( GroupBox1, "TextLabel4" );
- TextLabel4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel4->sizePolicy().hasHeightForWidth() ) );
- TextLabel4->setText( trUtf8( "TL4" ) );
-
- Layout2->addWidget( TextLabel4, 2, 0 );
-
- TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
- TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel2->sizePolicy().hasHeightForWidth() ) );
- TextLabel2->setText( trUtf8( "TL2" ) );
-
- Layout2->addWidget( TextLabel2, 0, 0 );
-
- Layout1->addMultiCellLayout( Layout2, 1, 1, 0, 2 );
-
- GroupBox1Layout->addLayout( Layout1, 0, 0 );
-
- DlgRef_1Sel3Spin_QTDLayout->addWidget( GroupBox1, 0, 0 );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-DlgRef_1Sel3Spin_QTD::~DlgRef_1Sel3Spin_QTD()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
diff --git a/src/DlgRef/DlgRef_1Sel3Spin_QTD.h b/src/DlgRef/DlgRef_1Sel3Spin_QTD.h
deleted file mode 100644
index 8283cd9b7..000000000
--- a/src/DlgRef/DlgRef_1Sel3Spin_QTD.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/****************************************************************************
-** Form interface generated from reading ui file 'DlgRef_1Sel3Spin_QTD.ui'
-**
-** Created: ven oct 24 15:55:10 2003
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#ifndef DLGREF_1SEL3SPIN_QTD_H
-#define DLGREF_1SEL3SPIN_QTD_H
-
-#include
-#include
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QGroupBox;
-class QLabel;
-class QLineEdit;
-class QPushButton;
-class QSpinBox;
-#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
-#define DLGREF_WNT_EXPORT __declspec( dllexport )
-#else
-#define DLGREF_WNT_EXPORT
-#endif
-class DLGREF_WNT_EXPORT DlgRef_1Sel3Spin_QTD : public QWidget
-{
- Q_OBJECT
-
-public:
- DlgRef_1Sel3Spin_QTD( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
- ~DlgRef_1Sel3Spin_QTD();
-
- QGroupBox* GroupBox1;
- QLabel* TextLabel1;
- QPushButton* PushButton1;
- QLineEdit* LineEdit1;
- QSpinBox* SpinBox2;
- QLabel* TextLabel3;
- QSpinBox* SpinBox3;
- QSpinBox* SpinBox1;
- QLabel* TextLabel4;
- QLabel* TextLabel2;
-
-
-protected:
- QGridLayout* DlgRef_1Sel3Spin_QTDLayout;
- QGridLayout* GroupBox1Layout;
- QGridLayout* Layout1;
- QGridLayout* Layout2;
-};
-
-#endif // DLGREF_1SEL3SPIN_QTD_H
diff --git a/src/DlgRef/DlgRef_1Sel4Spin_QTD.cxx b/src/DlgRef/DlgRef_1Sel4Spin_QTD.cxx
deleted file mode 100644
index 319249c03..000000000
--- a/src/DlgRef/DlgRef_1Sel4Spin_QTD.cxx
+++ /dev/null
@@ -1,132 +0,0 @@
-/****************************************************************************
-** Form implementation generated from reading ui file 'DlgRef_1Sel4Spin_QTD.ui'
-**
-** Created: mar sep 23 16:05:09 2003
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#include "DlgRef_1Sel4Spin_QTD.h"
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-/*
- * Constructs a DlgRef_1Sel4Spin_QTD which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'.
- */
-DlgRef_1Sel4Spin_QTD::DlgRef_1Sel4Spin_QTD( QWidget* parent, const char* name, WFlags fl )
- : QWidget( parent, name, fl )
-{
- if ( !name )
- setName( "DlgRef_1Sel4Spin_QTD" );
- resize( 284, 119 );
- setCaption( trUtf8( "DlgRef_1Sel4Spin_QTD" ) );
- DlgRef_1Sel4Spin_QTDLayout = new QGridLayout( this, 1, 1, 0, 6, "DlgRef_1Sel4Spin_QTDLayout");
-
- GroupBox1 = new QGroupBox( this, "GroupBox1" );
- GroupBox1->setTitle( trUtf8( "" ) );
- GroupBox1->setColumnLayout(0, Qt::Vertical );
- GroupBox1->layout()->setSpacing( 6 );
- GroupBox1->layout()->setMargin( 11 );
- GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
- GroupBox1Layout->setAlignment( Qt::AlignTop );
-
- Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1");
-
- Layout3 = new QGridLayout( 0, 1, 1, 0, 6, "Layout3");
-
- TextLabel5 = new QLabel( GroupBox1, "TextLabel5" );
- TextLabel5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel5->sizePolicy().hasHeightForWidth() ) );
- TextLabel5->setText( trUtf8( "TL5" ) );
-
- Layout3->addWidget( TextLabel5, 0, 5 );
-
- TextLabel3 = new QLabel( GroupBox1, "TextLabel3" );
- TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );
- TextLabel3->setText( trUtf8( "TL3" ) );
-
- Layout3->addWidget( TextLabel3, 0, 1 );
-
- TextLabel4 = new QLabel( GroupBox1, "TextLabel4" );
- TextLabel4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel4->sizePolicy().hasHeightForWidth() ) );
- TextLabel4->setText( trUtf8( "TL4" ) );
-
- Layout3->addWidget( TextLabel4, 0, 3 );
-
- SpinBox3 = new QSpinBox( GroupBox1, "SpinBox3" );
- SpinBox3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox3->sizePolicy().hasHeightForWidth() ) );
-
- Layout3->addWidget( SpinBox3, 0, 6 );
-
- SpinBox1 = new QSpinBox( GroupBox1, "SpinBox1" );
- SpinBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox1->sizePolicy().hasHeightForWidth() ) );
-
- Layout3->addWidget( SpinBox1, 0, 2 );
-
- TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
- TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel2->sizePolicy().hasHeightForWidth() ) );
- TextLabel2->setText( trUtf8( "TL2" ) );
-
- Layout3->addWidget( TextLabel2, 0, 0 );
-
- SpinBox2 = new QSpinBox( GroupBox1, "SpinBox2" );
- SpinBox2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox2->sizePolicy().hasHeightForWidth() ) );
-
- Layout3->addWidget( SpinBox2, 0, 4 );
-
- Layout1->addLayout( Layout3, 1, 0 );
- QSpacerItem* spacer = new QSpacerItem( 0, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
- Layout1->addItem( spacer, 3, 0 );
-
- Layout4 = new QGridLayout( 0, 1, 1, 0, 6, "Layout4");
-
- TextLabel6 = new QLabel( GroupBox1, "TextLabel6" );
- TextLabel6->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel6->sizePolicy().hasHeightForWidth() ) );
- TextLabel6->setText( trUtf8( "TL6" ) );
-
- Layout4->addWidget( TextLabel6, 0, 0 );
-
- SpinBox4 = new QSpinBox( GroupBox1, "SpinBox4" );
-
- Layout4->addWidget( SpinBox4, 0, 1 );
-
- Layout1->addLayout( Layout4, 2, 0 );
-
- Layout2 = new QHBoxLayout( 0, 0, 6, "Layout2");
-
- TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
- TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
- TextLabel1->setText( trUtf8( "TL1" ) );
- Layout2->addWidget( TextLabel1 );
-
- PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
- PushButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton1->sizePolicy().hasHeightForWidth() ) );
- PushButton1->setText( trUtf8( "" ) );
- Layout2->addWidget( PushButton1 );
-
- LineEdit1 = new QLineEdit( GroupBox1, "LineEdit1" );
- Layout2->addWidget( LineEdit1 );
-
- Layout1->addLayout( Layout2, 0, 0 );
-
- GroupBox1Layout->addLayout( Layout1, 0, 0 );
-
- DlgRef_1Sel4Spin_QTDLayout->addWidget( GroupBox1, 0, 0 );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-DlgRef_1Sel4Spin_QTD::~DlgRef_1Sel4Spin_QTD()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
diff --git a/src/DlgRef/DlgRef_1Sel4Spin_QTD.h b/src/DlgRef/DlgRef_1Sel4Spin_QTD.h
deleted file mode 100644
index db64ea6ae..000000000
--- a/src/DlgRef/DlgRef_1Sel4Spin_QTD.h
+++ /dev/null
@@ -1,55 +0,0 @@
-/****************************************************************************
-** Form interface generated from reading ui file 'DlgRef_1Sel4Spin_QTD.ui'
-**
-** Created: mar sep 23 16:05:09 2003
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#ifndef DLGREF_1SEL4SPIN_QTD_H
-#define DLGREF_1SEL4SPIN_QTD_H
-
-#include
-#include
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QGroupBox;
-class QLabel;
-class QLineEdit;
-class QPushButton;
-class QSpinBox;
-
-class DlgRef_1Sel4Spin_QTD : public QWidget
-{
- Q_OBJECT
-
-public:
- DlgRef_1Sel4Spin_QTD( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
- ~DlgRef_1Sel4Spin_QTD();
-
- QGroupBox* GroupBox1;
- QLabel* TextLabel5;
- QLabel* TextLabel3;
- QLabel* TextLabel4;
- QSpinBox* SpinBox3;
- QSpinBox* SpinBox1;
- QLabel* TextLabel2;
- QSpinBox* SpinBox2;
- QLabel* TextLabel6;
- QSpinBox* SpinBox4;
- QLabel* TextLabel1;
- QPushButton* PushButton1;
- QLineEdit* LineEdit1;
-
-
-protected:
- QGridLayout* DlgRef_1Sel4Spin_QTDLayout;
- QGridLayout* GroupBox1Layout;
- QGridLayout* Layout1;
- QGridLayout* Layout3;
- QGridLayout* Layout4;
- QHBoxLayout* Layout2;
-};
-
-#endif // DLGREF_1SEL4SPIN_QTD_H
diff --git a/src/DlgRef/DlgRef_1Sel5Spin_QTD.cxx b/src/DlgRef/DlgRef_1Sel5Spin_QTD.cxx
deleted file mode 100644
index b93242062..000000000
--- a/src/DlgRef/DlgRef_1Sel5Spin_QTD.cxx
+++ /dev/null
@@ -1,133 +0,0 @@
-/****************************************************************************
-** Form implementation generated from reading ui file 'DlgRef_1Sel5Spin_QTD.ui'
-**
-** Created: mar nov 18 11:19:14 2003
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#include "DlgRef_1Sel5Spin_QTD.h"
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-/*
- * Constructs a DlgRef_1Sel5Spin_QTD which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'.
- */
-DlgRef_1Sel5Spin_QTD::DlgRef_1Sel5Spin_QTD( QWidget* parent, const char* name, WFlags fl )
- : QWidget( parent, name, fl )
-{
- if ( !name )
- setName( "DlgRef_1Sel5Spin_QTD" );
- resize( 162, 143 );
- setCaption( trUtf8( "DlgRef_1Sel5Spin_QTD" ) );
- DlgRef_1Sel5Spin_QTDLayout = new QGridLayout( this, 1, 1, 0, 6, "DlgRef_1Sel5Spin_QTDLayout");
-
- GroupBox1 = new QGroupBox( this, "GroupBox1" );
- GroupBox1->setTitle( trUtf8( "" ) );
- GroupBox1->setColumnLayout(0, Qt::Vertical );
- GroupBox1->layout()->setSpacing( 6 );
- GroupBox1->layout()->setMargin( 11 );
- GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
- GroupBox1Layout->setAlignment( Qt::AlignTop );
-
- Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1");
-
- TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
- TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
- TextLabel1->setText( trUtf8( "TL1" ) );
-
- Layout1->addWidget( TextLabel1, 0, 0 );
-
- PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
- PushButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton1->sizePolicy().hasHeightForWidth() ) );
- PushButton1->setText( trUtf8( "" ) );
-
- Layout1->addWidget( PushButton1, 0, 1 );
-
- Layout2 = new QGridLayout( 0, 1, 1, 0, 6, "Layout2");
-
- SpinBox2 = new QSpinBox( GroupBox1, "SpinBox2" );
- SpinBox2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox2->sizePolicy().hasHeightForWidth() ) );
-
- Layout2->addWidget( SpinBox2, 0, 3 );
-
- SpinBox3 = new QSpinBox( GroupBox1, "SpinBox3" );
- SpinBox3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox3->sizePolicy().hasHeightForWidth() ) );
-
- Layout2->addWidget( SpinBox3, 2, 1 );
-
- TextLabel5 = new QLabel( GroupBox1, "TextLabel5" );
- TextLabel5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel5->sizePolicy().hasHeightForWidth() ) );
- TextLabel5->setText( trUtf8( "TL5" ) );
-
- Layout2->addWidget( TextLabel5, 1, 0 );
-
- TextLabel3 = new QLabel( GroupBox1, "TextLabel3" );
- TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );
- TextLabel3->setText( trUtf8( "TL3" ) );
-
- Layout2->addWidget( TextLabel3, 0, 2 );
-
- TextLabel4 = new QLabel( GroupBox1, "TextLabel4" );
- TextLabel4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel4->sizePolicy().hasHeightForWidth() ) );
- TextLabel4->setText( trUtf8( "TL4" ) );
-
- Layout2->addWidget( TextLabel4, 2, 0 );
-
- SpinBox4 = new QSpinBox( GroupBox1, "SpinBox4" );
- SpinBox4->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox4->sizePolicy().hasHeightForWidth() ) );
-
- Layout2->addWidget( SpinBox4, 1, 1 );
-
- SpinBox1 = new QSpinBox( GroupBox1, "SpinBox1" );
- SpinBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox1->sizePolicy().hasHeightForWidth() ) );
-
- Layout2->addWidget( SpinBox1, 0, 1 );
-
- TextLabel6 = new QLabel( GroupBox1, "TextLabel6" );
- TextLabel6->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel6->sizePolicy().hasHeightForWidth() ) );
- TextLabel6->setText( trUtf8( "TL6" ) );
-
- Layout2->addWidget( TextLabel6, 1, 2 );
-
- TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
- TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel2->sizePolicy().hasHeightForWidth() ) );
- TextLabel2->setText( trUtf8( "TL2" ) );
-
- Layout2->addWidget( TextLabel2, 0, 0 );
-
- SpinBox5 = new QSpinBox( GroupBox1, "SpinBox5" );
- SpinBox5->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox5->sizePolicy().hasHeightForWidth() ) );
-
- Layout2->addWidget( SpinBox5, 1, 3 );
-
- Layout1->addMultiCellLayout( Layout2, 1, 1, 0, 2 );
- QSpacerItem* spacer = new QSpacerItem( 0, 120, QSizePolicy::Minimum, QSizePolicy::Expanding );
- Layout1->addItem( spacer, 2, 2 );
-
- LineEdit1 = new QLineEdit( GroupBox1, "LineEdit1" );
-
- Layout1->addWidget( LineEdit1, 0, 2 );
-
- GroupBox1Layout->addLayout( Layout1, 0, 0 );
-
- DlgRef_1Sel5Spin_QTDLayout->addWidget( GroupBox1, 0, 0 );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-DlgRef_1Sel5Spin_QTD::~DlgRef_1Sel5Spin_QTD()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
diff --git a/src/DlgRef/DlgRef_1Sel5Spin_QTD.h b/src/DlgRef/DlgRef_1Sel5Spin_QTD.h
deleted file mode 100644
index 5ec3e33cd..000000000
--- a/src/DlgRef/DlgRef_1Sel5Spin_QTD.h
+++ /dev/null
@@ -1,54 +0,0 @@
-/****************************************************************************
-** Form interface generated from reading ui file 'DlgRef_1Sel5Spin_QTD.ui'
-**
-** Created: mar nov 18 11:19:13 2003
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#ifndef DLGREF_1SEL5SPIN_QTD_H
-#define DLGREF_1SEL5SPIN_QTD_H
-
-#include
-#include
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QGroupBox;
-class QLabel;
-class QLineEdit;
-class QPushButton;
-class QSpinBox;
-
-class DlgRef_1Sel5Spin_QTD : public QWidget
-{
- Q_OBJECT
-
-public:
- DlgRef_1Sel5Spin_QTD( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
- ~DlgRef_1Sel5Spin_QTD();
-
- QGroupBox* GroupBox1;
- QLabel* TextLabel1;
- QPushButton* PushButton1;
- QSpinBox* SpinBox2;
- QSpinBox* SpinBox3;
- QLabel* TextLabel5;
- QLabel* TextLabel3;
- QLabel* TextLabel4;
- QSpinBox* SpinBox4;
- QSpinBox* SpinBox1;
- QLabel* TextLabel6;
- QLabel* TextLabel2;
- QSpinBox* SpinBox5;
- QLineEdit* LineEdit1;
-
-
-protected:
- QGridLayout* DlgRef_1Sel5Spin_QTDLayout;
- QGridLayout* GroupBox1Layout;
- QGridLayout* Layout1;
- QGridLayout* Layout2;
-};
-
-#endif // DLGREF_1SEL5SPIN_QTD_H
diff --git a/src/DlgRef/DlgRef_1Sel_Ext.h b/src/DlgRef/DlgRef_1Sel_Ext.h
deleted file mode 100644
index c973f00cd..000000000
--- a/src/DlgRef/DlgRef_1Sel_Ext.h
+++ /dev/null
@@ -1,34 +0,0 @@
-/****************************************************************************
-** Form interface generated from reading ui file 'DlgRef_1Sel_QTD.ui'
-**
-** Created: lun sep 22 17:38:05 2003
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#ifndef DlgRef_1Sel_Ext_H
-#define DlgRef_1Sel_Ext_H
-
-#include "DlgRef_1Sel_QTD.h"
-
-class QGridLayout;
-
-#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
-#define DLGREF_WNT_EXPORT __declspec( dllexport )
-#else
-#define DLGREF_WNT_EXPORT
-#endif
-
-class DLGREF_WNT_EXPORT DlgRef_1Sel_Ext : public DlgRef_1Sel_QTD
-{
- Q_OBJECT
-
-public:
- DlgRef_1Sel_Ext( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 )
- : DlgRef_1Sel_QTD( parent, name, fl ) {};
- ~DlgRef_1Sel_Ext() {};
-
- QGridLayout* getGroupBoxLayout() { return GroupBox1Layout; }
-};
-
-#endif // DlgRef_1Sel_Ext_H
diff --git a/src/DlgRef/DlgRef_1Sel_QTD.cxx b/src/DlgRef/DlgRef_1Sel_QTD.cxx
deleted file mode 100644
index 90a136249..000000000
--- a/src/DlgRef/DlgRef_1Sel_QTD.cxx
+++ /dev/null
@@ -1,74 +0,0 @@
-/****************************************************************************
-** Form implementation generated from reading ui file 'DlgRef_1Sel_QTD.ui'
-**
-** Created: lun sep 22 17:38:06 2003
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#include "DlgRef_1Sel_QTD.h"
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-/*
- * Constructs a DlgRef_1Sel_QTD which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'.
- */
-DlgRef_1Sel_QTD::DlgRef_1Sel_QTD( QWidget* parent, const char* name, WFlags fl )
- : QWidget( parent, name, fl )
-{
- if ( !name )
- setName( "DlgRef_1Sel_QTD" );
- resize( 129, 57 );
- setCaption( trUtf8( "DlgRef_1Sel_QTD" ) );
- DlgRef_1Sel_QTDLayout = new QGridLayout( this, 1, 1, 0, 6, "DlgRef_1Sel_QTDLayout");
-
- GroupBox1 = new QGroupBox( this, "GroupBox1" );
- GroupBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)7, 0, 0, GroupBox1->sizePolicy().hasHeightForWidth() ) );
- GroupBox1->setTitle( trUtf8( "" ) );
- GroupBox1->setColumnLayout(0, Qt::Vertical );
- GroupBox1->layout()->setSpacing( 6 );
- GroupBox1->layout()->setMargin( 11 );
- GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
- GroupBox1Layout->setAlignment( Qt::AlignTop );
-
- Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1");
-
- PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
- PushButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton1->sizePolicy().hasHeightForWidth() ) );
- PushButton1->setText( trUtf8( "" ) );
-
- Layout1->addWidget( PushButton1, 0, 1 );
- QSpacerItem* spacer = new QSpacerItem( 0, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
- Layout1->addItem( spacer, 1, 2 );
-
- LineEdit1 = new QLineEdit( GroupBox1, "LineEdit1" );
-
- Layout1->addWidget( LineEdit1, 0, 2 );
-
- TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
- TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
- TextLabel1->setText( trUtf8( "TL1" ) );
-
- Layout1->addWidget( TextLabel1, 0, 0 );
-
- GroupBox1Layout->addLayout( Layout1, 0, 0 );
-
- DlgRef_1Sel_QTDLayout->addWidget( GroupBox1, 0, 0 );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-DlgRef_1Sel_QTD::~DlgRef_1Sel_QTD()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
diff --git a/src/DlgRef/DlgRef_1Sel_QTD.h b/src/DlgRef/DlgRef_1Sel_QTD.h
deleted file mode 100644
index 58b6ba1bf..000000000
--- a/src/DlgRef/DlgRef_1Sel_QTD.h
+++ /dev/null
@@ -1,48 +0,0 @@
-/****************************************************************************
-** Form interface generated from reading ui file 'DlgRef_1Sel_QTD.ui'
-**
-** Created: lun sep 22 17:38:05 2003
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#ifndef DLGREF_1SEL_QTD_H
-#define DLGREF_1SEL_QTD_H
-
-#include
-#include
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QGroupBox;
-class QLabel;
-class QLineEdit;
-class QPushButton;
-
-#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
-#define DLGREF_WNT_EXPORT __declspec( dllexport )
-#else
-#define DLGREF_WNT_EXPORT
-#endif
-
-class DLGREF_WNT_EXPORT DlgRef_1Sel_QTD : public QWidget
-{
- Q_OBJECT
-
-public:
- DlgRef_1Sel_QTD( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
- ~DlgRef_1Sel_QTD();
-
- QGroupBox* GroupBox1;
- QPushButton* PushButton1;
- QLineEdit* LineEdit1;
- QLabel* TextLabel1;
-
-
-protected:
- QGridLayout* DlgRef_1Sel_QTDLayout;
- QGridLayout* GroupBox1Layout;
- QGridLayout* Layout1;
-};
-
-#endif // DLGREF_1SEL_QTD_H
diff --git a/src/DlgRef/DlgRef_1Spin_QTD.cxx b/src/DlgRef/DlgRef_1Spin_QTD.cxx
deleted file mode 100644
index aa54d9ad8..000000000
--- a/src/DlgRef/DlgRef_1Spin_QTD.cxx
+++ /dev/null
@@ -1,68 +0,0 @@
-/****************************************************************************
-** Form implementation generated from reading ui file 'DlgRef_1Spin_QTD.ui'
-**
-** Created: jeu sep 25 12:22:29 2003
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#include "DlgRef_1Spin_QTD.h"
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-/*
- * Constructs a DlgRef_1Spin_QTD which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'.
- */
-DlgRef_1Spin_QTD::DlgRef_1Spin_QTD( QWidget* parent, const char* name, WFlags fl )
- : QWidget( parent, name, fl )
-{
- if ( !name )
- setName( "DlgRef_1Spin_QTD" );
- resize( 124, 55 );
- setCaption( trUtf8( "DlgRef_1Spin_QTD" ) );
- DlgRef_1Spin_QTDLayout = new QGridLayout( this, 1, 1, 0, 6, "DlgRef_1Spin_QTDLayout");
-
- GroupBox1 = new QGroupBox( this, "GroupBox1" );
- GroupBox1->setTitle( trUtf8( "" ) );
- GroupBox1->setColumnLayout(0, Qt::Vertical );
- GroupBox1->layout()->setSpacing( 6 );
- GroupBox1->layout()->setMargin( 11 );
- GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
- GroupBox1Layout->setAlignment( Qt::AlignTop );
-
- Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1");
- QSpacerItem* spacer = new QSpacerItem( 0, 16, QSizePolicy::Minimum, QSizePolicy::Expanding );
- Layout1->addItem( spacer, 3, 1 );
-
- SpinBox1 = new QSpinBox( GroupBox1, "SpinBox1" );
- SpinBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox1->sizePolicy().hasHeightForWidth() ) );
-
- Layout1->addWidget( SpinBox1, 0, 1 );
-
- TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
- TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
- TextLabel1->setText( trUtf8( "TL1" ) );
-
- Layout1->addWidget( TextLabel1, 0, 0 );
-
- GroupBox1Layout->addLayout( Layout1, 0, 0 );
-
- DlgRef_1Spin_QTDLayout->addWidget( GroupBox1, 0, 0 );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-DlgRef_1Spin_QTD::~DlgRef_1Spin_QTD()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
diff --git a/src/DlgRef/DlgRef_1Spin_QTD.h b/src/DlgRef/DlgRef_1Spin_QTD.h
deleted file mode 100644
index 38dfc0703..000000000
--- a/src/DlgRef/DlgRef_1Spin_QTD.h
+++ /dev/null
@@ -1,44 +0,0 @@
-/****************************************************************************
-** Form interface generated from reading ui file 'DlgRef_1Spin_QTD.ui'
-**
-** Created: jeu sep 25 12:22:29 2003
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#ifndef DLGREF_1SPIN_QTD_H
-#define DLGREF_1SPIN_QTD_H
-
-#include
-#include
-class QVBoxLayout;
-class QHBoxLayout;
-class QGridLayout;
-class QGroupBox;
-class QLabel;
-class QSpinBox;
-#if defined WNT && defined WIN32 && defined SALOME_WNT_EXPORTS
-#define DLGREF_WNT_EXPORT __declspec( dllexport )
-#else
-#define DLGREF_WNT_EXPORT
-#endif
-class DLGREF_WNT_EXPORT DlgRef_1Spin_QTD : public QWidget
-{
- Q_OBJECT
-
-public:
- DlgRef_1Spin_QTD( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
- ~DlgRef_1Spin_QTD();
-
- QGroupBox* GroupBox1;
- QSpinBox* SpinBox1;
- QLabel* TextLabel1;
-
-
-protected:
- QGridLayout* DlgRef_1Spin_QTDLayout;
- QGridLayout* GroupBox1Layout;
- QGridLayout* Layout1;
-};
-
-#endif // DLGREF_1SPIN_QTD_H
diff --git a/src/DlgRef/DlgRef_2Sel1Spin2Check_QTD.cxx b/src/DlgRef/DlgRef_2Sel1Spin2Check_QTD.cxx
deleted file mode 100644
index 7b54bed10..000000000
--- a/src/DlgRef/DlgRef_2Sel1Spin2Check_QTD.cxx
+++ /dev/null
@@ -1,120 +0,0 @@
-/****************************************************************************
-** Form implementation generated from reading ui file 'DlgRef_2Sel1Spin2Check_QTD.ui'
-**
-** Created: Fri Aug 13 15:32:26 2004
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#include "DlgRef_2Sel1Spin2Check_QTD.h"
-
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-#include
-
-/*
- * Constructs a DlgRef_2Sel1Spin2Check_QTD which is a child of 'parent', with the
- * name 'name' and widget flags set to 'f'.
- */
-DlgRef_2Sel1Spin2Check_QTD::DlgRef_2Sel1Spin2Check_QTD( QWidget* parent, const char* name, WFlags fl )
- : QWidget( parent, name, fl )
-{
- if ( !name )
- setName( "DlgRef_2Sel1Spin2Check_QTD" );
- resize( 256, 139 );
- setCaption( trUtf8( "DlgRef_2Sel1Spin2Check_QTD" ) );
- DlgRef_2Sel1Spin2Check_QTDLayout = new QGridLayout( this, 1, 1, 0, 6, "DlgRef_2Sel1Spin2Check_QTDLayout");
-
- GroupBox1 = new QGroupBox( this, "GroupBox1" );
- GroupBox1->setTitle( trUtf8( "" ) );
- GroupBox1->setColumnLayout(0, Qt::Vertical );
- GroupBox1->layout()->setSpacing( 6 );
- GroupBox1->layout()->setMargin( 11 );
- GroupBox1Layout = new QGridLayout( GroupBox1->layout() );
- GroupBox1Layout->setAlignment( Qt::AlignTop );
-
- Layout1 = new QGridLayout( 0, 1, 1, 0, 6, "Layout1");
-
- TextLabel2 = new QLabel( GroupBox1, "TextLabel2" );
- TextLabel2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel2->sizePolicy().hasHeightForWidth() ) );
- TextLabel2->setText( trUtf8( "TL2" ) );
-
- Layout1->addWidget( TextLabel2, 1, 0 );
-
- PushButton1 = new QPushButton( GroupBox1, "PushButton1" );
- PushButton1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton1->sizePolicy().hasHeightForWidth() ) );
- PushButton1->setText( trUtf8( "" ) );
-
- Layout1->addWidget( PushButton1, 0, 1 );
-
- TextLabel3 = new QLabel( GroupBox1, "TextLabel3" );
- TextLabel3->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel3->sizePolicy().hasHeightForWidth() ) );
- TextLabel3->setText( trUtf8( "TL3" ) );
-
- Layout1->addWidget( TextLabel3, 2, 0 );
-
- TextLabel1 = new QLabel( GroupBox1, "TextLabel1" );
- TextLabel1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, TextLabel1->sizePolicy().hasHeightForWidth() ) );
- TextLabel1->setText( trUtf8( "TL1" ) );
-
- Layout1->addWidget( TextLabel1, 0, 0 );
- QSpacerItem* spacer = new QSpacerItem( 0, 316, QSizePolicy::Minimum, QSizePolicy::Expanding );
- Layout1->addItem( spacer, 4, 2 );
-
- CheckButton2 = new QCheckBox( GroupBox1, "CheckButton2" );
- CheckButton2->setText( trUtf8( "" ) );
-
- Layout1->addWidget( CheckButton2, 2, 3 );
-
- LineEdit2 = new QLineEdit( GroupBox1, "LineEdit2" );
-
- Layout1->addMultiCellWidget( LineEdit2, 1, 1, 2, 3 );
-
- PushButton2 = new QPushButton( GroupBox1, "PushButton2" );
- PushButton2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)0, (QSizePolicy::SizeType)0, 0, 0, PushButton2->sizePolicy().hasHeightForWidth() ) );
- PushButton2->setText( trUtf8( "" ) );
-
- Layout1->addWidget( PushButton2, 1, 1 );
-
- LineEdit1 = new QLineEdit( GroupBox1, "LineEdit1" );
-
- Layout1->addMultiCellWidget( LineEdit1, 0, 0, 2, 3 );
-
- CheckButton1 = new QCheckBox( GroupBox1, "CheckButton1" );
- CheckButton1->setText( trUtf8( "" ) );
-
- Layout1->addMultiCellWidget( CheckButton1, 3, 3, 0, 3 );
-
- SpinBox1 = new QSpinBox( GroupBox1, "SpinBox1" );
- SpinBox1->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)7, (QSizePolicy::SizeType)0, 0, 0, SpinBox1->sizePolicy().hasHeightForWidth() ) );
-
- Layout1->addWidget( SpinBox1, 2, 2 );
-
- GroupBox1Layout->addLayout( Layout1, 0, 0 );
-
- DlgRef_2Sel1Spin2Check_QTDLayout->addWidget( GroupBox1, 0, 0 );
-
- // tab order
- setTabOrder( PushButton1, LineEdit1 );
- setTabOrder( LineEdit1, PushButton2 );
- setTabOrder( PushButton2, LineEdit2 );
- setTabOrder( LineEdit2, SpinBox1 );
- setTabOrder( SpinBox1, CheckButton2 );
- setTabOrder( CheckButton2, CheckButton1 );
-}
-
-/*
- * Destroys the object and frees any allocated resources
- */
-DlgRef_2Sel1Spin2Check_QTD::~DlgRef_2Sel1Spin2Check_QTD()
-{
- // no need to delete child widgets, Qt does it all for us
-}
-
diff --git a/src/DlgRef/DlgRef_2Sel1Spin2Check_QTD.h b/src/DlgRef/DlgRef_2Sel1Spin2Check_QTD.h
deleted file mode 100644
index d090065d8..000000000
--- a/src/DlgRef/DlgRef_2Sel1Spin2Check_QTD.h
+++ /dev/null
@@ -1,51 +0,0 @@
-/****************************************************************************
-** Form interface generated from reading ui file 'DlgRef_2Sel1Spin2Check_QTD.ui'
-**
-** Created: Fri Aug 13 15:32:26 2004
-** by: The User Interface Compiler (uic)
-**
-** WARNING! All changes made in this file will be lost!
-****************************************************************************/
-#ifndef DLGREF_2SEL1SPIN2CHECK_QTD_H
-#define DLGREF_2SEL1SPIN2CHECK_QTD_H
-
-#include
-#include