Graphics Reference
In-Depth Information
Figure . . Bar chart placed on a city map
northern Japan) plotted on the city map construct by X D. he city map is made as
an SVG file using IndexLineSet . he statistical map is created by utilizing the
SVG file of the city map and by placing <Cylinder> nodes with suitable lengths
on the map. his approach is convenient when creating a statistical map on top of
aphysicalmap.
Grouping and Prototype
he Group nodecanbeusedtogroupobjectsinordertomoveorcopyallofthecom-
ponents. he DEF keyword can be used to define an object that can be used by the
USE keyword. Inthe above example involving coordinate axes, a cylinderand acone
can begroupedtogether inordertocreate an arrow.hearrowisusedtoindicate an-
other axis with the USE keyword, and it is rotated to point in the appropriate direc-
tion. he labels of axes are composed of different strings, so we define the prototype
of the label with the <ProtoDeclare> node. It is easy to create individual labels
that can be used to make instances of the prototype using the <ProtoInstance>
node.
Interactive Functionality
X D has various sensors. hetouch sensor, for example, generates an event when the
mouse is clicked or the item of interest is approached. hisevent requires animation,
during which the colors and positions of objects change. If the example of Fig. . ,
allofthepointshavean <Anchor> nodewith a description fieldthat describes
the case name and point coordinates. By positioning the mouse cursor over a point,
the case name and the coordinates of the point are shown at the status bar on the
bottom right-hand corner of the viewer. Moreover, it is possible to implement more
interactive functions in order to use Java and JavaScript (ECMAScript) within the
<Script> node.
Search WWH ::




Custom Search