diff --git a/.github/workflows/processing.yml b/.github/workflows/processing.yml new file mode 100644 index 0000000..7c564b5 --- /dev/null +++ b/.github/workflows/processing.yml @@ -0,0 +1,79 @@ +name: Processing 4 + +on: + push: + branches: [master] + pull_request: + branches: [master] + +permissions: + contents: read + +jobs: + verify: + name: Java 17 / Processing 4.5.6 + runs-on: ubuntu-latest + timeout-minutes: 10 + + steps: + - name: Check out repository + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + + - name: Set up Java 17 + uses: actions/setup-java@dd06d9cba3e5552c54d9f8ea23572deb30010f7c # v6.0.0 + with: + distribution: temurin + java-version: "17.0.20+101" + cache: maven + + - name: Compile library; run parser tests; regenerate API documentation + run: mvn --batch-mode --no-transfer-progress clean verify javadoc:javadoc + + - name: Verify bundled library and documentation are current + run: | + cmp target/BVHParser.jar p5f_sample/code/BVHParser.jar + find target/reports/apidocs -type f \( -name '*.html' -o -name '*.css' -o -name '*.js' \ + -o -name 'ADDITIONAL_LICENSE_INFO' \) \ + -exec perl -pi -e 's/[ \t]+$//' {} + + diff --recursive --brief target/reports/apidocs p5f_sample/lib/doc + + - name: Restore Processing 4.5.6 cache + id: processing-cache + uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + with: + path: ${{ runner.temp }}/processing-4.5.6 + key: processing-4.5.6-linux-x64-ddb816ca + + - name: Download Processing 4.5.6 + if: steps.processing-cache.outputs.cache-hit != 'true' + env: + PROCESSING_URL: https://github.com/processing/processing4/releases/download/processing-1434-4.5.6/processing-4.5.6-linux-x64-portable.zip + PROCESSING_SHA256: ddb816ca2c02e862a5dcf22b96bb4f81f412c4878673752b36837a7770970a6c + run: | + curl --fail --location --retry 3 --output "${RUNNER_TEMP}/processing.zip" "${PROCESSING_URL}" + echo "${PROCESSING_SHA256} ${RUNNER_TEMP}/processing.zip" | sha256sum --check + mkdir -p "${RUNNER_TEMP}/processing-4.5.6" + unzip -q "${RUNNER_TEMP}/processing.zip" -d "${RUNNER_TEMP}/processing-4.5.6" + + - name: Compile the PDE sketch with Processing 4.5.6 + run: | + PROCESSING_BIN=$(find "${RUNNER_TEMP}/processing-4.5.6" -type f \( -name processing -o -name Processing \) -print -quit) + test -n "${PROCESSING_BIN}" + chmod +x "${PROCESSING_BIN}" + "${PROCESSING_BIN}" cli \ + --sketch="${GITHUB_WORKSPACE}/p5f_sample" \ + --output="${RUNNER_TEMP}/p5f-sample-build" \ + --force \ + --build + + - name: Run a ten-frame P3D smoke test + run: | + set -o pipefail + PROCESSING_BIN=$(find "${RUNNER_TEMP}/processing-4.5.6" -type f \( -name processing -o -name Processing \) -print -quit) + timeout 30s xvfb-run --auto-servernum "${PROCESSING_BIN}" cli \ + --sketch="${GITHUB_WORKSPACE}/p5f_sample" \ + --output="${RUNNER_TEMP}/p5f-sample-run" \ + --force \ + --run \ + --smoke-test | tee "${RUNNER_TEMP}/p5f-sample-smoke.log" + grep -q "SMOKE_TEST_OK" "${RUNNER_TEMP}/p5f-sample-smoke.log" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b066599 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +target/ +.DS_Store +*.class diff --git a/README.md b/README.md new file mode 100644 index 0000000..074cfc5 --- /dev/null +++ b/README.md @@ -0,0 +1,53 @@ +# Perfume Global Site Project — Processing example + +[![Processing 4](https://github.com/perfume-dev/example-processing/actions/workflows/processing.yml/badge.svg)](https://github.com/perfume-dev/example-processing/actions/workflows/processing.yml) + +A Processing sketch that visualizes the three bundled BVH motion-capture files as animated point skeletons. This repository originated with the 2012 Perfume Global Site Project and is preserved as a small, runnable creative-coding example. + +## Compatibility + +- [Processing 4.5.6](https://processing.org/download/) (Java mode) +- macOS, Windows, or Linux with OpenGL support for the `P3D` renderer +- No separately installed Processing libraries + +The bundled `p5f_sample/code/BVHParser.jar` is built from the source in `p5f_sample/lib/src` against Processing Core 4.5.6 and Java 17. + +## Run the sketch + +1. Install Processing 4.5.6. +2. Open `p5f_sample/p5f_sample.pde` in Processing. +3. Press **Run**. + +The sketch loads `A_test.bvh`, `B_test.bvh`, and `C_test.bvh` from its `data` directory and plays all three motions in a continuously orbiting 3D view. + +## Development and verification + +The library and its parser tests require a Java 17 JDK and are checked against Processing Core 4.5.6: + +```sh +mvn -B clean verify +``` + +After changing the Java library source, rebuild the bundled Processing JAR and its API documentation: + +```sh +mvn -B package javadoc:javadoc +cp target/BVHParser.jar p5f_sample/code/BVHParser.jar +rm -rf p5f_sample/lib/doc +cp -R target/reports/apidocs p5f_sample/lib/doc +find p5f_sample/lib/doc -type f \( -name '*.html' -o -name '*.css' -o -name '*.js' \ + -o -name 'ADDITIONAL_LICENSE_INFO' \) \ + -exec perl -pi -e 's/[ \t]+$//' {} + +``` + +CI additionally compiles the complete PDE sketch with the official Processing 4.5.6 command-line tool and verifies that the committed JAR is identical to the reproducible Maven build. + +## Project stewardship and credits + +The [`perfume-dev` project](https://github.com/perfume-dev) and its repositories were established by [Daito Manabe](https://github.com/daitomanabe), who continues to maintain and administer them. [Perfume](https://www.perfume-web.jp/profile/) is a Japanese artist group; Manabe's documented collaborations with Perfume date to [2010](https://www.daito.ws/en/archive/perfume_12345678910/), and his credited roles across projects include [programming](https://www.bunka.go.jp/j-mediaarts-festival/award/single/perfume_global_site_project/index.html) as well as [creative direction, technical direction, and sound-effect design](https://www.daito.ws/archive/perfume-imaginary-museum-time-warp/). The 2012 project background and credits are documented by Japan's [Agency for Cultural Affairs](https://www.bunka.go.jp/j-mediaarts-festival/award/single/perfume_global_site_project/index.html) and in the [Daito Manabe archive](https://www.daito.ws/en/archive/perfume_globalsiteproject/). + +The repository history credits [Satoru Higa](https://github.com/satoruhiga) for the original 2012 import and Hiroyuki at Rhizomatiks for the subsequent parser and library work. Their original source and authorship history are retained. + +## License + +No license file was included in the original repository. Unless and until the maintainers add one, the source and bundled motion data remain subject to their respective owners' copyright; public availability does not by itself grant reuse rights. diff --git a/p5f_sample/PBvh.pde b/p5f_sample/PBvh.pde index f0d2605..8c913b3 100644 --- a/p5f_sample/PBvh.pde +++ b/p5f_sample/PBvh.pde @@ -1,38 +1,35 @@ -public class PBvh -{ - public BvhParser parser; +class PBvh { + final BvhParser parser; + + PBvh(String[] data) { + if (data == null) { + throw new IllegalArgumentException("BVH data could not be loaded"); + } - public PBvh(String[] data) - { parser = new BvhParser(); - parser.init(); - parser.parse( data ); + parser.parse(data); } - - public void update( int ms ) - { - parser.moveMsTo( ms );//30-sec loop + + void update(int ms) { + parser.moveMsTo(ms); parser.update(); } - - public void draw() - { - fill(color(255)); - - for( BvhBone b : parser.getBones()) - { + + void draw() { + fill(255); + + for (BvhBone bone : parser.getBones()) { pushMatrix(); - translate(b.absPos.x, b.absPos.y, b.absPos.z); + translate(bone.absPos.x, bone.absPos.y, bone.absPos.z); ellipse(0, 0, 2, 2); popMatrix(); - if (!b.hasChildren()) - { + + if (!bone.hasChildren()) { pushMatrix(); - translate( b.absEndPos.x, b.absEndPos.y, b.absEndPos.z); + translate(bone.absEndPos.x, bone.absEndPos.y, bone.absEndPos.z); ellipse(0, 0, 10, 10); popMatrix(); } - } } } diff --git a/p5f_sample/code/BVHParser.jar b/p5f_sample/code/BVHParser.jar index d9248d0..45d8488 100644 Binary files a/p5f_sample/code/BVHParser.jar and b/p5f_sample/code/BVHParser.jar differ diff --git a/p5f_sample/lib/doc/allclasses-frame.html b/p5f_sample/lib/doc/allclasses-frame.html deleted file mode 100644 index 7a6fac1..0000000 --- a/p5f_sample/lib/doc/allclasses-frame.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - -ׂẴNX - - - - - - - - - - - -ׂẴNX -
- - - - - -
BvhBone -
-BvhParser -
-
- - - diff --git a/p5f_sample/lib/doc/allclasses-index.html b/p5f_sample/lib/doc/allclasses-index.html new file mode 100644 index 0000000..c93d122 --- /dev/null +++ b/p5f_sample/lib/doc/allclasses-index.html @@ -0,0 +1,71 @@ + + + + +All Classes and Interfaces (BVHParser for example-processing 1.0-SNAPSHOT API) + + + + + + + + + + + + + + +
+ +
+
+
+

All Classes and Interfaces

+
+
+
Classes
+
+
Class
+
Description
+ +
 
+ +
 
+
+
+
+ +
+
+ + diff --git a/p5f_sample/lib/doc/allclasses-noframe.html b/p5f_sample/lib/doc/allclasses-noframe.html deleted file mode 100644 index 9fec4ce..0000000 --- a/p5f_sample/lib/doc/allclasses-noframe.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - -ׂẴNX - - - - - - - - - - - -ׂẴNX -
- - - - - -
BvhBone -
-BvhParser -
-
- - - diff --git a/p5f_sample/lib/doc/allpackages-index.html b/p5f_sample/lib/doc/allpackages-index.html new file mode 100644 index 0000000..fd6d1dd --- /dev/null +++ b/p5f_sample/lib/doc/allpackages-index.html @@ -0,0 +1,67 @@ + + + + +All Packages (BVHParser for example-processing 1.0-SNAPSHOT API) + + + + + + + + + + + + + + +
+ +
+
+
+

All Packages

+
+
Package Summary
+
+
Package
+
Description
+ +
 
+
+
+ +
+
+ + diff --git a/p5f_sample/lib/doc/com/rhizomatiks/bvh/BvhBone.html b/p5f_sample/lib/doc/com/rhizomatiks/bvh/BvhBone.html index 91e6f5c..203fb8e 100644 --- a/p5f_sample/lib/doc/com/rhizomatiks/bvh/BvhBone.html +++ b/p5f_sample/lib/doc/com/rhizomatiks/bvh/BvhBone.html @@ -1,1137 +1,598 @@ - - - - - - -BvhBone - - - - - - - - - - - - -
- - + + + + +BvhBone (BVHParser for example-processing 1.0-SNAPSHOT API) + + + + + + + + + + + + + + +
+ +
+
-

- -com.rhizomatiks.bvh -
-NX BvhBone

-
-java.lang.Object
-  ʂg com.rhizomatiks.bvh.BvhBone
-
-
-
-
public class BvhBone
extends java.lang.Object
- - -

-


- -

+

+ +

Class BvhBone

+
+
java.lang.Object +
com.rhizomatiks.bvh.BvhBone
+
+
+
+
public class BvhBone +extends Object
+
+
+ +
+
+
    - - - - - - -
    -tB[h̏ڍ
    - -

    -absPos

    -
    -public processing.core.PVector absPos
    -
    -
    -
    -
    -
    - -

    -absEndPos

    -
    -public processing.core.PVector absEndPos
    -
    -
    -
    -
    -
    - -

    -global_matrix

    -
    -public processing.core.PMatrix3D global_matrix
    -
    -
    -
    -
    - +
  • +
    +

    Field Details

    +
      +
    • +
      +

      absPos

      +
      public processing.core.PVector absPos
      +
      +
    • +
    • +
      +

      absEndPos

      +
      public processing.core.PVector absEndPos
      +
      +
    • +
    • +
      +

      global_matrix

      +
      public processing.core.PMatrix3D global_matrix
      +
      +
    • +
    +
    +
  • - - - - - - -
    -RXgN^̏ڍ
    - -

    -BvhBone

    -
    -public BvhBone(BvhBone __parent)
    -
    -
    -
    - -

    -BvhBone

    -
    -public BvhBone()
    -
    -
    - +
  • +
    +

    Constructor Details

    +
      +
    • +
      +

      BvhBone

      +
      public BvhBone(BvhBone __parent)
      +
      +
    • +
    • +
      +

      BvhBone

      +
      public BvhBone()
      +
      +
    • +
    +
    +
  • - - - - - - -
    -\bh̏ڍ
    - -

    -toString

    -
    -public java.lang.String toString()
    -
    -
    -
    I[o[Ch:
    NX java.lang.Object toString
    -
    -
    -
    -
    -
    -
    - -

    -structureToString

    -
    -public java.lang.String structureToString()
    -
    -
    -
    -
    -
    -
    - -

    -structureToString

    -
    -public java.lang.String structureToString(int __indent)
    -
    -
    -
    -
    -
    -
    - -

    -getName

    -
    -public java.lang.String getName()
    -
    -
    -
    -
    -
    -
    - -

    -setName

    -
    -public void setName(java.lang.String value)
    -
    -
    -
    -
    -
    -
    - -

    -isRoot

    -
    -public java.lang.Boolean isRoot()
    -
    -
    -
    -
    -
    -
    - -

    -hasChildren

    -
    -public java.lang.Boolean hasChildren()
    -
    -
    -
    -
    -
    -
    - -

    -getChildren

    -
    -public java.util.List<BvhBone> getChildren()
    -
    -
    -
    -
    -
    -
    - -

    -setChildren

    -
    -public void setChildren(java.util.List<BvhBone> value)
    -
    -
    -
    -
    -
    -
    - -

    -getParent

    -
    -public BvhBone getParent()
    -
    -
    -
    -
    -
    -
    - -

    -setParent

    -
    -public void setParent(BvhBone value)
    -
    -
    -
    -
    -
    -
    - -

    -getChannels

    -
    -public java.util.List<java.lang.String> getChannels()
    -
    -
    -
    -
    -
    -
    - -

    -setChannels

    -
    -public void setChannels(java.util.List<java.lang.String> value)
    -
    -
    -
    -
    -
    -
    - -

    -getNbChannels

    -
    -public int getNbChannels()
    -
    -
    -
    -
    -
    -
    - -

    -setnbChannels

    -
    -public void setnbChannels(int value)
    -
    -
    -
    -
    -
    -
    - -

    -getZrotation

    -
    -public float getZrotation()
    -
    -
    -
    -
    -
    -
    - -

    -setZrotation

    -
    -public void setZrotation(float value)
    -
    -
    -
    -
    -
    -
    - -

    -getYrotation

    -
    -public float getYrotation()
    -
    -
    -
    -
    -
    -
    - -

    -setYrotation

    -
    -public void setYrotation(float value)
    -
    -
    -
    -
    -
    -
    - -

    -getXrotation

    -
    -public float getXrotation()
    -
    -
    -
    -
    -
    -
    - -

    -setXrotation

    -
    -public void setXrotation(float value)
    -
    -
    -
    -
    -
    -
    - -

    -getZposition

    -
    -public float getZposition()
    -
    -
    -
    -
    -
    -
    - -

    -setZposition

    -
    -public void setZposition(float value)
    -
    -
    -
    -
    -
    -
    - -

    -getYposition

    -
    -public float getYposition()
    -
    -
    -
    -
    -
    -
    - -

    -setYposition

    -
    -public void setYposition(float value)
    -
    -
    -
    -
    -
    -
    - -

    -getXposition

    -
    -public float getXposition()
    -
    -
    -
    -
    -
    -
    - -

    -setXposition

    -
    -public void setXposition(float value)
    -
    -
    -
    -
    -
    -
    - -

    -getEndOffsetZ

    -
    -public float getEndOffsetZ()
    -
    -
    -
    -
    -
    -
    - -

    -setEndOffsetZ

    -
    -public void setEndOffsetZ(float value)
    -
    -
    -
    -
    -
    -
    - -

    -getEndOffsetY

    -
    -public float getEndOffsetY()
    -
    -
    -
    -
    -
    -
    - -

    -setEndOffsetY

    -
    -public void setEndOffsetY(float value)
    -
    -
    -
    -
    -
    -
    - -

    -getEndOffsetX

    -
    -public float getEndOffsetX()
    -
    -
    -
    -
    -
    -
    - -

    -setEndOffsetX

    -
    -public void setEndOffsetX(float value)
    -
    -
    -
    -
    -
    -
    - -

    -getOffsetZ

    -
    -public float getOffsetZ()
    -
    -
    -
    -
    -
    -
    - -

    -setOffsetZ

    -
    -public void setOffsetZ(float value)
    -
    -
    -
    -
    -
    -
    - -

    -getOffsetY

    -
    -public float getOffsetY()
    -
    -
    -
    -
    -
    -
    - -

    -setOffsetY

    -
    -public void setOffsetY(float value)
    -
    -
    -
    -
    -
    -
    - -

    -getOffsetX

    -
    -public float getOffsetX()
    -
    -
    -
    -
    -
    -
    - -

    -setOffsetX

    -
    -public void setOffsetX(float value)
    -
    -
    -
    -
    -
    -
    - -

    -setAbsPosition

    -
    -public void setAbsPosition(processing.core.PVector pos)
    -
    -
    -
    -
    -
    -
    - -

    -getAbsPosition

    -
    -public processing.core.PVector getAbsPosition()
    -
    -
    -
    -
    -
    -
    - -

    -setAbsEndPosition

    -
    -public void setAbsEndPosition(processing.core.PVector pos)
    -
    -
    -
    -
    -
    -
    - -

    -getAbsEndPosition

    -
    -public processing.core.PVector getAbsEndPosition()
    -
    -
    -
    -
    -
    +
  • +
    +

    Method Details

    +
      +
    • +
      +

      toString

      +
      public String toString()
      +
      +
      Overrides:
      +
      toString in class Object
      +
      +
      +
    • +
    • +
      +

      structureToString

      +
      public String structureToString()
      +
      +
    • +
    • +
      +

      structureToString

      +
      public String structureToString(int __indent)
      +
      +
    • +
    • +
      +

      getName

      +
      public String getName()
      +
      +
    • +
    • +
      +

      setName

      +
      public void setName(String value)
      +
      +
    • +
    • +
      +

      isRoot

      +
      public Boolean isRoot()
      +
      +
    • +
    • +
      +

      hasChildren

      +
      public Boolean hasChildren()
      +
      +
    • +
    • +
      +

      getChildren

      +
      public List<BvhBone> getChildren()
      +
      +
    • +
    • +
      +

      setChildren

      +
      public void setChildren(List<BvhBone> value)
      +
      +
    • +
    • +
      +

      getParent

      +
      public BvhBone getParent()
      +
      +
    • +
    • +
      +

      setParent

      +
      public void setParent(BvhBone value)
      +
      +
    • +
    • +
      +

      getChannels

      +
      public List<String> getChannels()
      +
      +
    • +
    • +
      +

      setChannels

      +
      public void setChannels(List<String> value)
      +
      +
    • +
    • +
      +

      getNbChannels

      +
      public int getNbChannels()
      +
      +
    • +
    • +
      +

      setnbChannels

      +
      public void setnbChannels(int value)
      +
      +
    • +
    • +
      +

      getZrotation

      +
      public float getZrotation()
      +
      +
    • +
    • +
      +

      setZrotation

      +
      public void setZrotation(float value)
      +
      +
    • +
    • +
      +

      getYrotation

      +
      public float getYrotation()
      +
      +
    • +
    • +
      +

      setYrotation

      +
      public void setYrotation(float value)
      +
      +
    • +
    • +
      +

      getXrotation

      +
      public float getXrotation()
      +
      +
    • +
    • +
      +

      setXrotation

      +
      public void setXrotation(float value)
      +
      +
    • +
    • +
      +

      getZposition

      +
      public float getZposition()
      +
      +
    • +
    • +
      +

      setZposition

      +
      public void setZposition(float value)
      +
      +
    • +
    • +
      +

      getYposition

      +
      public float getYposition()
      +
      +
    • +
    • +
      +

      setYposition

      +
      public void setYposition(float value)
      +
      +
    • +
    • +
      +

      getXposition

      +
      public float getXposition()
      +
      +
    • +
    • +
      +

      setXposition

      +
      public void setXposition(float value)
      +
      +
    • +
    • +
      +

      getEndOffsetZ

      +
      public float getEndOffsetZ()
      +
      +
    • +
    • +
      +

      setEndOffsetZ

      +
      public void setEndOffsetZ(float value)
      +
      +
    • +
    • +
      +

      getEndOffsetY

      +
      public float getEndOffsetY()
      +
      +
    • +
    • +
      +

      setEndOffsetY

      +
      public void setEndOffsetY(float value)
      +
      +
    • +
    • +
      +

      getEndOffsetX

      +
      public float getEndOffsetX()
      +
      +
    • +
    • +
      +

      setEndOffsetX

      +
      public void setEndOffsetX(float value)
      +
      +
    • +
    • +
      +

      getOffsetZ

      +
      public float getOffsetZ()
      +
      +
    • +
    • +
      +

      setOffsetZ

      +
      public void setOffsetZ(float value)
      +
      +
    • +
    • +
      +

      getOffsetY

      +
      public float getOffsetY()
      +
      +
    • +
    • +
      +

      setOffsetY

      +
      public void setOffsetY(float value)
      +
      +
    • +
    • +
      +

      getOffsetX

      +
      public float getOffsetX()
      +
      +
    • +
    • +
      +

      setOffsetX

      +
      public void setOffsetX(float value)
      +
      +
    • +
    • +
      +

      setAbsPosition

      +
      public void setAbsPosition(processing.core.PVector pos)
      +
      +
    • +
    • +
      +

      getAbsPosition

      +
      public processing.core.PVector getAbsPosition()
      +
      +
    • +
    • +
      +

      setAbsEndPosition

      +
      public void setAbsEndPosition(processing.core.PVector pos)
      +
      +
    • +
    • +
      +

      getAbsEndPosition

      +
      public processing.core.PVector getAbsEndPosition()
      +
      +
    • +
    +
    +
  • +
+
-
- - - - - - - - - - - - - - - - - - - -
- -
- - - -
- - - +
+ +
+
+ + diff --git a/p5f_sample/lib/doc/com/rhizomatiks/bvh/BvhParser.html b/p5f_sample/lib/doc/com/rhizomatiks/bvh/BvhParser.html index 48d5609..8342d0b 100644 --- a/p5f_sample/lib/doc/com/rhizomatiks/bvh/BvhParser.html +++ b/p5f_sample/lib/doc/com/rhizomatiks/bvh/BvhParser.html @@ -1,446 +1,339 @@ - - - - - - -BvhParser - - - - - - - - - - - - -
- - + + + + +BvhParser (BVHParser for example-processing 1.0-SNAPSHOT API) + + + + + + + + + + + + + + +
+ +
+
-

- -com.rhizomatiks.bvh -
-NX BvhParser

-
-java.lang.Object
-  ʂg com.rhizomatiks.bvh.BvhParser
-
-
-
-
public class BvhParser
extends java.lang.Object
- - -

-


- -

- +

+ +

Class BvhParser

+
+
java.lang.Object +
com.rhizomatiks.bvh.BvhParser
+
+
+
+
public class BvhParser +extends Object
+
+
+
    - - - - - - - - - -
    -RXgN^̊Tv
    BvhParser() - -
    -           
    -  +
  • +
    +

    Constructor Summary

    +
    Constructors
    +
    +
    Constructor
    +
    Description
    + +
     
    +
    +
    +
  • - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -\bh̊Tv
    - java.util.List<BvhBone>getBones() - -
    -          get bones list
    - java.lang.BooleangetMotionLoop() - -
    -          if set to True motion will loop at end
    - intgetNbFrames() - -
    -          get frame total
    - voidinit() - -
    -          call before parse BVH +
  • +
    +

    Method Summary

    +
    +
    +
    +
    +
    Modifier and Type
    +
    Method
    +
    Description
    + + +
    +
    get bones list
    +
    +
    int
    + +
    +
    get the currently selected frame
    +
    +
    float
    + +
    +
    get the duration of one frame in seconds
    +
    + + +
    +
    if set to True motion will loop at end
    +
    +
    int
    + +
    +
    get frame total
    +
    +
    void
    + +
    +
    call before parse BVH create array instance - and setloopstatus true
  • - voidmoveFrameTo(int __index) - -
    -          go to the frame at index
    - voidmoveMsTo(int mills) - -
    -          go to millisecond of the BVH
    - voidparse(java.lang.String[] srces) - -
    -           
    - voidsetMotionLoop(java.lang.Boolean value) - -
    -          set Loop state
    - java.lang.StringtoStr() - -
    -          to string
    - voidupdate() - -
    -          update bone position and rotation
    - - - - - - - -
    NX java.lang.Object pꂽ\bh
    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    -  -

    - + and setloopstatus true

+
+
void
+
moveFrameTo(int __index)
+
+
go to the frame at index
+
+
void
+
moveMsTo(int mills)
+
+
go to millisecond of the BVH
+
+
void
+
parse(String[] srces)
+
 
+
void
+
setMotionLoop(boolean value)
+
+
set Loop state
+
+
void
+
setMotionLoop(Boolean value)
+
+
set Loop state
+
+
String
+
toStr()
+
+
to string
+
+
void
+
update()
+
+
update bone position and rotation
+
+
protected void
+
update(BvhBone bone)
+
 
+ + + +
+

Methods inherited from class java.lang.Object

+clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
+ + + + +
+
+ +
  • +
    +

    moveFrameTo

    +
    public void moveFrameTo(int __index)
    +
    go to the frame at index
    +
    +
  • +
  • +
    +

    moveMsTo

    +
    public void moveMsTo(int mills)
    +
    go to millisecond of the BVH
    +
    +
    Parameters:
    +
    mills - millisecond
    +
    +
    +
  • +
  • +
    +

    update

    +
    public void update()
    +
    update bone position and rotation
    +
    +
  • +
  • +
    +

    update

    +
    protected void update(BvhBone bone)
    +
    +
  • +
  • +
    +

    parse

    +
    public void parse(String[] srces)
    +
    +
  • + + + + + -
    - - - - - - - - - - - - - - - - - - - -
    - -
    - - - -
    - - - + + + + + + diff --git a/p5f_sample/lib/doc/com/rhizomatiks/bvh/class-use/BvhBone.html b/p5f_sample/lib/doc/com/rhizomatiks/bvh/class-use/BvhBone.html index 3fc0884..4fd3862 100644 --- a/p5f_sample/lib/doc/com/rhizomatiks/bvh/class-use/BvhBone.html +++ b/p5f_sample/lib/doc/com/rhizomatiks/bvh/class-use/BvhBone.html @@ -1,235 +1,122 @@ - - - - - - -NX com.rhizomatiks.bvh.BvhBone ̎gp - - - - - - - - - - - - -
    - - + + + + +Uses of Class com.rhizomatiks.bvh.BvhBone (BVHParser for example-processing 1.0-SNAPSHOT API) + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Uses of Class
    com.rhizomatiks.bvh.BvhBone

    +
    +
    + +
    +
    + +
    +
    + + diff --git a/p5f_sample/lib/doc/com/rhizomatiks/bvh/class-use/BvhParser.html b/p5f_sample/lib/doc/com/rhizomatiks/bvh/class-use/BvhParser.html index 0c05267..846d8e8 100644 --- a/p5f_sample/lib/doc/com/rhizomatiks/bvh/class-use/BvhParser.html +++ b/p5f_sample/lib/doc/com/rhizomatiks/bvh/class-use/BvhParser.html @@ -1,142 +1,60 @@ - - - - - - -NX com.rhizomatiks.bvh.BvhParser ̎gp - - - - - - - - - - - - -
    - - + + + + +Uses of Class com.rhizomatiks.bvh.BvhParser (BVHParser for example-processing 1.0-SNAPSHOT API) + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Uses of Class
    com.rhizomatiks.bvh.BvhParser

    +
    +No usage of com.rhizomatiks.bvh.BvhParser
    + +
    +
    + + diff --git a/p5f_sample/lib/doc/com/rhizomatiks/bvh/package-frame.html b/p5f_sample/lib/doc/com/rhizomatiks/bvh/package-frame.html deleted file mode 100644 index a79c403..0000000 --- a/p5f_sample/lib/doc/com/rhizomatiks/bvh/package-frame.html +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - -com.rhizomatiks.bvh - - - - - - - - - - - -com.rhizomatiks.bvh - - - - -
    -NX  - -
    -BvhBone -
    -BvhParser
    - - - - diff --git a/p5f_sample/lib/doc/com/rhizomatiks/bvh/package-summary.html b/p5f_sample/lib/doc/com/rhizomatiks/bvh/package-summary.html index 91907e5..59c564a 100644 --- a/p5f_sample/lib/doc/com/rhizomatiks/bvh/package-summary.html +++ b/p5f_sample/lib/doc/com/rhizomatiks/bvh/package-summary.html @@ -1,159 +1,87 @@ - - - - - - -com.rhizomatiks.bvh - - - - - - - - - - - - -
    - - + + + + +com.rhizomatiks.bvh (BVHParser for example-processing 1.0-SNAPSHOT API) + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Package com.rhizomatiks.bvh

    +
    +
    +
    package com.rhizomatiks.bvh
    +
    + +
    +
    + +
    +
    + + diff --git a/p5f_sample/lib/doc/com/rhizomatiks/bvh/package-tree.html b/p5f_sample/lib/doc/com/rhizomatiks/bvh/package-tree.html index a9dc789..879ae83 100644 --- a/p5f_sample/lib/doc/com/rhizomatiks/bvh/package-tree.html +++ b/p5f_sample/lib/doc/com/rhizomatiks/bvh/package-tree.html @@ -1,148 +1,71 @@ - - - - - - -com.rhizomatiks.bvh NXKw - - - - - - - - - - - - -
    - - + + + + +com.rhizomatiks.bvh Class Hierarchy (BVHParser for example-processing 1.0-SNAPSHOT API) + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Hierarchy For Package com.rhizomatiks.bvh

    +
    +
    +

    Class Hierarchy

    + +
    +
    + +
    +
    + + diff --git a/p5f_sample/lib/doc/com/rhizomatiks/bvh/package-use.html b/p5f_sample/lib/doc/com/rhizomatiks/bvh/package-use.html index 2984566..057324f 100644 --- a/p5f_sample/lib/doc/com/rhizomatiks/bvh/package-use.html +++ b/p5f_sample/lib/doc/com/rhizomatiks/bvh/package-use.html @@ -1,155 +1,75 @@ - - - - - - -pbP[W com.rhizomatiks.bvh ̎gp - - - - - - - - - - - - -
    - - + + + + +Uses of Package com.rhizomatiks.bvh (BVHParser for example-processing 1.0-SNAPSHOT API) + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Uses of Package
    com.rhizomatiks.bvh

    +
    +
    + +
    +
    + +
    +
    + + diff --git a/p5f_sample/lib/doc/constant-values.html b/p5f_sample/lib/doc/constant-values.html deleted file mode 100644 index 74f3f3b..0000000 --- a/p5f_sample/lib/doc/constant-values.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - -萔tB[hl - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - -
    - -
    - - - -
    -
    -

    -萔tB[hl

    -
    -
    -Rec - -
    - - - - - - - - - - - - - - - -
    - -
    - - - -
    - - - diff --git a/p5f_sample/lib/doc/deprecated-list.html b/p5f_sample/lib/doc/deprecated-list.html deleted file mode 100644 index 45faa5b..0000000 --- a/p5f_sample/lib/doc/deprecated-list.html +++ /dev/null @@ -1,144 +0,0 @@ - - - - - - -񐄏 API ̃Xg - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - -
    - -
    - - - -
    -
    -

    -ĂȂ API

    -
    -
    -Rec - -
    - - - - - - - - - - - - - - - -
    - -
    - - - -
    - - - diff --git a/p5f_sample/lib/doc/package-list b/p5f_sample/lib/doc/element-list similarity index 100% rename from p5f_sample/lib/doc/package-list rename to p5f_sample/lib/doc/element-list diff --git a/p5f_sample/lib/doc/help-doc.html b/p5f_sample/lib/doc/help-doc.html index d864385..0c11d2d 100644 --- a/p5f_sample/lib/doc/help-doc.html +++ b/p5f_sample/lib/doc/help-doc.html @@ -1,215 +1,179 @@ - - - - - - -API wv - - - - - - - - - - - - -
    - - + + + + +API Help (BVHParser for example-processing 1.0-SNAPSHOT API) + + + + + + + + + + + + + + +
    + +
    +
    +

    JavaDoc Help

    + +
    +
    +

    Navigation

    +Starting from the Overview page, you can browse the documentation using the links in each page, and in the navigation bar at the top of each page. The Index and Search box allow you to navigate to specific declarations and summary pages, including: All Packages, All Classes and Interfaces + +
    +
    +
    +

    Kinds of Pages

    +The following sections describe the different kinds of pages in this collection. +
    +

    Package

    +

    Each package has a page that contains a list of its classes and interfaces, with a summary for each. These pages may contain the following categories:

    +
      +
    • Interfaces
    • +
    • Classes
    • +
    • Enum Classes
    • +
    • Exceptions
    • +
    • Errors
    • +
    • Annotation Interfaces
    • +
    +
    +
    +

    Class or Interface

    +

    Each class, interface, nested class and nested interface has its own separate page. Each of these pages has three sections consisting of a declaration and description, member summary tables, and detailed member descriptions. Entries in each of these sections are omitted if they are empty or not applicable.

    +
      +
    • Class Inheritance Diagram
    • +
    • Direct Subclasses
    • +
    • All Known Subinterfaces
    • +
    • All Known Implementing Classes
    • +
    • Class or Interface Declaration
    • +
    • Class or Interface Description
    • +
    +
    +
      +
    • Nested Class Summary
    • +
    • Enum Constant Summary
    • +
    • Field Summary
    • +
    • Property Summary
    • +
    • Constructor Summary
    • +
    • Method Summary
    • +
    • Required Element Summary
    • +
    • Optional Element Summary
    • +
    +
    +
      +
    • Enum Constant Details
    • +
    • Field Details
    • +
    • Property Details
    • +
    • Constructor Details
    • +
    • Method Details
    • +
    • Element Details
    • +
    +

    Note: Annotation interfaces have required and optional elements, but not methods. Only enum classes have enum constants. The components of a record class are displayed as part of the declaration of the record class. Properties are a feature of JavaFX.

    +

    The summary entries are alphabetical, while the detailed descriptions are in the order they appear in the source code. This preserves the logical groupings established by the programmer.

    +
    +
    +

    Other Files

    +

    Packages and modules may contain pages with additional information related to the declarations nearby.

    +
    +
    +

    Use

    +

    Each documented package, class and interface has its own Use page. This page describes what packages, classes, methods, constructors and fields use any part of the given class or package. Given a class or interface A, its Use page includes subclasses of A, fields declared as A, methods that return A, and methods and constructors with parameters of type A. You can access this page by first going to the package, class or interface, then clicking on the USE link in the navigation bar.

    +
    +
    +

    Tree (Class Hierarchy)

    +

    There is a Class Hierarchy page for all packages, plus a hierarchy for each package. Each hierarchy page contains a list of classes and a list of interfaces. Classes are organized by inheritance structure starting with java.lang.Object. Interfaces do not inherit from java.lang.Object.

    +
      +
    • When viewing the Overview page, clicking on TREE displays the hierarchy for all packages.
    • +
    • When viewing a particular package, class or interface page, clicking on TREE displays the hierarchy for only that package.
    • +
    +
    +
    +

    All Packages

    +

    The All Packages page contains an alphabetic index of all packages contained in the documentation.

    +
    +
    +

    All Classes and Interfaces

    +

    The All Classes and Interfaces page contains an alphabetic index of all classes and interfaces contained in the documentation, including annotation interfaces, enum classes, and record classes.

    +
    +
    +

    Index

    +

    The Index contains an alphabetic index of all classes, interfaces, constructors, methods, and fields in the documentation, as well as summary pages such as All Packages, All Classes and Interfaces.

    +
    +
    +
    +This help file applies to API documentation generated by the standard doclet.
    + +
    +
    + + diff --git a/p5f_sample/lib/doc/index-all.html b/p5f_sample/lib/doc/index-all.html new file mode 100644 index 0000000..0025e9a --- /dev/null +++ b/p5f_sample/lib/doc/index-all.html @@ -0,0 +1,252 @@ + + + + +Index (BVHParser for example-processing 1.0-SNAPSHOT API) + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Index

    +
    +A B C G H I M P S T U 
    All Classes and Interfaces|All Packages +

    A

    +
    +
    absEndPos - Variable in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    absPos - Variable in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    +

    B

    +
    +
    BvhBone - Class in com.rhizomatiks.bvh
    +
     
    +
    BvhBone() - Constructor for class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    BvhBone(BvhBone) - Constructor for class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    BvhParser - Class in com.rhizomatiks.bvh
    +
     
    +
    BvhParser() - Constructor for class com.rhizomatiks.bvh.BvhParser
    +
     
    +
    +

    C

    +
    +
    com.rhizomatiks.bvh - package com.rhizomatiks.bvh
    +
     
    +
    +

    G

    +
    +
    getAbsEndPosition() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    getAbsPosition() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    getBones() - Method in class com.rhizomatiks.bvh.BvhParser
    +
    +
    get bones list
    +
    +
    getChannels() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    getChildren() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    getCurrentFrame() - Method in class com.rhizomatiks.bvh.BvhParser
    +
    +
    get the currently selected frame
    +
    +
    getEndOffsetX() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    getEndOffsetY() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    getEndOffsetZ() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    getFrameTime() - Method in class com.rhizomatiks.bvh.BvhParser
    +
    +
    get the duration of one frame in seconds
    +
    +
    getMotionLoop() - Method in class com.rhizomatiks.bvh.BvhParser
    +
    +
    if set to True motion will loop at end
    +
    +
    getName() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    getNbChannels() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    getNbFrames() - Method in class com.rhizomatiks.bvh.BvhParser
    +
    +
    get frame total
    +
    +
    getOffsetX() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    getOffsetY() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    getOffsetZ() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    getParent() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    getXposition() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    getXrotation() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    getYposition() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    getYrotation() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    getZposition() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    getZrotation() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    global_matrix - Variable in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    +

    H

    +
    +
    hasChildren() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    +

    I

    +
    +
    init() - Method in class com.rhizomatiks.bvh.BvhParser
    +
    +
    call before parse BVH + create array instance + and setloopstatus true
    +
    +
    isRoot() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    +

    M

    +
    +
    moveFrameTo(int) - Method in class com.rhizomatiks.bvh.BvhParser
    +
    +
    go to the frame at index
    +
    +
    moveMsTo(int) - Method in class com.rhizomatiks.bvh.BvhParser
    +
    +
    go to millisecond of the BVH
    +
    +
    +

    P

    +
    +
    parse(String[]) - Method in class com.rhizomatiks.bvh.BvhParser
    +
     
    +
    +

    S

    +
    +
    setAbsEndPosition(PVector) - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    setAbsPosition(PVector) - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    setChannels(List<String>) - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    setChildren(List<BvhBone>) - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    setEndOffsetX(float) - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    setEndOffsetY(float) - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    setEndOffsetZ(float) - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    setMotionLoop(boolean) - Method in class com.rhizomatiks.bvh.BvhParser
    +
    +
    set Loop state
    +
    +
    setMotionLoop(Boolean) - Method in class com.rhizomatiks.bvh.BvhParser
    +
    +
    set Loop state
    +
    +
    setName(String) - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    setnbChannels(int) - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    setOffsetX(float) - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    setOffsetY(float) - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    setOffsetZ(float) - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    setParent(BvhBone) - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    setXposition(float) - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    setXrotation(float) - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    setYposition(float) - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    setYrotation(float) - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    setZposition(float) - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    setZrotation(float) - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    structureToString() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    structureToString(int) - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    +

    T

    +
    +
    toStr() - Method in class com.rhizomatiks.bvh.BvhParser
    +
    +
    to string
    +
    +
    toString() - Method in class com.rhizomatiks.bvh.BvhBone
    +
     
    +
    +

    U

    +
    +
    update() - Method in class com.rhizomatiks.bvh.BvhParser
    +
    +
    update bone position and rotation
    +
    +
    update(BvhBone) - Method in class com.rhizomatiks.bvh.BvhParser
    +
     
    +
    +A B C G H I M P S T U 
    All Classes and Interfaces|All Packages
    + +
    +
    + + diff --git a/p5f_sample/lib/doc/index-files/index-1.html b/p5f_sample/lib/doc/index-files/index-1.html deleted file mode 100644 index 11c7d58..0000000 --- a/p5f_sample/lib/doc/index-files/index-1.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - -A ̍ - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    -

    -A

    -
    -
    absEndPos - -NX com.rhizomatiks.bvh.BvhBone ̕ϐ -
      -
    absPos - -NX com.rhizomatiks.bvh.BvhBone ̕ϐ -
      -
    -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    - - - diff --git a/p5f_sample/lib/doc/index-files/index-10.html b/p5f_sample/lib/doc/index-files/index-10.html deleted file mode 100644 index 4775c47..0000000 --- a/p5f_sample/lib/doc/index-files/index-10.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - -T ̍ - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    -

    -T

    -
    -
    toStr() - -NX com.rhizomatiks.bvh.BvhParser ̃\bh -
    to string -
    toString() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    - - - diff --git a/p5f_sample/lib/doc/index-files/index-11.html b/p5f_sample/lib/doc/index-files/index-11.html deleted file mode 100644 index c2bf7f3..0000000 --- a/p5f_sample/lib/doc/index-files/index-11.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - -U ̍ - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    -

    -U

    -
    -
    update() - -NX com.rhizomatiks.bvh.BvhParser ̃\bh -
    update bone position and rotation -
    -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    - - - diff --git a/p5f_sample/lib/doc/index-files/index-2.html b/p5f_sample/lib/doc/index-files/index-2.html deleted file mode 100644 index 7263eb0..0000000 --- a/p5f_sample/lib/doc/index-files/index-2.html +++ /dev/null @@ -1,149 +0,0 @@ - - - - - - -B ̍ - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    -

    -B

    -
    -
    BvhBone - com.rhizomatiks.bvh NX
     
    BvhBone(BvhBone) - -NX com.rhizomatiks.bvh.BvhBone ̃RXgN^ -
      -
    BvhBone() - -NX com.rhizomatiks.bvh.BvhBone ̃RXgN^ -
      -
    BvhParser - com.rhizomatiks.bvh NX
     
    BvhParser() - -NX com.rhizomatiks.bvh.BvhParser ̃RXgN^ -
      -
    -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    - - - diff --git a/p5f_sample/lib/doc/index-files/index-3.html b/p5f_sample/lib/doc/index-files/index-3.html deleted file mode 100644 index 188174d..0000000 --- a/p5f_sample/lib/doc/index-files/index-3.html +++ /dev/null @@ -1,140 +0,0 @@ - - - - - - -C ̍ - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    -

    -C

    -
    -
    com.rhizomatiks.bvh - pbP[W com.rhizomatiks.bvh
     
    -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    - - - diff --git a/p5f_sample/lib/doc/index-files/index-4.html b/p5f_sample/lib/doc/index-files/index-4.html deleted file mode 100644 index c62f13e..0000000 --- a/p5f_sample/lib/doc/index-files/index-4.html +++ /dev/null @@ -1,209 +0,0 @@ - - - - - - -G ̍ - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    -

    -G

    -
    -
    getAbsEndPosition() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    getAbsPosition() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    getBones() - -NX com.rhizomatiks.bvh.BvhParser ̃\bh -
    get bones list -
    getChannels() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    getChildren() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    getEndOffsetX() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    getEndOffsetY() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    getEndOffsetZ() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    getMotionLoop() - -NX com.rhizomatiks.bvh.BvhParser ̃\bh -
    if set to True motion will loop at end -
    getName() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    getNbChannels() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    getNbFrames() - -NX com.rhizomatiks.bvh.BvhParser ̃\bh -
    get frame total -
    getOffsetX() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    getOffsetY() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    getOffsetZ() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    getParent() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    getXposition() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    getXrotation() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    getYposition() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    getYrotation() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    getZposition() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    getZrotation() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    global_matrix - -NX com.rhizomatiks.bvh.BvhBone ̕ϐ -
      -
    -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    - - - diff --git a/p5f_sample/lib/doc/index-files/index-5.html b/p5f_sample/lib/doc/index-files/index-5.html deleted file mode 100644 index a43f889..0000000 --- a/p5f_sample/lib/doc/index-files/index-5.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - -H ̍ - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    -

    -H

    -
    -
    hasChildren() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    - - - diff --git a/p5f_sample/lib/doc/index-files/index-6.html b/p5f_sample/lib/doc/index-files/index-6.html deleted file mode 100644 index d52451f..0000000 --- a/p5f_sample/lib/doc/index-files/index-6.html +++ /dev/null @@ -1,148 +0,0 @@ - - - - - - -I ̍ - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    -

    -I

    -
    -
    init() - -NX com.rhizomatiks.bvh.BvhParser ̃\bh -
    call before parse BVH - create array instance - and setloopstatus true -
    isRoot() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    - - - diff --git a/p5f_sample/lib/doc/index-files/index-7.html b/p5f_sample/lib/doc/index-files/index-7.html deleted file mode 100644 index 11f3ce4..0000000 --- a/p5f_sample/lib/doc/index-files/index-7.html +++ /dev/null @@ -1,146 +0,0 @@ - - - - - - -M ̍ - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    -

    -M

    -
    -
    moveFrameTo(int) - -NX com.rhizomatiks.bvh.BvhParser ̃\bh -
    go to the frame at index -
    moveMsTo(int) - -NX com.rhizomatiks.bvh.BvhParser ̃\bh -
    go to millisecond of the BVH -
    -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    - - - diff --git a/p5f_sample/lib/doc/index-files/index-8.html b/p5f_sample/lib/doc/index-files/index-8.html deleted file mode 100644 index fa4eabc..0000000 --- a/p5f_sample/lib/doc/index-files/index-8.html +++ /dev/null @@ -1,143 +0,0 @@ - - - - - - -P ̍ - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    -

    -P

    -
    -
    parse(String[]) - -NX com.rhizomatiks.bvh.BvhParser ̃\bh -
      -
    -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    - - - diff --git a/p5f_sample/lib/doc/index-files/index-9.html b/p5f_sample/lib/doc/index-files/index-9.html deleted file mode 100644 index a0fdee5..0000000 --- a/p5f_sample/lib/doc/index-files/index-9.html +++ /dev/null @@ -1,206 +0,0 @@ - - - - - - -S ̍ - - - - - - - - - - - - -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    -

    -S

    -
    -
    setAbsEndPosition(PVector) - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    setAbsPosition(PVector) - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    setChannels(List<String>) - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    setChildren(List<BvhBone>) - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    setEndOffsetX(float) - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    setEndOffsetY(float) - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    setEndOffsetZ(float) - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    setMotionLoop(Boolean) - -NX com.rhizomatiks.bvh.BvhParser ̃\bh -
    set Loop state -
    setName(String) - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    setnbChannels(int) - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    setOffsetX(float) - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    setOffsetY(float) - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    setOffsetZ(float) - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    setParent(BvhBone) - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    setXposition(float) - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    setXrotation(float) - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    setYposition(float) - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    setYrotation(float) - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    setZposition(float) - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    setZrotation(float) - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    structureToString() - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    structureToString(int) - -NX com.rhizomatiks.bvh.BvhBone ̃\bh -
      -
    -
    - - - - - - - - - - - - - - - -
    - -
    - - - -A B C G H I M P S T U
    - - - diff --git a/p5f_sample/lib/doc/index.html b/p5f_sample/lib/doc/index.html index 345fa1c..09e6ce1 100644 --- a/p5f_sample/lib/doc/index.html +++ b/p5f_sample/lib/doc/index.html @@ -1,36 +1,25 @@ - - - - - - -ꂽhLg (^CgȂ) - - - - - - - - -<H2> -t[֘Ǎx</H2> - -<P> -̃hLg̓t[@\gĕ\悤ɍĂ܂Bt[\łȂ Web NCAg̏ꍇɂ̃bZ[W\܂B -<BR> -N<A HREF="com/rhizomatiks/bvh/package-summary.html">t[Ȃ̃o[W</A> - - - + + + + +BVHParser for example-processing 1.0-SNAPSHOT API + + + + + + + + + + +
    + +

    com/rhizomatiks/bvh/package-summary.html

    +
    + + diff --git a/p5f_sample/lib/doc/jquery-ui.overrides.css b/p5f_sample/lib/doc/jquery-ui.overrides.css new file mode 100644 index 0000000..facf852 --- /dev/null +++ b/p5f_sample/lib/doc/jquery-ui.overrides.css @@ -0,0 +1,35 @@ +/* + * Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +.ui-state-active, +.ui-widget-content .ui-state-active, +.ui-widget-header .ui-state-active, +a.ui-button:active, +.ui-button:active, +.ui-button.ui-state-active:hover { + /* Overrides the color of selection used in jQuery UI */ + background: #F8981D; + border: 1px solid #F8981D; +} diff --git a/p5f_sample/lib/doc/legal/ADDITIONAL_LICENSE_INFO b/p5f_sample/lib/doc/legal/ADDITIONAL_LICENSE_INFO new file mode 100644 index 0000000..1688713 --- /dev/null +++ b/p5f_sample/lib/doc/legal/ADDITIONAL_LICENSE_INFO @@ -0,0 +1,37 @@ + ADDITIONAL INFORMATION ABOUT LICENSING + +Certain files distributed by Oracle America, Inc. and/or its affiliates are +subject to the following clarification and special exception to the GPLv2, +based on the GNU Project exception for its Classpath libraries, known as the +GNU Classpath Exception. + +Note that Oracle includes multiple, independent programs in this software +package. Some of those programs are provided under licenses deemed +incompatible with the GPLv2 by the Free Software Foundation and others. +For example, the package includes programs licensed under the Apache +License, Version 2.0 and may include FreeType. Such programs are licensed +to you under their original licenses. + +Oracle facilitates your further distribution of this package by adding the +Classpath Exception to the necessary parts of its GPLv2 code, which permits +you to use that code in combination with other independent modules not +licensed under the GPLv2. However, note that this would not permit you to +commingle code under an incompatible license with Oracle's GPLv2 licensed +code by, for example, cutting and pasting such code into a file also +containing Oracle's GPLv2 licensed code and then distributing the result. + +Additionally, if you were to remove the Classpath Exception from any of the +files to which it applies and distribute the result, you would likely be +required to license some or all of the other code in that distribution under +the GPLv2 as well, and since the GPLv2 is incompatible with the license terms +of some items included in the distribution by Oracle, removing the Classpath +Exception could therefore effectively compromise your ability to further +distribute the package. + +Failing to distribute notices associated with some files may also create +unexpected legal consequences. + +Proceed with caution and we recommend that you obtain the advice of a lawyer +skilled in open source matters before removing the Classpath Exception or +making modifications to this package which may subsequently be redistributed +and/or involve the use of third party software. diff --git a/p5f_sample/lib/doc/legal/ASSEMBLY_EXCEPTION b/p5f_sample/lib/doc/legal/ASSEMBLY_EXCEPTION new file mode 100644 index 0000000..065b8d9 --- /dev/null +++ b/p5f_sample/lib/doc/legal/ASSEMBLY_EXCEPTION @@ -0,0 +1,27 @@ + +OPENJDK ASSEMBLY EXCEPTION + +The OpenJDK source code made available by Oracle America, Inc. (Oracle) at +openjdk.java.net ("OpenJDK Code") is distributed under the terms of the GNU +General Public License version 2 +only ("GPL2"), with the following clarification and special exception. + + Linking this OpenJDK Code statically or dynamically with other code + is making a combined work based on this library. Thus, the terms + and conditions of GPL2 cover the whole combination. + + As a special exception, Oracle gives you permission to link this + OpenJDK Code with certain code licensed by Oracle as indicated at + http://openjdk.java.net/legal/exception-modules-2007-05-08.html + ("Designated Exception Modules") to produce an executable, + regardless of the license terms of the Designated Exception Modules, + and to copy and distribute the resulting executable under GPL2, + provided that the Designated Exception Modules continue to be + governed by the licenses under which they were offered by Oracle. + +As such, it allows licensees and sublicensees of Oracle's GPL2 OpenJDK Code +to build an executable that includes those portions of necessary code that +Oracle could not provide under GPL2 (or that Oracle has provided under GPL2 +with the Classpath exception). If you modify or add to the OpenJDK code, +that new GPL2 code may still be combined with Designated Exception Modules +if the new code is made subject to this exception by its copyright holder. diff --git a/p5f_sample/lib/doc/legal/LICENSE b/p5f_sample/lib/doc/legal/LICENSE new file mode 100644 index 0000000..8b400c7 --- /dev/null +++ b/p5f_sample/lib/doc/legal/LICENSE @@ -0,0 +1,347 @@ +The GNU General Public License (GPL) + +Version 2, June 1991 + +Copyright (C) 1989, 1991 Free Software Foundation, Inc. +51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + +Everyone is permitted to copy and distribute verbatim copies of this license +document, but changing it is not allowed. + +Preamble + +The licenses for most software are designed to take away your freedom to share +and change it. By contrast, the GNU General Public License is intended to +guarantee your freedom to share and change free software--to make sure the +software is free for all its users. This General Public License applies to +most of the Free Software Foundation's software and to any other program whose +authors commit to using it. (Some other Free Software Foundation software is +covered by the GNU Library General Public License instead.) You can apply it to +your programs, too. + +When we speak of free software, we are referring to freedom, not price. Our +General Public Licenses are designed to make sure that you have the freedom to +distribute copies of free software (and charge for this service if you wish), +that you receive source code or can get it if you want it, that you can change +the software or use pieces of it in new free programs; and that you know you +can do these things. + +To protect your rights, we need to make restrictions that forbid anyone to deny +you these rights or to ask you to surrender the rights. These restrictions +translate to certain responsibilities for you if you distribute copies of the +software, or if you modify it. + +For example, if you distribute copies of such a program, whether gratis or for +a fee, you must give the recipients all the rights that you have. You must +make sure that they, too, receive or can get the source code. And you must +show them these terms so they know their rights. + +We protect your rights with two steps: (1) copyright the software, and (2) +offer you this license which gives you legal permission to copy, distribute +and/or modify the software. + +Also, for each author's protection and ours, we want to make certain that +everyone understands that there is no warranty for this free software. If the +software is modified by someone else and passed on, we want its recipients to +know that what they have is not the original, so that any problems introduced +by others will not reflect on the original authors' reputations. + +Finally, any free program is threatened constantly by software patents. We +wish to avoid the danger that redistributors of a free program will +individually obtain patent licenses, in effect making the program proprietary. +To prevent this, we have made it clear that any patent must be licensed for +everyone's free use or not licensed at all. + +The precise terms and conditions for copying, distribution and modification +follow. + +TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION + +0. This License applies to any program or other work which contains a notice +placed by the copyright holder saying it may be distributed under the terms of +this General Public License. The "Program", below, refers to any such program +or work, and a "work based on the Program" means either the Program or any +derivative work under copyright law: that is to say, a work containing the +Program or a portion of it, either verbatim or with modifications and/or +translated into another language. (Hereinafter, translation is included +without limitation in the term "modification".) Each licensee is addressed as +"you". + +Activities other than copying, distribution and modification are not covered by +this License; they are outside its scope. The act of running the Program is +not restricted, and the output from the Program is covered only if its contents +constitute a work based on the Program (independent of having been made by +running the Program). Whether that is true depends on what the Program does. + +1. You may copy and distribute verbatim copies of the Program's source code as +you receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice and +disclaimer of warranty; keep intact all the notices that refer to this License +and to the absence of any warranty; and give any other recipients of the +Program a copy of this License along with the Program. + +You may charge a fee for the physical act of transferring a copy, and you may +at your option offer warranty protection in exchange for a fee. + +2. You may modify your copy or copies of the Program or any portion of it, thus +forming a work based on the Program, and copy and distribute such modifications +or work under the terms of Section 1 above, provided that you also meet all of +these conditions: + + a) You must cause the modified files to carry prominent notices stating + that you changed the files and the date of any change. + + b) You must cause any work that you distribute or publish, that in whole or + in part contains or is derived from the Program or any part thereof, to be + licensed as a whole at no charge to all third parties under the terms of + this License. + + c) If the modified program normally reads commands interactively when run, + you must cause it, when started running for such interactive use in the + most ordinary way, to print or display an announcement including an + appropriate copyright notice and a notice that there is no warranty (or + else, saying that you provide a warranty) and that users may redistribute + the program under these conditions, and telling the user how to view a copy + of this License. (Exception: if the Program itself is interactive but does + not normally print such an announcement, your work based on the Program is + not required to print an announcement.) + +These requirements apply to the modified work as a whole. If identifiable +sections of that work are not derived from the Program, and can be reasonably +considered independent and separate works in themselves, then this License, and +its terms, do not apply to those sections when you distribute them as separate +works. But when you distribute the same sections as part of a whole which is a +work based on the Program, the distribution of the whole must be on the terms +of this License, whose permissions for other licensees extend to the entire +whole, and thus to each and every part regardless of who wrote it. + +Thus, it is not the intent of this section to claim rights or contest your +rights to work written entirely by you; rather, the intent is to exercise the +right to control the distribution of derivative or collective works based on +the Program. + +In addition, mere aggregation of another work not based on the Program with the +Program (or with a work based on the Program) on a volume of a storage or +distribution medium does not bring the other work under the scope of this +License. + +3. You may copy and distribute the Program (or a work based on it, under +Section 2) in object code or executable form under the terms of Sections 1 and +2 above provided that you also do one of the following: + + a) Accompany it with the complete corresponding machine-readable source + code, which must be distributed under the terms of Sections 1 and 2 above + on a medium customarily used for software interchange; or, + + b) Accompany it with a written offer, valid for at least three years, to + give any third party, for a charge no more than your cost of physically + performing source distribution, a complete machine-readable copy of the + corresponding source code, to be distributed under the terms of Sections 1 + and 2 above on a medium customarily used for software interchange; or, + + c) Accompany it with the information you received as to the offer to + distribute corresponding source code. (This alternative is allowed only + for noncommercial distribution and only if you received the program in + object code or executable form with such an offer, in accord with + Subsection b above.) + +The source code for a work means the preferred form of the work for making +modifications to it. For an executable work, complete source code means all +the source code for all modules it contains, plus any associated interface +definition files, plus the scripts used to control compilation and installation +of the executable. However, as a special exception, the source code +distributed need not include anything that is normally distributed (in either +source or binary form) with the major components (compiler, kernel, and so on) +of the operating system on which the executable runs, unless that component +itself accompanies the executable. + +If distribution of executable or object code is made by offering access to copy +from a designated place, then offering equivalent access to copy the source +code from the same place counts as distribution of the source code, even though +third parties are not compelled to copy the source along with the object code. + +4. You may not copy, modify, sublicense, or distribute the Program except as +expressly provided under this License. Any attempt otherwise to copy, modify, +sublicense or distribute the Program is void, and will automatically terminate +your rights under this License. However, parties who have received copies, or +rights, from you under this License will not have their licenses terminated so +long as such parties remain in full compliance. + +5. You are not required to accept this License, since you have not signed it. +However, nothing else grants you permission to modify or distribute the Program +or its derivative works. These actions are prohibited by law if you do not +accept this License. Therefore, by modifying or distributing the Program (or +any work based on the Program), you indicate your acceptance of this License to +do so, and all its terms and conditions for copying, distributing or modifying +the Program or works based on it. + +6. Each time you redistribute the Program (or any work based on the Program), +the recipient automatically receives a license from the original licensor to +copy, distribute or modify the Program subject to these terms and conditions. +You may not impose any further restrictions on the recipients' exercise of the +rights granted herein. You are not responsible for enforcing compliance by +third parties to this License. + +7. If, as a consequence of a court judgment or allegation of patent +infringement or for any other reason (not limited to patent issues), conditions +are imposed on you (whether by court order, agreement or otherwise) that +contradict the conditions of this License, they do not excuse you from the +conditions of this License. If you cannot distribute so as to satisfy +simultaneously your obligations under this License and any other pertinent +obligations, then as a consequence you may not distribute the Program at all. +For example, if a patent license would not permit royalty-free redistribution +of the Program by all those who receive copies directly or indirectly through +you, then the only way you could satisfy both it and this License would be to +refrain entirely from distribution of the Program. + +If any portion of this section is held invalid or unenforceable under any +particular circumstance, the balance of the section is intended to apply and +the section as a whole is intended to apply in other circumstances. + +It is not the purpose of this section to induce you to infringe any patents or +other property right claims or to contest validity of any such claims; this +section has the sole purpose of protecting the integrity of the free software +distribution system, which is implemented by public license practices. Many +people have made generous contributions to the wide range of software +distributed through that system in reliance on consistent application of that +system; it is up to the author/donor to decide if he or she is willing to +distribute software through any other system and a licensee cannot impose that +choice. + +This section is intended to make thoroughly clear what is believed to be a +consequence of the rest of this License. + +8. If the distribution and/or use of the Program is restricted in certain +countries either by patents or by copyrighted interfaces, the original +copyright holder who places the Program under this License may add an explicit +geographical distribution limitation excluding those countries, so that +distribution is permitted only in or among countries not thus excluded. In +such case, this License incorporates the limitation as if written in the body +of this License. + +9. The Free Software Foundation may publish revised and/or new versions of the +General Public License from time to time. Such new versions will be similar in +spirit to the present version, but may differ in detail to address new problems +or concerns. + +Each version is given a distinguishing version number. If the Program +specifies a version number of this License which applies to it and "any later +version", you have the option of following the terms and conditions either of +that version or of any later version published by the Free Software Foundation. +If the Program does not specify a version number of this License, you may +choose any version ever published by the Free Software Foundation. + +10. If you wish to incorporate parts of the Program into other free programs +whose distribution conditions are different, write to the author to ask for +permission. For software which is copyrighted by the Free Software Foundation, +write to the Free Software Foundation; we sometimes make exceptions for this. +Our decision will be guided by the two goals of preserving the free status of +all derivatives of our free software and of promoting the sharing and reuse of +software generally. + +NO WARRANTY + +11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR +THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE +STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE +PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, +INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND +PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, +YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + +12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL +ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE +PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR +INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA +BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A +FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER +OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. + +END OF TERMS AND CONDITIONS + +How to Apply These Terms to Your New Programs + +If you develop a new program, and you want it to be of the greatest possible +use to the public, the best way to achieve this is to make it free software +which everyone can redistribute and change under these terms. + +To do so, attach the following notices to the program. It is safest to attach +them to the start of each source file to most effectively convey the exclusion +of warranty; and each file should have at least the "copyright" line and a +pointer to where the full notice is found. + + One line to give the program's name and a brief idea of what it does. + + Copyright (C) + + This program is free software; you can redistribute it and/or modify it + under the terms of the GNU General Public License as published by the Free + Software Foundation; either version 2 of the License, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, but WITHOUT + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + more details. + + You should have received a copy of the GNU General Public License along + with this program; if not, write to the Free Software Foundation, Inc., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +Also add information on how to contact you by electronic and paper mail. + +If the program is interactive, make it output a short notice like this when it +starts in an interactive mode: + + Gnomovision version 69, Copyright (C) year name of author Gnomovision comes + with ABSOLUTELY NO WARRANTY; for details type 'show w'. This is free + software, and you are welcome to redistribute it under certain conditions; + type 'show c' for details. + +The hypothetical commands 'show w' and 'show c' should show the appropriate +parts of the General Public License. Of course, the commands you use may be +called something other than 'show w' and 'show c'; they could even be +mouse-clicks or menu items--whatever suits your program. + +You should also get your employer (if you work as a programmer) or your school, +if any, to sign a "copyright disclaimer" for the program, if necessary. Here +is a sample; alter the names: + + Yoyodyne, Inc., hereby disclaims all copyright interest in the program + 'Gnomovision' (which makes passes at compilers) written by James Hacker. + + signature of Ty Coon, 1 April 1989 + + Ty Coon, President of Vice + +This General Public License does not permit incorporating your program into +proprietary programs. If your program is a subroutine library, you may +consider it more useful to permit linking proprietary applications with the +library. If this is what you want to do, use the GNU Library General Public +License instead of this License. + + +"CLASSPATH" EXCEPTION TO THE GPL + +Certain source files distributed by Oracle America and/or its affiliates are +subject to the following clarification and special exception to the GPL, but +only where Oracle has expressly included in the particular source file's header +the words "Oracle designates this particular file as subject to the "Classpath" +exception as provided by Oracle in the LICENSE file that accompanied this code." + + Linking this library statically or dynamically with other modules is making + a combined work based on this library. Thus, the terms and conditions of + the GNU General Public License cover the whole combination. + + As a special exception, the copyright holders of this library give you + permission to link this library with independent modules to produce an + executable, regardless of the license terms of these independent modules, + and to copy and distribute the resulting executable under terms of your + choice, provided that you also meet, for each linked independent module, + the terms and conditions of the license of that module. An independent + module is a module which is not derived from or based on this library. If + you modify this library, you may extend this exception to your version of + the library, but you are not obligated to do so. If you do not wish to do + so, delete this exception statement from your version. diff --git a/p5f_sample/lib/doc/legal/jquery.md b/p5f_sample/lib/doc/legal/jquery.md new file mode 100644 index 0000000..a763ec6 --- /dev/null +++ b/p5f_sample/lib/doc/legal/jquery.md @@ -0,0 +1,26 @@ +## jQuery v3.7.1 + +### jQuery License +``` +jQuery v 3.7.1 +Copyright OpenJS Foundation and other contributors, https://openjsf.org/ + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +``` diff --git a/p5f_sample/lib/doc/legal/jqueryUI.md b/p5f_sample/lib/doc/legal/jqueryUI.md new file mode 100644 index 0000000..46bfbaa --- /dev/null +++ b/p5f_sample/lib/doc/legal/jqueryUI.md @@ -0,0 +1,49 @@ +## jQuery UI v1.14.1 + +### jQuery UI License +``` +Copyright OpenJS Foundation and other contributors, https://openjsf.org/ + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/jquery/jquery-ui + +The following license applies to all parts of this software except as +documented below: + +==== + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code contained within the demos directory. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +All files located in the node_modules and external directories are +externally maintained libraries used by this software which have their +own licenses; we recommend you read them, as their terms may differ from +the terms above. + +``` diff --git a/p5f_sample/lib/doc/member-search-index.js b/p5f_sample/lib/doc/member-search-index.js new file mode 100644 index 0000000..60ea1c7 --- /dev/null +++ b/p5f_sample/lib/doc/member-search-index.js @@ -0,0 +1 @@ +memberSearchIndex = [{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"absEndPos"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"absPos"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"BvhBone()","u":"%3Cinit%3E()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"BvhBone(BvhBone)","u":"%3Cinit%3E(com.rhizomatiks.bvh.BvhBone)"},{"p":"com.rhizomatiks.bvh","c":"BvhParser","l":"BvhParser()","u":"%3Cinit%3E()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"getAbsEndPosition()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"getAbsPosition()"},{"p":"com.rhizomatiks.bvh","c":"BvhParser","l":"getBones()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"getChannels()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"getChildren()"},{"p":"com.rhizomatiks.bvh","c":"BvhParser","l":"getCurrentFrame()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"getEndOffsetX()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"getEndOffsetY()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"getEndOffsetZ()"},{"p":"com.rhizomatiks.bvh","c":"BvhParser","l":"getFrameTime()"},{"p":"com.rhizomatiks.bvh","c":"BvhParser","l":"getMotionLoop()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"getName()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"getNbChannels()"},{"p":"com.rhizomatiks.bvh","c":"BvhParser","l":"getNbFrames()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"getOffsetX()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"getOffsetY()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"getOffsetZ()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"getParent()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"getXposition()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"getXrotation()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"getYposition()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"getYrotation()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"getZposition()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"getZrotation()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"global_matrix"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"hasChildren()"},{"p":"com.rhizomatiks.bvh","c":"BvhParser","l":"init()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"isRoot()"},{"p":"com.rhizomatiks.bvh","c":"BvhParser","l":"moveFrameTo(int)"},{"p":"com.rhizomatiks.bvh","c":"BvhParser","l":"moveMsTo(int)"},{"p":"com.rhizomatiks.bvh","c":"BvhParser","l":"parse(String[])","u":"parse(java.lang.String[])"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"setAbsEndPosition(PVector)","u":"setAbsEndPosition(processing.core.PVector)"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"setAbsPosition(PVector)","u":"setAbsPosition(processing.core.PVector)"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"setChannels(List)","u":"setChannels(java.util.List)"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"setChildren(List)","u":"setChildren(java.util.List)"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"setEndOffsetX(float)"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"setEndOffsetY(float)"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"setEndOffsetZ(float)"},{"p":"com.rhizomatiks.bvh","c":"BvhParser","l":"setMotionLoop(boolean)"},{"p":"com.rhizomatiks.bvh","c":"BvhParser","l":"setMotionLoop(Boolean)","u":"setMotionLoop(java.lang.Boolean)"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"setName(String)","u":"setName(java.lang.String)"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"setnbChannels(int)"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"setOffsetX(float)"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"setOffsetY(float)"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"setOffsetZ(float)"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"setParent(BvhBone)","u":"setParent(com.rhizomatiks.bvh.BvhBone)"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"setXposition(float)"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"setXrotation(float)"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"setYposition(float)"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"setYrotation(float)"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"setZposition(float)"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"setZrotation(float)"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"structureToString()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"structureToString(int)"},{"p":"com.rhizomatiks.bvh","c":"BvhParser","l":"toStr()"},{"p":"com.rhizomatiks.bvh","c":"BvhBone","l":"toString()"},{"p":"com.rhizomatiks.bvh","c":"BvhParser","l":"update()"},{"p":"com.rhizomatiks.bvh","c":"BvhParser","l":"update(BvhBone)","u":"update(com.rhizomatiks.bvh.BvhBone)"}];updateSearchResults(); \ No newline at end of file diff --git a/p5f_sample/lib/doc/module-search-index.js b/p5f_sample/lib/doc/module-search-index.js new file mode 100644 index 0000000..0d59754 --- /dev/null +++ b/p5f_sample/lib/doc/module-search-index.js @@ -0,0 +1 @@ +moduleSearchIndex = [];updateSearchResults(); \ No newline at end of file diff --git a/p5f_sample/lib/doc/overview-tree.html b/p5f_sample/lib/doc/overview-tree.html index fd8ac67..01b24fe 100644 --- a/p5f_sample/lib/doc/overview-tree.html +++ b/p5f_sample/lib/doc/overview-tree.html @@ -1,150 +1,75 @@ - - - - - - -NXKw - - - - - - - - - - - - -
    - - + + + + +Class Hierarchy (BVHParser for example-processing 1.0-SNAPSHOT API) + + + + + + + + + + + + + + +
    + +
    +
    +
    +

    Hierarchy For All Packages

    +Package Hierarchies: + +
    +
    +

    Class Hierarchy

    + +
    +
    +
    +
    + +
    +
    +
    + + diff --git a/p5f_sample/lib/doc/package-search-index.js b/p5f_sample/lib/doc/package-search-index.js new file mode 100644 index 0000000..f36e7df --- /dev/null +++ b/p5f_sample/lib/doc/package-search-index.js @@ -0,0 +1 @@ +packageSearchIndex = [{"l":"All Packages","u":"allpackages-index.html"},{"l":"com.rhizomatiks.bvh"}];updateSearchResults(); \ No newline at end of file diff --git a/p5f_sample/lib/doc/resources/glass.png b/p5f_sample/lib/doc/resources/glass.png new file mode 100644 index 0000000..a7f591f Binary files /dev/null and b/p5f_sample/lib/doc/resources/glass.png differ diff --git a/p5f_sample/lib/doc/resources/inherit.gif b/p5f_sample/lib/doc/resources/inherit.gif deleted file mode 100644 index c814867..0000000 Binary files a/p5f_sample/lib/doc/resources/inherit.gif and /dev/null differ diff --git a/p5f_sample/lib/doc/resources/x.png b/p5f_sample/lib/doc/resources/x.png new file mode 100644 index 0000000..30548a7 Binary files /dev/null and b/p5f_sample/lib/doc/resources/x.png differ diff --git a/p5f_sample/lib/doc/script-dir/jquery-3.7.1.min.js b/p5f_sample/lib/doc/script-dir/jquery-3.7.1.min.js new file mode 100644 index 0000000..7f37b5d --- /dev/null +++ b/p5f_sample/lib/doc/script-dir/jquery-3.7.1.min.js @@ -0,0 +1,2 @@ +/*! jQuery v3.7.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(ie,e){"use strict";var oe=[],r=Object.getPrototypeOf,ae=oe.slice,g=oe.flat?function(e){return oe.flat.call(e)}:function(e){return oe.concat.apply([],e)},s=oe.push,se=oe.indexOf,n={},i=n.toString,ue=n.hasOwnProperty,o=ue.toString,a=o.call(Object),le={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},C=ie.document,u={type:!0,src:!0,nonce:!0,noModule:!0};function m(e,t,n){var r,i,o=(n=n||C).createElement("script");if(o.text=e,t)for(r in u)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function x(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[i.call(e)]||"object":typeof e}var t="3.7.1",l=/HTML$/i,ce=function(e,t){return new ce.fn.init(e,t)};function c(e){var t=!!e&&"length"in e&&e.length,n=x(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+ge+")"+ge+"*"),x=new RegExp(ge+"|>"),j=new RegExp(g),A=new RegExp("^"+t+"$"),D={ID:new RegExp("^#("+t+")"),CLASS:new RegExp("^\\.("+t+")"),TAG:new RegExp("^("+t+"|[*])"),ATTR:new RegExp("^"+p),PSEUDO:new RegExp("^"+g),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ge+"*(even|odd|(([+-]|)(\\d*)n|)"+ge+"*(?:([+-]|)"+ge+"*(\\d+)|))"+ge+"*\\)|)","i"),bool:new RegExp("^(?:"+f+")$","i"),needsContext:new RegExp("^"+ge+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+ge+"*((?:-\\d)?\\d*)"+ge+"*\\)|)(?=[^-]|$)","i")},N=/^(?:input|select|textarea|button)$/i,q=/^h\d$/i,L=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,H=/[+~]/,O=new RegExp("\\\\[\\da-fA-F]{1,6}"+ge+"?|\\\\([^\\r\\n\\f])","g"),P=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},M=function(){V()},R=J(function(e){return!0===e.disabled&&fe(e,"fieldset")},{dir:"parentNode",next:"legend"});try{k.apply(oe=ae.call(ye.childNodes),ye.childNodes),oe[ye.childNodes.length].nodeType}catch(e){k={apply:function(e,t){me.apply(e,ae.call(t))},call:function(e){me.apply(e,ae.call(arguments,1))}}}function I(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(V(e),e=e||T,C)){if(11!==p&&(u=L.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return k.call(n,a),n}else if(f&&(a=f.getElementById(i))&&I.contains(e,a)&&a.id===i)return k.call(n,a),n}else{if(u[2])return k.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&e.getElementsByClassName)return k.apply(n,e.getElementsByClassName(i)),n}if(!(h[t+" "]||d&&d.test(t))){if(c=t,f=e,1===p&&(x.test(t)||m.test(t))){(f=H.test(t)&&U(e.parentNode)||e)==e&&le.scope||((s=e.getAttribute("id"))?s=ce.escapeSelector(s):e.setAttribute("id",s=S)),o=(l=Y(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+Q(l[o]);c=l.join(",")}try{return k.apply(n,f.querySelectorAll(c)),n}catch(e){h(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return re(t.replace(ve,"$1"),e,n,r)}function W(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function F(e){return e[S]=!0,e}function $(e){var t=T.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function B(t){return function(e){return fe(e,"input")&&e.type===t}}function _(t){return function(e){return(fe(e,"input")||fe(e,"button"))&&e.type===t}}function z(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&R(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function X(a){return F(function(o){return o=+o,F(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function U(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}function V(e){var t,n=e?e.ownerDocument||e:ye;return n!=T&&9===n.nodeType&&n.documentElement&&(r=(T=n).documentElement,C=!ce.isXMLDoc(T),i=r.matches||r.webkitMatchesSelector||r.msMatchesSelector,r.msMatchesSelector&&ye!=T&&(t=T.defaultView)&&t.top!==t&&t.addEventListener("unload",M),le.getById=$(function(e){return r.appendChild(e).id=ce.expando,!T.getElementsByName||!T.getElementsByName(ce.expando).length}),le.disconnectedMatch=$(function(e){return i.call(e,"*")}),le.scope=$(function(){return T.querySelectorAll(":scope")}),le.cssHas=$(function(){try{return T.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}}),le.getById?(b.filter.ID=function(e){var t=e.replace(O,P);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(O,P);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&C){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},b.find.CLASS=function(e,t){if("undefined"!=typeof t.getElementsByClassName&&C)return t.getElementsByClassName(e)},d=[],$(function(e){var t;r.appendChild(e).innerHTML="",e.querySelectorAll("[selected]").length||d.push("\\["+ge+"*(?:value|"+f+")"),e.querySelectorAll("[id~="+S+"-]").length||d.push("~="),e.querySelectorAll("a#"+S+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=T.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),r.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=T.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+ge+"*name"+ge+"*="+ge+"*(?:''|\"\")")}),le.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),l=function(e,t){if(e===t)return a=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!le.sortDetached&&t.compareDocumentPosition(e)===n?e===T||e.ownerDocument==ye&&I.contains(ye,e)?-1:t===T||t.ownerDocument==ye&&I.contains(ye,t)?1:o?se.call(o,e)-se.call(o,t):0:4&n?-1:1)}),T}for(e in I.matches=function(e,t){return I(e,null,null,t)},I.matchesSelector=function(e,t){if(V(e),C&&!h[t+" "]&&(!d||!d.test(t)))try{var n=i.call(e,t);if(n||le.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){h(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(O,P),e[3]=(e[3]||e[4]||e[5]||"").replace(O,P),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||I.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&I.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return D.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&j.test(n)&&(t=Y(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(O,P).toLowerCase();return"*"===e?function(){return!0}:function(e){return fe(e,t)}},CLASS:function(e){var t=s[e+" "];return t||(t=new RegExp("(^|"+ge+")"+e+"("+ge+"|$)"))&&s(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=I.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function T(e,n,r){return v(n)?ce.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?ce.grep(e,function(e){return e===n!==r}):"string"!=typeof n?ce.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(ce.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||k,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:S.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof ce?t[0]:t,ce.merge(this,ce.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:C,!0)),w.test(r[1])&&ce.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=C.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(ce):ce.makeArray(e,this)}).prototype=ce.fn,k=ce(C);var E=/^(?:parents|prev(?:Until|All))/,j={children:!0,contents:!0,next:!0,prev:!0};function A(e,t){while((e=e[t])&&1!==e.nodeType);return e}ce.fn.extend({has:function(e){var t=ce(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,Ce=/^$|^module$|\/(?:java|ecma)script/i;xe=C.createDocumentFragment().appendChild(C.createElement("div")),(be=C.createElement("input")).setAttribute("type","radio"),be.setAttribute("checked","checked"),be.setAttribute("name","t"),xe.appendChild(be),le.checkClone=xe.cloneNode(!0).cloneNode(!0).lastChild.checked,xe.innerHTML="",le.noCloneChecked=!!xe.cloneNode(!0).lastChild.defaultValue,xe.innerHTML="",le.option=!!xe.lastChild;var ke={thead:[1,"","
    "],col:[2,"","
    "],tr:[2,"","
    "],td:[3,"","
    "],_default:[0,"",""]};function Se(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&fe(e,t)?ce.merge([e],n):n}function Ee(e,t){for(var n=0,r=e.length;n",""]);var je=/<|&#?\w+;/;function Ae(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function Re(e,t){return fe(e,"table")&&fe(11!==t.nodeType?t:t.firstChild,"tr")&&ce(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Fe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(_.hasData(e)&&(s=_.get(e).events))for(i in _.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),C.head.appendChild(r[0])},abort:function(){i&&i()}}});var Jt,Kt=[],Zt=/(=)\?(?=&|$)|\?\?/;ce.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Kt.pop()||ce.expando+"_"+jt.guid++;return this[e]=!0,e}}),ce.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Zt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Zt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Zt,"$1"+r):!1!==e.jsonp&&(e.url+=(At.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||ce.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=ie[r],ie[r]=function(){o=arguments},n.always(function(){void 0===i?ce(ie).removeProp(r):ie[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Kt.push(r)),o&&v(i)&&i(o[0]),o=i=void 0}),"script"}),le.createHTMLDocument=((Jt=C.implementation.createHTMLDocument("").body).innerHTML="
    ",2===Jt.childNodes.length),ce.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(le.createHTMLDocument?((r=(t=C.implementation.createHTMLDocument("")).createElement("base")).href=C.location.href,t.head.appendChild(r)):t=C),o=!n&&[],(i=w.exec(e))?[t.createElement(i[1])]:(i=Ae([e],t,o),o&&o.length&&ce(o).remove(),ce.merge([],i.childNodes)));var r,i,o},ce.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(ce.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},ce.expr.pseudos.animated=function(t){return ce.grep(ce.timers,function(e){return t===e.elem}).length},ce.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=ce.css(e,"position"),c=ce(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=ce.css(e,"top"),u=ce.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),v(t)&&(t=t.call(e,n,ce.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):c.css(f)}},ce.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){ce.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===ce.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===ce.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=ce(e).offset()).top+=ce.css(e,"borderTopWidth",!0),i.left+=ce.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-ce.css(r,"marginTop",!0),left:t.left-i.left-ce.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===ce.css(e,"position"))e=e.offsetParent;return e||J})}}),ce.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;ce.fn[t]=function(e){return M(this,function(e,t,n){var r;if(y(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),ce.each(["top","left"],function(e,n){ce.cssHooks[n]=Ye(le.pixelPosition,function(e,t){if(t)return t=Ge(e,n),_e.test(t)?ce(e).position()[n]+"px":t})}),ce.each({Height:"height",Width:"width"},function(a,s){ce.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){ce.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return M(this,function(e,t,n){var r;return y(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?ce.css(e,t,i):ce.style(e,t,n,i)},s,n?e:void 0,n)}})}),ce.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){ce.fn[t]=function(e){return this.on(t,e)}}),ce.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),ce.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){ce.fn[n]=function(e,t){return 0{"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)})(function(x){x.ui=x.ui||{};x.ui.version="1.14.1";var n,s,C,k,o,l,a,r,u,i,h=0,c=Array.prototype.hasOwnProperty,d=Array.prototype.slice;x.cleanData=(n=x.cleanData,function(t){for(var e,i,s=0;null!=(i=t[s]);s++)(e=x._data(i,"events"))&&e.remove&&x(i).triggerHandler("remove");n(t)}),x.widget=function(t,i,e){var s,n,o,l,a={},r=t.split(".")[0];return"__proto__"===(t=t.split(".")[1])||"constructor"===t?x.error("Invalid widget name: "+t):(l=r+"-"+t,e||(e=i,i=x.Widget),Array.isArray(e)&&(e=x.extend.apply(null,[{}].concat(e))),x.expr.pseudos[l.toLowerCase()]=function(t){return!!x.data(t,l)},x[r]=x[r]||{},s=x[r][t],n=x[r][t]=function(t,e){if(!this||!this._createWidget)return new n(t,e);arguments.length&&this._createWidget(t,e)},x.extend(n,s,{version:e.version,_proto:x.extend({},e),_childConstructors:[]}),(o=new i).options=x.widget.extend({},o.options),x.each(e,function(e,s){function n(){return i.prototype[e].apply(this,arguments)}function o(t){return i.prototype[e].apply(this,t)}a[e]="function"!=typeof s?s:function(){var t,e=this._super,i=this._superApply;return this._super=n,this._superApply=o,t=s.apply(this,arguments),this._super=e,this._superApply=i,t}}),n.prototype=x.widget.extend(o,{widgetEventPrefix:s&&o.widgetEventPrefix||t},a,{constructor:n,namespace:r,widgetName:t,widgetFullName:l}),s?(x.each(s._childConstructors,function(t,e){var i=e.prototype;x.widget(i.namespace+"."+i.widgetName,n,e._proto)}),delete s._childConstructors):i._childConstructors.push(n),x.widget.bridge(t,n),n)},x.widget.extend=function(t){for(var e,i,s=d.call(arguments,1),n=0,o=s.length;n",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,e){e=x(e||this.defaultElement||this)[0],this.element=x(e),this.uuid=h++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=x(),this.hoverable=x(),this.focusable=x(),this.classesElementLookup={},e!==this&&(x.data(e,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===e&&this.destroy()}}),this.document=x(e.style?e.ownerDocument:e.document||e),this.window=x(this.document[0].defaultView||this.document[0].parentWindow)),this.options=x.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:x.noop,_create:x.noop,_init:x.noop,destroy:function(){var i=this;this._destroy(),x.each(this.classesElementLookup,function(t,e){i._removeClass(e,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:x.noop,widget:function(){return this.element},option:function(t,e){var i,s,n,o=t;if(0===arguments.length)return x.widget.extend({},this.options);if("string"==typeof t)if(o={},t=(i=t.split(".")).shift(),i.length){for(s=o[t]=x.widget.extend({},this.options[t]),n=0;n{var i=[];n.element.each(function(t,e){x.map(l.classesElementLookup,function(t){return t}).some(function(t){return t.is(e)})||i.push(e)}),l._on(x(i),{remove:"_untrackClassesElement"})})(),x(x.uniqueSort(i.get().concat(n.element.get())))):x(i.not(n.element).get()),l.classesElementLookup[t[s]]=i,o.push(t[s]),e&&n.classes[t[s]]&&o.push(n.classes[t[s]])}return(n=x.extend({element:this.element,classes:this.options.classes||{}},n)).keys&&t(n.keys.match(/\S+/g)||[],!0),n.extra&&t(n.extra.match(/\S+/g)||[]),o.join(" ")},_untrackClassesElement:function(i){var s=this;x.each(s.classesElementLookup,function(t,e){-1!==x.inArray(i.target,e)&&(s.classesElementLookup[t]=x(e.not(i.target).get()))}),this._off(x(i.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,s){var n="string"==typeof t||null===t,e={extra:n?e:i,keys:n?t:e,element:n?this.element:t,add:s="boolean"==typeof s?s:i};return e.element.toggleClass(this._classes(e),s),this},_on:function(n,o,t){var l,a=this;"boolean"!=typeof n&&(t=o,o=n,n=!1),t?(o=l=x(o),this.bindings=this.bindings.add(o)):(t=o,o=this.element,l=this.widget()),x.each(t,function(t,e){function i(){if(n||!0!==a.options.disabled&&!x(this).hasClass("ui-state-disabled"))return("string"==typeof e?a[e]:e).apply(a,arguments)}"string"!=typeof e&&(i.guid=e.guid=e.guid||i.guid||x.guid++);var t=t.match(/^([\w:-]*)\s*(.*)$/),s=t[1]+a.eventNamespace,t=t[2];t?l.on(s,t,i):o.on(s,i)})},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(e),this.bindings=x(this.bindings.not(t).get()),this.focusable=x(this.focusable.not(t).get()),this.hoverable=x(this.hoverable.not(t).get())},_delay:function(t,e){var i=this;return setTimeout(function(){return("string"==typeof t?i[t]:t).apply(i,arguments)},e||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(x(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(x(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(x(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,e,i){var s,n,o=this.options[t];if(i=i||{},(e=x.Event(e)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),e.target=this.element[0],n=e.originalEvent)for(s in n)s in e||(e[s]=n[s]);return this.element.trigger(e,i),!("function"==typeof o&&!1===o.apply(this.element[0],[e].concat(i))||e.isDefaultPrevented())}},x.each({show:"fadeIn",hide:"fadeOut"},function(o,l){x.Widget.prototype["_"+o]=function(e,t,i){var s,n=(t="string"==typeof t?{effect:t}:t)?!0!==t&&"number"!=typeof t&&t.effect||l:o;"number"==typeof(t=t||{})?t={duration:t}:!0===t&&(t={}),s=!x.isEmptyObject(t),t.complete=i,t.delay&&e.delay(t.delay),s&&x.effects&&x.effects.effect[n]?e[o](t):n!==o&&e[n]?e[n](t.duration,t.easing,i):e.queue(function(t){x(this)[o](),i&&i.call(e[0]),t()})}}),x.widget;function E(t,e,i){return[parseFloat(t[0])*(u.test(t[0])?e/100:1),parseFloat(t[1])*(u.test(t[1])?i/100:1)]}function T(t,e){return parseInt(x.css(t,e),10)||0}function W(t){return null!=t&&t===t.window}C=Math.max,k=Math.abs,o=/left|center|right/,l=/top|center|bottom/,a=/[\+\-]\d+(\.[\d]+)?%?/,r=/^\w+/,u=/%$/,i=x.fn.position,x.position={scrollbarWidth:function(){var t,e,i;return void 0!==s?s:(i=(e=x("
    ")).children()[0],x("body").append(e),t=i.offsetWidth,e.css("overflow","scroll"),t===(i=i.offsetWidth)&&(i=e[0].clientWidth),e.remove(),s=t-i)},getScrollInfo:function(t){var e=t.isWindow||t.isDocument?"":t.element.css("overflow-x"),i=t.isWindow||t.isDocument?"":t.element.css("overflow-y"),e="scroll"===e||"auto"===e&&t.widthC(k(s),k(n))?o.important="horizontal":o.important="vertical",c.using.call(this,t,o)}),l.offset(x.extend(u,{using:t}))})):i.apply(this,arguments)},x.ui.position={fit:{left:function(t,e){var i,s=e.within,n=s.isWindow?s.scrollLeft:s.offset.left,s=s.width,o=t.left-e.collisionPosition.marginLeft,l=n-o,a=o+e.collisionWidth-s-n;s",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault(),this._activateItem(t)},"click .ui-menu-item":function(t){var e=x(t.target),i=x(this.document[0].activeElement);!this.mouseHandled&&e.not(".ui-state-disabled").length&&(this.select(t),t.isPropagationStopped()||(this.mouseHandled=!0),e.has(".ui-menu").length?this.expand(t):!this.element.is(":focus")&&i.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active)&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this._menuItems().first();e||this.focus(t,i)},blur:function(t){this._delay(function(){x.contains(this.element[0],this.document[0].activeElement)||this.collapseAll(t)})},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t,!0),this.mouseHandled=!1}})},_activateItem:function(t){var e,i;this.previousFilter||t.clientX===this.lastMousePosition.x&&t.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:t.clientX,y:t.clientY},e=x(t.target).closest(".ui-menu-item"),i=x(t.currentTarget),e[0]!==i[0])||i.is(".ui-state-active")||(this._removeClass(i.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(t,i))},_destroy:function(){var t=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),t.children().each(function(){var t=x(this);t.data("ui-menu-submenu-caret")&&t.remove()})},_keydown:function(t){var e,i,s,n=!0;switch(t.keyCode){case x.ui.keyCode.PAGE_UP:this.previousPage(t);break;case x.ui.keyCode.PAGE_DOWN:this.nextPage(t);break;case x.ui.keyCode.HOME:this._move("first","first",t);break;case x.ui.keyCode.END:this._move("last","last",t);break;case x.ui.keyCode.UP:this.previous(t);break;case x.ui.keyCode.DOWN:this.next(t);break;case x.ui.keyCode.LEFT:this.collapse(t);break;case x.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(t);break;case x.ui.keyCode.ENTER:case x.ui.keyCode.SPACE:this._activate(t);break;case x.ui.keyCode.ESCAPE:this.collapse(t);break;default:e=this.previousFilter||"",s=n=!1,i=96<=t.keyCode&&t.keyCode<=105?(t.keyCode-96).toString():String.fromCharCode(t.keyCode),clearTimeout(this.filterTimer),i===e?s=!0:i=e+i,e=this._filterMenuItems(i),(e=s&&-1!==e.index(this.active.next())?this.active.nextAll(".ui-menu-item"):e).length||(i=String.fromCharCode(t.keyCode),e=this._filterMenuItems(i)),e.length?(this.focus(t,e),this.previousFilter=i,this.filterTimer=this._delay(function(){delete this.previousFilter},1e3)):delete this.previousFilter}n&&t.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var t,e,s=this,n=this.options.icons.submenu,i=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),t=i.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each(function(){var t=x(this),e=t.prev(),i=x("").data("ui-menu-submenu-caret",!0);s._addClass(i,"ui-menu-icon","ui-icon "+n),e.attr("aria-haspopup","true").prepend(i),t.attr("aria-labelledby",e.attr("id"))}),this._addClass(t,"ui-menu","ui-widget ui-widget-content ui-front"),(t=i.add(this.element).find(this.options.items)).not(".ui-menu-item").each(function(){var t=x(this);s._isDivider(t)&&s._addClass(t,"ui-menu-divider","ui-widget-content")}),e=(i=t.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(e,"ui-menu-item-wrapper"),t.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!x.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var i;"icons"===t&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay(function(){this._close()},this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(t){var e,i,s;this._hasScroll()&&(e=parseFloat(x.css(this.activeMenu[0],"borderTopWidth"))||0,i=parseFloat(x.css(this.activeMenu[0],"paddingTop"))||0,e=t.offset().top-this.activeMenu.offset().top-e-i,i=this.activeMenu.scrollTop(),s=this.activeMenu.height(),t=t.outerHeight(),e<0?this.activeMenu.scrollTop(i+e):s",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var i,s,n,t=this.element[0].nodeName.toLowerCase(),e="textarea"===t,t="input"===t;this.isMultiLine=e||!t&&"true"===this.element.prop("contentEditable"),this.valueMethod=this.element[e||t?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(t){if(this.element.prop("readOnly"))s=n=i=!0;else{s=n=i=!1;var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:i=!0,this._move("previousPage",t);break;case e.PAGE_DOWN:i=!0,this._move("nextPage",t);break;case e.UP:i=!0,this._keyEvent("previous",t);break;case e.DOWN:i=!0,this._keyEvent("next",t);break;case e.ENTER:this.menu.active&&(i=!0,t.preventDefault(),this.menu.select(t));break;case e.TAB:this.menu.active&&this.menu.select(t);break;case e.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(t),t.preventDefault());break;default:s=!0,this._searchTimeout(t)}}},keypress:function(t){if(i)i=!1,this.isMultiLine&&!this.menu.element.is(":visible")||t.preventDefault();else if(!s){var e=x.ui.keyCode;switch(t.keyCode){case e.PAGE_UP:this._move("previousPage",t);break;case e.PAGE_DOWN:this._move("nextPage",t);break;case e.UP:this._keyEvent("previous",t);break;case e.DOWN:this._keyEvent("next",t)}}},input:function(t){n?(n=!1,t.preventDefault()):this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=x("
      ").appendTo(this._appendTo()).menu({role:null}).hide().menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault()},menufocus:function(t,e){var i,s;this.isNewMenu&&(this.isNewMenu=!1,t.originalEvent)&&/^mouse/.test(t.originalEvent.type)?(this.menu.blur(),this.document.one("mousemove",function(){x(t.target).trigger(t.originalEvent)})):(s=e.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",t,{item:s})&&t.originalEvent&&/^key/.test(t.originalEvent.type)&&this._value(s.value),(i=e.item.attr("aria-label")||s.value)&&String.prototype.trim.call(i).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay(function(){this.liveRegion.html(x("
      ").text(i))},100)))},menuselect:function(t,e){var e=e.item.data("ui-autocomplete-item"),i=this.previous;this.element[0]!==this.document[0].activeElement&&(this.element.trigger("focus"),this.previous=i),!1!==this._trigger("select",t,{item:e})&&this._value(e.value),this.term=this._value(),this.close(t),this.selectedItem=e}}),this.liveRegion=x("
      ",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(t){var e=this.menu.element[0];return t.target===this.element[0]||t.target===e||x.contains(e,t.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var t=this.options.appendTo;return t=(t=(t=t&&(t.jquery||t.nodeType?x(t):this.document.find(t).eq(0)))&&t[0]?t:this.element.closest(".ui-front, dialog")).length?t:this.document[0].body},_initSource:function(){var i,s,n=this;Array.isArray(this.options.source)?(i=this.options.source,this.source=function(t,e){e(x.ui.autocomplete.filter(i,t.term))}):"string"==typeof this.options.source?(s=this.options.source,this.source=function(t,e){n.xhr&&n.xhr.abort(),n.xhr=x.ajax({url:s,data:t,dataType:"json",success:function(t){e(t)},error:function(){e([])}})}):this.source=this.options.source},_searchTimeout:function(s){clearTimeout(this.searching),this.searching=this._delay(function(){var t=this.term===this._value(),e=this.menu.element.is(":visible"),i=s.altKey||s.ctrlKey||s.metaKey||s.shiftKey;t&&(e||i)||(this.selectedItem=null,this.search(null,s))},this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length").append(x("
      ").text(e.label)).appendTo(t)},_move:function(t,e){this.menu.element.is(":visible")?this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),this.menu.blur()):this.menu[t](e):this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())}}),x.extend(x.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(t,e){var i=new RegExp(x.ui.autocomplete.escapeRegex(e),"i");return x.grep(t,function(t){return i.test(t.label||t.value||t)})}}),x.widget("ui.autocomplete",x.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1").text(e))},100))}}),x.ui.autocomplete}); \ No newline at end of file diff --git a/p5f_sample/lib/doc/script.js b/p5f_sample/lib/doc/script.js new file mode 100644 index 0000000..73cd8fa --- /dev/null +++ b/p5f_sample/lib/doc/script.js @@ -0,0 +1,132 @@ +/* + * Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +var moduleSearchIndex; +var packageSearchIndex; +var typeSearchIndex; +var memberSearchIndex; +var tagSearchIndex; +function loadScripts(doc, tag) { + createElem(doc, tag, 'search.js'); + + createElem(doc, tag, 'module-search-index.js'); + createElem(doc, tag, 'package-search-index.js'); + createElem(doc, tag, 'type-search-index.js'); + createElem(doc, tag, 'member-search-index.js'); + createElem(doc, tag, 'tag-search-index.js'); +} + +function createElem(doc, tag, path) { + var script = doc.createElement(tag); + var scriptElement = doc.getElementsByTagName(tag)[0]; + script.src = pathtoroot + path; + scriptElement.parentNode.insertBefore(script, scriptElement); +} + +function show(tableId, selected, columns) { + if (tableId !== selected) { + document.querySelectorAll('div.' + tableId + ':not(.' + selected + ')') + .forEach(function(elem) { + elem.style.display = 'none'; + }); + } + document.querySelectorAll('div.' + selected) + .forEach(function(elem, index) { + elem.style.display = ''; + var isEvenRow = index % (columns * 2) < columns; + elem.classList.remove(isEvenRow ? oddRowColor : evenRowColor); + elem.classList.add(isEvenRow ? evenRowColor : oddRowColor); + }); + updateTabs(tableId, selected); +} + +function updateTabs(tableId, selected) { + document.getElementById(tableId + '.tabpanel') + .setAttribute('aria-labelledby', selected); + document.querySelectorAll('button[id^="' + tableId + '"]') + .forEach(function(tab, index) { + if (selected === tab.id || (tableId === selected && index === 0)) { + tab.className = activeTableTab; + tab.setAttribute('aria-selected', true); + tab.setAttribute('tabindex',0); + } else { + tab.className = tableTab; + tab.setAttribute('aria-selected', false); + tab.setAttribute('tabindex',-1); + } + }); +} + +function switchTab(e) { + var selected = document.querySelector('[aria-selected=true]'); + if (selected) { + if ((e.keyCode === 37 || e.keyCode === 38) && selected.previousSibling) { + // left or up arrow key pressed: move focus to previous tab + selected.previousSibling.click(); + selected.previousSibling.focus(); + e.preventDefault(); + } else if ((e.keyCode === 39 || e.keyCode === 40) && selected.nextSibling) { + // right or down arrow key pressed: move focus to next tab + selected.nextSibling.click(); + selected.nextSibling.focus(); + e.preventDefault(); + } + } +} + +var updateSearchResults = function() {}; + +function indexFilesLoaded() { + return moduleSearchIndex + && packageSearchIndex + && typeSearchIndex + && memberSearchIndex + && tagSearchIndex; +} + +// Workaround for scroll position not being included in browser history (8249133) +document.addEventListener("DOMContentLoaded", function(e) { + var contentDiv = document.querySelector("div.flex-content"); + window.addEventListener("popstate", function(e) { + if (e.state !== null) { + contentDiv.scrollTop = e.state; + } + }); + window.addEventListener("hashchange", function(e) { + history.replaceState(contentDiv.scrollTop, document.title); + }); + contentDiv.addEventListener("scroll", function(e) { + var timeoutID; + if (!timeoutID) { + timeoutID = setTimeout(function() { + history.replaceState(contentDiv.scrollTop, document.title); + timeoutID = null; + }, 100); + } + }); + if (!location.hash) { + history.replaceState(contentDiv.scrollTop, document.title); + } +}); diff --git a/p5f_sample/lib/doc/search.js b/p5f_sample/lib/doc/search.js new file mode 100644 index 0000000..db3b2f4 --- /dev/null +++ b/p5f_sample/lib/doc/search.js @@ -0,0 +1,354 @@ +/* + * Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +var noResult = {l: "No results found"}; +var loading = {l: "Loading search index..."}; +var catModules = "Modules"; +var catPackages = "Packages"; +var catTypes = "Classes and Interfaces"; +var catMembers = "Members"; +var catSearchTags = "Search Tags"; +var highlight = "$&"; +var searchPattern = ""; +var fallbackPattern = ""; +var RANKING_THRESHOLD = 2; +var NO_MATCH = 0xffff; +var MIN_RESULTS = 3; +var MAX_RESULTS = 500; +var UNNAMED = ""; +function escapeHtml(str) { + return str.replace(//g, ">"); +} +function getHighlightedText(item, matcher, fallbackMatcher) { + var escapedItem = escapeHtml(item); + var highlighted = escapedItem.replace(matcher, highlight); + if (highlighted === escapedItem) { + highlighted = escapedItem.replace(fallbackMatcher, highlight) + } + return highlighted; +} +function getURLPrefix(ui) { + var urlPrefix=""; + var slash = "/"; + if (ui.item.category === catModules) { + return ui.item.l + slash; + } else if (ui.item.category === catPackages && ui.item.m) { + return ui.item.m + slash; + } else if (ui.item.category === catTypes || ui.item.category === catMembers) { + if (ui.item.m) { + urlPrefix = ui.item.m + slash; + } else { + $.each(packageSearchIndex, function(index, item) { + if (item.m && ui.item.p === item.l) { + urlPrefix = item.m + slash; + } + }); + } + } + return urlPrefix; +} +function createSearchPattern(term) { + var pattern = ""; + var isWordToken = false; + term.replace(/,\s*/g, ", ").trim().split(/\s+/).forEach(function(w, index) { + if (index > 0) { + // whitespace between identifiers is significant + pattern += (isWordToken && /^\w/.test(w)) ? "\\s+" : "\\s*"; + } + var tokens = w.split(/(?=[A-Z,.()<>[\/])/); + for (var i = 0; i < tokens.length; i++) { + var s = tokens[i]; + if (s === "") { + continue; + } + pattern += $.ui.autocomplete.escapeRegex(s); + isWordToken = /\w$/.test(s); + if (isWordToken) { + pattern += "([a-z0-9_$<>\\[\\]]*?)"; + } + } + }); + return pattern; +} +function createMatcher(pattern, flags) { + var isCamelCase = /[A-Z]/.test(pattern); + return new RegExp(pattern, flags + (isCamelCase ? "" : "i")); +} +var watermark = 'Search'; +$(function() { + var search = $("#search-input"); + var reset = $("#reset-button"); + search.val(''); + search.prop("disabled", false); + reset.prop("disabled", false); + search.val(watermark).addClass('watermark'); + search.blur(function() { + if ($(this).val().length === 0) { + $(this).val(watermark).addClass('watermark'); + } + }); + search.on('click keydown paste', function() { + if ($(this).val() === watermark) { + $(this).val('').removeClass('watermark'); + } + }); + reset.click(function() { + search.val('').focus(); + }); + search.focus()[0].setSelectionRange(0, 0); +}); +$.widget("custom.catcomplete", $.ui.autocomplete, { + _create: function() { + this._super(); + this.widget().menu("option", "items", "> :not(.ui-autocomplete-category)"); + }, + _renderMenu: function(ul, items) { + var rMenu = this; + var currentCategory = ""; + rMenu.menu.bindings = $(); + $.each(items, function(index, item) { + var li; + if (item.category && item.category !== currentCategory) { + ul.append("
    • " + item.category + "
    • "); + currentCategory = item.category; + } + li = rMenu._renderItemData(ul, item); + if (item.category) { + li.attr("aria-label", item.category + " : " + item.l); + li.attr("class", "result-item"); + } else { + li.attr("aria-label", item.l); + li.attr("class", "result-item"); + } + }); + }, + _renderItem: function(ul, item) { + var label = ""; + var matcher = createMatcher(escapeHtml(searchPattern), "g"); + var fallbackMatcher = new RegExp(fallbackPattern, "gi") + if (item.category === catModules) { + label = getHighlightedText(item.l, matcher, fallbackMatcher); + } else if (item.category === catPackages) { + label = getHighlightedText(item.l, matcher, fallbackMatcher); + } else if (item.category === catTypes) { + label = (item.p && item.p !== UNNAMED) + ? getHighlightedText(item.p + "." + item.l, matcher, fallbackMatcher) + : getHighlightedText(item.l, matcher, fallbackMatcher); + } else if (item.category === catMembers) { + label = (item.p && item.p !== UNNAMED) + ? getHighlightedText(item.p + "." + item.c + "." + item.l, matcher, fallbackMatcher) + : getHighlightedText(item.c + "." + item.l, matcher, fallbackMatcher); + } else if (item.category === catSearchTags) { + label = getHighlightedText(item.l, matcher, fallbackMatcher); + } else { + label = item.l; + } + var li = $("
    • ").appendTo(ul); + var div = $("
      ").appendTo(li); + if (item.category === catSearchTags && item.h) { + if (item.d) { + div.html(label + " (" + item.h + ")
      " + + item.d + "
      "); + } else { + div.html(label + " (" + item.h + ")"); + } + } else { + if (item.m) { + div.html(item.m + "/" + label); + } else { + div.html(label); + } + } + return li; + } +}); +function rankMatch(match, category) { + if (!match) { + return NO_MATCH; + } + var index = match.index; + var input = match.input; + var leftBoundaryMatch = 2; + var periferalMatch = 0; + // make sure match is anchored on a left word boundary + if (index === 0 || /\W/.test(input[index - 1]) || "_" === input[index]) { + leftBoundaryMatch = 0; + } else if ("_" === input[index - 1] || (input[index] === input[index].toUpperCase() && !/^[A-Z0-9_$]+$/.test(input))) { + leftBoundaryMatch = 1; + } + var matchEnd = index + match[0].length; + var leftParen = input.indexOf("("); + var endOfName = leftParen > -1 ? leftParen : input.length; + // exclude peripheral matches + if (category !== catModules && category !== catSearchTags) { + var delim = category === catPackages ? "/" : "."; + if (leftParen > -1 && leftParen < index) { + periferalMatch += 2; + } else if (input.lastIndexOf(delim, endOfName) >= matchEnd) { + periferalMatch += 2; + } + } + var delta = match[0].length === endOfName ? 0 : 1; // rank full match higher than partial match + for (var i = 1; i < match.length; i++) { + // lower ranking if parts of the name are missing + if (match[i]) + delta += match[i].length; + } + if (category === catTypes) { + // lower ranking if a type name contains unmatched camel-case parts + if (/[A-Z]/.test(input.substring(matchEnd))) + delta += 5; + if (/[A-Z]/.test(input.substring(0, index))) + delta += 5; + } + return leftBoundaryMatch + periferalMatch + (delta / 200); + +} +function doSearch(request, response) { + var result = []; + searchPattern = createSearchPattern(request.term); + fallbackPattern = createSearchPattern(request.term.toLowerCase()); + if (searchPattern === "") { + return this.close(); + } + var camelCaseMatcher = createMatcher(searchPattern, ""); + var fallbackMatcher = new RegExp(fallbackPattern, "i"); + + function searchIndexWithMatcher(indexArray, matcher, category, nameFunc) { + if (indexArray) { + var newResults = []; + $.each(indexArray, function (i, item) { + item.category = category; + var ranking = rankMatch(matcher.exec(nameFunc(item)), category); + if (ranking < RANKING_THRESHOLD) { + newResults.push({ranking: ranking, item: item}); + } + return newResults.length <= MAX_RESULTS; + }); + return newResults.sort(function(e1, e2) { + return e1.ranking - e2.ranking; + }).map(function(e) { + return e.item; + }); + } + return []; + } + function searchIndex(indexArray, category, nameFunc) { + var primaryResults = searchIndexWithMatcher(indexArray, camelCaseMatcher, category, nameFunc); + result = result.concat(primaryResults); + if (primaryResults.length <= MIN_RESULTS && !camelCaseMatcher.ignoreCase) { + var secondaryResults = searchIndexWithMatcher(indexArray, fallbackMatcher, category, nameFunc); + result = result.concat(secondaryResults.filter(function (item) { + return primaryResults.indexOf(item) === -1; + })); + } + } + + searchIndex(moduleSearchIndex, catModules, function(item) { return item.l; }); + searchIndex(packageSearchIndex, catPackages, function(item) { + return (item.m && request.term.indexOf("/") > -1) + ? (item.m + "/" + item.l) : item.l; + }); + searchIndex(typeSearchIndex, catTypes, function(item) { + return request.term.indexOf(".") > -1 ? item.p + "." + item.l : item.l; + }); + searchIndex(memberSearchIndex, catMembers, function(item) { + return request.term.indexOf(".") > -1 + ? item.p + "." + item.c + "." + item.l : item.l; + }); + searchIndex(tagSearchIndex, catSearchTags, function(item) { return item.l; }); + + if (!indexFilesLoaded()) { + updateSearchResults = function() { + doSearch(request, response); + } + result.unshift(loading); + } else { + updateSearchResults = function() {}; + } + response(result); +} +$(function() { + $("#search-input").catcomplete({ + minLength: 1, + delay: 300, + source: doSearch, + response: function(event, ui) { + if (!ui.content.length) { + ui.content.push(noResult); + } else { + $("#search-input").empty(); + } + }, + autoFocus: true, + focus: function(event, ui) { + return false; + }, + position: { + collision: "flip" + }, + select: function(event, ui) { + if (ui.item.category) { + var url = getURLPrefix(ui); + if (ui.item.category === catModules) { + url += "module-summary.html"; + } else if (ui.item.category === catPackages) { + if (ui.item.u) { + url = ui.item.u; + } else { + url += ui.item.l.replace(/\./g, '/') + "/package-summary.html"; + } + } else if (ui.item.category === catTypes) { + if (ui.item.u) { + url = ui.item.u; + } else if (ui.item.p === UNNAMED) { + url += ui.item.l + ".html"; + } else { + url += ui.item.p.replace(/\./g, '/') + "/" + ui.item.l + ".html"; + } + } else if (ui.item.category === catMembers) { + if (ui.item.p === UNNAMED) { + url += ui.item.c + ".html" + "#"; + } else { + url += ui.item.p.replace(/\./g, '/') + "/" + ui.item.c + ".html" + "#"; + } + if (ui.item.u) { + url += ui.item.u; + } else { + url += ui.item.l; + } + } else if (ui.item.category === catSearchTags) { + url += ui.item.u; + } + if (top !== window) { + parent.classFrame.location = pathtoroot + url; + } else { + window.location.href = pathtoroot + url; + } + $("#search-input").focus(); + } + } + }); +}); diff --git a/p5f_sample/lib/doc/stylesheet.css b/p5f_sample/lib/doc/stylesheet.css index 94210b1..4a576bd 100644 --- a/p5f_sample/lib/doc/stylesheet.css +++ b/p5f_sample/lib/doc/stylesheet.css @@ -1,29 +1,869 @@ -/* javadoc X^CV[g */ +/* + * Javadoc style sheet + */ -/* FtHgȂǂ̃X^C̃ftHgl㏑ɂ́AŒ`܂B */ +@import url('resources/fonts/dejavu.css'); -/* y[W̃obNOEh̐F */ -body { background-color: #FFFFFF; color:#000000 } +/* + * Styles for individual HTML elements. + * + * These are styles that are specific to individual HTML elements. Changing them affects the style of a particular + * HTML element throughout the page. + */ -/* o */ -h1 { font-size: 145% } +body { + background-color:#ffffff; + color:#353833; + font-family:'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:14px; + margin:0; + padding:0; + height:100%; + width:100%; +} +iframe { + margin:0; + padding:0; + height:100%; + width:100%; + overflow-y:scroll; + border:none; +} +a:link, a:visited { + text-decoration:none; + color:#4A6782; +} +a[href]:hover, a[href]:focus { + text-decoration:none; + color:#bb7a2a; +} +a[name] { + color:#353833; +} +pre { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; +} +h1 { + font-size:20px; +} +h2 { + font-size:18px; +} +h3 { + font-size:16px; +} +h4 { + font-size:15px; +} +h5 { + font-size:14px; +} +h6 { + font-size:13px; +} +ul { + list-style-type:disc; +} +code, tt { + font-family:'DejaVu Sans Mono', monospace; +} +:not(h1, h2, h3, h4, h5, h6) > code, +:not(h1, h2, h3, h4, h5, h6) > tt { + font-size:14px; + padding-top:4px; + margin-top:8px; + line-height:1.4em; +} +dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + padding-top:4px; +} +.summary-table dt code { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + vertical-align:top; + padding-top:4px; +} +sup { + font-size:8px; +} +button { + font-family: 'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size: 14px; +} +/* + * Styles for HTML generated by javadoc. + * + * These are style classes that are used by the standard doclet to generate HTML documentation. + */ -/* e[u̐F */ -.TableHeadingColor { background: #CCCCFF; color:#000000 } /* ZF */ -.TableSubHeadingColor { background: #EEEEFF; color:#000000 } /* F */ -.TableRowColor { background: #FFFFFF; color:#000000 } /* */ +/* + * Styles for document title and copyright. + */ +.clear { + clear:both; + height:0; + overflow:hidden; +} +.about-language { + float:right; + padding:0 21px 8px 8px; + font-size:11px; + margin-top:-9px; + height:2.9em; +} +.legal-copy { + margin-left:.5em; +} +.tab { + background-color:#0066FF; + color:#ffffff; + padding:8px; + width:5em; + font-weight:bold; +} +/* + * Styles for navigation bar. + */ +@media screen { + .flex-box { + position:fixed; + display:flex; + flex-direction:column; + height: 100%; + width: 100%; + } + .flex-header { + flex: 0 0 auto; + } + .flex-content { + flex: 1 1 auto; + overflow-y: auto; + } +} +.top-nav { + background-color:#4D7A97; + color:#FFFFFF; + float:left; + padding:0; + width:100%; + clear:right; + min-height:2.8em; + padding-top:10px; + overflow:hidden; + font-size:12px; +} +.sub-nav { + background-color:#dee3e9; + float:left; + width:100%; + overflow:hidden; + font-size:12px; +} +.sub-nav div { + clear:left; + float:left; + padding:0 0 5px 6px; + text-transform:uppercase; +} +.sub-nav .nav-list { + padding-top:5px; +} +ul.nav-list { + display:block; + margin:0 25px 0 0; + padding:0; +} +ul.sub-nav-list { + float:left; + margin:0 25px 0 0; + padding:0; +} +ul.nav-list li { + list-style:none; + float:left; + padding: 5px 6px; + text-transform:uppercase; +} +.sub-nav .nav-list-search { + float:right; + margin:0 0 0 0; + padding:5px 6px; + clear:none; +} +.nav-list-search label { + position:relative; + right:-16px; +} +ul.sub-nav-list li { + list-style:none; + float:left; + padding-top:10px; +} +.top-nav a:link, .top-nav a:active, .top-nav a:visited { + color:#FFFFFF; + text-decoration:none; + text-transform:uppercase; +} +.top-nav a:hover { + text-decoration:none; + color:#bb7a2a; + text-transform:uppercase; +} +.nav-bar-cell1-rev { + background-color:#F8981D; + color:#253441; + margin: auto 5px; +} +.skip-nav { + position:absolute; + top:auto; + left:-9999px; + overflow:hidden; +} +/* + * Hide navigation links and search box in print layout + */ +@media print { + ul.nav-list, div.sub-nav { + display:none; + } +} +/* + * Styles for page header and footer. + */ +.title { + color:#2c4557; + margin:10px 0; +} +.sub-title { + margin:5px 0 0 0; +} +.header ul { + margin:0 0 15px 0; + padding:0; +} +.header ul li, .footer ul li { + list-style:none; + font-size:13px; +} +/* + * Styles for headings. + */ +body.class-declaration-page .summary h2, +body.class-declaration-page .details h2, +body.class-use-page h2, +body.module-declaration-page .block-list h2 { + font-style: italic; + padding:0; + margin:15px 0; +} +body.class-declaration-page .summary h3, +body.class-declaration-page .details h3, +body.class-declaration-page .summary .inherited-list h2 { + background-color:#dee3e9; + border:1px solid #d0d9e0; + margin:0 0 6px -8px; + padding:7px 5px; +} +/* + * Styles for page layout containers. + */ +main { + clear:both; + padding:10px 20px; + position:relative; +} +dl.notes > dt { + font-family: 'DejaVu Sans', Arial, Helvetica, sans-serif; + font-size:12px; + font-weight:bold; + margin:10px 0 0 0; + color:#4E4E4E; +} +dl.notes > dd { + margin:5px 10px 10px 0; + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} +dl.name-value > dt { + margin-left:1px; + font-size:1.1em; + display:inline; + font-weight:bold; +} +dl.name-value > dd { + margin:0 0 0 1px; + font-size:1.1em; + display:inline; +} +/* + * Styles for lists. + */ +li.circle { + list-style:circle; +} +ul.horizontal li { + display:inline; + font-size:0.9em; +} +div.inheritance { + margin:0; + padding:0; +} +div.inheritance div.inheritance { + margin-left:2em; +} +ul.block-list, +ul.details-list, +ul.member-list, +ul.summary-list { + margin:10px 0 10px 0; + padding:0; +} +ul.block-list > li, +ul.details-list > li, +ul.member-list > li, +ul.summary-list > li { + list-style:none; + margin-bottom:15px; + line-height:1.4; +} +.summary-table dl, .summary-table dl dt, .summary-table dl dd { + margin-top:0; + margin-bottom:1px; +} +ul.see-list, ul.see-list-long { + padding-left: 0; + list-style: none; +} +ul.see-list li { + display: inline; +} +ul.see-list li:not(:last-child):after, +ul.see-list-long li:not(:last-child):after { + content: ", "; + white-space: pre-wrap; +} +/* + * Styles for tables. + */ +.summary-table, .details-table { + width:100%; + border-spacing:0; + border-left:1px solid #EEE; + border-right:1px solid #EEE; + border-bottom:1px solid #EEE; + padding:0; +} +.caption { + position:relative; + text-align:left; + background-repeat:no-repeat; + color:#253441; + font-weight:bold; + clear:none; + overflow:hidden; + padding:0; + padding-top:10px; + padding-left:1px; + margin:0; + white-space:pre; +} +.caption a:link, .caption a:visited { + color:#1f389c; +} +.caption a:hover, +.caption a:active { + color:#FFFFFF; +} +.caption span { + white-space:nowrap; + padding-top:5px; + padding-left:12px; + padding-right:12px; + padding-bottom:7px; + display:inline-block; + float:left; + background-color:#F8981D; + border: none; + height:16px; +} +div.table-tabs { + padding:10px 0 0 1px; + margin:0; +} +div.table-tabs > button { + border: none; + cursor: pointer; + padding: 5px 12px 7px 12px; + font-weight: bold; + margin-right: 3px; +} +div.table-tabs > button.active-table-tab { + background: #F8981D; + color: #253441; +} +div.table-tabs > button.table-tab { + background: #4D7A97; + color: #FFFFFF; +} +.two-column-summary { + display: grid; + grid-template-columns: minmax(15%, max-content) minmax(15%, auto); +} +.three-column-summary { + display: grid; + grid-template-columns: minmax(10%, max-content) minmax(15%, max-content) minmax(15%, auto); +} +.four-column-summary { + display: grid; + grid-template-columns: minmax(10%, max-content) minmax(10%, max-content) minmax(10%, max-content) minmax(10%, auto); +} +@media screen and (max-width: 600px) { + .two-column-summary { + display: grid; + grid-template-columns: 1fr; + } +} +@media screen and (max-width: 800px) { + .three-column-summary { + display: grid; + grid-template-columns: minmax(10%, max-content) minmax(25%, auto); + } + .three-column-summary .col-last { + grid-column-end: span 2; + } +} +@media screen and (max-width: 1000px) { + .four-column-summary { + display: grid; + grid-template-columns: minmax(15%, max-content) minmax(15%, auto); + } +} +.summary-table > div, .details-table > div { + text-align:left; + padding: 8px 3px 3px 7px; +} +.col-first, .col-second, .col-last, .col-constructor-name, .col-summary-item-name { + vertical-align:top; + padding-right:0; + padding-top:8px; + padding-bottom:3px; +} +.table-header { + background:#dee3e9; + font-weight: bold; +} +.col-first, .col-first { + font-size:13px; +} +.col-second, .col-second, .col-last, .col-constructor-name, .col-summary-item-name, .col-last { + font-size:13px; +} +.col-first, .col-second, .col-constructor-name { + vertical-align:top; + overflow: auto; +} +.col-last { + white-space:normal; +} +.col-first a:link, .col-first a:visited, +.col-second a:link, .col-second a:visited, +.col-first a:link, .col-first a:visited, +.col-second a:link, .col-second a:visited, +.col-constructor-name a:link, .col-constructor-name a:visited, +.col-summary-item-name a:link, .col-summary-item-name a:visited, +.constant-values-container a:link, .constant-values-container a:visited, +.all-classes-container a:link, .all-classes-container a:visited, +.all-packages-container a:link, .all-packages-container a:visited { + font-weight:bold; +} +.table-sub-heading-color { + background-color:#EEEEFF; +} +.even-row-color, .even-row-color .table-header { + background-color:#FFFFFF; +} +.odd-row-color, .odd-row-color .table-header { + background-color:#EEEEEF; +} +/* + * Styles for contents. + */ +.deprecated-content { + margin:0; + padding:10px 0; +} +div.block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; +} +.col-last div { + padding-top:0; +} +.col-last a { + padding-bottom:3px; +} +.module-signature, +.package-signature, +.type-signature, +.member-signature { + font-family:'DejaVu Sans Mono', monospace; + font-size:14px; + margin:14px 0; + white-space: pre-wrap; +} +.module-signature, +.package-signature, +.type-signature { + margin-top: 0; +} +.member-signature .type-parameters-long, +.member-signature .parameters, +.member-signature .exceptions { + display: inline-block; + vertical-align: top; + white-space: pre; +} +.member-signature .type-parameters { + white-space: normal; +} +/* + * Styles for formatting effect. + */ +.source-line-no { + color:green; + padding:0 30px 0 0; +} +h1.hidden { + visibility:hidden; + overflow:hidden; + font-size:10px; +} +.block { + display:block; + margin:0 10px 5px 0; + color:#474747; +} +.deprecated-label, .descfrm-type-label, .implementation-label, .member-name-label, .member-name-link, +.module-label-in-package, .module-label-in-type, .override-specify-label, .package-label-in-type, +.package-hierarchy-label, .type-name-label, .type-name-link, .search-tag-link, .preview-label { + font-weight:bold; +} +.deprecation-comment, .help-footnote, .preview-comment { + font-style:italic; +} +.deprecation-block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; + border-style:solid; + border-width:thin; + border-radius:10px; + padding:10px; + margin-bottom:10px; + margin-right:10px; + display:inline-block; +} +.preview-block { + font-size:14px; + font-family:'DejaVu Serif', Georgia, "Times New Roman", Times, serif; + border-style:solid; + border-width:thin; + border-radius:10px; + padding:10px; + margin-bottom:10px; + margin-right:10px; + display:inline-block; +} +div.block div.deprecation-comment { + font-style:normal; +} +/* + * Styles specific to HTML5 elements. + */ +main, nav, header, footer, section { + display:block; +} +/* + * Styles for javadoc search. + */ +.ui-autocomplete-category { + font-weight:bold; + font-size:15px; + padding:7px 0 7px 3px; + background-color:#4D7A97; + color:#FFFFFF; +} +.result-item { + font-size:13px; +} +.ui-autocomplete { + max-height:85%; + max-width:65%; + overflow-y:scroll; + overflow-x:scroll; + white-space:nowrap; + box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23); +} +ul.ui-autocomplete { + position:fixed; + z-index:999999; + background-color: #FFFFFF; +} +ul.ui-autocomplete li { + float:left; + clear:both; + width:100%; +} +.result-highlight { + font-weight:bold; +} +.ui-autocomplete .result-item { + font-size: inherit; +} +#search-input { + background-image:url('resources/glass.png'); + background-size:13px; + background-repeat:no-repeat; + background-position:2px 3px; + padding-left:20px; + position:relative; + right:-18px; + width:400px; +} +#reset-button { + background-color: rgb(255,255,255); + background-image:url('resources/x.png'); + background-position:center; + background-repeat:no-repeat; + background-size:12px; + border:0 none; + width:16px; + height:16px; + position:relative; + left:-4px; + top:-4px; + font-size:0px; +} +.watermark { + color:#545454; +} +.search-tag-desc-result { + font-style:italic; + font-size:11px; +} +.search-tag-holder-result { + font-style:italic; + font-size:12px; +} +.search-tag-result:target { + background-color:yellow; +} +.module-graph span { + display:none; + position:absolute; +} +.module-graph:hover span { + display:block; + margin: -100px 0 0 100px; + z-index: 1; +} +.inherited-list { + margin: 10px 0 10px 0; +} +section.class-description { + line-height: 1.4; +} +.summary section[class$="-summary"], .details section[class$="-details"], +.class-uses .detail, .serialized-class-details { + padding: 0px 20px 5px 10px; + border: 1px solid #ededed; + background-color: #f8f8f8; +} +.inherited-list, section[class$="-details"] .detail { + padding:0 0 5px 8px; + background-color:#ffffff; + border:none; +} +.vertical-separator { + padding: 0 5px; +} +ul.help-section-list { + margin: 0; +} +ul.help-subtoc > li { + display: inline-block; + padding-right: 5px; + font-size: smaller; +} +ul.help-subtoc > li::before { + content: "\2022" ; + padding-right:2px; +} +span.help-note { + font-style: italic; +} +/* + * Indicator icon for external links. + */ +main a[href*="://"]::after { + content:""; + display:inline-block; + background-image:url('data:image/svg+xml; utf8, \ + \ + \ + '); + background-size:100% 100%; + width:7px; + height:7px; + margin-left:2px; + margin-bottom:4px; +} +main a[href*="://"]:hover::after, +main a[href*="://"]:focus::after { + background-image:url('data:image/svg+xml; utf8, \ + \ + \ + '); +} -/* ̃t[̃XgɎgptHg */ -.FrameTitleFont { font-size: 100%; font-family: Helvetica, Arial, sans-serif; color:#000000 } -.FrameHeadingFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } -.FrameItemFont { font-size: 90%; font-family: Helvetica, Arial, sans-serif; color:#000000 } - -/* irQ[Vo[̃tHgƐF */ -.NavBarCell1 { background-color:#EEEEFF; color:#000000} /* F */ -.NavBarCell1Rev { background-color:#00008B; color:#FFFFFF} /* Z */ -.NavBarFont1 { font-family: Arial, Helvetica, sans-serif; color:#000000;color:#000000;} -.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;color:#FFFFFF;} - -.NavBarCell2 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} -.NavBarCell3 { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF; color:#000000} +/* + * Styles for user-provided tables. + * + * borderless: + * No borders, vertical margins, styled caption. + * This style is provided for use with existing doc comments. + * In general, borderless tables should not be used for layout purposes. + * + * plain: + * Plain borders around table and cells, vertical margins, styled caption. + * Best for small tables or for complex tables for tables with cells that span + * rows and columns, when the "striped" style does not work well. + * + * striped: + * Borders around the table and vertical borders between cells, striped rows, + * vertical margins, styled caption. + * Best for tables that have a header row, and a body containing a series of simple rows. + */ +table.borderless, +table.plain, +table.striped { + margin-top: 10px; + margin-bottom: 10px; +} +table.borderless > caption, +table.plain > caption, +table.striped > caption { + font-weight: bold; + font-size: smaller; +} +table.borderless th, table.borderless td, +table.plain th, table.plain td, +table.striped th, table.striped td { + padding: 2px 5px; +} +table.borderless, +table.borderless > thead > tr > th, table.borderless > tbody > tr > th, table.borderless > tr > th, +table.borderless > thead > tr > td, table.borderless > tbody > tr > td, table.borderless > tr > td { + border: none; +} +table.borderless > thead > tr, table.borderless > tbody > tr, table.borderless > tr { + background-color: transparent; +} +table.plain { + border-collapse: collapse; + border: 1px solid black; +} +table.plain > thead > tr, table.plain > tbody tr, table.plain > tr { + background-color: transparent; +} +table.plain > thead > tr > th, table.plain > tbody > tr > th, table.plain > tr > th, +table.plain > thead > tr > td, table.plain > tbody > tr > td, table.plain > tr > td { + border: 1px solid black; +} +table.striped { + border-collapse: collapse; + border: 1px solid black; +} +table.striped > thead { + background-color: #E3E3E3; +} +table.striped > thead > tr > th, table.striped > thead > tr > td { + border: 1px solid black; +} +table.striped > tbody > tr:nth-child(even) { + background-color: #EEE +} +table.striped > tbody > tr:nth-child(odd) { + background-color: #FFF +} +table.striped > tbody > tr > th, table.striped > tbody > tr > td { + border-left: 1px solid black; + border-right: 1px solid black; +} +table.striped > tbody > tr > th { + font-weight: normal; +} +/** + * Tweak font sizes and paddings for small screens. + */ +@media screen and (max-width: 1050px) { + #search-input { + width: 300px; + } +} +@media screen and (max-width: 800px) { + #search-input { + width: 200px; + } + .top-nav, + .bottom-nav { + font-size: 11px; + padding-top: 6px; + } + .sub-nav { + font-size: 11px; + } + .about-language { + padding-right: 16px; + } + ul.nav-list li, + .sub-nav .nav-list-search { + padding: 6px; + } + ul.sub-nav-list li { + padding-top: 5px; + } + main { + padding: 10px; + } + .summary section[class$="-summary"], .details section[class$="-details"], + .class-uses .detail, .serialized-class-details { + padding: 0 8px 5px 8px; + } + body { + -webkit-text-size-adjust: none; + } +} +@media screen and (max-width: 500px) { + #search-input { + width: 150px; + } + .top-nav, + .bottom-nav { + font-size: 10px; + } + .sub-nav { + font-size: 10px; + } + .about-language { + font-size: 10px; + padding-right: 12px; + } +} diff --git a/p5f_sample/lib/doc/tag-search-index.js b/p5f_sample/lib/doc/tag-search-index.js new file mode 100644 index 0000000..0367dae --- /dev/null +++ b/p5f_sample/lib/doc/tag-search-index.js @@ -0,0 +1 @@ +tagSearchIndex = [];updateSearchResults(); \ No newline at end of file diff --git a/p5f_sample/lib/doc/type-search-index.js b/p5f_sample/lib/doc/type-search-index.js new file mode 100644 index 0000000..bba0a77 --- /dev/null +++ b/p5f_sample/lib/doc/type-search-index.js @@ -0,0 +1 @@ +typeSearchIndex = [{"l":"All Classes and Interfaces","u":"allclasses-index.html"},{"p":"com.rhizomatiks.bvh","l":"BvhBone"},{"p":"com.rhizomatiks.bvh","l":"BvhParser"}];updateSearchResults(); \ No newline at end of file diff --git a/p5f_sample/lib/src/BvhBone.java b/p5f_sample/lib/src/BvhBone.java index 9f332f2..e6d199e 100644 --- a/p5f_sample/lib/src/BvhBone.java +++ b/p5f_sample/lib/src/BvhBone.java @@ -285,4 +285,4 @@ public PVector getAbsEndPosition() { return absEndPos; } -} \ No newline at end of file +} diff --git a/p5f_sample/lib/src/BvhParser.java b/p5f_sample/lib/src/BvhParser.java index 9586e8e..6b48ba8 100644 --- a/p5f_sample/lib/src/BvhParser.java +++ b/p5f_sample/lib/src/BvhParser.java @@ -1,6 +1,5 @@ package com.rhizomatiks.bvh; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; + import java.util.ArrayList; import java.util.List; @@ -10,15 +9,13 @@ public class BvhParser { - private Boolean _motionLoop; + private boolean _motionLoop; private int _currentFrame = 0; private List _lines; private int _currentLine; - private BvhBone _currentBone; - private BvhBone _rootBone; private List> _frames; private int _nbFrames; @@ -28,7 +25,7 @@ public class BvhParser { public BvhParser() { - _motionLoop = true; + init(); } /** @@ -44,6 +41,15 @@ public Boolean getMotionLoop() * @param value */ public void setMotionLoop(Boolean value) + { + _motionLoop = Boolean.TRUE.equals(value); + } + + /** + * set Loop state + * @param value + */ + public void setMotionLoop(boolean value) { _motionLoop = value; } @@ -54,7 +60,7 @@ public void setMotionLoop(Boolean value) */ public String toStr() { - return _rootBone.structureToString(); + return _rootBone.structureToString(); } /** @@ -66,6 +72,22 @@ public int getNbFrames() return _nbFrames; } + /** + * get the currently selected frame + */ + public int getCurrentFrame() + { + return _currentFrame; + } + + /** + * get the duration of one frame in seconds + */ + public float getFrameTime() + { + return _frameTime; + } + /** * get bones list * @return @@ -83,7 +105,13 @@ public List getBones() */ public void init() { + _currentFrame = 0; + _lines = new ArrayList(); + _frames = new ArrayList>(); _bones = new ArrayList(); + _nbFrames = 0; + _frameTime = 0; + _rootBone = null; _motionLoop = true; } @@ -92,14 +120,12 @@ public void init() */ public void moveFrameTo(int __index) { - if(!_motionLoop) - { - if(__index >= _nbFrames) - _currentFrame = _nbFrames-1;//last frame - }else{ - while (__index >= _nbFrames) - __index -= _nbFrames; - _currentFrame = __index; //looped frame + ensureMotionData(); + + if (_motionLoop) { + _currentFrame = Math.floorMod(__index, _nbFrames); + } else { + _currentFrame = Math.max(0, Math.min(__index, _nbFrames - 1)); } _updateFrame(); } @@ -107,13 +133,13 @@ public void moveFrameTo(int __index) /** * go to millisecond of the BVH * @param mills millisecond - * @param loopSec the default loopsec for */ public void moveMsTo( int mills ) { - float frameTime = _frameTime * 1000; - int curFrame = (int)(mills / frameTime); - moveFrameTo( curFrame ); + ensureMotionData(); + float frameTimeMs = _frameTime * 1000; + int curFrame = (int)Math.floor(mills / frameTimeMs); + moveFrameTo(curFrame); } /** @@ -121,149 +147,165 @@ public void moveMsTo( int mills ) */ public void update() { - update( getBones().get(0) ); + if (_rootBone == null) { + throw new IllegalStateException("Parse BVH data before updating it"); + } + update(_rootBone); } protected void update(BvhBone bone ) { + PMatrix3D m = new PMatrix3D(); + + m.translate(bone.getXposition(), bone.getYposition(), bone.getZposition()); + m.translate(bone.getOffsetX(), bone.getOffsetY(), bone.getOffsetZ()); + + m.rotateY(PApplet.radians(bone.getYrotation())); + m.rotateX(PApplet.radians(bone.getXrotation())); + m.rotateZ(PApplet.radians(bone.getZrotation())); - PMatrix3D m = new PMatrix3D(); + bone.global_matrix = m; - m.translate(bone.getXposition(), bone.getYposition(), bone.getZposition()); - m.translate(bone.getOffsetX(), bone.getOffsetY(), bone.getOffsetZ()); - - m.rotateY(PApplet.radians(bone.getYrotation())); - m.rotateX(PApplet.radians(bone.getXrotation())); - m.rotateZ(PApplet.radians(bone.getZrotation())); - - bone.global_matrix = m; + if (bone.getParent() != null && bone.getParent().global_matrix != null) { + m.preApply(bone.getParent().global_matrix); + } + m.mult(new PVector(), bone.getAbsPosition()); - if (bone.getParent() != null && bone.getParent().global_matrix != null) - m.preApply(bone.getParent().global_matrix); - m.mult(new PVector(), bone.getAbsPosition()); - - if (bone.getChildren().size() > 0) - { - for (BvhBone child : bone.getChildren()) - { - update(child); - } - } - else - { - m.translate(bone.getEndOffsetX(), bone.getEndOffsetY(), bone.getEndOffsetZ()); - m.mult(new PVector(), bone.getAbsEndPosition()); - } + if (bone.hasChildren()) { + for (BvhBone child : bone.getChildren()) { + update(child); + } + } else { + m.translate(bone.getEndOffsetX(), bone.getEndOffsetY(), bone.getEndOffsetZ()); + m.mult(new PVector(), bone.getAbsEndPosition()); + } } private void _updateFrame() { - if (_currentFrame >= _frames.size()) return; + if (_currentFrame >= _frames.size()) { + throw new IllegalStateException("Frame data is shorter than the declared frame count"); + } List frame = _frames.get(_currentFrame); - int count = 0; - for (float n : frame) - { - BvhBone bone = _getBoneInFrameAt(count); - String prop = _getBonePropInFrameAt(count); - if(bone != null) { - Method getterMethod; - try { - getterMethod = bone.getClass().getDeclaredMethod("set".concat(prop), new Class[]{float.class}); - getterMethod.invoke(bone, n); - } catch (SecurityException e) { - e.printStackTrace(); - System.err.println("ERROR WHILST GETTING FRAME - 1"); - } catch (NoSuchMethodException e) { - e.printStackTrace(); - System.err.println("ERROR WHILST GETTING FRAME - 2"); - } catch (IllegalArgumentException e) { - e.printStackTrace(); - System.err.println("ERROR WHILST GETTING FRAME - 3"); - } catch (IllegalAccessException e) { - e.printStackTrace(); - System.err.println("ERROR WHILST GETTING FRAME - 4"); - } catch (InvocationTargetException e) { - e.printStackTrace(); - System.err.println("ERROR WHILST GETTING FRAME - 5"); - } + int expectedValues = getChannelCount(); + if (frame.size() != expectedValues) { + throw new IllegalStateException( + "Frame " + _currentFrame + " has " + frame.size() + + " values; expected " + expectedValues); + } + + int valueIndex = 0; + for (BvhBone bone : _bones) { + for (String channel : bone.getChannels()) { + applyChannel(bone, channel, frame.get(valueIndex)); + valueIndex++; } - count++; - } - } - - private String _getBonePropInFrameAt(int n) + } + } + + private void applyChannel(BvhBone bone, String channel, float value) { - int c = 0; - for (BvhBone bone : _bones) - { - if (c + bone.getNbChannels() > n) - { - n -= c; - return bone.getChannels().get(n); - }else{ - c += bone.getNbChannels(); - } + switch (channel) { + case "Xposition": bone.setXposition(value); break; + case "Yposition": bone.setYposition(value); break; + case "Zposition": bone.setZposition(value); break; + case "Xrotation": bone.setXrotation(value); break; + case "Yrotation": bone.setYrotation(value); break; + case "Zrotation": bone.setZrotation(value); break; + default: + throw new IllegalArgumentException("Unsupported BVH channel: " + channel); } - return null; } - - private BvhBone _getBoneInFrameAt( int n) + + private int getChannelCount() { - int c = 0; - for (BvhBone bone : _bones) - { - c += bone.getNbChannels(); - if ( c > n ) - return bone; + int count = 0; + for (BvhBone bone : _bones) { + count += bone.getNbChannels(); } - return null; - } + return count; + } public void parse(String[] srces) { - String[] linesStr = srces; - // liste de BvhLines - _lines = new ArrayList(); - - for ( String lineStr : linesStr) - _lines.add(new BvhLine(lineStr)); - + if (srces == null || srces.length < 2) { + throw new IllegalArgumentException("BVH data is empty or incomplete"); + } + + boolean motionLoop = _motionLoop; + init(); + _motionLoop = motionLoop; + for (String lineStr : srces) { + if (lineStr != null && !lineStr.trim().isEmpty()) { + _lines.add(new BvhLine(lineStr)); + } + } + + if (_lines.size() < 2 || !BvhLine.HIERARCHY.equals(_lines.get(0).getLineType()) + || !BvhLine.BONE.equals(_lines.get(1).getLineType())) { + throw new IllegalArgumentException("BVH data must start with HIERARCHY and ROOT"); + } + _currentLine = 1; - _rootBone = _parseBone(); - - // center locs - //_rootBone.offsetX = _rootBone.offsetY = _rootBone.offsetZ = 0; - + try { + _rootBone = _parseBone(); + } catch (IndexOutOfBoundsException e) { + throw new IllegalArgumentException("BVH hierarchy is incomplete", e); + } _parseFrames(); - } + ensureMotionData(); + _updateFrame(); + } private void _parseFrames() { int currentLine = _currentLine; for (; currentLine < _lines.size(); currentLine++) - if(_lines.get(currentLine).getLineType() == BvhLine.MOTION) break; + if (BvhLine.MOTION.equals(_lines.get(currentLine).getLineType())) break; - if ( _lines.size() > currentLine) - { - currentLine++; //Frames - _nbFrames = _lines.get(currentLine).getNbFrames(); - currentLine++; //FrameTime - _frameTime = _lines.get(currentLine).getFrameTime(); - currentLine++; - - _frames = new ArrayList>(); - for (; currentLine < _lines.size(); currentLine++) - { - _frames.add(_lines.get(currentLine).getFrames()); + if (currentLine >= _lines.size()) { + throw new IllegalArgumentException("BVH data does not contain a MOTION section"); + } + + currentLine++; + if (currentLine >= _lines.size() + || !BvhLine.FRAMES.equals(_lines.get(currentLine).getLineType())) { + throw new IllegalArgumentException("BVH MOTION section is missing Frames"); + } + _nbFrames = _lines.get(currentLine).getNbFrames(); + + currentLine++; + if (currentLine >= _lines.size() + || !BvhLine.FRAME_TIME.equals(_lines.get(currentLine).getLineType())) { + throw new IllegalArgumentException("BVH MOTION section is missing Frame Time"); + } + _frameTime = _lines.get(currentLine).getFrameTime(); + + currentLine++; + for (; currentLine < _lines.size(); currentLine++) { + if (!BvhLine.FRAME.equals(_lines.get(currentLine).getLineType())) { + throw new IllegalArgumentException("Unexpected line in BVH frame data"); } + _frames.add(_lines.get(currentLine).getFrames()); + } + + if (_frames.size() != _nbFrames) { + throw new IllegalArgumentException( + "BVH declares " + _nbFrames + " frames but contains " + _frames.size()); + } + } + + private void ensureMotionData() + { + if (_nbFrames <= 0 || _frameTime <= 0 || _frames.isEmpty()) { + throw new IllegalStateException("Parse valid BVH motion data before selecting a frame"); } } private BvhBone _parseBone() { - //_currentBone is Parent - BvhBone bone = new BvhBone( _currentBone ); + BvhBone bone = new BvhBone(); _bones.add(bone); @@ -309,8 +351,7 @@ else if( BvhLine.BRACE_CLOSED.equals( lineType ) ) } _currentLine++; } - System.out.println("//Something strage"); - return bone; + throw new IllegalArgumentException("Unexpected end of BVH hierarchy near " + bone.getName()); } private class BvhLine @@ -355,13 +396,8 @@ public String toString() private void _parse(String __lineStr) { - _lineStr = __lineStr; - _lineStr = _lineStr.trim(); - _lineStr = _lineStr.replace("\t", ""); - _lineStr = _lineStr.replace("\n", ""); - _lineStr = _lineStr.replace("\r", ""); - - String[] words = _lineStr.split(" "); + _lineStr = __lineStr.trim(); + String[] words = _lineStr.split("\\s+"); _lineType = _parseLineType(words); @@ -370,7 +406,7 @@ private void _parse(String __lineStr) { return; } else if ( BONE.equals(_lineType) ) { - _boneType = (words[0] == "ROOT") ? BONE_TYPE_ROOT : BONE_TYPE_JOINT; + _boneType = ("ROOT".equals(words[0])) ? BONE_TYPE_ROOT : BONE_TYPE_JOINT; _boneName = words[1]; return; } else if ( OFFSET.equals(_lineType) ) { @@ -428,12 +464,11 @@ private String _parseLineType( String[] __words) { return FRAME_TIME; try { - Float.parseFloat(__words[0]); //check is Parsable + Float.parseFloat(__words[0]); // Check whether the line starts with a frame value. return FRAME; } catch ( NumberFormatException e) { - e.printStackTrace(); + throw new IllegalArgumentException("Unsupported BVH line: " + _lineStr, e); } - return null; } diff --git a/p5f_sample/p5f_sample.pde b/p5f_sample/p5f_sample.pde index 326cfba..74b073d 100644 --- a/p5f_sample/p5f_sample.pde +++ b/p5f_sample/p5f_sample.pde @@ -1,48 +1,72 @@ -BvhParser parserA = new BvhParser(); -PBvh bvh1, bvh2, bvh3; - - -public void setup() -{ - size( 1280, 720, P3D ); - background( 0 ); +import com.rhizomatiks.bvh.BvhBone; +import com.rhizomatiks.bvh.BvhParser; + +PBvh bvh1; +PBvh bvh2; +PBvh bvh3; +boolean smokeTest; + +void settings() { + size(1280, 720, P3D); +} + +void setup() { + background(0); noStroke(); - frameRate( 30 ); - - bvh1 = new PBvh( loadStrings( "A_test.bvh" ) ); - bvh2 = new PBvh( loadStrings( "B_test.bvh" ) ); - bvh3 = new PBvh( loadStrings( "C_test.bvh" ) ); + frameRate(30); + + smokeTest = false; + if (args != null) { + for (String arg : args) { + smokeTest |= "--smoke-test".equals(arg); + } + } - loop(); + bvh1 = new PBvh(loadStrings("A_test.bvh")); + bvh2 = new PBvh(loadStrings("B_test.bvh")); + bvh3 = new PBvh(loadStrings("C_test.bvh")); } -public void draw() -{ - background( 0 ); - - //camera - float _cos = cos(millis() / 5000.f); - float _sin = sin(millis() / 5000.f); - camera(width/4.f + width/4.f * _cos +200, height/2.0f-100, 550 + 150 * _sin,width/2.0f, height/2.0f, -400, 0, 1, 0); - - //ground - fill( color( 255 )); - stroke(127); - line(width/2.0f, height/2.0f, -30, width/2.0f, height/2.0f, 30); +void draw() { + background(0); + + // Camera + float orbitCos = cos(millis() / 5000.0f); + float orbitSin = sin(millis() / 5000.0f); + camera( + width / 4.0f + width / 4.0f * orbitCos + 200, + height / 2.0f - 100, + 550 + 150 * orbitSin, + width / 2.0f, + height / 2.0f, + -400, + 0, + 1, + 0 + ); + + // Ground + fill(255); stroke(127); - line(width/2.0f-30, height/2.0f, 0, width/2.0f + 30, height/2.0f, 0); + line(width / 2.0f, height / 2.0f, -30, width / 2.0f, height / 2.0f, 30); + line(width / 2.0f - 30, height / 2.0f, 0, width / 2.0f + 30, height / 2.0f, 0); stroke(255); + pushMatrix(); - translate( width/2, height/2-10, 0); + translate(width / 2.0f, height / 2.0f - 10, 0); scale(-1, -1, -1); - - //model - bvh1.update( millis() ); - bvh2.update( millis() ); - bvh3.update( millis() ); + + // Models + bvh1.update(millis()); + bvh2.update(millis()); + bvh3.update(millis()); bvh1.draw(); bvh2.draw(); bvh3.draw(); popMatrix(); -} + if (smokeTest && frameCount >= 10) { + println("SMOKE_TEST_OK frames=" + frameCount + " motions=3"); + exit(); + } +} diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..8123619 --- /dev/null +++ b/pom.xml @@ -0,0 +1,96 @@ + + + 4.0.0 + + com.rhizomatiks + bvh-parser + 1.0-SNAPSHOT + BVHParser for example-processing + + + 17 + UTF-8 + 2026-09-05T00:00:00Z + 4.5.6 + 5.11.4 + + + + + org.processing + core + ${processing.version} + + + org.junit.jupiter + junit-jupiter + ${junit.version} + test + + + + + p5f_sample/lib/src + BVHParser + + + org.apache.maven.plugins + maven-enforcer-plugin + 3.6.3 + + + require-java-17 + + enforce + + + + + [17,18) + + + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.13.0 + + + org.apache.maven.plugins + maven-surefire-plugin + 3.5.2 + + false + + + + org.apache.maven.plugins + maven-jar-plugin + 3.4.2 + + + + BVHParser + ${processing.version} + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + 3.11.2 + + BVHParser API documentation. + none + true + + + + + diff --git a/src/test/java/com/rhizomatiks/bvh/BvhParserTest.java b/src/test/java/com/rhizomatiks/bvh/BvhParserTest.java new file mode 100644 index 0000000..81b4442 --- /dev/null +++ b/src/test/java/com/rhizomatiks/bvh/BvhParserTest.java @@ -0,0 +1,87 @@ +package com.rhizomatiks.bvh; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; + +import java.io.IOException; +import java.nio.file.Files; +import java.nio.file.Path; +import java.util.List; +import org.junit.jupiter.api.Test; + +class BvhParserTest { + private static final Path DATA_DIRECTORY = Path.of("p5f_sample", "data"); + + @Test + void parsesAndUpdatesEveryBundledMotion() throws IOException { + for (String filename : List.of("A_test.bvh", "B_test.bvh", "C_test.bvh")) { + BvhParser parser = parse(DATA_DIRECTORY.resolve(filename)); + + assertEquals(1300, parser.getNbFrames(), filename); + assertEquals(0.025f, parser.getFrameTime(), 0.000001f, filename); + assertEquals(23, parser.getBones().size(), filename); + + parser.moveFrameTo(1); + parser.update(); + + assertEquals(1, parser.getCurrentFrame(), filename); + assertEquals("Hips", parser.getBones().get(0).getName(), filename); + } + } + + @Test + void loopsAndClampsFrameSelection() throws IOException { + BvhParser parser = parse(DATA_DIRECTORY.resolve("A_test.bvh")); + + parser.moveFrameTo(parser.getNbFrames()); + assertEquals(0, parser.getCurrentFrame()); + + parser.moveFrameTo(-1); + assertEquals(parser.getNbFrames() - 1, parser.getCurrentFrame()); + + parser.setMotionLoop(false); + parser.moveFrameTo(-1); + assertEquals(0, parser.getCurrentFrame()); + + parser.moveFrameTo(parser.getNbFrames()); + assertEquals(parser.getNbFrames() - 1, parser.getCurrentFrame()); + } + + @Test + void acceptsOrdinaryBvhWhitespace() { + BvhParser parser = new BvhParser(); + parser.parse(new String[] { + "HIERARCHY", + "ROOT Root", + "{", + "\tOFFSET 0 0 0", + "CHANNELS 6 Xposition Yposition Zposition Xrotation Yrotation Zrotation", + "End Site", + "{", + "OFFSET 0 1 0", + "}", + "}", + "MOTION", + "Frames: 1", + "Frame Time: 0.033333", + "0 0 0 0 0 0" + }); + + parser.update(); + assertEquals(1, parser.getNbFrames()); + assertEquals(1, parser.getBones().size()); + } + + @Test + void rejectsIncompleteInputWithAUsefulError() { + BvhParser parser = new BvhParser(); + assertThrows(IllegalArgumentException.class, + () -> parser.parse(new String[] {"HIERARCHY", "ROOT Root"})); + } + + private static BvhParser parse(Path path) throws IOException { + BvhParser parser = new BvhParser(); + parser.parse(Files.readAllLines(path).toArray(String[]::new)); + return parser; + } +}