Back to index

salome-geom  6.5.0
Public Member Functions | Protected Attributes
GEOMAlgo_GetInPlaceIterator Class Reference

The implementation of iterator of intersected shapes for Get In Place Algorithm. More...

#include <GEOMAlgo_GetInPlace.hxx>

List of all members.

Public Member Functions

 GEOMAlgo_GetInPlaceIterator ()
 Constructor.
virtual ~GEOMAlgo_GetInPlaceIterator ()
 Destructor.
void Clear ()
 Clear the internal content.
void AppendPair (const NMTTools_CoupleOfShape &theCS)
 Append the pair of intersected shapes.
void Initialize (const TopAbs_ShapeEnum theT1, const TopAbs_ShapeEnum theT2)
 Initialize the iterator.
Standard_Boolean More () const
 Check the existence of pairs to iterare.
void Next ()
 Shift to the next pair.
const NMTTools_CoupleOfShapeValue () const
 Returns the pair of intersected shapes.

Protected Attributes

Standard_Integer myDim
NMTTools_ListOfCoupleOfShape myLists [10]
NMTTools_ListOfCoupleOfShape myEmptyList
NMTTools_ListIteratorOfListOfCoupleOfShape myIterator

Detailed Description

The implementation of iterator of intersected shapes for Get In Place Algorithm.

The intersection is in terms of 3D bounding boxes.

Definition at line 58 of file GEOMAlgo_GetInPlace.hxx.


Constructor & Destructor Documentation

Constructor.

Definition at line 38 of file GEOMAlgo_GetInPlace_3.cxx.

{
  myDim=10;
}

Destructor.

Definition at line 46 of file GEOMAlgo_GetInPlace_3.cxx.

{
}

Member Function Documentation

Append the pair of intersected shapes.

Parameters:
theCSThe pair of intersected shapes.

Definition at line 65 of file GEOMAlgo_GetInPlace_3.cxx.

{
  Standard_Integer iX;
  TopAbs_ShapeEnum aType1, aType2;
  //
  const TopoDS_Shape& aS1=theCS.Shape1();
  const TopoDS_Shape& aS2=theCS.Shape2();
  aType1=aS1.ShapeType();
  aType2=aS2.ShapeType();
  //
  iX=TypeToInteger(aType1, aType2);
  if (iX>=0) {
    myLists[iX].Append(theCS);
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Clear the internal content.

Definition at line 53 of file GEOMAlgo_GetInPlace_3.cxx.

{
  Standard_Integer i;
  //
  for (i=0; i<myDim; ++i) {
    myLists[i].Clear();
  }
}

Here is the caller graph for this function:

void GEOMAlgo_GetInPlaceIterator::Initialize ( const TopAbs_ShapeEnum  theT1,
const TopAbs_ShapeEnum  theT2 
)

Initialize the iterator.

Parameters:
theT1The type of (sub)shape What.
theT2The type of (sub)shape Where.

Definition at line 84 of file GEOMAlgo_GetInPlace_3.cxx.

{
  Standard_Integer iX;
  //
  iX=TypeToInteger(aType1, aType2);
  if (iX>=0) {
    myIterator.Initialize(myLists[iX]);
  }
  else {
    myIterator.Initialize(myEmptyList);
  }
}

Here is the call graph for this function:

Here is the caller graph for this function:

Standard_Boolean GEOMAlgo_GetInPlaceIterator::More ( ) const

Check the existence of pairs to iterare.

Returns:
Standard_True if there are pairs to iterare.

Definition at line 101 of file GEOMAlgo_GetInPlace_3.cxx.

{
  return myIterator.More();
}

Here is the caller graph for this function:

Shift to the next pair.

Definition at line 109 of file GEOMAlgo_GetInPlace_3.cxx.

{
  myIterator.Next();
}

Here is the caller graph for this function:

Returns the pair of intersected shapes.

Returns:
The pair of intersected shapes.

Definition at line 117 of file GEOMAlgo_GetInPlace_3.cxx.

{
  return myIterator.Value();
}

Here is the caller graph for this function:


Member Data Documentation

Standard_Integer GEOMAlgo_GetInPlaceIterator::myDim [protected]

Definition at line 119 of file GEOMAlgo_GetInPlace.hxx.

Definition at line 121 of file GEOMAlgo_GetInPlace.hxx.

Definition at line 122 of file GEOMAlgo_GetInPlace.hxx.

Definition at line 120 of file GEOMAlgo_GetInPlace.hxx.


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