Salome HOME
projects
/
modules
/
geom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[bos #35160][EDF](2023-T1) Keyboard shortcuts.
[modules/geom.git]
/
src
/
GEOMBase
/
GEOMBase_Helper.h
diff --git
a/src/GEOMBase/GEOMBase_Helper.h
b/src/GEOMBase/GEOMBase_Helper.h
old mode 100755
(executable)
new mode 100644
(file)
index
5bafde6
..
a49a4dd
--- a/
src/GEOMBase/GEOMBase_Helper.h
+++ b/
src/GEOMBase/GEOMBase_Helper.h
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
13 CEA/DEN, EDF R&D
, OPEN CASCADE
+// Copyright (C) 2007-20
24 CEA, EDF
, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-6,7
+6,7
@@
// 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
// 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.
+// version 2.1 of the License
, or (at your option) any later version
.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
@@
-35,10
+35,13
@@
#include <SALOMEconfig.h>
#include CORBA_CLIENT_HEADER(GEOM_Gen)
#include <SALOMEconfig.h>
#include CORBA_CLIENT_HEADER(GEOM_Gen)
+#include <TColStd_MapOfInteger.hxx>
+
#include <QString>
#include <QMap>
#include <list>
#include <QString>
#include <QMap>
#include <list>
+#include <string>
typedef std::list<GEOM::GEOM_Object_ptr> ObjectList;
typedef std::list<GEOM::GEOM_Object_ptr> ObjectList;
@@
-47,7
+50,6
@@
class SUIT_Desktop;
class SUIT_ViewWindow;
class SALOME_Prs;
class GEOM_Operation;
class SUIT_ViewWindow;
class SALOME_Prs;
class GEOM_Operation;
-class TColStd_MapOfInteger;
//================================================================
// Class : GEOMBase_Helper
//================================================================
// Class : GEOMBase_Helper
@@
-59,11
+61,13
@@
class TColStd_MapOfInteger;
class GEOMBASE_EXPORT GEOMBase_Helper
{
public:
class GEOMBASE_EXPORT GEOMBase_Helper
{
public:
- GEOMBase_Helper( SUIT_Desktop*
);
+ GEOMBase_Helper( SUIT_Desktop*
, SUIT_ViewWindow* aVW = 0
);
virtual ~GEOMBase_Helper();
static SUIT_ViewWindow* getActiveView();
protected:
virtual ~GEOMBase_Helper();
static SUIT_ViewWindow* getActiveView();
protected:
+ typedef std::list<SALOME_Prs*> PrsList;
+
static GEOM::GEOM_Gen_ptr getGeomEngine();
void display ( const ObjectList&, const bool = true );
static GEOM::GEOM_Gen_ptr getGeomEngine();
void display ( const ObjectList&, const bool = true );
@@
-79,7
+83,8
@@
protected:
const bool toRemoveFromEngine = true,
const double lineWidth = -1,
const int displayMode = -1,
const bool toRemoveFromEngine = true,
const double lineWidth = -1,
const int displayMode = -1,
- const int color = -1 );
+ const int color = -1,
+ const bool append = false );
// This is the easiest way to show preview. It is based on execute() method.
// It removes temporary GEOM::GEOM_Objects automatically.
// This is the easiest way to show preview. It is based on execute() method.
// It removes temporary GEOM::GEOM_Objects automatically.
@@
-95,8
+100,15
@@
protected:
const bool = true );
void erasePreview ( const bool = true );
const bool = true );
void erasePreview ( const bool = true );
+ const PrsList& getPreview() const { return myPreview; }
+
+ void localSelection( const ObjectList&, const std::list<int> );
void localSelection( const ObjectList&, const int );
void localSelection( const ObjectList&, const int );
+ void localSelection( GEOM::GEOM_Object_ptr, const std::list<int> );
void localSelection( GEOM::GEOM_Object_ptr, const int );
void localSelection( GEOM::GEOM_Object_ptr, const int );
+ void localSelection( const std::string&, const std::string&, const std::list<int> );
+ void localSelection( const std::list<int> );
+ void localSelection( const int );
void activate( const int );
void globalSelection( const int = GEOM_ALLOBJECTS, const bool = false );
void globalSelection( const TColStd_MapOfInteger&, const bool = false );
void activate( const int );
void globalSelection( const int = GEOM_ALLOBJECTS, const bool = false );
void globalSelection( const TColStd_MapOfInteger&, const bool = false );
@@
-114,7
+126,6
@@
protected:
bool hasCommand () const;
void updateObjBrowser() const;
bool hasCommand () const;
void updateObjBrowser() const;
- int getStudyId () const;
SalomeApp_Study* getStudy () const;
bool checkViewWindow ();
SalomeApp_Study* getStudy () const;
bool checkViewWindow ();
@@
-124,7
+135,7
@@
protected:
// should be published in a study.
void showError();
// should be published in a study.
void showError();
- // Shows a message box with inf
ro
mation about an error taken from getOperation()->GetErrorCode()
+ // Shows a message box with inf
or
mation about an error taken from getOperation()->GetErrorCode()
void showError( const QString& msg );
// Shows a error message followed by <msg>
void showError( const QString& msg );
// Shows a error message followed by <msg>
@@
-156,7
+167,7
@@
protected:
// It should perform the required operation and put all new or modified objects into
// <objects> argument.Should return <false> if some error occurs during its execution.
// It should perform the required operation and put all new or modified objects into
// <objects> argument.Should return <false> if some error occurs during its execution.
- virtual void restoreSubShapes( SALOMEDS::S
tudy_ptr theStudy, SALOMEDS::S
Object_ptr theSObject );
+ virtual void restoreSubShapes( SALOMEDS::SObject_ptr theSObject );
// This method is called by addInStudy().
virtual GEOM::GEOM_Object_ptr getFather( GEOM::GEOM_Object_ptr theObj );
// This method is called by addInStudy().
virtual GEOM::GEOM_Object_ptr getFather( GEOM::GEOM_Object_ptr theObj );
@@
-168,6
+179,7
@@
protected:
virtual QString getObjectName(GEOM::GEOM_Object_ptr object) const;
virtual bool extractPrefix() const;
virtual void addSubshapesToStudy();
virtual QString getObjectName(GEOM::GEOM_Object_ptr object) const;
virtual bool extractPrefix() const;
virtual void addSubshapesToStudy();
+ virtual QList<GEOM::GeomObjPtr> getSourceObjects();
GEOM::GEOM_Object_ptr findObjectInFather( GEOM::GEOM_Object_ptr theFather, const QString& theName );
GEOM::GEOM_Object_ptr findObjectInFather( GEOM::GEOM_Object_ptr theFather, int theIndex );
GEOM::GEOM_Object_ptr findObjectInFather( GEOM::GEOM_Object_ptr theFather, const QString& theName );
GEOM::GEOM_Object_ptr findObjectInFather( GEOM::GEOM_Object_ptr theFather, int theIndex );
@@
-178,6
+190,7
@@
protected:
QList<GEOM::GeomObjPtr> getSelected( TopAbs_ShapeEnum type, int count, bool strict = true );
QList<GEOM::GeomObjPtr> getSelected( const QList<TopAbs_ShapeEnum>& types, int count, bool strict = true );
QList<GEOM::GeomObjPtr> getSelected( TopAbs_ShapeEnum type, int count, bool strict = true );
QList<GEOM::GeomObjPtr> getSelected( const QList<TopAbs_ShapeEnum>& types, int count, bool strict = true );
+ void hideSourceObjects( QList<GEOM::GeomObjPtr> theObjectList );
void SetIsPreview(const bool thePreview) {isPreview = thePreview;}
bool IsPreview() {return isPreview;}
void SetIsPreview(const bool thePreview) {isPreview = thePreview;}
bool IsPreview() {return isPreview;}
@@
-202,7
+215,6
@@
private:
void clearShapeBuffer( GEOM::GEOM_Object_ptr );
private:
void clearShapeBuffer( GEOM::GEOM_Object_ptr );
private:
- typedef std::list<SALOME_Prs*> PrsList;
PrsList myPreview;
GEOM_Displayer* myDisplayer;
PrsList myPreview;
GEOM_Displayer* myDisplayer;