[vtkusers] creating colortables (and opacity) with 3 scalars, rather than 1
Alex Malyushytskyy
alexmalvtk at gmail.com
Thu Jul 25 17:33:07 EDT 2013
Scalar may have can components, but I always displayed 1 component at a
time.
At the same time if you work with vector you should be able to display
magnitude without computing it yourself.
It might be enough just to call SetVectorModeToMagnitude for your look up
table (defined in vtkScalarsToColors:).
I have not tried this and quick search did not show any example.
So hope somebody else can help you with it.
Regards,
Alex
On Thu, Jul 25, 2013 at 4:49 AM, Ruff <albin.nilsson at gmail.com> wrote:
> Thank you, but unfortunately It looks like the other examples i found. Tied
> to every point is one and only one value and regardless of colormap or
> lookuptable they only map one value to one color.
>
> Say that i tie value 1 to a color, then i still have the ability of
> [1,0,0],
> [0,1,0] and [0,0,1] if my structuredPoints have 3 separate values to them
> (and even more possibilities if the mapping is done with absolute values)
> Instead of
> AddRGBPoint(value,R,G,B) or SetTableValue(value, R,G,B,alpha)
> i would like to have some way of specifying
> AddRGBPoint(val1,val2,val3,R,G,B) or SetTableValue(val1,val2,val3,
> R,G,B,alpha)
>
> This makes sense to me since vtkStructuredPoints have the method
> SetNumberOfScalarComponents()
> (Mathematically speaking it is "just" a question of interpolating piecewise
> functions in 3-space instead of 1-space)
>
>
>
> --
> View this message in context:
> http://vtk.1045678.n5.nabble.com/creating-colortables-and-opacity-with-3-scalars-rather-than-1-tp5722091p5722239.html
> Sent from the VTK - Users mailing list archive at Nabble.com.
> _______________________________________________
> 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 VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130725/23d262f8/attachment.htm>
More information about the vtkusers
mailing list