[vtkusers] Scalar bar

Gil Lecker fempp at netvision.net.il
Mon Dec 18 12:33:26 EST 2000


Hello VTK Users,

I'm looking for a way to improve the ScalarBar display.
The following tcl code works fine except for the text (2
last lines) SahdowOff and SetFontSize.
(I'm attaching also the scalarbar portion of the screen)
My vtk revision is 3.1.

#
# from examplesTCL/multidimensionalSolution.tcl:
 vtkScalarBarActor barActor
 barActor SetLookupTable [defMapper GetLookupTable]
 [barActor GetProperty] SetColor 0 0 0
 [barActor GetPositionCoordinate]
SetCoordinateSystemToNormalizedViewport
 [barActor GetPositionCoordinate] SetValue 0.1 0.1
 barActor SetOrientationToHorizontal
 barActor SetNumberOfLabels 8
 barActor SetFontFamilyToArial
 barActor SetTitle "Load: $Case13::var(show_load) - Entity:
$Case13::var(show_entity)"
 barActor SetWidth 0.80
 barActor SetHeight 0.125
 barActor ItalicOff
 barActor BoldOff
 barActor SetMaximumNumberOfColors 24
 barActor SetLabelFormat "%7.5g"

# somehow the following two lines are illegal !
# barActor SetFontSize "12"
# barActor ShadowOff

Thanks and Merry X-Mas to you all out there,

Gil Lecker

FEM++
POB 2396
55100 Kiryat Ono
ISRAEL

Tel.   +972 3534 4432
Fax.  +972 3535 5514
E-mail: fempp at netvision.net.il
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: scalarbarexample.gif
Type: image/gif
Size: 5671 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20001218/764984ee/attachment.gif>


More information about the vtkusers mailing list