#include <SMESHGUI_Filter.h>

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 |
Definition at line 109 of file SMESHGUI_Filter.h.
| SMESHGUI_QuadrangleFilter::SMESHGUI_QuadrangleFilter | ( | ) |
Definition at line 196 of file SMESHGUI_Filter.cxx.
: SMESHGUI_Filter() { }
| SMESHGUI_QuadrangleFilter::~SMESHGUI_QuadrangleFilter | ( | ) | [virtual] |
Definition at line 201 of file SMESHGUI_Filter.cxx.
{
}
| int SMESHGUI_QuadrangleFilter::GetId | ( | ) | const [virtual] |
Definition at line 250 of file SMESHGUI_Filter.cxx.
References SMESH.QuadFilter.
{
return SMESH::QuadFilter;
}
| bool SMESHGUI_QuadrangleFilter::IsNodeFilter | ( | ) | const [virtual] |
Definition at line 259 of file SMESHGUI_Filter.cxx.
{
return false;
}
Implements SMESHGUI_Filter.
Definition at line 229 of file SMESHGUI_Filter.cxx.
References SMDS_Mesh.FindElement(), SMESH_Actor.GetObject(), SMDS_MeshElement.GetType(), SMDS_MeshElement.IsQuadratic(), SMDS_MeshElement.NbNodes(), and SMDSAbs_Face.
{
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 ));
}
Definition at line 209 of file SMESHGUI_Filter.cxx.
References SMDS_Mesh.FindElement(), SMESH_Actor.GetObject(), SMDS_MeshElement.GetType(), SMDS_MeshElement.IsQuadratic(), SMDS_MeshElement.NbNodes(), and SMDSAbs_Face.
{
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 ));
}