Back to index

salome-paravis  6.5.0
Classes | Public Member Functions | Protected Slots | Protected Member Functions | Protected Attributes | Private Types
pqExtractGroupPanel Class Reference

#include <pqExtractGroupPanel.h>

Collaboration diagram for pqExtractGroupPanel:
Collaboration graph
[legend]

List of all members.

Classes

class  pqUI

Public Member Functions

 pqExtractGroupPanel (pqProxy *proxy, QWidget *p=NULL)
 constructor
 ~pqExtractGroupPanel ()
 destructor

Protected Slots

void updateSIL ()

Protected Member Functions

virtual void linkServerManagerProperties ()
 populate widgets with properties from the server manager

Protected Attributes

pqUIUI

Private Types

typedef pqNamedObjectPanel Superclass

Detailed Description

Definition at line 30 of file pqExtractGroupPanel.h.


Member Typedef Documentation

typedef pqNamedObjectPanel pqExtractGroupPanel::Superclass [private]

Definition at line 33 of file pqExtractGroupPanel.h.


Constructor & Destructor Documentation

pqExtractGroupPanel::pqExtractGroupPanel ( pqProxy *  proxy,
QWidget *  p = NULL 
)

constructor

Definition at line 75 of file pqExtractGroupPanel.cxx.

                                                                          :
  Superclass(object_proxy, p)
{
  this->UI = new pqUI(this);
  this->UI->setupUi(this);

  pqProxySILModel* proxyModel;

  // connect groups to groupsRoot
  proxyModel = new pqProxySILModel("GroupTree", &this->UI->SILModel);
  proxyModel->setSourceModel(&this->UI->SILModel);
  this->UI->Groups->setModel(proxyModel);
  this->UI->Groups->setHeaderHidden(true);

  this->UI->groupModel = new pqProxySILModel("Groups", &this->UI->SILModel);
  this->UI->groupModel->setSourceModel(&this->UI->SILModel);

  // connect cell types to "EntityRoot"
  proxyModel = new pqProxySILModel("EntityTree", &this->UI->SILModel);
  proxyModel->setSourceModel(&this->UI->SILModel);
  this->UI->Entity->setModel(proxyModel);
  this->UI->Entity->setHeaderHidden(true);

  this->UI->entityModel = new pqProxySILModel("Entity", &this->UI->SILModel);
  this->UI->entityModel->setSourceModel(&this->UI->SILModel);

  this->updateSIL();

  this->UI->Groups->header()->setStretchLastSection(true);
  this->UI->Entity->header()->setStretchLastSection(true);

  this->linkServerManagerProperties();

  QList<pqTreeWidget*> treeWidgets = this->findChildren<pqTreeWidget*> ();
  foreach (pqTreeWidget* tree, treeWidgets)
      {
      new pqTreeWidgetSelectionHelper(tree);
      }

  QList<pqTreeView*> treeViews = this->findChildren<pqTreeView*> ();
  foreach (pqTreeView* tree, treeViews)
      {
      new pqTreeViewSelectionHelper(tree);
      }

  this->connect(this->UI->groupModel, SIGNAL(valuesChanged()),
                this, SLOT(setModified()));
  this->connect(this->UI->entityModel, SIGNAL(valuesChanged()),
                this, SLOT(setModified()));

  this->UI->tabWidget->setCurrentIndex(0);

  this->UI->VTKConnect->Connect(this->proxy(),
      vtkCommand::UpdateInformationEvent, this, SLOT(updateSIL()));

}

Here is the call graph for this function:

destructor

Definition at line 132 of file pqExtractGroupPanel.cxx.

{
}

Member Function Documentation

void pqExtractGroupPanel::linkServerManagerProperties ( ) [protected, virtual]

populate widgets with properties from the server manager

Definition at line 136 of file pqExtractGroupPanel.cxx.

{
  this->UI->Links.addPropertyLink(this->UI->groupModel, "values",
      SIGNAL(valuesChanged()), this->proxy(), this->proxy()->GetProperty(
          "Groups"));

  this->UI->Links.addPropertyLink(this->UI->entityModel, "values",
      SIGNAL(valuesChanged()), this->proxy(), this->proxy()->GetProperty(
          "Entity"));

  this->Superclass::linkServerManagerProperties();

}

Here is the call graph for this function:

Here is the caller graph for this function:

void pqExtractGroupPanel::updateSIL ( ) [protected, slot]

Definition at line 150 of file pqExtractGroupPanel.cxx.

{

  vtkSMProxy* reader = this->referenceProxy()->getProxy();
  reader->UpdatePropertyInformation(reader->GetProperty("SILUpdateStamp"));

  int stamp = vtkSMPropertyHelper(reader, "SILUpdateStamp").GetAsInt();
  if (stamp != this->UI->SILUpdateStamp)
    {
    this->UI->SILUpdateStamp = stamp;
    vtkPVSILInformation* info = vtkPVSILInformation::New();
    reader->GatherInformation(info);
    this->UI->SILModel.update(info->GetSIL());

    this->UI->Groups->expandAll();
    this->UI->Entity->expandAll();

    info->Delete();
    }

}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 54 of file pqExtractGroupPanel.h.


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