[Paraview] QLineEdit & proxy()->InvokeCommand()

Dean, Kevin kevin.dean at decisionsciencescorp.com
Tue Jan 5 01:13:36 EST 2016


I am writing a plugin that, theoretically, should be able to change inputs
as I apply them through a QLineEdit. The file that I am using to create the
UI portions of the plugin is similar to that of the PointCloudLibrary.
However, I was wondering if there is a way to pass along the "changed
value" to the command I want to invoke?

Here is a snippet of what I am doing:

##############
connect_to_dds.h
##############

QLineEdit* xmin = new QLineEdit("XMin");
this->connect(xmin,
SIGNAL(textChanged(QString&)),SLOT(setXMinValue(QString&)));
layout->addWidget(xmin);

public slots:
    void SetXMin(const QString& text)
    {
        vtkSMSourceProxy* sourceProxy =
vtkSMSourceProxy::SafeDownCast(this->proxy());

        if (!sourceProxy)
        {
            return;
        }

        sourceProxy->InvokeCommand("SetXMin");
    }


###############################
Image_Reconstruction_DDSReader.cxx
###############################

void Image_Reconstruction_DDSReader::SetXMin()
{
    // double XMin = ;
}


Is there a way to pass along the changed value within the Proxy? Or is
there a better way of doing this?

Kevin E. Dean

-- 
This email and its contents are confidential. If you are not the intended 
recipient, please do not disclose or use the information within this email 
or its attachments. If you have received this email in error, please report 
the error to the sender by return email and delete this communication from 
your records.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160104/9388262f/attachment.html>


More information about the ParaView mailing list