correctly wrap vtkInformation methods for use in the Programmable Filter
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
neither of
double* vtkInformation::Get(vtkInformationDoubleVectorKey*) double* vtkInformationDoubleVectorKey::Get(vtkInformation*)
is wrapped into Python. This isn't entirely unexpected, since they both return "double*", but we need some way to extract DATA_TIME_STEPS in Python. One thought that comes to mind is some overloads that take the vector index as an argument, e.g:
double vtkInformation::Get(vtkInformationDoubleVectorKey*, vtkIdType) double vtkInformationDoubleVectorKey::Get(vtkInformation*, vtkIdType)
Cheers, Tim
Timothy M. Shead Sandia National Laboratories Data Analysis & Visualization 505-284-0139
> -----Original Message-----
> From: Karelitz, David B
> Sent: Wednesday, February 21, 2007 1:18 PM
> To: Karelitz, David B; 'Berk Geveci'; 'David E DeMarle'; 'Utkarsh
> Ayachit'
> Cc: Weirs, V Gregory; Shead, Timothy; Chavez, Elmer
> Subject: RE: Current Time Value
>
>
> Tim and I took a look at this this afternoon, but we ran into a
> problem.
>
> From within the Programmable Filter we did:
> """
> input=self.GetUnstructuredGridInput()
>
> info=input.GetInformation()
> """
>
> If we then printed info, it contained the DATA_TIME_STEPS double
> vector key with the values we wanted; however, there's no way to get
> that value out of the vtkInformation object within python. We think
> the problem is due to the fact that that key is a
> vtkInformationDoubleVectorKey and the Get methods on vtkInformation
> that take as an argument a vtkInformationDoubleVectorKey return a
> double* and therefore aren't being wrapped into python.
>
> Dave
>
> _____________________________________________
> From: Karelitz, David B
> Sent: Tuesday, February 20, 2007 12:16 PM
> To: 'Berk Geveci'; 'David E DeMarle'; Utkarsh Ayachit
> Cc: Weirs, V Gregory; Shead, Timothy
> Subject: Current Time Value
>
> Hi,
>
> Within a vtkPythonProgrammableFilter, is there a way to get the
> current time value from within the python script executed by a
> vtkPythonProgrammableFilter?
>
> Thanks,
> Dave
>