[Ves] setColorMap

Eduardo Poyart poyart at gmail.com
Fri Jun 28 13:26:43 EDT 2013


Thanks!

Another question.

vesKiwiImageDataRepresentation used to have a contour visualization,
activated with double tap. Was it removed? What would be a good way to add
it again?

Eduardo

On Tue, Jun 25, 2013 at 5:24 PM, Pat Marion <pat.marion at kitware.com> wrote:

> Hi,
>
> When you say the stage version, I think you are referring to the kiwi-next
> branch (or kiwi-next-apps).  In this branch, the color map API has been
> improved, but moved :)  You'll now find that the base class,
> vesKiwiDataRepresentation has a color map "collection", or a
> vesKiwiColorMapCollection.
>
> So, instead of doing:
>
> rep->setColorMap(colorMap);
>
> You can do:
>
> rep->colorMapCollection()->setDefaultColorMap(colorMap);
>
> But now you can also set multiple colormaps for different arays:
>
> vesKiwiColorMapCollection::Ptr collection = rep->colorMapCollection();
> collection->setColorMap("image_scalars", colorMap);
>
> Then if you have an image with a scalar array with the name
> "image_scalars" then your color map will be chosen.  A single
> vesKiwiColorMapCollection can be shared by multiple representations.
>
> You can also set named color maps.
>
> collection->setColorMap("my color map", colorMap);
> collection->setColorMapForArray("image_scalars", "my color map");
>
> Hope this helps!
>
> Pat
>
>
> On Tue, Jun 25, 2013 at 8:11 PM, Eduardo Poyart <poyart at gmail.com> wrote:
>
>> Hi,
>>
>> The class vesKiwiImagePlaneDataRepresentation used to have a setColorMap
>> method. It's not present in the stage version of ves. How should we set
>> color maps?
>>
>> Thanks
>> Eduardo
>>
>>
>> _______________________________________________
>> Ves mailing list
>> Ves at public.kitware.com
>> http://public.kitware.com/cgi-bin/mailman/listinfo/ves
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/ves/attachments/20130628/5eba1d05/attachment-0002.html>


More information about the Ves mailing list