Public Types | Public Slots | Signals | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | List of all members
pqQueryClauseWidget Class Reference

pqQueryClauseWidget is used by pqQueryDialog as the widget allowing the user choose the clauses for the queries. More...

#include <pqQueryClauseWidget.h>

Inherits QWidget.

Collaboration diagram for pqQueryClauseWidget:
Collaboration graph
[legend]

Public Types

enum  CriteriaType {
  INVALID = 0x0, INDEX = 0x1, GLOBALID = 0x2, THRESHOLD = 0x4,
  BLOCK = 0x10, AMR_LEVEL = 0x20, AMR_BLOCK = 0x40, PROCESSID = 0x80,
  QUERY = 0x8, POINTS_NEAR = 0x100, POINT_IN_CELL = 0x200, ANY = 0xffff
}
 
enum  ConditionMode {
  SINGLE_VALUE, SINGLE_VALUE_GE, SINGLE_VALUE_LE, PAIR_OF_VALUES,
  TRIPLET_OF_VALUES, LIST_OF_VALUES, BLOCK_ID_VALUE, LIST_OF_BLOCK_ID_VALUES,
  BLOCK_NAME_VALUE, AMR_LEVEL_VALUE, AMR_BLOCK_VALUE, SINGLE_VALUE_MIN,
  SINGLE_VALUE_MAX, SINGLE_VALUE_NAN, SINGLE_VALUE_LE_MEAN, SINGLE_VALUE_GE_MEAN,
  SINGLE_VALUE_MEAN_WITH_TOLERANCE, LOCATION_AND_TOLERANCE, LOCATION
}
 
enum  DataSetType { DataSetType::STANDARD, DataSetType::AMR, DataSetType::MULTIBLOCK }
 

Public Slots

void initialize ()
 use this slot to initialize the clause GUI after all properties have been set. More...
 
void initialize (CriteriaTypes type_flags, bool qualifier_mode=false)
 initialize the widget only with the subset of criteria mentioned. More...
 
void addSelectionQualifiers (vtkSMProxy *)
 Updates the selection source proxy with the criteria in the clause. More...
 
void setAddButtonVisible (bool show)
 Set the Add button visibility. More...
 
void setRemoveButtonVisible (bool show)
 Set the Remove button visibility. More...
 
void setAndLabelVisible (bool show)
 Set the And label visibility. More...
 

Signals

void addQueryRequested ()
 Emited when user ask for a new query. More...
 

Public Member Functions

 Q_DECLARE_FLAGS (CriteriaTypes, CriteriaType)
 
 pqQueryClauseWidget (pqMultiQueryClauseWidget *multiQueryWidget, QWidget *parent=nullptr, Qt::WindowFlags flags=Qt::WindowFlags{})
 
 ~pqQueryClauseWidget () override
 

Protected Slots

void populateSelectionCondition ()
 Based on the selection criteria, populate the options in the selection "condition" combo box. More...
 
void updateValueWidget ()
 Update the value widget so show the correct widget based on the chosen criteria and condition. More...
 
void showCompositeTree ()
 Pops up a dialog showing the composite data structure for the data. More...
 
void deleteQuery ()
 Deletes this widget and notifies parent. More...
 

Protected Member Functions

void populateSelectionCriteria (CriteriaTypes type=ANY)
 Based on the selection type and data information from the producer, populate the "criteria" combo box. More...
 
CriteriaType currentCriteriaType () const
 Returns the current criteria type. More...
 
ConditionMode currentConditionType () const
 Returns the current condition type. More...
 

Protected Attributes

int AttributeType
 
bool AsQualifier
 
QString LastQuery
 
pqMultiQueryClauseWidgetMultiQueryWidget
 

Detailed Description

pqQueryClauseWidget is used by pqQueryDialog as the widget allowing the user choose the clauses for the queries.

Definition at line 48 of file pqQueryClauseWidget.h.

Member Enumeration Documentation

◆ CriteriaType

Enumerator
INVALID 
INDEX 
GLOBALID 
THRESHOLD 
BLOCK 
AMR_LEVEL 
AMR_BLOCK 
PROCESSID 
QUERY 
POINTS_NEAR 
POINT_IN_CELL 
ANY 

Definition at line 54 of file pqQueryClauseWidget.h.

◆ ConditionMode

Enumerator
SINGLE_VALUE 
SINGLE_VALUE_GE 
SINGLE_VALUE_LE 
PAIR_OF_VALUES 
TRIPLET_OF_VALUES 
LIST_OF_VALUES 
BLOCK_ID_VALUE 
LIST_OF_BLOCK_ID_VALUES 
BLOCK_NAME_VALUE 
AMR_LEVEL_VALUE 
AMR_BLOCK_VALUE 
SINGLE_VALUE_MIN 
SINGLE_VALUE_MAX 
SINGLE_VALUE_NAN 
SINGLE_VALUE_LE_MEAN 
SINGLE_VALUE_GE_MEAN 
SINGLE_VALUE_MEAN_WITH_TOLERANCE 
LOCATION_AND_TOLERANCE 
LOCATION 

Definition at line 72 of file pqQueryClauseWidget.h.

◆ DataSetType

Enumerator
STANDARD 
AMR 
MULTIBLOCK 

Definition at line 95 of file pqQueryClauseWidget.h.

Constructor & Destructor Documentation

◆ pqQueryClauseWidget()

pqQueryClauseWidget::pqQueryClauseWidget ( pqMultiQueryClauseWidget multiQueryWidget,
QWidget *  parent = nullptr,
Qt::WindowFlags  flags = Qt::WindowFlags{} 
)

◆ ~pqQueryClauseWidget()

pqQueryClauseWidget::~pqQueryClauseWidget ( )
override

Member Function Documentation

◆ Q_DECLARE_FLAGS()

pqQueryClauseWidget::Q_DECLARE_FLAGS ( CriteriaTypes  ,
CriteriaType   
)

◆ initialize [1/2]

void pqQueryClauseWidget::initialize ( )
inlineslot

use this slot to initialize the clause GUI after all properties have been set.

FIXME: Unsupported Terms: process id, amr-level, amr-block. We will need to extend VTK selection support for those, so we will implement them later (possibly 3.10/4.0)

Definition at line 115 of file pqQueryClauseWidget.h.

◆ initialize [2/2]

void pqQueryClauseWidget::initialize ( CriteriaTypes  type_flags,
bool  qualifier_mode = false 
)
slot

initialize the widget only with the subset of criteria mentioned.

A query clause has two components, the query term and the qualifiers. Some criteria can be both eg. BLOCK can be both the term or a qualifier. The available operators may change in such case. Hence, we specify if it's being used as a qualifier or not.

◆ addSelectionQualifiers

void pqQueryClauseWidget::addSelectionQualifiers ( vtkSMProxy )
slot

Updates the selection source proxy with the criteria in the clause.

◆ setAddButtonVisible

void pqQueryClauseWidget::setAddButtonVisible ( bool  show)
slot

Set the Add button visibility.

◆ setRemoveButtonVisible

void pqQueryClauseWidget::setRemoveButtonVisible ( bool  show)
slot

Set the Remove button visibility.

◆ setAndLabelVisible

void pqQueryClauseWidget::setAndLabelVisible ( bool  show)
slot

Set the And label visibility.

◆ addQueryRequested

void pqQueryClauseWidget::addQueryRequested ( )
signal

Emited when user ask for a new query.

◆ populateSelectionCondition

void pqQueryClauseWidget::populateSelectionCondition ( )
protectedslot

Based on the selection criteria, populate the options in the selection "condition" combo box.

◆ updateValueWidget

void pqQueryClauseWidget::updateValueWidget ( )
protectedslot

Update the value widget so show the correct widget based on the chosen criteria and condition.

◆ showCompositeTree

void pqQueryClauseWidget::showCompositeTree ( )
protectedslot

Pops up a dialog showing the composite data structure for the data.

◆ deleteQuery

void pqQueryClauseWidget::deleteQuery ( )
protectedslot

Deletes this widget and notifies parent.

◆ populateSelectionCriteria()

void pqQueryClauseWidget::populateSelectionCriteria ( CriteriaTypes  type = ANY)
protected

Based on the selection type and data information from the producer, populate the "criteria" combo box.

◆ currentCriteriaType()

CriteriaType pqQueryClauseWidget::currentCriteriaType ( ) const
protected

Returns the current criteria type.

◆ currentConditionType()

ConditionMode pqQueryClauseWidget::currentConditionType ( ) const
protected

Returns the current condition type.

Member Data Documentation

◆ AttributeType

int pqQueryClauseWidget::AttributeType
protected

Definition at line 195 of file pqQueryClauseWidget.h.

◆ AsQualifier

bool pqQueryClauseWidget::AsQualifier
protected

Definition at line 196 of file pqQueryClauseWidget.h.

◆ LastQuery

QString pqQueryClauseWidget::LastQuery
protected

Definition at line 197 of file pqQueryClauseWidget.h.

◆ MultiQueryWidget

pqMultiQueryClauseWidget* pqQueryClauseWidget::MultiQueryWidget
protected

Definition at line 199 of file pqQueryClauseWidget.h.


The documentation for this class was generated from the following file: