Version: 6.3.1
Public Member Functions | Private Attributes

SMESH.Controls.LinearOrQuadratic Class Reference

#include <SMESH_ControlsDef.hxx>

Inheritance diagram for SMESH.Controls.LinearOrQuadratic:
Inheritance graph
[legend]

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_MeshmyMesh
SMDSAbs_ElementType myType

Detailed Description

Definition at line 822 of file SMESH_ControlsDef.hxx.


Constructor & Destructor Documentation

LinearOrQuadratic::LinearOrQuadratic ( )

Definition at line 2330 of file SMESH_Controls.cxx.

References SMESH.Controls.FreeEdges.myMesh.

{
  myMesh = 0;
}

Member Function Documentation

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;
}

Field Documentation

Definition at line 831 of file SMESH_ControlsDef.hxx.

Definition at line 832 of file SMESH_ControlsDef.hxx.

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS