[vtkusers] How to output a list of vtkImageData from filter
the_shark
mdccnunes at hotmail.com
Fri Sep 6 09:50:01 EDT 2013
to be a little more specific here's some code and the error I get:
int myFilter::RequestData(vtkInformation* vtkNotUsed(request),
vtkInformationVector** inputVector,
vtkInformationVector** outputVector)
{
// get the info object
vtkInformation *outInfo0 = outputVector[0]->GetInformationObject(0); //
VOIs
(....)
MyClassWithVOIs* outputLUT = MyClassWithVOIs::SafeDownCast(
outInfo0->Get(vtkDataObject::DATA_OBJECT()));
//VOIs
}
------------error: error C2440: 'initializing' : cannot convert from
'vtkImageAlgorithm *' to 'MyClassWithVOIs *'
---------
int TilingFilter::FillOutputPortInformation(
int port, vtkInformation* info)
{
// now add our info
if(port ==0)
info->Set(vtkDataObject::DATA_TYPE_NAME(), "MyClassWithVOIs");
--
View this message in context: http://vtk.1045678.n5.nabble.com/How-to-output-a-list-of-vtkImageData-from-filter-tp5723315p5723316.html
Sent from the VTK - Users mailing list archive at Nabble.com.
More information about the vtkusers
mailing list