return ret;
}
+pqProxy *getPQProxy(vtkSMProxy *proxy)
+{
+ pqServerManagerModel* smmodel = pqApplicationCore::instance()->getServerManagerModel();
+ return smmodel->findItem<pqProxy*>(proxy);
+}
+
void SPV3D_Prs::FillUsingActor(vtkActor *actor) const
{
SPV3D_EXPORTSPV3DData *alreadyExistingSrc = nullptr;
vtkPVTrivialProducer *clientSideObjectCast = vtkPVTrivialProducer::SafeDownCast(clientSideObject);
clientSideObjectCast->SetOutput(ds2);
mySourceProducer->updatePipeline();
+ pqProxy *producerBase2( getPQProxy(producerBase) );
+ if(producerBase2 && !_name.empty())
+ producerBase2->rename( _name.c_str() );
this->SetSourceProducer( mySourceProducer );
}
else
explicit SPV3D_Prs( const char* entry, SPV3D_ViewWindow *view);
~SPV3D_Prs();
+ void SetName(const std::string& name) { _name = name; }
+
SPV3D_Prs *deepCopy() const;
void FillUsingActor(vtkActor *actor) const;
SPV3D_EXPORTSPV3DData *_pvRendInfo = nullptr;
SPV3D_ViewWindow *_view = nullptr;
+ //! Name attached to the displayable object in the study
+ std::string _name;
};