Back to index

salome-geom  6.5.0
Public Member Functions | Static Public Member Functions | Public Attributes
GEOMImpl_ILocalOperations Class Reference

#include <GEOMImpl_ILocalOperations.hxx>

Inheritance diagram for GEOMImpl_ILocalOperations:
Inheritance graph
[legend]
Collaboration diagram for GEOMImpl_ILocalOperations:
Collaboration graph
[legend]

List of all members.

Public Member Functions

Standard_EXPORT GEOMImpl_ILocalOperations (GEOM_Engine *theEngine, int theDocID)
 constructor:
Standard_EXPORT ~GEOMImpl_ILocalOperations ()
 destructor
Standard_EXPORT Handle (GEOM_Object) MakeFilletAll(Handle(GEOM_Object) theShape
Standard_EXPORT Handle (GEOM_Object) MakeFilletEdges(Handle(GEOM_Object) theShape
Standard_EXPORT Handle (GEOM_Object) MakeFilletEdgesR1R2(Handle(GEOM_Object) theShape
Standard_EXPORT Handle (GEOM_Object) MakeFilletFaces(Handle(GEOM_Object) theShape
Standard_EXPORT Handle (GEOM_Object) MakeFilletFacesR1R2(Handle(GEOM_Object) theShape
Standard_EXPORT Handle (GEOM_Object) MakeFillet2D(Handle(GEOM_Object) theShape
Standard_EXPORT Handle (GEOM_Object) MakeFillet1D(Handle(GEOM_Object) theShape
Standard_EXPORT Handle (GEOM_Object) MakeChamferAll(Handle(GEOM_Object) theShape
Standard_EXPORT Handle (GEOM_Object) MakeChamferEdge(Handle(GEOM_Object) theShape
Standard_EXPORT Handle (GEOM_Object) MakeChamferEdgeAD(Handle(GEOM_Object) theShape
Standard_EXPORT Handle (GEOM_Object) MakeChamferFaces(Handle(GEOM_Object) theShape
Standard_EXPORT Handle (GEOM_Object) MakeChamferFacesAD(Handle(GEOM_Object) theShape
Standard_EXPORT Handle (GEOM_Object) MakeChamferEdges(Handle(GEOM_Object) theShape
Standard_EXPORT Handle (GEOM_Object) MakeChamferEdgesAD(Handle(GEOM_Object) theShape
Standard_EXPORT Handle (GEOM_Object) MakeArchimede(Handle(GEOM_Object) theShape
Standard_EXPORT Standard_Integer GetSubShapeIndex (Handle(GEOM_Object) theShape, Handle(GEOM_Object) theSubShape)
 GetSubShapeIndex.
Standard_EXPORT void StartOperation ()
 StartOperation.
Standard_EXPORT void FinishOperation ()
 FinishOperation.
Standard_EXPORT void AbortOperation ()
 AbortOperation.
Standard_EXPORT bool IsDone ()
 IsDone.
Standard_EXPORT void SetNotDone ()
Standard_EXPORT void SetErrorCode (const TCollection_AsciiString &theErrorCode)
Standard_EXPORT char * GetErrorCode ()
Standard_EXPORT GEOM_EngineGetEngine ()
Standard_EXPORT GEOM_SolverGetSolver ()
Standard_EXPORT int GetDocID ()

Static Public Member Functions

static Standard_EXPORT bool GetSubShape (const TopoDS_Shape &theShape, const int theIndex, TopoDS_Shape &theSubShape)
 GetSubShape.

Public Attributes

Standard_EXPORT double theR
Standard_EXPORT double
std::list< int > 
theEdges
Standard_EXPORT double theR1
Standard_EXPORT double double theR2
Standard_EXPORT double double
std::list< int > 
theEdges
Standard_EXPORT double
std::list< int > 
theFaces
Standard_EXPORT double double
std::list< int > 
theFaces
Standard_EXPORT double
std::list< int > 
theVertexes
Standard_EXPORT double theD
Standard_EXPORT double theD1
Standard_EXPORT double double theD2
Standard_EXPORT double double int theFace1
Standard_EXPORT double double
int int 
theFace2
Standard_EXPORT double double theAngle
Standard_EXPORT double theWeight
Standard_EXPORT double double theWaterDensity
Standard_EXPORT double double
double 
theMeshingDeflection

Detailed Description

Definition at line 34 of file GEOMImpl_ILocalOperations.hxx.


Constructor & Destructor Documentation

constructor:

Definition at line 71 of file GEOMImpl_ILocalOperations.cxx.

: GEOM_IOperations(theEngine, theDocID)
{
  MESSAGE("GEOMImpl_ILocalOperations::GEOMImpl_ILocalOperations");
}

destructor

Definition at line 82 of file GEOMImpl_ILocalOperations.cxx.

{
  MESSAGE("GEOMImpl_ILocalOperations::~GEOMImpl_ILocalOperations");
}

Member Function Documentation

void GEOM_IOperations::AbortOperation ( ) [inherited]

AbortOperation.

Definition at line 89 of file GEOM_IOperations.cxx.

{
  Handle(TDocStd_Document) aDoc = _engine->GetDocument(_docID);
  aDoc->AbortCommand();
}

Here is the call graph for this function:

void GEOM_IOperations::FinishOperation ( ) [inherited]

FinishOperation.

Definition at line 77 of file GEOM_IOperations.cxx.

{
  Handle(TDocStd_Document) aDoc = _engine->GetDocument(_docID);
  if(aDoc->GetUndoLimit() > 0) 
    aDoc->CommitCommand();
}

Here is the call graph for this function:

Standard_EXPORT int GEOM_IOperations::GetDocID ( ) [inline, inherited]

Definition at line 77 of file GEOM_IOperations.hxx.

{ return _docID; }

Here is the caller graph for this function:

Definition at line 71 of file GEOM_IOperations.hxx.

{ return _engine; }

Here is the caller graph for this function:

Standard_EXPORT char* GEOM_IOperations::GetErrorCode ( ) [inline, inherited]

Definition at line 66 of file GEOM_IOperations.hxx.

                                       {
    return (char*) _errorCode.ToCString();    
  }

Here is the caller graph for this function:

Definition at line 74 of file GEOM_IOperations.hxx.

{ return _solver; }
bool GEOMImpl_ILocalOperations::GetSubShape ( const TopoDS_Shape &  theShape,
const int  theIndex,
TopoDS_Shape &  theSubShape 
) [static]

GetSubShape.

Definition at line 1074 of file GEOMImpl_ILocalOperations.cxx.

{
  if (theShape.IsNull() || theIndex < 1)
    return false;

  TopTools_IndexedMapOfShape anIndices;
  TopExp::MapShapes(theShape, anIndices);
  if (theIndex > anIndices.Extent()) return false;
  theSubShape = anIndices.FindKey(theIndex);

  return true;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Standard_Integer GEOMImpl_ILocalOperations::GetSubShapeIndex ( Handle(GEOM_Object theShape,
Handle(GEOM_Object theSubShape 
)

GetSubShapeIndex.

Definition at line 1093 of file GEOMImpl_ILocalOperations.cxx.

{
  SetErrorCode(KO);

  Standard_Integer anInd = -1;
  GEOM_Engine* anEngine = GetEngine();
  //GEOMImpl_Gen* aGen = dynamic_cast<GEOMImpl_Gen*>(anEngine);
  GEOMImpl_Gen* aGen = (GEOMImpl_Gen*)anEngine;

  if (aGen) {
    GEOMImpl_IShapesOperations* anIShapesOperations =
      aGen->GetIShapesOperations(GetDocID());
    anInd = anIShapesOperations->GetSubShapeIndex(theShape, theSubShape);
    SetErrorCode(anIShapesOperations->GetErrorCode());
  }

  return anInd;
}

Here is the call graph for this function:

bool GEOM_IOperations::IsDone ( ) [inherited]

IsDone.

Definition at line 101 of file GEOM_IOperations.cxx.

{
  return (_errorCode == OK);
}  
Standard_EXPORT void GEOM_IOperations::SetErrorCode ( const TCollection_AsciiString &  theErrorCode) [inline, inherited]

Definition at line 61 of file GEOM_IOperations.hxx.

                                                                                 {
    _errorCode = theErrorCode;    
  } 

Here is the caller graph for this function:

Standard_EXPORT void GEOM_IOperations::SetNotDone ( ) [inline, inherited]

Definition at line 58 of file GEOM_IOperations.hxx.

{ _errorCode = KO; }
void GEOM_IOperations::StartOperation ( ) [inherited]

StartOperation.

Definition at line 65 of file GEOM_IOperations.cxx.

{
  Handle(TDocStd_Document) aDoc = _engine->GetDocument(_docID);
  if(aDoc->GetUndoLimit() > 0) 
    aDoc->NewCommand();
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 60 of file GEOMImpl_ILocalOperations.hxx.

Definition at line 55 of file GEOMImpl_ILocalOperations.hxx.

Definition at line 57 of file GEOMImpl_ILocalOperations.hxx.

Definition at line 57 of file GEOMImpl_ILocalOperations.hxx.

Standard_EXPORT double double std::list< int > GEOMImpl_ILocalOperations::theEdges

Definition at line 40 of file GEOMImpl_ILocalOperations.hxx.

Definition at line 43 of file GEOMImpl_ILocalOperations.hxx.

Definition at line 57 of file GEOMImpl_ILocalOperations.hxx.

Definition at line 57 of file GEOMImpl_ILocalOperations.hxx.

Standard_EXPORT double double std::list< int > GEOMImpl_ILocalOperations::theFaces

Definition at line 45 of file GEOMImpl_ILocalOperations.hxx.

Definition at line 48 of file GEOMImpl_ILocalOperations.hxx.

Definition at line 75 of file GEOMImpl_ILocalOperations.hxx.

Definition at line 39 of file GEOMImpl_ILocalOperations.hxx.

Definition at line 43 of file GEOMImpl_ILocalOperations.hxx.

Definition at line 43 of file GEOMImpl_ILocalOperations.hxx.

Definition at line 50 of file GEOMImpl_ILocalOperations.hxx.

Definition at line 75 of file GEOMImpl_ILocalOperations.hxx.

Definition at line 75 of file GEOMImpl_ILocalOperations.hxx.


The documentation for this class was generated from the following files: