Back to index

salome-smesh  6.5.0
Classes | Public Types | Public Member Functions
SMESH::Filter Interface Reference

Filter. More...

import "SMESH_Filter.idl";

Inheritance diagram for SMESH::Filter:
Inheritance graph
[legend]
Collaboration diagram for SMESH::Filter:
Collaboration graph
[legend]

List of all members.

Classes

struct  Criterion
 Structure containing information about one criterion Type - FT_Taper, FT_Skew ... More...

Public Types

typedef sequence< CriterionCriteria

Public Member Functions

void SetPredicate (in Predicate thePredicate)
void SetMesh (in SMESH_Mesh theMesh)
long_array GetElementsId (in SMESH_Mesh theMesh)
ElementType GetElementType ()
Predicate GetPredicate ()
boolean GetCriteria (out Criteria theCriteria)
boolean SetCriteria (in Criteria theCriteria)
long_array GetIDs ()
 Returns a sequence of all element IDs.
long_array GetMeshInfo ()
 Returns statistic of mesh elements.
array_of_ElementType GetTypes ()
 Returns types of elements it contains.
SMESH_Mesh GetMesh ()
 Returns the mesh.
boolean IsMeshInfoCorrect ()
 Returns false if GetMeshInfo() returns incorrect information that may happen if mesh data is not yet fully loaded from the file of study.

Detailed Description

Filter.

Definition at line 436 of file SMESH_Filter.idl.


Class Documentation

struct SMESH::Filter::Criterion

Structure containing information about one criterion Type - FT_Taper, FT_Skew ...

Compare - FT_LessThan, FT_MoreThan, FT_EqualTo Threshold - threshold value UnaryOp - unary logical operation: FT_LogicalNOT or FT_Undefined BinaryOp - binary logical operation FT_LogicalAND, FT_LogicalOR or (FT_Undefined must be for the last criterion) ThresholdStr - Threshold value defined as string. Used for:

  1. Diapason of identifiers. Example: "1,2,3,5-10,12,27-29"
  2. BelongToGeom predicate for storing name of shape
  3. GroupColor predicate for storing group color "0.2;0;0.5" ThresholdID - One more threshold value defined as string. Used for:
  4. BelongToGeom predicate for storing id of shape Tolerance - Tolerance is used for comparators (EqualTo comparision) and for "Belong to plane", "Belong to cylinder" etc predicates TypeOfElement - type of element SMESH::NODE, SMESH::FACE (used by BelongToGeom predicate only) Precision - Precision of numerical functors

Definition at line 457 of file SMESH_Filter.idl.

Class Members
long BinaryOp
long Compare
long Precision
double Threshold
string ThresholdID
string ThresholdStr
double Tolerance
long Type
ElementType TypeOfElement
long UnaryOp

Member Typedef Documentation

Definition at line 471 of file SMESH_Filter.idl.


Member Function Documentation

boolean SMESH::Filter::GetCriteria ( out Criteria  theCriteria)
void Filter::GetElementsId ( in SMESH_Mesh  theMesh)

Definition at line 3156 of file SMESH_Controls.cxx.

{
  theSequence.clear();

  if ( !theMesh || !thePredicate )
    return;

  thePredicate->SetMesh( theMesh );

  SMDSAbs_ElementType aType = thePredicate->GetType();
  switch(aType){
  case SMDSAbs_Node:
    FillSequence<const SMDS_MeshNode*>(theMesh->nodesIterator(),thePredicate,theSequence);
    break;
  case SMDSAbs_Edge:
    FillSequence<const SMDS_MeshElement*>(theMesh->edgesIterator(),thePredicate,theSequence);
    break;
  case SMDSAbs_Face:
    FillSequence<const SMDS_MeshElement*>(theMesh->facesIterator(),thePredicate,theSequence);
    break;
  case SMDSAbs_Volume:
    FillSequence<const SMDS_MeshElement*>(theMesh->volumesIterator(),thePredicate,theSequence);
    break;
  case SMDSAbs_All:
    FillSequence<const SMDS_MeshElement*>(theMesh->edgesIterator(),thePredicate,theSequence);
    FillSequence<const SMDS_MeshElement*>(theMesh->facesIterator(),thePredicate,theSequence);
    FillSequence<const SMDS_MeshElement*>(theMesh->volumesIterator(),thePredicate,theSequence);
    break;
  }
}

Here is the caller graph for this function:

Here is the caller graph for this function:

Returns a sequence of all element IDs.

Returns the mesh.

Here is the caller graph for this function:

Returns statistic of mesh elements.

Returns:
array of number enityties by index of EntityType

Returns types of elements it contains.

It's empty if the SMESH_IDSource contains no IDs

Returns false if GetMeshInfo() returns incorrect information that may happen if mesh data is not yet fully loaded from the file of study.

boolean SMESH::Filter::SetCriteria ( in Criteria  theCriteria)
void SMESH::Filter::SetMesh ( in SMESH_Mesh  theMesh)
void Filter::SetPredicate ( in Predicate  thePredicate)

Definition at line 3134 of file SMESH_Controls.cxx.

{
  myPredicate = thePredicate;
}

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