Back to index

salome-paravis  6.5.0
Public Member Functions
pqCustomChartDisplayPanelImplementation Class Reference

#include <pqCustomChartDisplayPanelImplementation.h>

List of all members.

Public Member Functions

 pqCustomChartDisplayPanelImplementation ()
 pqCustomChartDisplayPanelImplementation (QObject *p)
virtual ~pqCustomChartDisplayPanelImplementation ()
virtual bool canCreatePanel (pqRepresentation *proxy) const
virtual pqDisplayPanel * createPanel (pqRepresentation *proxy, QWidget *p)

Detailed Description

Definition at line 29 of file pqCustomChartDisplayPanelImplementation.h.


Constructor & Destructor Documentation

Definition at line 37 of file pqCustomChartDisplayPanelImplementation.h.

{}

Definition at line 29 of file pqCustomChartDisplayPanelImplementation.cxx.

                                                                                          :
QObject(p)
    {
    }

Definition at line 41 of file pqCustomChartDisplayPanelImplementation.h.

{}

Member Function Documentation

bool pqCustomChartDisplayPanelImplementation::canCreatePanel ( pqRepresentation *  proxy) const [virtual]

Definition at line 34 of file pqCustomChartDisplayPanelImplementation.cxx.

{
  if(!repr || !repr->getProxy() || 
     (repr->getProxy()->GetXMLName() != QString("XYChartRepresentation")))
    {
      return false;
    }

  pqDataRepresentation* dataRepr = qobject_cast<pqDataRepresentation*>(repr);
  if(dataRepr)
    {
      pqPipelineSource* input = dataRepr->getInput(); 
      QString name = input->getProxy()->GetXMLName();
      if (name == "TableReader")
       {
         return true;
       }
    }
  
  return false;
}

Here is the call graph for this function:

pqDisplayPanel * pqCustomChartDisplayPanelImplementation::createPanel ( pqRepresentation *  proxy,
QWidget *  p 
) [virtual]

Definition at line 56 of file pqCustomChartDisplayPanelImplementation.cxx.

{
  if(!repr || !repr->getProxy() ||
     (repr->getProxy()->GetXMLName() != QString("XYChartRepresentation")))
    {
      return NULL;
    }

  pqDataRepresentation* dataRepr = qobject_cast<pqDataRepresentation*>(repr);
  if(dataRepr)
    {
      pqPipelineSource* input = dataRepr->getInput(); 
      QString name=input->getProxy()->GetXMLName();

      if (name == "TableReader")
       {
         return new pqCustomXYChartDisplayPanel(repr, p);
       }
    }
  
  return NULL;
}

Here is the call graph for this function:


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