advertisement
javaboutique
Search Tips
Articles  |   Tutorials  |   Reviews  |   Tools  |   by Category  |   by Date  |   by Name  |   Submit  |   Source  |   Forums  |  
javaboutique
Browse DevX


Partners & Affiliates











advertisement

Reviews : Java Books : 3D User Interfaces with Java 3D :


Title: 3D User Interfaces with Java 3D
ISBN: 1884777902
US Price: $49.95
© Manning Publications Co.

19.3 DISPLAY-RELATIVE MAPPING

DRM is a dynamic coordinate mapping technique that controls a target object according to display relative inputs, such as from the mouse or arrow keys. In terms of source and target spaces, DRM generally uses the view itself as the source space node and the actuator's target transform group is used as the target space node.

At a conceptual level, the DRM process can be summarized as follows. When the user moves the drag cursor left in the display, the intuitive drag mapper interprets that motion as occurring in 3D in the plane of the view's display. In turn, the source drag mapper obtains the view's local-to-Vworld transform, and transforms the local display movement into the equivalent motion expressed in absolute world space coordinates. The mapper then obtains the actuator target's local-to-Vworld transform, inverts it, and then transforms the world space movement into an equivalent motion in the target's local coordinate space. If, for example, the target actuator performs geometric translation, then the target object will always appear to move left in the display regard-less of the position or direction of the view.

Table 19.3 summarizes the classes associated with DRM intuitive mapping. Figure 19. 4 illustrates the relationship of these classes. The next example will demonstrate how to configure these and the rest of the intuitive mapping building blocks for DRM.

Table 19.3 Summary of classes related to DRM intuitive mapping
Class/Interface Description Input Events Output Events
IntutiveDragMapper A coordinate mapper for input drag to source drag conversion. Uses a plugin to perform a specific type of coordinate mapping InputDragTarget SourceDragTarget
IntuitiveDragMapperPlugin The abstract base class for intuitive drag mapper plugins   
DrmPlugin An intuitive drag mapper plugin that maps the 2D input drag to the Z= 0 plane of the source space    

19.3.1 DrmDragPlugin class

For support of DRM, the framework provides the DrmDragPlugin subclass of IntuitiveDragMapperPlugin. The plug-in has very little to do. Because in DRM the intent is for the user's control inputs to be interpreted relative to the display space, the plug-in simply maps the 2D drag input to the Z= 0 plane of the 3D source space. In other words, for DRM, the source space is the view space with the input drag confined to its display plane. (The intuitive drag mapper plug-in will play a more prominent role in WRM than it does in DRM.)

The constructor for DrmDragPlugin gives you a choice for how the source node is selected. Either you can let the input event's source display define it, in which case the source display's ViewingPlatform is used, or you can set it explicitly, such as with a node in the same space as the view. In any case, the source node is passed along with the mapper's output SourceDragTarget event for use by the source drag Mapper.

How to Add Java Applets to Your Site

New on the Java Boutique:

New Review:

Time Management Made Easy with the Quartz Enterprise Job Scheduler
Why not just use the Java timer API? This open source scheduling API boasts simplicity, ease-of-integration, a well-rounded feature set, and it's free!

New Applet:

Reverse Complement
Reverse Complement is a simple applet that converts DNA or RNA sequences into three useful formats.

Elsewhere on internet.com:

WebDeveloper Java
Lots of Java information on webdeveloper.com

WDVL Java
Thorough Java resource at the Web Developer's Virtual Library.

ScriptSearch Java
Hundreds of free Java code files to download.

jGuru: Your View of the Java Universe
Customizable portal with online training, FAQs, regular news updates, and tutorials.

 Avaya Developer Showcase
 MSDN Spotlight
 PHP for Windows Showcase
XML error: undefined entity at line 34
advertisement
Receive Articles via our XML/RSS feed
Receive Articles via our XML/RSS feed

JavaBytes
Internet Cyclone
This powerful, easy-to-use, internet optimizer is for Windows 95, 98, ME, NT, 2000 and XP. It's designed to automatically optimize your Windows settings, boosting your Internet connection up to 200%.

IBM Brings Developers Into the Cloud
Apache at 10: You Can't Buy Us
Microsoft's CodePlex Foundation Moving Forward
Apple Claims 100,000 Apps, Google Analyzes Them
Nokia Latest to Play Opera Mobile 10 Browser
PayPal Opens Up Payment Platform to Devs
Ubuntu Linux 9.10 'Karmic Koala' Starts Its Climb
IBM Links Rational Developer Tools, Tivoli Apps
Libraries Give Vista Apps a Windows 7 Look
Ubuntu: The 'Default Alternative' to Windows?

Delivering Web-based Embedded Fonts in CSS 3
Adobe Helps PHP Developers Create Rich Internet Applications
Java Developers Finding a Home at Adobe Flex
Virtualization Delivers a Dynamic Infrastructure
Consuming XML Web Services in iPhone Applications
Build a More Agile Business with IBM
POJO-Based Solutions for LDAP Access: One Good, One Better
IBM Offers Enhanced Measurement and Management for Energy Usage
IBM Helps Transformation to an Information-Based Enterprise
Top Five Touch UI-Related Design Guidelines

Advertising Info  |   Member Services  |   Contact Us  |   Help  |   Feedback  |   Site Map  |   Network Map  |   About

internet.commediabistro.comJusttechjobs.comGraphics.com

Search:

WebMediaBrands Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Shopping | E-mail Offers | Freelance Jobs