Back to index

salome-smesh  6.5.0
Public Member Functions
SMESHGUI_VolumesFilter Class Reference

#include <SMESHGUI_Filter.h>

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

List of all members.

Public Member Functions

Standard_EXPORT SMESHGUI_VolumesFilter ()
virtual Standard_EXPORT ~SMESHGUI_VolumesFilter ()
virtual Standard_EXPORT bool IsValid (const int) const
virtual Standard_EXPORT bool IsObjValid (const int) const
virtual Standard_EXPORT int GetId () const
virtual Standard_EXPORT bool IsNodeFilter () const

Detailed Description

Definition at line 175 of file SMESHGUI_Filter.h.


Constructor & Destructor Documentation

Definition at line 430 of file SMESHGUI_Filter.cxx.

Definition at line 435 of file SMESHGUI_Filter.cxx.

{
}

Member Function Documentation

int SMESHGUI_VolumesFilter::GetId ( ) const [virtual]

Definition at line 482 of file SMESHGUI_Filter.cxx.

{
  return SMESH::VolumeFilter;
}
bool SMESHGUI_VolumesFilter::IsNodeFilter ( ) const [virtual]

Definition at line 491 of file SMESHGUI_Filter.cxx.

{
  return false;
}
bool SMESHGUI_VolumesFilter::IsObjValid ( const int  theObjId) const [virtual]

Implements SMESHGUI_Filter.

Definition at line 462 of file SMESHGUI_Filter.cxx.

{
  if ( myActor == 0 )
    return false;

  SMESH_Actor* anActor = dynamic_cast< SMESH_Actor* >( myActor );
  if ( !anActor || anActor->GetObject() == 0 )
    return false;

  SMDS_Mesh* aMesh = anActor->GetObject()->GetMesh();
  const SMDS_MeshElement* anElem = aMesh->FindElement( theObjId );

  return anElem && anElem->GetType() == SMDSAbs_Volume;
}
bool SMESHGUI_VolumesFilter::IsValid ( const int  theCellId) const [virtual]

Definition at line 443 of file SMESHGUI_Filter.cxx.

{
  if ( myActor == 0 || theCellId < 1 )
    return false;

  SMESH_Actor* anActor = dynamic_cast< SMESH_Actor* >( myActor );
  if ( !anActor || anActor->GetObject() == 0 )
    return false;

  SMDS_Mesh* aMesh = anActor->GetObject()->GetMesh();
  const SMDS_MeshElement* anElem = aMesh->FindElement( anActor->GetElemObjId( theCellId ) );

  return anElem && anElem->GetType() == SMDSAbs_Volume;
}

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