Back to index

salome-smesh  6.5.0
Public Member Functions
SMESHGUI_QuadrangleFilter Class Reference

#include <SMESHGUI_Filter.h>

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

List of all members.

Public Member Functions

Standard_EXPORT SMESHGUI_QuadrangleFilter ()
virtual Standard_EXPORT ~SMESHGUI_QuadrangleFilter ()
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 109 of file SMESHGUI_Filter.h.


Constructor & Destructor Documentation

Definition at line 196 of file SMESHGUI_Filter.cxx.

Definition at line 201 of file SMESHGUI_Filter.cxx.

{
}

Member Function Documentation

int SMESHGUI_QuadrangleFilter::GetId ( ) const [virtual]

Definition at line 250 of file SMESHGUI_Filter.cxx.

{
  return SMESH::QuadFilter;
}
bool SMESHGUI_QuadrangleFilter::IsNodeFilter ( ) const [virtual]

Definition at line 259 of file SMESHGUI_Filter.cxx.

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

Implements SMESHGUI_Filter.

Definition at line 229 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_Face &&
    ( anElem->NbNodes() == ( anElem->IsQuadratic() ? 8  : 4 ));
}
bool SMESHGUI_QuadrangleFilter::IsValid ( const int  theCellId) const [virtual]

Definition at line 209 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( anActor->GetElemObjId( theCellId ) );

  return anElem && anElem->GetType() == SMDSAbs_Face &&
    ( anElem->NbNodes() == ( anElem->IsQuadratic() ? 8 : 4 ));
}

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