Version: 6.3.1
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Types | Private Member Functions | Private Attributes

GEOMBase_Helper Class Reference

#include <GEOMBase_Helper.h>

Inheritance diagram for GEOMBase_Helper:
Inheritance graph

Public Member Functions

 GEOMBase_Helper (SUIT_Desktop *)
virtual ~GEOMBase_Helper ()

Protected Member Functions

void display (const ObjectList &, const bool=true)
void display (GEOM::GEOM_Object_ptr, const bool=true)
void erase (const ObjectList &, const bool=true)
void erase (GEOM::GEOM_Object_ptr, const bool=true)
void redisplay (const ObjectList &, const bool=true, const bool=true)
void redisplay (GEOM::GEOM_Object_ptr, const bool=true, const bool=true)
virtual void displayPreview (const bool display, const bool activate=false, const bool update=true, const bool toRemoveFromEngine=true, const double lineWidth=-1, const int displayMode=-1, const int color=-1)
virtual void displayPreview (GEOM::GEOM_Object_ptr obj, const bool append=false, const bool activate=false, const bool update=true, const double lineWidth=-1, const int displayMode=-1, const int color=-1)
void displayPreview (const SALOME_Prs *prs, const bool append=false, const bool=true)
void erasePreview (const bool=true)
void localSelection (const ObjectList &, const int)
void localSelection (GEOM::GEOM_Object_ptr, const int)
void activate (const int)
void globalSelection (const int=GEOM_ALLOBJECTS, const bool=false)
void globalSelection (const TColStd_MapOfInteger &, const bool=false)
void globalSelection (const TColStd_MapOfInteger &, const QList< int > &, const bool=false)
void updateViewer ()
void prepareSelection (const ObjectList &, const int)
void prepareSelection (GEOM::GEOM_Object_ptr, const int)
QString addInStudy (GEOM::GEOM_Object_ptr, const char *theName)
bool openCommand ()
bool abortCommand ()
bool commitCommand (const char *=0)
bool hasCommand () const
void updateObjBrowser () const
int getStudyId () const
SalomeApp_Study * getStudy () const
bool checkViewWindow ()
bool onAccept (const bool publish=true, const bool useTransaction=true)
void showError ()
void showError (const QString &msg)
GEOM::GEOM_IOperations_ptr getOperation ()
void setPrefix (const QString &prefix)
QString getPrefix (GEOM::GEOM_Object_ptr=GEOM::GEOM_Object::_nil()) const
bool selectObjects (ObjectList &objects)
virtual GEOM::GEOM_IOperations_ptr createOperation ()
virtual bool isValid (QString &msg)
virtual bool execute (ObjectList &objects)
virtual void restoreSubShapes (SALOMEDS::Study_ptr theStudy, SALOMEDS::SObject_ptr theSObject)
virtual GEOM::GEOM_Object_ptr getFather (GEOM::GEOM_Object_ptr theObj)
virtual QString getNewObjectName () const
virtual bool extractPrefix () const
virtual void addSubshapesToStudy ()
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::GeomObjPtr getSelected (TopAbs_ShapeEnum type)
GEOM::GeomObjPtr getSelected (const QList< TopAbs_ShapeEnum > &types)
QList< GEOM::GeomObjPtrgetSelected (TopAbs_ShapeEnum type, int count, bool strict=true)
QList< GEOM::GeomObjPtrgetSelected (const QList< TopAbs_ShapeEnum > &types, int count, bool strict=true)
void SetIsPreview (const bool thePreview)
bool IsPreview ()
GEOM_DisplayergetDisplayer ()
SUIT_Desktop * getDesktop () const
virtual void setIsApplyAndClose (const bool theFlag)
virtual bool isApplyAndClose () const
virtual void setIsOptimizedBrowsing (const bool theFlag)
virtual bool isOptimizedBrowsing () const

Static Protected Member Functions

static GEOM::GEOM_Gen_ptr getGeomEngine ()

Private Types

typedef std::list< SALOME_Prs * > PrsList

Private Member Functions

QString getEntry (GEOM::GEOM_Object_ptr) const
void clearShapeBuffer (GEOM::GEOM_Object_ptr)

Private Attributes

PrsList myPreview
GEOM_DisplayermyDisplayer
GEOM_OperationmyCommand
GEOM::GEOM_IOperations_var myOperation
SUIT_ViewWindow * myViewWindow
QString myPrefix
bool isPreview
SALOME_ListIO mySelected
SUIT_Desktop * myDesktop
bool myIsApplyAndClose
bool myIsOptimizedBrowsing

Member Typedef Documentation

typedef std::list<SALOME_Prs*> GEOMBase_Helper.PrsList [private]

Constructor & Destructor Documentation

GEOMBase_Helper::GEOMBase_Helper ( SUIT_Desktop *  desktop)
GEOMBase_Helper::~GEOMBase_Helper ( ) [virtual]

Member Function Documentation

GEOM::GEOM_Gen_ptr GEOMBase_Helper::getGeomEngine ( ) [static, protected]
void GEOMBase_Helper::display ( const ObjectList objList,
const bool  updateView = true 
) [protected]

References getDisplayer().

void GEOMBase_Helper::display ( GEOM::GEOM_Object_ptr  object,
const bool  updateView = true 
) [protected]
void GEOMBase_Helper::erase ( const ObjectList objList,
const bool  updateView = true 
) [protected]

References getDisplayer().

void GEOMBase_Helper::erase ( GEOM::GEOM_Object_ptr  object,
const bool  updateView = true 
) [protected]
void GEOMBase_Helper::redisplay ( const ObjectList objList,
const bool  withChildren = true,
const bool  updateView = true 
) [protected]

References getDisplayer().

void GEOMBase_Helper::redisplay ( GEOM::GEOM_Object_ptr  object,
const bool  withChildren = true,
const bool  updateView = true 
) [protected]
void GEOMBase_Helper::displayPreview ( const bool  display,
const bool  activate = false,
const bool  update = true,
const bool  toRemoveFromEngine = true,
const double  lineWidth = -1,
const int  displayMode = -1,
const int  color = -1 
) [protected, virtual]
void GEOMBase_Helper::displayPreview ( GEOM::GEOM_Object_ptr  obj,
const bool  append = false,
const bool  activate = false,
const bool  update = true,
const double  lineWidth = -1,
const int  displayMode = -1,
const int  color = -1 
) [protected, virtual]
void GEOMBase_Helper::displayPreview ( const SALOME_Prs *  prs,
const bool  append = false,
const bool  update = true 
) [protected]
void GEOMBase_Helper::erasePreview ( const bool  update = true) [protected]
void GEOMBase_Helper::localSelection ( const ObjectList theObjs,
const int  theMode 
) [protected]
void GEOMBase_Helper::localSelection ( GEOM::GEOM_Object_ptr  obj,
const int  mode 
) [protected]
void GEOMBase_Helper::activate ( const int  theType) [protected]
void GEOMBase_Helper::globalSelection ( const int  theMode = GEOM_ALLOBJECTS,
const bool  update = false 
) [protected]
void GEOMBase_Helper::globalSelection ( const TColStd_MapOfInteger &  theModes,
const bool  update = false 
) [protected]
void GEOMBase_Helper::globalSelection ( const TColStd_MapOfInteger &  theModes,
const QList< int > &  subShapes,
const bool  update = false 
) [protected]
void GEOMBase_Helper::updateViewer ( ) [protected]

References getDisplayer().

void GEOMBase_Helper.prepareSelection ( const ObjectList ,
const int   
) [protected]
void GEOMBase_Helper.prepareSelection ( GEOM::GEOM_Object_ptr  ,
const int   
) [protected]
QString GEOMBase_Helper::addInStudy ( GEOM::GEOM_Object_ptr  theObj,
const char *  theName 
) [protected]
bool GEOMBase_Helper::openCommand ( ) [protected]
bool GEOMBase_Helper::abortCommand ( ) [protected]

References hasCommand(), and myCommand.

bool GEOMBase_Helper::commitCommand ( const char *  = 0) [protected]

References hasCommand(), and myCommand.

bool GEOMBase_Helper::hasCommand ( ) const [protected]

References myCommand.

void GEOMBase_Helper::updateObjBrowser ( ) const [protected]
int GEOMBase_Helper::getStudyId ( ) const [protected]

References getStudy().

SalomeApp_Study * GEOMBase_Helper::getStudy ( ) const [protected]

References getDesktop().

bool GEOMBase_Helper::checkViewWindow ( ) [protected]

References myViewWindow.

bool GEOMBase_Helper::onAccept ( const bool  publish = true,
const bool  useTransaction = true 
) [protected]
void GEOMBase_Helper::showError ( ) [protected]

References getOperation().

void GEOMBase_Helper::showError ( const QString &  msg) [protected]
GEOM::GEOM_IOperations_ptr GEOMBase_Helper::getOperation ( ) [protected]

References createOperation(), and myOperation.

void GEOMBase_Helper.setPrefix ( const QString &  prefix) [protected]
QString GEOMBase_Helper::getPrefix ( GEOM::GEOM_Object_ptr  theObj = GEOM::GEOM_Object::_nil()) const [protected]
bool GEOMBase_Helper::selectObjects ( ObjectList objects) [protected]

References getEntry().

GEOM::GEOM_IOperations_ptr GEOMBase_Helper::createOperation ( ) [protected, virtual]

Reimplemented in AdvancedGUI_PipeTShapeDlg, BasicGUI_ArcDlg, BasicGUI_CircleDlg, BasicGUI_CurveDlg, BasicGUI_EllipseDlg, BasicGUI_LineDlg, BasicGUI_MarkerDlg, BasicGUI_PlaneDlg, BasicGUI_PointDlg, BasicGUI_VectorDlg, BlocksGUI_BlockDlg, BlocksGUI_ExplodeDlg, BlocksGUI_PropagateDlg, BlocksGUI_QuadFaceDlg, BlocksGUI_TrsfDlg, BooleanGUI_Dialog, BuildGUI_CompoundDlg, BuildGUI_EdgeDlg, BuildGUI_FaceDlg, BuildGUI_ShellDlg, BuildGUI_SolidDlg, BuildGUI_WireDlg, EntityGUI_3DSketcherDlg, EntityGUI_SketcherDlg, EntityGUI_SubShapeDlg, GenerationGUI_FillingDlg, GenerationGUI_PipeDlg, GenerationGUI_PrismDlg, GenerationGUI_RevolDlg, GroupGUI_GroupDlg, MeasureGUI_CenterMassDlg, MeasureGUI_CheckCompoundOfBlocksDlg, MeasureGUI_NormaleDlg, MeasureGUI_Skeleton, OperationGUI_ArchimedeDlg, OperationGUI_ChamferDlg, OperationGUI_Fillet1d2dDlg, OperationGUI_FilletDlg, OperationGUI_GetShapesOnShapeDlg, OperationGUI_GetSharedShapesDlg, OperationGUI_PartitionDlg, PrimitiveGUI_BoxDlg, PrimitiveGUI_ConeDlg, PrimitiveGUI_CylinderDlg, PrimitiveGUI_DiskDlg, PrimitiveGUI_FaceDlg, PrimitiveGUI_SphereDlg, PrimitiveGUI_TorusDlg, RepairGUI_ChangeOrientationDlg, RepairGUI_CloseContourDlg, RepairGUI_DivideEdgeDlg, RepairGUI_FreeBoundDlg, RepairGUI_FreeFacesDlg, RepairGUI_GlueDlg, RepairGUI_LimitToleranceDlg, RepairGUI_RemoveExtraEdgesDlg, RepairGUI_RemoveHolesDlg, RepairGUI_RemoveIntWiresDlg, RepairGUI_SewingDlg, RepairGUI_ShapeProcessDlg, RepairGUI_SuppressFacesDlg, TransformationGUI_MirrorDlg, TransformationGUI_MultiRotationDlg, TransformationGUI_MultiTranslationDlg, TransformationGUI_OffsetDlg, TransformationGUI_PositionDlg, TransformationGUI_ProjectionDlg, TransformationGUI_RotationDlg, TransformationGUI_ScaleDlg, and TransformationGUI_TranslationDlg.

bool GEOMBase_Helper::isValid ( QString &  msg) [protected, virtual]

Reimplemented in AdvancedGUI_PipeTShapeDlg, BasicGUI_ArcDlg, BasicGUI_CircleDlg, BasicGUI_CurveDlg, BasicGUI_EllipseDlg, BasicGUI_LineDlg, BasicGUI_MarkerDlg, BasicGUI_PlaneDlg, BasicGUI_PointDlg, BasicGUI_VectorDlg, BlocksGUI_BlockDlg, BlocksGUI_ExplodeDlg, BlocksGUI_PropagateDlg, BlocksGUI_QuadFaceDlg, BlocksGUI_TrsfDlg, BooleanGUI_Dialog, BuildGUI_CompoundDlg, BuildGUI_EdgeDlg, BuildGUI_FaceDlg, BuildGUI_ShellDlg, BuildGUI_SolidDlg, BuildGUI_WireDlg, EntityGUI_3DSketcherDlg, EntityGUI_SketcherDlg, EntityGUI_SubShapeDlg, GenerationGUI_FillingDlg, GenerationGUI_PipeDlg, GenerationGUI_PrismDlg, GenerationGUI_RevolDlg, GroupGUI_GroupDlg, MeasureGUI_AngleDlg, MeasureGUI_CenterMassDlg, MeasureGUI_CheckCompoundOfBlocksDlg, MeasureGUI_DistanceDlg, MeasureGUI_NormaleDlg, MeasureGUI_Skeleton, OperationGUI_ArchimedeDlg, OperationGUI_ChamferDlg, OperationGUI_Fillet1d2dDlg, OperationGUI_FilletDlg, OperationGUI_GetShapesOnShapeDlg, OperationGUI_GetSharedShapesDlg, OperationGUI_PartitionDlg, PrimitiveGUI_BoxDlg, PrimitiveGUI_ConeDlg, PrimitiveGUI_CylinderDlg, PrimitiveGUI_DiskDlg, PrimitiveGUI_FaceDlg, PrimitiveGUI_SphereDlg, PrimitiveGUI_TorusDlg, RepairGUI_ChangeOrientationDlg, RepairGUI_CloseContourDlg, RepairGUI_DivideEdgeDlg, RepairGUI_FreeBoundDlg, RepairGUI_FreeFacesDlg, RepairGUI_GlueDlg, RepairGUI_LimitToleranceDlg, RepairGUI_RemoveExtraEdgesDlg, RepairGUI_RemoveHolesDlg, RepairGUI_RemoveIntWiresDlg, RepairGUI_SewingDlg, RepairGUI_ShapeProcessDlg, RepairGUI_SuppressFacesDlg, TransformationGUI_MirrorDlg, TransformationGUI_MultiRotationDlg, TransformationGUI_MultiTranslationDlg, TransformationGUI_OffsetDlg, TransformationGUI_PositionDlg, TransformationGUI_ProjectionDlg, TransformationGUI_RotationDlg, TransformationGUI_ScaleDlg, and TransformationGUI_TranslationDlg.

bool GEOMBase_Helper::execute ( ObjectList objects) [protected, virtual]

Reimplemented in AdvancedGUI_PipeTShapeDlg, BasicGUI_ArcDlg, BasicGUI_CircleDlg, BasicGUI_CurveDlg, BasicGUI_EllipseDlg, BasicGUI_LineDlg, BasicGUI_MarkerDlg, BasicGUI_PlaneDlg, BasicGUI_PointDlg, BasicGUI_VectorDlg, BlocksGUI_BlockDlg, BlocksGUI_ExplodeDlg, BlocksGUI_PropagateDlg, BlocksGUI_QuadFaceDlg, BlocksGUI_TrsfDlg, BooleanGUI_Dialog, BuildGUI_CompoundDlg, BuildGUI_EdgeDlg, BuildGUI_FaceDlg, BuildGUI_ShellDlg, BuildGUI_SolidDlg, BuildGUI_WireDlg, EntityGUI_3DSketcherDlg, EntityGUI_SketcherDlg, EntityGUI_SubShapeDlg, GenerationGUI_FillingDlg, GenerationGUI_PipeDlg, GenerationGUI_PrismDlg, GenerationGUI_RevolDlg, GroupGUI_GroupDlg, MeasureGUI_CenterMassDlg, MeasureGUI_CheckCompoundOfBlocksDlg, MeasureGUI_NormaleDlg, OperationGUI_ArchimedeDlg, OperationGUI_ChamferDlg, OperationGUI_Fillet1d2dDlg, OperationGUI_FilletDlg, OperationGUI_GetShapesOnShapeDlg, OperationGUI_GetSharedShapesDlg, OperationGUI_PartitionDlg, PrimitiveGUI_BoxDlg, PrimitiveGUI_ConeDlg, PrimitiveGUI_CylinderDlg, PrimitiveGUI_DiskDlg, PrimitiveGUI_FaceDlg, PrimitiveGUI_SphereDlg, PrimitiveGUI_TorusDlg, RepairGUI_ChangeOrientationDlg, RepairGUI_CloseContourDlg, RepairGUI_DivideEdgeDlg, RepairGUI_FreeBoundDlg, RepairGUI_FreeFacesDlg, RepairGUI_GlueDlg, RepairGUI_LimitToleranceDlg, RepairGUI_RemoveExtraEdgesDlg, RepairGUI_RemoveHolesDlg, RepairGUI_RemoveIntWiresDlg, RepairGUI_SewingDlg, RepairGUI_ShapeProcessDlg, RepairGUI_SuppressFacesDlg, TransformationGUI_MirrorDlg, TransformationGUI_MultiRotationDlg, TransformationGUI_MultiTranslationDlg, TransformationGUI_OffsetDlg, TransformationGUI_PositionDlg, TransformationGUI_ProjectionDlg, TransformationGUI_RotationDlg, TransformationGUI_ScaleDlg, and TransformationGUI_TranslationDlg.

void GEOMBase_Helper::restoreSubShapes ( SALOMEDS::Study_ptr  theStudy,
SALOMEDS::SObject_ptr  theSObject 
) [protected, virtual]
GEOM::GEOM_Object_ptr GEOMBase_Helper::getFather ( GEOM::GEOM_Object_ptr  theObj) [protected, virtual]
QString GEOMBase_Helper::getNewObjectName ( ) const [protected, virtual]
bool GEOMBase_Helper::extractPrefix ( ) const [protected, virtual]
void GEOMBase_Helper::addSubshapesToStudy ( ) [protected, virtual]
GEOM::GEOM_Object_ptr GEOMBase_Helper::findObjectInFather ( GEOM::GEOM_Object_ptr  theFather,
const QString &  theName 
) [protected]
GEOM::GEOM_Object_ptr GEOMBase_Helper::findObjectInFather ( GEOM::GEOM_Object_ptr  theFather,
int  theIndex 
) [protected]
GEOM::GeomObjPtr GEOMBase_Helper::getSelected ( TopAbs_ShapeEnum  type) [protected]
GEOM::GeomObjPtr GEOMBase_Helper::getSelected ( const QList< TopAbs_ShapeEnum > &  types) [protected]

References getSelected().

QList< GEOM::GeomObjPtr > GEOMBase_Helper::getSelected ( TopAbs_ShapeEnum  type,
int  count,
bool  strict = true 
) [protected]

References getSelected().

QList< GEOM::GeomObjPtr > GEOMBase_Helper::getSelected ( const QList< TopAbs_ShapeEnum > &  types,
int  count,
bool  strict = true 
) [protected]
void GEOMBase_Helper.SetIsPreview ( const bool  thePreview) [protected]
bool GEOMBase_Helper.IsPreview ( ) [protected]
GEOM_Displayer * GEOMBase_Helper::getDisplayer ( ) [protected]

Reimplemented in MeasureGUI_Skeleton, and RepairGUI_FreeFacesDlg.

References getStudy(), and myDisplayer.

SUIT_Desktop * GEOMBase_Helper::getDesktop ( ) const [protected]

References myDesktop.

void GEOMBase_Helper::setIsApplyAndClose ( const bool  theFlag) [protected, virtual]

References myIsApplyAndClose.

bool GEOMBase_Helper::isApplyAndClose ( ) const [protected, virtual]

References myIsApplyAndClose.

void GEOMBase_Helper::setIsOptimizedBrowsing ( const bool  theFlag) [protected, virtual]

References myIsOptimizedBrowsing.

bool GEOMBase_Helper::isOptimizedBrowsing ( ) const [protected, virtual]

References myIsOptimizedBrowsing.

QString GEOMBase_Helper::getEntry ( GEOM::GEOM_Object_ptr  object) const [private]
void GEOMBase_Helper::clearShapeBuffer ( GEOM::GEOM_Object_ptr  theObj) [private]

Field Documentation

Reimplemented in EntityGUI_SketcherDlg.

GEOM::GEOM_IOperations_var GEOMBase_Helper.myOperation [private]

Reimplemented in BooleanGUI_Dialog.

SUIT_ViewWindow* GEOMBase_Helper.myViewWindow [private]
QString GEOMBase_Helper.myPrefix [private]
bool GEOMBase_Helper.isPreview [private]

Reimplemented in AdvancedGUI_PipeTShapeDlg.

SALOME_ListIO GEOMBase_Helper.mySelected [private]
SUIT_Desktop* GEOMBase_Helper.myDesktop [private]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS