Version: 8.3.0
SMESH_LogicalFilter Class Reference

#include <SMESH_LogicalFilter.hxx>

Inheritance diagram for SMESH_LogicalFilter:

Public Types

enum  { LO_OR, LO_AND, LO_NOT, LO_UNDEFINED }
 

Public Member Functions

 SMESH_LogicalFilter (const QList< SUIT_SelectionFilter * > &, const int, bool takeOwnership=false)
 
virtual ~SMESH_LogicalFilter ()
 
virtual bool isOk (const SUIT_DataOwner *) const
 
void setFilters (const QList< SUIT_SelectionFilter * > &)
 
void setOperation (const int)
 
const QList
< SUIT_SelectionFilter * > 
getFilters () const
 
int getOperation () const
 

Private Member Functions

void deleteFilters ()
 Deletes filters if has an ownership. More...
 

Private Attributes

QList< SUIT_SelectionFilter * > myFilters
 
int myOperation
 
bool myOwnership
 

Member Enumeration Documentation

anonymous enum
Enumerator
LO_OR 
LO_AND 
LO_NOT 
LO_UNDEFINED 

Constructor & Destructor Documentation

SMESH_LogicalFilter::SMESH_LogicalFilter ( const QList< SUIT_SelectionFilter * > &  theFilters,
const int  theLogOp,
bool  takeOwnership = false 
)

References setFilters(), and setOperation().

SMESH_LogicalFilter::~SMESH_LogicalFilter ( )
virtual

References deleteFilters().

Member Function Documentation

void SMESH_LogicalFilter::deleteFilters ( )
private

Deletes filters if has an ownership.

References myFilters, and myOwnership.

Referenced by setFilters(), and ~SMESH_LogicalFilter().

const QList< SUIT_SelectionFilter * > SMESH_LogicalFilter::getFilters ( ) const

References myFilters.

int SMESH_LogicalFilter::getOperation ( ) const

References myOperation.

bool SMESH_LogicalFilter::isOk ( const SUIT_DataOwner *  owner) const
virtual

References LO_AND, LO_NOT, LO_OR, myFilters, and myOperation.

void SMESH_LogicalFilter::setFilters ( const QList< SUIT_SelectionFilter * > &  theFilters)
void SMESH_LogicalFilter::setOperation ( const int  theLogOp)

References myOperation.

Referenced by SMESH_LogicalFilter().

Field Documentation

QList<SUIT_SelectionFilter*> SMESH_LogicalFilter::myFilters
private
int SMESH_LogicalFilter::myOperation
private

Referenced by getOperation(), isOk(), and setOperation().

bool SMESH_LogicalFilter::myOwnership
private

Referenced by deleteFilters().