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.

8.5 ATTACHMENT

When assembling objects in the real world to form a more complex whole there must be some means for holding the objects together. Real world attachments can be whimsical (bailing wire and chewing gum), utilitarian (nails, glue, welds), ingenious (snaps, zippers, Velcro), and specialized (magnetic, tongue-in-groove, ball-and-socket). The quality of attachment can be permanent (welds), temporary (Velcro), and even non-rigid (ball-and-socket). In a virtual world, as in the real one, connecting objects together and specifying the nature of that connection can be important. This is especially so in 3D design applications, where object assembly is often a major goal. Table 8. 4 summarizes the specific forms of attachment covered in this section, and figure 8. 16 illustrates them.
Table 8. 4 Attachment types and characteristics
Snapping
  • Not real attachment; touching
  • Objects jump into position without permanence
Gluing
  • Rigid physical attachment; touching
Sticking
  • Non-rigid physical attachment; touching
  • Objects can slide and twist according to attachment type
Linking
  • Logical attachment; non-touching
  • Topology of attachments maintained when objects are pulled
Anchoring
  • Fixes object geometry in world space
  • Generally needed if sticky attachments are involved

The distinction between attachment and grouping can be murky. For this discussion, attachment is confined to a one-to-one relationship between two connected snap elements, whereas grouping implies a possibly diffuse relationship among two or


Figure 8. 16 Examples of object attachment.

more objects that are probably not touching and may only be for convenient reference. Although some aspects of grouping involve manipulation, many others are more closely associated with data access and management; therefore, grouping will be covered in the next chapter.

8.5.1 Physical versus logical

Physical attachment is analogous to real-world attachment, where objects maintain some spatial or geometric relationship between them, which can be rigid like a weld or flexible like a ball-and-socket. This has both visual and functional implications. Pulling on an object that is physically attached to others can often cause the other objects to also move. Also, physical attachment typically requires that the objects involved be touching. For this reason, snapping is generally required before physical attachment can occur. Two snap elements that are touching but not yet attached are considered to be "primed" for attachment.

Logical attachment is where objects maintain some abstract or topological relationship. Pulling on an object that is logically attached to other objects does not necessarily move the other objects. Also, logically attached objects generally do not touch, and their attachments are often shown visibly with relational indicators, such as lines and arrows. For example, logical attachment is often used in applications involving networks, such as for communications or manufacturing, where the topology of the layout, not its literal geometry, is significant. In such cases, nodes in the network do not touch and could be dragged around in the scene, with their connections stretching and bending accordingly.

8.5.2 Attachment versus snapping

Snapping and attachment are usually separate operations. For example, you might perform a "dry fit" to assemble objects the way you think they should go, using snap-ping. When you are satisfied with their fit, you would apply the attachment "glue" to hold them all together. Because of the difficulty of getting objects together in the right geometry so they can be physically attached (their snap elements must be touching, or primed), snapping of some sort is generally necessary before physical forms of attachment can occur. Persistent forms of physical attachment such as "sticking" and "gluing" will often be combined with snapping such that snapping and attachment are performed as a single operation. Thus, objects that are snapped together are also immediately and persistently attached together.

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