Java Doc for GeneralizedStrip.java in  » 6.0-JDK-Modules » java-3d » javax » media » j3d » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » java 3d » javax.media.j3d 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.media.j3d.GeneralizedStrip

GeneralizedStrip
class GeneralizedStrip (Code)
This class provides static methods to support topological transformations on generalized strips. This is used by the GeometryDecompressor. These methods only need to look at the vertex replacement flags to determine how the vertices in the strip are connected. The connections are rearranged in different ways to transform generalized strips to GeometryArray representations.
See Also:   GeneralizedStripFlags
See Also:   GeneralizedVertexList
See Also:   GeometryDecompressor

Inner Class :static class IntList
Inner Class :static class StripArray



Method Summary
static  StripArrayfanToStrips(int v, int length, int fans, boolean convexPlanar)
     Takes a fan and converts it to one or more strips.
static  int[]fansToTriangles(int stripCounts)
     Breaks up triangle fans into separate triangles.
static  intgetLineCount(int stripCounts)
     Counts the number of lines defined by arrays of line strips.
static  intgetTriangleCount(int stripCounts)
     Counts the number of triangles defined by arrays of triangle strips or fans.
static  intgetTriangleCount(IntList stripCounts)
     Counts the number of triangles defined by arrays of triangle strips or fans.
static  int[]stripsToTriangles(int stripCounts)
     Breaks up triangle strips into separate triangles.
static  StripArraytoLineStrips(GeneralizedStripFlags vertices)
     Interprets the vertex flags associated with a class implementing GeneralizedStripFlags, constructing and returning a StripArray.
static  StripArray[]toStripsAndFans(GeneralizedStripFlags vertices, int frontFace)
     Interprets the vertex flags associated with a class implementing GeneralizedStripFlags, constructing and returning a 2-element array of StripArray objects.
static  StripArray[]toStripsAndTriangles(GeneralizedStripFlags vertices, int frontFace, int shortStripSize, int maxShortStrips)
     Interprets the vertex flags associated with a class implementing GeneralizedStripFlags, constructing and returning a 2-element array of StripArray objects.
static  StripArraytoTriangleStrips(GeneralizedStripFlags vertices, int frontFace)
     Interprets the vertex flags associated with a class implementing GeneralizedStripFlags, constructing and returning a StripArray containing exclusively strips.
static  int[]toTriangles(GeneralizedStripFlags vertices, int frontFace)
     Interprets the vertex flags associated with a class implementing GeneralizedStripFlags, constructing and returning an array of vertex references representing the original generalized strip as individual triangles.



Method Detail
fanToStrips
static StripArray fanToStrips(int v, int length, int fans, boolean convexPlanar)(Code)
Takes a fan and converts it to one or more strips.
Parameters:
  v - index into the fans array of the first vertex in the fan
Parameters:
  length - number of vertices in the fan
Parameters:
  fans - array of vertex indices representing one or more fans
Parameters:
  convexPlanar - if true indicates that the fan is convex andplanar; such fans will always be converted into a single strip a StripArray containing the converted strips



fansToTriangles
static int[] fansToTriangles(int stripCounts)(Code)
Breaks up triangle fans into separate triangles.
Parameters:
  stripCounts - array of strip counts, as used by theGeometryStripArray object array of ints which index into the original vertex array; eachset of three consecutive vertex indices defines a single triangle



getLineCount
static int getLineCount(int stripCounts)(Code)
Counts the number of lines defined by arrays of line strips.
Parameters:
  stripCounts - array of strip counts, as used by theGeometryStripArray object number of lines in the strips



getTriangleCount
static int getTriangleCount(int stripCounts)(Code)
Counts the number of triangles defined by arrays of triangle strips or fans.
Parameters:
  stripCounts - array of strip counts, as used by theGeometryStripArray object number of triangles in the strips or fans



getTriangleCount
static int getTriangleCount(IntList stripCounts)(Code)
Counts the number of triangles defined by arrays of triangle strips or fans.
Parameters:
  stripCounts - IntList of strip counts number of triangles in the strips or fans



stripsToTriangles
static int[] stripsToTriangles(int stripCounts)(Code)
Breaks up triangle strips into separate triangles.
Parameters:
  stripCounts - array of strip counts, as used by theGeometryStripArray object array of ints which index into the original vertex array; eachset of three consecutive vertex indices defines a single triangle



toLineStrips
static StripArray toLineStrips(GeneralizedStripFlags vertices)(Code)
Interprets the vertex flags associated with a class implementing GeneralizedStripFlags, constructing and returning a StripArray. RESTART_CW and RESTART_CCW are treated as equivalent, as are REPLACE_MIDDLE and REPLACE_OLDEST.
Parameters:
  vertices - an object implementing GeneralizedStripFlags a StripArray representing an array of line strips



toStripsAndFans
static StripArray[] toStripsAndFans(GeneralizedStripFlags vertices, int frontFace)(Code)
Interprets the vertex flags associated with a class implementing GeneralizedStripFlags, constructing and returning a 2-element array of StripArray objects. The first StripArray will contain triangle strips and the second will contain triangle fans.
Parameters:
  vertices - an object implementing GeneralizedStripFlags
Parameters:
  frontFace - a flag, either GeneralizedStripFlags.FRONTFACE_CW orGeneralizedStripFlags.FRONTFACE_CCW, indicating front face winding a 2-element array containing strips in 0 and fans in 1



toStripsAndTriangles
static StripArray[] toStripsAndTriangles(GeneralizedStripFlags vertices, int frontFace, int shortStripSize, int maxShortStrips)(Code)
Interprets the vertex flags associated with a class implementing GeneralizedStripFlags, constructing and returning a 2-element array of StripArray objects. The first StripArray will contain triangle strips and the second will contain individual triangles in the vertices field. Short strips will be converted to individual triangles.
Parameters:
  vertices - an object implementing GeneralizedStripFlags
Parameters:
  frontFace - a flag, either GeneralizedStripFlags.FRONTFACE_CW orGeneralizedStripFlags.FRONTFACE_CCW, indicating front face winding
Parameters:
  shortStripSize - strips this size or less will be converted toindividual triangles if there are more than maxShortStrips of them
Parameters:
  maxShortStrips - maximum number of short strips allowed beforecreating individual triangles a 2-element array containing strips in 0 and triangles in 1



toTriangleStrips
static StripArray toTriangleStrips(GeneralizedStripFlags vertices, int frontFace)(Code)
Interprets the vertex flags associated with a class implementing GeneralizedStripFlags, constructing and returning a StripArray containing exclusively strips.
Parameters:
  vertices - an object implementing GeneralizedStripFlags
Parameters:
  frontFace - a flag, either GeneralizedStripFlags.FRONTFACE_CW orGeneralizedStripFlags.FRONTFACE_CCW, indicating front face winding a StripArray containing the converted strips



toTriangles
static int[] toTriangles(GeneralizedStripFlags vertices, int frontFace)(Code)
Interprets the vertex flags associated with a class implementing GeneralizedStripFlags, constructing and returning an array of vertex references representing the original generalized strip as individual triangles. Each sequence of three consecutive vertex references in the output defines a single triangle.
Parameters:
  vertices - an object implementing GeneralizedStripFlags
Parameters:
  frontFace - a flag, either GeneralizedStripFlags.FRONTFACE_CW orGeneralizedStripFlags.FRONTFACE_CCW, indicating front face winding an array of indices into the original vertex array



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.