#include <SMESH_ControlsDef.hxx>

Public Member Functions | |
| LinearOrQuadratic () | |
| virtual void | SetMesh (const SMDS_Mesh *theMesh) |
| virtual bool | IsSatisfy (long theElementId) |
| void | SetType (SMDSAbs_ElementType theType) |
| virtual SMDSAbs_ElementType | GetType () const |
Private Attributes | |
| const SMDS_Mesh * | myMesh |
| SMDSAbs_ElementType | myType |
Definition at line 822 of file SMESH_ControlsDef.hxx.
| LinearOrQuadratic::LinearOrQuadratic | ( | ) |
Definition at line 2330 of file SMESH_Controls.cxx.
References SMESH.Controls.FreeEdges.myMesh.
{
myMesh = 0;
}
| SMDSAbs_ElementType LinearOrQuadratic::GetType | ( | ) | const [virtual] |
Implements SMESH.Controls.Predicate.
Definition at line 2354 of file SMESH_Controls.cxx.
{
return myType;
}
| bool LinearOrQuadratic::IsSatisfy | ( | long | theElementId | ) | [virtual] |
Implements SMESH.Controls.Predicate.
Definition at line 2340 of file SMESH_Controls.cxx.
References SMDS_Mesh.FindElement(), SMDS_MeshElement.GetType(), SMDS_MeshElement.IsQuadratic(), SMESH.Controls.FreeEdges.myMesh, and SMDSAbs_All.
{
if (!myMesh) return false;
const SMDS_MeshElement* anElem = myMesh->FindElement( theId );
if ( !anElem || (myType != SMDSAbs_All && anElem->GetType() != myType) )
return false;
return (!anElem->IsQuadratic());
}
| void LinearOrQuadratic::SetMesh | ( | const SMDS_Mesh * | theMesh | ) | [virtual] |
Implements SMESH.Controls.Functor.
Definition at line 2335 of file SMESH_Controls.cxx.
References SMESH.Controls.FreeEdges.myMesh.
{
myMesh = theMesh;
}
| void LinearOrQuadratic::SetType | ( | SMDSAbs_ElementType | theType | ) |
Definition at line 2349 of file SMESH_Controls.cxx.
{
myType = theType;
}
const SMDS_Mesh* SMESH.Controls.LinearOrQuadratic.myMesh [private] |
Definition at line 831 of file SMESH_ControlsDef.hxx.
Definition at line 832 of file SMESH_ControlsDef.hxx.