[vtkusers] Accessing Properties with vtkSliderRepresentation3D

Gelman, Joshua jgelman at decisionvis.com
Sun May 4 22:44:42 EDT 2014


I discovered that there are methods to get properties for the slider, tube,
end cap, etc., from which I can then set the corresponding properties.  But
I still haven't found anything that would let me change the color of the
label.  There are GetLabelFormat, GetLabelHeight, and
GetLabelHeightMax(Min)Value methods, but none of these seem to help.
Basically I need to just be able to change the label color.

Perhaps the solution is to just turn off the labels associated with
vtkSliderRepresentation3D and create my own labels, which can be updated
from the method called during an InteractionEvent with the sliders.  But
figured I'd ask the group just in case there was something simple I'm
missing.

Thanks. :)


On Sat, May 3, 2014 at 1:45 AM, Gelman, Joshua <jgelman at decisionvis.com>wrote:

> Greetings,
>
> With the vtkSliderRepresentation2D class, I can set things like label
> color using the GetLabelProperty() method.  However, no such method exists
> in the vtkSliderRepresentation3D class.
>
> Is there any easy way to set label properties (as well as tube, cap, and
> slider properties) using the 3D version of this class?  Perhaps I am
> missing something simple here.
>
> Any help would be greatly appreciated.
>
> Best,
>
> --Josh
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20140504/7b32f9ec/attachment.html>


More information about the vtkusers mailing list