Back to index

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

#include <NMTDS_BoxBndTree.hxx>

List of all members.

Public Member Functions

Standard_EXPORT NMTDS_BoxBndTreeSelector ()
virtual Standard_EXPORT
Standard_Boolean 
Reject (const Bnd_Box &) const
virtual Standard_EXPORT
Standard_Boolean 
Accept (const Standard_Integer &)
virtual Standard_EXPORT ~NMTDS_BoxBndTreeSelector ()
Standard_EXPORT void Clear ()
Standard_EXPORT void SetBox (const Bnd_Box &)
Standard_EXPORT const
TColStd_ListOfInteger & 
Indices () const

Protected Attributes

Bnd_Box myBox
TColStd_MapOfInteger myFence
TColStd_ListOfInteger myIndices

Detailed Description

Definition at line 38 of file NMTDS_BoxBndTree.hxx.


Constructor & Destructor Documentation

Definition at line 33 of file NMTDS_BoxBndTree.cxx.

{
}

Definition at line 40 of file NMTDS_BoxBndTree.cxx.

{
}

Member Function Documentation

Standard_Boolean NMTDS_BoxBndTreeSelector::Accept ( const Standard_Integer &  aIndex) [virtual]

Definition at line 58 of file NMTDS_BoxBndTree.cxx.

{
  Standard_Boolean bRet=Standard_False;
  //
  if (myFence.Add(aIndex)) {
    myIndices.Append(aIndex);
    bRet=!bRet;
  }
  return bRet;
}

Definition at line 80 of file NMTDS_BoxBndTree.cxx.

{
  myFence.Clear();
  myIndices.Clear();
}

Here is the caller graph for this function:

const TColStd_ListOfInteger & NMTDS_BoxBndTreeSelector::Indices ( ) const

Definition at line 89 of file NMTDS_BoxBndTree.cxx.

{
  return myIndices;
}

Here is the caller graph for this function:

Standard_Boolean NMTDS_BoxBndTreeSelector::Reject ( const Bnd_Box &  aBox) const [virtual]

Definition at line 47 of file NMTDS_BoxBndTree.cxx.

{
  Standard_Boolean bRet;
  //
  bRet=myBox.IsOut(aBox);
  return bRet;
}
void NMTDS_BoxBndTreeSelector::SetBox ( const Bnd_Box &  aBox)

Definition at line 72 of file NMTDS_BoxBndTree.cxx.

{
  myBox=aBox;
}

Here is the caller graph for this function:


Member Data Documentation

Bnd_Box NMTDS_BoxBndTreeSelector::myBox [protected]

Definition at line 50 of file NMTDS_BoxBndTree.hxx.

TColStd_MapOfInteger NMTDS_BoxBndTreeSelector::myFence [protected]

Definition at line 51 of file NMTDS_BoxBndTree.hxx.

TColStd_ListOfInteger NMTDS_BoxBndTreeSelector::myIndices [protected]

Definition at line 52 of file NMTDS_BoxBndTree.hxx.


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