[Paraview] Question on Image reader
Michael Jackson
mike.jackson at bluequartz.net
Wed Jan 7 09:05:07 EST 2009
I use the following to link additional libraries to my server side
plugin:
TARGET_LINK_LIBRARIES("${MODULE_NAME}"
vtkClientServer
vtkPVServerManager
${MXA_LIBRARIES}
${MXA_SUPPORT_LIBRARIES}
${BOOST_FILESYSTEM_LIBRARY}
If you are building your plugin at the same time you compile ParaView
by using the $MODULE_NAME}ParaViewImport.cmake and the
Paraview_Extra_External_Modules cmake property then you can use the $
{PARAVIEW_ADDITIONAL_LIBRARIES} variable to add more libraries to the
linking of the pvFilters target.
I have a few projects that do this if you are interested in seeing them.
_________________________________________________________
Mike Jackson mike.jackson at bluequartz.net
BlueQuartz Software www.bluequartz.net
Principal Software Engineer Dayton, Ohio
On Jan 7, 2009, at 8:47 AM, Thorsten Hater wrote:
> Thanks a lot!
> I ended up last night hand-editing the Makefile generated
> by CMake to include and link an additional library to the
> plugin binary, but I guess there is some better method.
> If someone could point me in the right direction?
>
> Best regards
> Thorsten
>
> Michael Jackson wrote:
>> vtkImage->GetScalarPointer(); will return a void* which you can
>> cast to the appropriate type for your image data.
>>
>> You can then use any byte copying routine to copy the data from the
>> file into the byte array. To save yourself some of that copying if
>> your data file is setup so that you can read some header
>> information so that you know how much to allocate you can FIRST
>> allocate the vtkImageData object, get the pointer to the front of
>> the array and read directly from the file into the array.
>>
>> _________________________________________________________
>> Mike Jackson mike.jackson at bluequartz.net
>> BlueQuartz Software www.bluequartz.net
>> Principal Software Engineer Dayton, Ohio
>>
>>
>>
>> On Jan 6, 2009, at 11:17 AM, Thorsten Hater wrote:
>>
>>> Hello everyone.
>>>
>>> I'm trying to implement a custom reader for ParaView 3.4.
>>> The output data is of the ImageData type.
>>> With the help of the ParaView guid I got as far as implementing
>>> the reader, save the most important bit of filling the actual data
>>> into the output object.
>>> So I have got the raw binary array - or file, if this is better -
>>> and the vtkImageData object.
>>> How can I move my data into the vtk object?
>>>
>>> Thanks in advance
>>> Thorsten
>>> _______________________________________________
>>> ParaView mailing list
>>> ParaView at paraview.org
>>> http://www.paraview.org/mailman/listinfo/paraview
>>
>> _______________________________________________
>> ParaView mailing list
>> ParaView at paraview.org
>> http://www.paraview.org/mailman/listinfo/paraview
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
More information about the ParaView
mailing list