[Paraview] Meta data with an image.

Felipe Bordeu felipe.bordeu at ec-nantes.fr
Mon Feb 4 12:24:37 EST 2013


I did the same thing!!!

I have a home made reader (based on the xdmf reader)

this is the code to put labels

vtkFieldData* fd = vtkFieldData::New();

for (unsigned j=0; j < 3; ++j) {
                 std::string name;
                 switch(j) {
                 case(0) : {
                     name = "AxisTitleForX";
                     break;
                 }
                 case(1) : {
                     name = "AxisTitleForY";
                     break;
                 }
                 case(2) : {
                     name = "AxisTitleForZ";
                     break;
                 }
                 }
                 vtkStringArray* TitleArray = vtkStringArray::New();
                 TitleArray->SetName(name.c_str());
TitleArray->InsertNextValue((this->Internal->NamesOfEachDimension[j] +" 
"+ this->Internal->UnitsOfEachDimension[j]).c_str());
                 fd->AddArray(TitleArray);
                 TitleArray->Delete();
             }

Outputdata->SetFieldData(fd);


Le 04/02/2013 14:54, Nico Kruithof a écrit :
> Hello,
>
> I've written a loader based on a vtkImageReader2. I can set the origin 
> and the spacing of the data, but would also like to annotate the axis 
> (names and units), such that they automatically show up correctly in 
> the axis. Is this possible?
>
> -- 
> Nico Kruithof
> nghk.nl <http://nghk.nl>
>
>
> _______________________________________________
> 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


-- 
Felipe Bordeu Weldt
Ingénieur de Recherche
-------------------------------------
Tél. : 33 (0)2 40 37 16 57
Fax. : 33 (0)2 40 74 74 06
Felipe.Bordeu at ec-nantes.fr
Institut GeM - UMR CNRS 6183
École Centrale Nantes
1 Rue de La Noë, 44321 Nantes, FRANCE
-------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20130204/7472bed9/attachment.htm>


More information about the ParaView mailing list