Hi Tim, This should get set in the RequestDataDescription method in the generated Python script. When I first did it I thought we'd easily be able to figure out which fields were needed in order to update all of the required pipelines and/or views. Unfortunately this isn't trivial in VTK so basically what happens is that if a writer or view should output it specifies that all fields should be made available. This is the "datadescription.GetInputDescription(i).AllFieldsOn()" part of the generated python script.
Answering your final question, this is something that is done automatically in the generated script. Andy On Wed, Nov 7, 2012 at 2:57 PM, Tim Gallagher <tim.gallag...@gatech.edu>wrote: > Hi, > > I see in the example code for > ParaView/CoProcessing/Adaptors/FortranAdaptors/PhastaAdaptor/PhastaAdaptor.cxx > calls like: > > vtkCPInputDataDescription* idd = > > ParaViewCoProcessing::GetCoProcessorData()->GetInputDescriptionByName("input"); > > ... > > if(idd->IsFieldNeeded("velocity")) > { > ... > > The only way IsFieldNeeded returns true is if that name field was added > with AddCellField or AddPointField. > > Where does that happen? My intuition says that the python or C++ > processing script (generated by exporting state) would have those calls in > it for the datasets that are actually used. In other words, if I set up my > view in the GUI and I load my data and put a Slice through it and color by > "Velocity", I expected the script from Export State to contain a call to > AddCellField("Velocity"). At the very least I expected to see calls to add > the fields I chose to load when I loaded my sample file to set up the view. > > So is that something that I need to put in the script on my own after it's > exported or did I miss something? If I have to put it there myself, is > RequestDataDescription the correct place to put that? > > Thanks, > > Tim > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at > http://www.kitware.com/opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Follow this link to subscribe/unsubscribe: > http://www.paraview.org/mailman/listinfo/paraview >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Follow this link to subscribe/unsubscribe: http://www.paraview.org/mailman/listinfo/paraview