| Interface | Description |
|---|---|
| CheckListProviderView.OnItemToggledListener |
Listener for item checkbox toggle events.
|
| ConfirmationDialogFragment.OnConfirmListener |
Interface defining a listener for the ConfirmationDialog.
|
| NotificationAction |
NotificationAction is an interface for what happens
when a notification button is selected.
|
| NotificationInfo.OnNotificationAcknowledgedListener |
the interface for notification acknowledgement.
|
| ScrollDisableable |
Interface for LayoutManagers whose scrolling can be toggled on and off
|
| Class | Description |
|---|---|
| Bid |
Bid provides a model of a bid, with a user and a price,
that is strictly contained by a task
|
| BidListAdapter |
For use with ViewBidsActivity
Creates and manages Bid Views for the RecyclerView in the activity
Defines Button functionality within the Bid Views
Should be used with a scrollable LayoutManager which implements ScrollDisableable, though not
totally necessary
|
| BidTest |
unit tests for the Bid class
|
| BidViewHolder |
Used by BidListAdapter.
|
| BuildConfig | |
| Cache |
Cache for RemoteObjects.
|
| CacheMatcher<RemoteT extends RemoteObject> |
CacheMatcher provides an abstract class to standardize
searching a cache for certain criteria.
|
| CacheTest | |
| CachingClient<TClient extends ca.ualberta.cs.wrkify.RemoteClient> |
Caching wrapper around a RemoteClient.
|
| CachingClientSearcherTest |
Created by peter on 18/03/18.
|
| CachingClientTest | |
| CheckList |
CheckList models a simple to do list
items can be strings
|
| CheckList.CheckListItem |
A single item in the CheckList.
|
| CheckListEditorView |
View for a task checklist of EditTaskActivity.
|
| CheckListProviderView |
View for a task checklist of ViewTaskActivity.
|
| CheckListTest |
Unit tests for CheckList and CheckListItem.
|
| ConcreteTestObject |
ConcreteTestObject is Used for testing ElasticClient
|
| ConcreteUserTest |
unit tests for the User class
|
| ConfirmationDialogFragment |
Fragment to ask for confirmation.
|
| EditProfileActivity |
Activity for a user to edit their profile.
|
| EditProfileActivityTest |
Tests for EditProfileActivity.
|
| EditTaskActivity |
Activity for a task requester to edit a task that they own
or to create a new task.
|
| EditTaskActivityTest |
Tests for EditTaskActivity.
|
| ElasticClient |
ElasticClient exposes key elasticsearch functionality through
the RemoteObject.
|
| ElasticClientTest |
Created by peter on 17/03/18.
|
| ElasticSearcher |
object to preform pre-defined searches on a client
|
| ExampleInstrumentedTest |
Instrumented test, which will execute on an Android device.
|
| ExampleUnitTest |
Example local unit test, which will execute on the development machine (host).
|
| JSONConstructor |
JSONConstructor provides static methods and classes
for writing json in simply in java
|
| LoginActivity |
Allows a user to log in.
|
| LoginActivityTest |
Tests for LoginActivity.
|
| MainActivity |
the entry point to the wrkify app, provides the bottom navigation
and delegates to fragments
|
| MainActivityTest |
Tests for MainActivity.
|
| NotificationCollector |
Encapsulated list of notifications.
|
| NotificationCollectorTest | |
| NotificationInfo |
Entity representing an abstract notification.
|
| NotificationView |
View displaying a NotificationInfo object.
|
| Price |
Price provides an object for the behaviors of a non
negative price.
|
| PriceTest |
Created by peter on 28/03/18.
|
| ProviderFragment |
ProviderFragment displays the lists of task that a task provider needs to see
this Fragment is displayed by MainActivity
|
| ProviderFragment.AssignedListFragment |
AssignedListFragment is a TaskListFragment based off of
tasks that are assigned to the session user
|
| ProviderFragment.BiddedListFragment |
AssignedListFragment is a TaskListFragment based off of
tasks that are bidded on by the session error
|
| ProviderFragment.CompletedListFragment |
AssignedListFragment is a TaskListFragment based off of
tasks that are completed by the session user
|
| R | |
| R.anim | |
| R.animator | |
| R.attr | |
| R.bool | |
| R.color | |
| R.dimen | |
| R.drawable | |
| R.id | |
| R.integer | |
| R.layout | |
| R.menu | |
| R.mipmap | |
| R.string | |
| R.style | |
| R.styleable | |
| RegisterActivity |
Allows a user to register.
|
| RegisterActivityTest |
Tests for RegisterActivity.
|
| RemoteList<T extends RemoteObject> |
RemoteList is a List of Remote objects that can be refreshed.
|
| RemoteObject |
RemoteObject is an abstract class for defining
behaviors of objects that are uploaded to RemoteClients
|
| RemoteQueryList<T extends RemoteObject> |
RemoteQueryList is a RemoteList that defines refresh behavior
based on a query to a remoteClient
|
| RemoteReference<T extends RemoteObject> |
A RemoteReference is an object consisting of a remote ID that can be
dereferenced to produce an object of a specific type.
|
| RemoteReferenceTest |
Tests for RemoteReference.
|
| RemoteTaskIntegrationTest |
Created by peter on 18/03/18.
|
| RemoteUserIntegrationTest |
Created by peter on 18/03/18.
|
| RequesterFragment |
RequesterFragment displays the lists of task that a task requester needs to see
this Fragment is displayed by MainActivity
|
| RequesterFragment.AssignedListFragment |
AssignedListFragment is a TaskListFragment based off of
tasks that are requested by the session user and have
been assigned to a provider
|
| RequesterFragment.ClosedListFragment |
ClosedListFragment is a TaskListFragment based off of
tasks that are requested by the session user and have
been finished
|
| RequesterFragment.RequestedListFragment |
RequestedListFragment is a TaskListFragment based off of
tasks that are requested by the session user and may or
may not have been bidded on
|
| ScrollDisableableLinearLayoutManager |
Normal LinearLayoutManager but can toggle scrolling on and off
|
| SearcherTest |
Created by peter on 18/03/18.
|
| SearchFragment |
SearchFragment allows users to search for tasks
this Fragment is displayed by MainActivity
Uses Searcher for search queries and TaskListAdapter
for usage in a RecyclerView of tasks.
|
| Session |
Session is a global singleton that holds a reference
to the user that is currently logged in.
|
| SetTaskLocationActivity | |
| Signal |
Signal is a remoteObject that holds
notification info.
|
| SignalManager |
SignalManager converts signals inro android notifications
|
| SimpleTransaction1 |
Created by peter on 03/04/18.
|
| SimpleTransaction2 |
Created by peter on 03/04/18.
|
| StateChangeTransaction<T extends RemoteObject> |
Transaction models an atomic change to a RemoteObject
transactions subclasses define the apply() function
in order to implement the specific behavior.
|
| StatusView |
StatusView provides a material design chip interface
for displaying a Task Status
|
| Task |
Task is a RemoteObject that stores the information of
a task, and provides operations associated with bidding.
|
| TaskAcceptBidTransaction |
TaskAcceptBidTransaction models accepting a bid as
a Transaction
|
| TaskAddImageTransaction |
TaskAddImageTransaction models Task.addImage() as
a Transaction
|
| TaskAddOrReplaceBidTransaction |
TaskAddOrReplaceBidTransaction models adding a bid to
a task, replacing the bidding user's existing bid if it exists.
|
| TaskCancelBidTransaction |
TaskCancelBidTransaction is the transaction
that models canceling a bid.
|
| TaskCheckListTransaction |
TaskCheckListTransaction represents a Transaction for
Task.setCheckList()
|
| TaskCompleteTransaction |
TaskCompleteTransaction provides a Transaction for the
Task.complete() operation.
|
| TaskCreateTransaction |
TaskCreateTransaction is a Transaction for creating
a task
|
| TaskDeleteTransaction |
TaskDeleteTransaction is a Transaction that models
the deleteion of a Task
|
| TaskDelImageTransaction |
TaskDelImageTransaction models Task.delImage() as
a Transaction
|
| TaskDescriptionTransaction |
TaskDescriptionTransaction represents a Transaction
that changes the description of a task.
|
| TaskListAdapter<T extends Task> |
Adapter for lists of Tasks or objects in that family.
|
| TaskListFragment |
TaskListFragment is an abstract class that handles the
behavior of a List of tasks it defines the behavior
of scrolling as well as selecting tasks.
|
| TaskLocation |
TaskLocation is the Location class
used in task to make Elasticsearch
location queries work
|
| TaskLocationTest | |
| TaskLocationTransaction |
TaskLocationTransaction represents a Transaction for
Task.setLocation()
|
| TasksNearMeMap | |
| TaskTest |
Created by Craig on 2018-02-24.
|
| TaskTitleTransaction |
TaskTitleTransaction represents a Transaction
that changes the title of a task.
|
| TaskTransactionsTest |
Created by peter on 03/04/18.
|
| TaskUnassignTransaction |
Created by peter on 03/04/18.
|
| TaskViewHolder<T extends Task> |
TaskViewHolder acts as a cache for task CardViews
for us in tandem with an adapter (TaskListAdapter)
and a RecyclerView to minimize costly findViewById calls
for a potentially large RecyclerView lists of tasks.
|
| TestMapsActivity | |
| Transaction<T extends RemoteObject> |
Transaction represents a single change to a remote Object
that can be applied to a RemoteObject
|
| TransactionAsyncTask |
TransactionAsyncTask is an AsyncTask for applying as transaction
to an object.
|
| TransactionManager |
TransactionManager is a queue of Transactions
|
| TransactionTest |
Created by peter on 28/03/18.
|
| User |
User keeps the username and related contact
information of a user and provides getters
and setters.
|
| UserDeleteSignalsTransaction |
UserDeleteSignalsTransaction is a transaction to delete
all the signals.
|
| UserSetEmailTransaction |
Transaction to set a user's email address.
|
| UserSetPhoneNumberTransaction |
Transaction to set a user's phone number.
|
| UserView |
Displays a username.
|
| ViewBidsActivity |
ViewBidsActivity shows a list of bids on a task that the viewer can scroll through, and if the
viewer is a requester of said task, they can accept or reject bids
Start with an Intent that has extra:
EXTRA_VIEWBIDS_TASK: Task that is being viewed
|
| ViewBidsActivityTest |
Tests for ViewBidsActivity.
|
| ViewProfileActivity |
ViewProfileActivity displays the contact information of
a User, as well as provides the option to edit info
|
| ViewProfileActivityTest |
Tests for ViewProfileActivity.
|
| ViewTaskActivity |
ViewTaskActivity displays an expanded view of a Task.
|
| ViewTaskActivityTest |
Tests for ViewTaskActivity.
|
| ViewTaskAssignedBottomSheetFragment |
Bottom sheet for a task provider viewing a task that is assigned (to
themself or to someone else.) Contains no controls.
|
| ViewTaskBiddedBottomSheetFragment |
Bottom sheet to use for a task requester viewing a task
of their own that has been bidded on.
|
| ViewTaskBottomSheetFragment |
Base class for bottom sheets of the ViewTaskActivity.
|
| ViewTaskDoneBottomSheetFragment |
Bottom sheet to use for a task that is completed.
|
| ViewTaskNotificationAction |
ViewTaskNotificationAction is NotificationAction that launches
the associated task.
|
| ViewTaskOpenBottomSheetFragment |
Bottom sheet for a task provider viewing a task that is
open or bidded, and that they have not bidded on themselves.
|
| ViewTaskProviderBiddedBottomSheetFragment |
ViewTaskProviderBidderBottomSheetFragment is the bottomsheet that
a user will see if they are the provider or bidder.
|
| ViewTaskRequestedBottomSheetFragment |
Bottom sheet to use for a task requester viewing their own task
that has no bids so far.
|
| ViewTaskRequesterAssignedBottomSheetFragment |
Bottom sheet to use for a task requester viewing a task they
have assigned to a provider.
|
| WrkifyClient |
WrkifyClient provides a singleton of RemoteClient
with the default app settings.
|
| Enum | Description |
|---|---|
| Signal.SignalType | |
| TaskStatus |
Task status enum according to US 02.02.01
|


Job / Employee Finder
Welcome to My Job Finder Application
Create your professional resume in 15 minutes!
Find a Job that Matches Your Skills
Logged user:
The recruiter is not logged in yet
Go to the list of all job that you posted
Create a New Job Post
Search People
Create a New Skill
This content is only shown to recruiter.
Logged user:
The job seeker is not logged in yet
You have received the following notifications about the recently posted jobs that matched your skills:
List of Job Notifications:
Notification
Matched Job Title
Job Details
See Job Details
Sorry, no jobs found matched your skills yet.
See Your Resume
Add Education
Add Work
Add Skill from the List to Person
Search Jobs
Create a New Skill
This content iis only shown to job seeker.


+++ +++ {{< blocks/cover title="Welcome to ERMA PTA tech support!" image_anchor="top" height="full" color="primary" >}}
{{< /blocks/cover >}} {{% blocks/lead color="primary" %}} Welcome to the ERMA PTA! This site has all the tips and tricks necessary to get you started up and running with your ERMA PTA account. {{% /blocks/lead %}} {{< blocks/section color="dark" >}} {{< blocks/feature icon="fa-tasks" title="Getting started" >}}If you're brand new to the ERMA PTA, you'll need to know how to log in, get access to email, etc. This is the place for you!
{{< /blocks/feature >}} {{< blocks/feature icon="fa-user-friends" title="Collaboration" >}}As you ramp up, you'll need to work with others. Here you'll find tips for instant messaging, video meetings, file sharing, and more.
{{< /blocks/feature >}} {{< blocks/feature icon="fab fa-wordpress" title="Managing the website" >}}Folks in communication roles will need more advanced guidance on how to manage the website. All that goodness can be found here.
{{< /blocks/feature >}} {{< /blocks/section >}}


visualization package¶
Submodules¶
visualization.utils module¶
-
annotate_significance
(x1, x2, y, p)[source]¶ Add significance annotations over a plot.
- Parameters
x1 (float) – x position of factor 1.
x2 (float) – x position of factor 2.
y (float) – Outcome variable.
- Returns
- Return type
None
visualization.visualise module¶
-
plot_average_model_accuracy
(experiment, config, variation=False)[source]¶ Plots the average accuracy of the pytorch model prediction.
- Parameters
config (yaml file) – Configuration file with all parameters
variation (bool) – Plot variation (std) along with mean.
-
plot_bar
(config, dataframe, independent, dependent)[source]¶ Bar plot of the dataframe.
- Parameters
config (yaml) – The configuration file.
dataframe (dataframe) – A pandas dataframe containing the dependent and independent data with group data (usually this is the subject).
dependent (str) – A string stating which variable to use as dependent variable
independent (str) – A string stating which variable to use as independent variable
- Returns
- Return type
None


About Nicole
I'm a sophomore at Michigan State University studying in the feild of computer science. My family consits of my mother, my father, my grandmother and myself. I have two cats, Jasmine and Lucy, and two dogs, Ginger and Alexis. I went to Lakeview High School of Battle Creek and the Battle Creek Area Math and Science Center.
Portfolio
Clubs and Organizations
I am involved in Women in Computing and Mixed Martial Arts outside of class. Women in Computing gives me a good networking point where I can meet other females in the area of computer science. It also allows me to talk with companies who have opportunities in computer science. Mixed Martial Arts is something I picked up this year because I needed something to do that was not just sitting on a computer coding all day. My friend was in the club and invited me to join and I haven't turned back. It's good exercise and it teaches me self defense.
Contact
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged.


NavBar with 2 Items. Each item is with 50% width.
NavBar with 3 Items. Each item is with 33.33% width.
NavBar with 4 Items. Each item is with 25% width.
NavBar with 5 Items. Each item is with 20% width.
NavBar with more than 5 Items. Items are displayed in 2 columns and each item is with 50% width.
NavBar with "columns" set to ['30%', '50%', '20%'].


SocksiPy - Python SOCKS module. Version 1.00
Copyright 2006 Dan-Haim. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

This module provides a standard socket-like interface for Python for tunneling connections through SOCKS proxies.
Sets a default proxy which all further socksocket objects will use, unless explicitly changed.
Bases: socket._socketobject
socksocket([family[, type[, proto]]]) -> socket object Open a SOCKS enabled socket. The parameters are the same as those of the standard socket init. In order for SOCKS to work, you must specify family=AF_INET, type=SOCK_STREAM and proto=0.
Connects to the specified destination through a proxy. destpar - A tuple of the IP/DNS address and the port number. (identical to socket’s connect). To select the proxy server use setproxy().
Returns the IP address and port number of the destination machine (note: getproxypeername returns the proxy)
getsockname() -> address info Returns the bound IP address and port number at the proxy.
override socket.socket.sendall method to rewrite the header for non-tunneling proxies if needed
Sets the proxy to be used. proxytype - The type of the proxy to be used. Three types
are supported: PROXY_TYPE_SOCKS4 (including socks4a), PROXY_TYPE_SOCKS5 and PROXY_TYPE_HTTP
addr - The address of the server (IP or DNS). port - The port of the server. Defaults to 1080 for SOCKS
servers and 8080 for HTTP proxy servers.
Attempts to replace a module’s socket library with a SOCKS socket. Must set a default proxy using setdefaultproxy(...) first. This will only work on modules that import socket directly into the namespace; most of the Python Standard Library falls into this category.
Bases: object
An HTTP client that handles:
and more.
Add a key and cert that will be used any time a request requires authentication.
Add a name and password that will be used any time a request requires authentication.
Performs a single HTTP request.
The ‘uri’ is the URI of the HTTP resource and can begin with either ‘http’ or ‘https’. The value of ‘uri’ must be an absolute URI.
The ‘method’ is the HTTP method to perform, such as GET, POST, DELETE, etc. There is no restriction on the methods allowed.
The ‘body’ is the entity body to be sent with the request. It is a string object.
Any extra headers that are to be sent with the request should be provided in the ‘headers’ dictionary.
The maximum number of redirect to follow before raising an exception is ‘redirections. The default is 5.
The return value is a tuple of (response, content), the first being and instance of the ‘Response’ class, the second being a string that contains the response entity body.
Bases: dict
An object more like email.Message than httplib.HTTPResponse.
HTTP protocol version used by server. 10 for HTTP/1.0, 11 for HTTP/1.1.
Reason phrase returned by server.
Status code returned by server.
Bases: object
Collect information required to use a proxy.
Bases: cup.thirdp.httplib2.HttpLib2ErrorWithResponse
Bases: cup.thirdp.httplib2.HttpLib2ErrorWithResponse
Bases: cup.thirdp.httplib2.HttpLib2ErrorWithResponse
Bases: cup.thirdp.httplib2.HttpLib2ErrorWithResponse


--- layout: default ---
Extempore is a programming language and runtime environment designed to support cyberphysical programming, where a human programmer operates as an active agent in a real-time distributed network of environmentally aware systems. The cyberphysical programmer interacts with the distributed real-time system procedurally by modifying code on-the-fly.
Extempore provides a completely hotswappable runtime environment with a strong temporal semantics, a flexible concurrency architecture, builtin support for distributed heterogenous operation (both OS and Architecture), and aims to provide flexible compiler-as-a-service functionality. Extempore makes extensive use of the LLVM project to provide back-end code generation.
xtlang is a new systems programming language
designed to support the programming of real-time systems
xtlang uses an s-expression syntax similar to Scheme, and borrows many Lisp-like semantics including first class closures, tail recursion and macros. However, xtlang also borrows heavily from systems languages like C and features static typing, low-level type expressivity, direct pointer manipulation and explicit memory managment (i.e. no GC). xtlang then extends these C semantics with type-inferencing, ad-hoc polymorphism, reified generics, and zone/region based memory management.
Like any programming language, the docs are super-important for getting your head around things. Extempore's docs are split into three main sections:
If the docs don't seem to contain the answers you're looking for, then the friendly Extempore community can help you out. Get in touch on slack or on the mailing list.


--- layout: minimal title: "About me" permalink: /about/index.html description: "Some description about Yinghua Guan..." ---
🎙 I define myself as full stack data scientist. In a nutshell, a full stack data scientist is a combination of a data scientist, a software developer and a data engineer. I hold an M.Sc. in Data Science from the University of British Columbia(UBC) and a B.Sc. in Applied Mathematics from University of California, San Diego(UCSD).
📧 yinghuaguan.ca@gmail.com


Beauty is everywhere
Sometimes you're too busy with your everyday life and forget too live in a moment.
This video is intended to inspire others to slowdown and take a moment to appreciate the beauties around us.
homepage


These are the release notes for the Universal 3D (U3D) Sample Software for Microsoft Windows* and Red Hat Enterprise Linux* platforms. This software release implements the 3rd edition of Ecma International's ECMA-363 Universal 3D File Format Standard. The specification is available publicly from the ECMA website. This software is only sample software and is intended to provide a starting point for ISVs to develop U3D applications (it has received only limited validation and testing). It includes a few usage examples for software developers which are not complete or polished applications. The intention is to allow other companies to innovate and develop solutions appropriate for different target user groups. Refer to the Known Issues section for a list of any known deviations from the specification, unimplemented functionality and issues that may be encountered with this software.
Detailed information on building and working with the U3D Sample Software can be found in the main documentation.
The license agreement is located in the License.txt file in this directory. Included software that is governed by other licenses are identified in the LicensesAdditional.txt file also located in this directory.
Additional requirements for compilation of the software are defined in the main documentation.
There is no installer for the U3D Sample Software, so installation is as basic as unzipping the U3D package.
Note: If the software is going to be recompiled, it is currently necessary to
place it in a directory with a path that contains no SPACE characters. For
example, "C:\Software\U3D
" is a compatible path while "C:\Documents
and Settings\jdoe\My Documents\U3D
" is not and results in build
system failures. In addition, there are several
additional steps to perform detailed in the main documentation.
Files in this distribution are organized in the following manner:
| Path | Description |
Art |
Artwork used by the Doxygen* automatic HTML generation system. |
Bin |
Binary files that are a duplicate of the generated files located in Source\RTL\Build
or Source\Build\U3D (debug and release, including map files) when
the U3D DLs are compiled. |
Docs |
Documentation including this file, license information and a compressed HTML file version of the main documentation. |
Docs\Doxygen |
Scripts and setup for the Doxygen* automatic HTML generation system. Also contains the loose HTML main documentation files. |
Docs\IntermediateFormat |
Documentation on the format of Intermediate Data Text Format (IDTF) files that
are understood by the U3D IDTFConverter example application.. |
Docs\Templates |
Documentation templates. |
Include |
Header files for SDK-style usage that are duplicated from Source\RTL\Component\Include ,
Source\RTL\Kernel\Include and Source\RTL\Platform\Include . |
Lib |
Libraries files for SDK-style usage that are duplicated from the generated
files placed in Source\RTL\Build . |
Source |
Source code and files for compiling the U3D run-time libraries. |
Source\Config |
Configuration files used by the build system. |
Source\RTL |
Source code for the U3D run-time libraries. |
Source\RTL\Component |
Source code for the main components. |
Source\RTL\Dependencies |
Source code for miscellaneous third-party modules and libraries that are used. |
Source\RTL\Kernel |
Source code for the component system and common data types. |
Source\RTL\Platform |
Source code for the main platform abstraction layer. |
Source\Samples\BaseMeshConverter |
Converts mesh in u3d files to alternative representation (see NewBaseMesh sample) |
Source\Samples\Data |
Example U3D files. |
Source\Samples\HelloWorld |
Example U3D exporter application that creates a simple hard-coded scene using a single source code module. |
Source\Samples\IntermediateFormat |
Example Intermediate Data Text Format (IDTF) to U3D format file converter application. Also includes an example Discreet* 3ds max* 7 plug-in IDTF exporter. |
Source\Samples\IntermediateFormat\TestScenes |
Example IDTF files. |
Source\Samples\NewBaseMesh |
U3D RTL extension plugin example that provides alternative representation of the mesh geometry. |
Source\Samples\NURBS |
U3D RTL extension plugin that adds NURBS geometry resource type to RTL with exporting/importing capabilities. Can be used both stand-alone and as IFXCOM plug-in. NURBS tesselation is not implemented. |
Source\Samples\QrtzPlayer |
Example U3D file player application for Mac OS* X |
Source\Samples\SamplePlayer |
Example U3D file player application for Microsoft Windows*. |
Source\Samples\SampleViewerQrtz |
Example viewer for Mac OS* X |
Source\Samples\SampleViewerWin32 |
Example viewer for Microsoft Windows*. |
Source\Samples\SampleViewerX |
Example viewer for X Window System. |
Source\Samples\SceneHelpers |
Example U3D helper/utility code. |
Source\Samples\TextureModifier |
Example extension texture modifier plug-in. |
Source\Samples\TrueType |
Example U3D application that creates a Glyph 2D modifier by setting up glyphs that represent a string using various TrueType fonts. |
Source\Samples\u3dparser |
U3D parser tool makes a text dump of U3D binary file in XML format |
Source\Samples\winXPlayer |
Example U3D file player application for Linux*. |
Source\Templates |
Templates for plug-in dynamic libraries, interfaces, components and project configuration files. |
Source\Tools\BuildSystem |
Build system used to perform command-line based compiles and also scripts to generate Microsoft Visual Studio .NET 2003* solution and project files. |
This section describes the updates and changes that have been made to significant releases of the software. Note: After the build version for each release, the U3D file version generated by it is provided in parenthesis.
(0x00000100)
(0x00000100)
(0x00000000)
CIFXLoadManager
when FileReferenceBlock is handled.
CIFXMeshCompiler::PreviewCompile
method.
CIFXMesh
transfer.
U3DViewer
.
IFXModifierBaseDecoder
functionality to CorePluginStatic project.
CIFXString
type replaced with IFXString
type.(0x00000000)
RESOURCE
and TEXTURE
modifier chain's types.
libX11.so
libGL.so
shared libraries should be installed.
IFXEncoderX,
IFXDecoderX, IFXBitStreamX, IFXAnimationModifier, IFXCoreServices,
IFXMotionMixer, IFXNameMap
.
ws2_32.dll
should be installed on Windows* systems (included to Windows* XP by default).
U32
to IFXVector4
in geometry objects, encoders and decoders.
IFXString
for Linux.
CIFXAuthorGeomCompiler::Compile
method in case of small faces.
IFXOSUtilities.cpp
now works on Linux.
CIFXStdioWriteBuffer
and CIFXStdioReadBuffer
components when file is attempted to be closed again.
ContractionRecorder::reOrderIndeces
.
CIFXBoneWeightsModifier
component.
IFXString::LengthU8()
method which does not return error code and it was marked as depricated.
CIFXHashMap::HashFunction
method.
CIFXTexturePriorityManager
component.
IFXString::ToString
to use optional radix.
I8
was changed from signed char to char in IFXDataTypes.h
to reduce the number of explicit convertions from I8*
to char*
due to compiler warnings.
IFXAPI
call type.
IFXAuthorFaceUpdate2
renamed to IFXAuthorFaceUpdate
.
IFXAuthorVertexUpdate2
renamed to IFXAuthorVertexUpdate
.
CID_IFXSceneGraphCuller
component is created in the CIFXView::GetCullingSubsytem
method now and used only if it is needed.
CIFXMeshCompiler::PreviewCompile
method.
CIFXTextureObject
component's destructor to CIFXRenderDevice
component's destructor.
(0x00000000)
RenderableCache
functionality.
(0x00000000)
(0x00000000)
-removezerofaces
and -zerofacetolerance
options.
HelloWorld.exe
that
creates a simple hard-coded scene which is directly exported to a U3D file
called output.u3d
in the current or active directory. This example is contained in a single
source code file.
TrueType.exe
that
demonstrates how to create a Glyph 2D modifier by setting up glyphs that
represent a string by using various TrueType fonts. At run-time to simplify the
code, this example depends upon the shading.u3d
example U3D file
which it currently locates by using the U3D_SOURCE
environment
variable to load it from the Source\Samples\TrueType
directory.
ALT
, CTRL
and SHIFT
can be used also at the same time.
IFXNode
interface
in conjunction with an improved multiple-parent implementation. This allows a
single scene graph node hierarchy to have more than one node which has a parent
node that in turn has a child that is also parented to the root node. Added or
changed the following functions: AddChild
, GetChildNR
,
GetNumberOfChildren
, GetNumberOfParents
, GetParentNR
,
RemoveChild
and RemoveParent
. Removed the following
functions: GetFirstChildNR
, GetParentNRByIndex
, GetPreviousSibling
,
GetSiblingNextNR
, SetFirstChild
, SetNextSibling
,
and SetPreviousSibling
.
IFXViewResource
interface's root node handling so that it
uses the associated node palette entry id. Changed the SetRootNode
function, added GetRootNode
and removed GetRootNodeNR
.
IFXAuthorCLODCompressionParams2
structure. Removed
the 2
from its name. Changed the default quality factors to use IFX_DEFAULT_QUALITY_FACTOR
instead of the misleading magic number 100.Improved quality factor
documentation (also in the IFXMarkerX
interface).
.xml
project configuration files so that they match the actual names of the
directories that contain the associated source code compiled by them.
STextureSourceInfo::m_encoding
to STextureSourceInfo::m_imageType
.
DID_IFXMeshGroup
and DID_IFXMeshGroupBounds
to DID_IFXRenderableGroup
and DID_IFXRenderableGroupBounds
.
DID_IFXShaderSet
, DID_IFXLineSetGroupBounds
,
DID_IFXEdgeGroup
and DID_IFXEdgeGroupBounds
.
IFXCoreServices::GetImageCodec
function.
IFXView::RenderView
implementation in the CIFXView
component which uses the IFXGlyph2DModifier
interface's newly
added SetViewTransform
function.
IFXGlyph2DModifier::SetGlyphShaderSet
function. The proper way to shade the geometry generated by the Glyph 2D
modifier is by using the Shading modifier.
Source\RTL\Component\CLOD
, Source\RTL\Component\ChangeManager
,
Source\RTL\Component\Generators\Primitives
, Source\RTL\Component\Generators\UVGenerator
,
Source\RTL\Component\ImageCodecU
, Source\RTL\Component\Octree
and Source\RTL\Component\TextureManager
. Also changed the expected
location of the following previous directories to the Source\RTL\Dependencies
area: Source\RTL\Component\Include\DX
and Source\RTL\Component\Include\GL
.
IFXString::GetRaw
function. Use the existing IFXString::ConvertToRawU8
function.
IFXUserPropertyList
interface and the related IFXNode
interface's GetUserPropertyList
and SetUserPropertyList
functions.
IFXPalette::CompactPalette
function.
IFXSimple.h
header file.
SetCameraName
, ResetPalettes
, CleanPalette
functions of U3DSceneUtilities
class.
U3DSceneUtilities::SetMaterialResource
function.
IFXAuthorGeomCompilerParams
constructor.
IFXEXPORT_LIGHTS
export
option flags, and also added the missing IFXEXPORT_VIEWS
export option flag.
(0x00000000)
IFXSkeleton
object
is available for all model resources (meshes, line sets and point sets). In
previous releases, if no IFXSkeleton
object was available, no bone
count was written. Note: The existence of this defect means that all U3D
importing implementations will need to now be backwards compatible and support
the reading of model resource declaration blocks that end immediately prior to
the bone count. This can be detected by first checking if any bytes
remain to be read from the block before reading the bone count. If there is,
then proceed with reading as normal. If there is not, then consider the bone
count to be zero and jump to the next block. The importing implementation in
the U3D Sample Software Gold release already handles this situation via another
technique related to how the CIFXBitStream
component is implemented.
CIFXView::RenderView
function that can occur when the number of shaders used by the scene exceeds
the allocated quantity.
IFXViewResource
interface
that was needed by the CIFXView
component. The associated
implementation was migrated to the CIFXView
component where it belongs.
IFXQuaternion::ComputeAngleAxis
function to prevent a
possible floating point exception.(0x00000000)
IFXVector4
class GetRBBA
and GetBGRA
functions.
IFXExportingStatic.lib
and IFXSchedulingStatic.lib
have been removed and it is no longer necessary to link to them.
IFXLight::Enable
function was changed to allow the light node's instance index to be identified.
IFXLightSet::GetLight
function was changed to also hand back the light node's instance index
associated with the specified light index.
IFXView
interface's
new functions called GetAttributes
and SetAttributes
.
The interface's GetViewport
and SetViewport
functions
have been changed to now work with floating point rectangles defined by the IFXF32Rect
structure.
IFXViewResource
interface's SetRootNode
function was
updated to allow the root node's instance index to be specified and GetRootNodeNR
was updated to hand back the root node instance index. The node instance index
identifies exactly what scene graph is used when the view is rendered.
IFX3DGlyphCommands
was renamed to IFXGlyph2DCommands
, and IFX3DGlyphGenerator
was renamed to IFXGlyph3DGenerator
.
RTL\Component\Generators\Glyph2D
directory: IFXContour.h
, IFXContour.h
, IFXContourExtruder.h
,
IFXContourGenerator.h
, IFXContourTessellator.h
and IFXGlyph3DGenerator.h
.
In addition, some unused parameters were removed from some of the glyph command
related functionality.
IFXDevice
interface support for multiple parents and view
node instances used during rendering. The IFXDevice
interface now
fully manages an array of views plus instance indices with the addition of the
following functions: AppendView
, GetView
, GetViewCount
and RemoveLastView
. Removed the IFXDevice::Render
function's
instance parameter, as well as the GetFirstView
and SetFirstView
functions. Also removed the GetNextView
and SetNextView
functions from the IFXView
interface.
CIFXTaskCallback
module.
IFXNotificationManager::SubmitError
function implementation and clarified usage documentation.
IFXNotificationId_UnknownBlockSkipped
to allow the Load Manager to notify clients when files contain unrecognized
blocks.
IFXNode::Pick
function to define the subgraph instance in which picking is performed.
IFXTextureObject
interface. The IFXTextureObject::Format
enumeration now has IFXTEXTUREMAP_FORMAT_BGR24
and IFXTEXTUREMAP_FORMAT_BGRA32
defined.
CArrayList
template so that an element could actually be accessed without using the
internal data members, by using the existing [] operator as designed.
wcmatch
module to support
UNICODE. Also added to the IFXString
class a Match
function.
Source\Samples\IntermediateFormat\Exporter
directory.
(0x00000000)
CIFXLoadManager
will still read those equivalent Beta version files.
IFXModel
interface: GetNumElements
, GetNumShaderSets
, GetShaderSet
,
SetShaderSet
, GetShaderSetMapping
, SetShaderSetMapping
,
GetMappingShaderSet
and SetMappingShaderSet
. They
were legacy shading functionality and were superseded by the Shading Modifier
with the Alpha release. Shader sets can be associated with models by attaching
a Shading Modifier to either the model resource modifier chain or the model
node modifier chain as demonstrated by the IDTFConverter. There is an example
of one way to obtain a shader set from the model node modifier chain in the U3DSceneUtilities::SetMaterialResource
function in the SceneHelpers
sample code.
IFXGenerator
interface: GetNumShaderSets
, GetShaderSet
and SetShaderSet
.
They were legacy shading functionality and have been superseded by the Shading
Modifier with the Alpha release.
IFXMetaDataX
interface. It now has
support for meta-data additional attributes that may be defined as part of the
Key string. In the interfaces, additional attributes are called subattributes.
Some changes were made to accomplish this. To retrieve the encoded key that
matches the string written to a bitstream during serialization, the new GetEncodedKeyX
function must now be used instead of GetKeyX
(all set functions
can still be used to define an encoded key after which parsing and validation
is performed). The IFXMetaDataValueType
enumeration and has been
replaced with IFXMetaDataAttribute
(the old IFXMETADATATYPE_STRING
enumerator is now called IFXMETADATAATTRIBUTE_STRING
, and IFXMETADATATYPE_BINARY
is now called IFXMETADATAATTRIBUTE_BINARY
). The GetValueTypeX
function has been replaced by GetAttributeX
. The following
additional functions have been added: GetEncodedKeyX
, GetSubattributesCountX
,
GetSubattributeIndex
, GetSubattributeNameX
, GetSubattributeValueX
,
SetSubattributeValueX
, DeleteSubattributeX
and DeleteAllSubattributes
.
IFXAuthorFace2
,
IFXAuthorGeomCompilerParams2
, IFXAuthorMeshScrubParams2
and IFXAuthorCLODGenParam2
.
IFXPrimitive
,
IFXPrimitiveGenerator
, CIFXPrimitiveShape
, CIFXSpherePrimitive
,
CIFXCylinderPrimitive
, CIFXConePrimitive
, CIFXPlanePrimitive
and CIFXBoxPrimitive
.
IFXTEXTUREMAP_FORMAT_RENDERER
texture map type.
IFXBlockTypes.h
.
STextureSourceInfo
structure and adding
the following new functions to the IFXTextureObject
interface: GetImageType
,
GetContinuationImageCount
, GetImageCompressionProperties
and SetImageCompressionProperties
.
IFXAuthorLineSet
and IFXAuthorPointSet
interfaces no
longer require the SetMeshDesc
function to be explicitly called so
that they are more similar in usage to IFXAuthorMesh
.
UI_DEFAULT_
in UIDefaults.h
to instead have the prefix PALETTE_DEFAULT_
. Moved them to IFXCoreServices.h
and removed UIDefaults.h
.
IFXLoadManager
interface.
FRONT
.
CIFXLightResource
component.
It was incorrectly doubling the spot light angle when configuring the IFXRenderLight
thus resulting in them being rendered too wide.
CIFXOSHistogramDynamic
class if the processor used supports them.
(0xFF000020)
CIFXImageTools
module.
(0xFF000020)
IFXBlockTypes.h
, changed FileHeader_VersionFirstEdition
to 0
to match the specification. Removed FileHeader_VersionPreRelease
since it was not needed.
CIFXImageTools
component so that it matches the specification. Previously, a variable number
of extra bytes were mistakenly being inserted after the Continuation Image
Index and before the Image Data.
CIFXImageTools
component. This is the first release that will encode and save 32-bpp RGBA
images. This is done using a single PNG Texture Continuation block. The known
issues section describes the current API limitation regarding there not being
any way to configure how textures are encoded.
CIFXLightResource
constructor to set the ambient color to black.
CIFXMaterialResource
component's behavior to use attribute disabled states and return disabled
values for those attributes that are not enabled. Otherwise, if enabled the
stored values are returned.
Attributes
enumeration into the IFXMaterialResource
interface to prevent clashes with other similarly named enumerations.
Attributes
enumerators (DENSITY
and ELASTICITY
)
and IFXMaterialResource
functions related to physics and collision detection/resolution.
CIFXImageTools::DecompressBlockQueueToImage
and CIFXImageTools::EvaluateContinuationFormat
functions.
IFXString::GetRaw
function to better validate input assumptions.
CIFXWriteManager::PutPalette
function.
(0xFF00001F)
(0xFF00001F)
IFXShaderLitTexture
interface provides more functionality than
supported by the specification. During normal usage, only the IFXShaderLitTexture::MATERIAL
and IFXShaderLitTexture::USEDIFFUSE
flags should be set and the
rest of the IFXShaderLitTexture::Flags
should be clear. These flags are solely provided for debugging models/scenes
and for authoring purposes. They are not intended to be saved in U3D files.
IFXShaderLitTexure::TextureMode
automatic texture coordinate generation modes to just those supported by the
specification.
IFXViewResource
interface related to the color buffer, depth buffer and stencil buffer, for
each render pass, are not currently saved in U3D files. When decoding, the
default implementation settings are used for these. On the first pass: color
buffer clearing is enabled using black; depth buffer testing (compare function
used is depth value must be less than or equal to reference value) and writing
is enabled; depth buffer clearing is enabled using depth value 1.0; and stencil
buffer is disabled. On all other passes: clearing of all buffers is disabled;
depth buffer testing and writing is disabled; and the stencil buffer is
disabled.
IFXCLODResource
interface's functionality into the IFXAuthorCLODResource
interface and then removed the IFXCLODResource
interface.
IFXAuthorMeshMaterial
structure to IFXAuthorMaterial
.
IFXAuthorMeshMap
interface and the underlying component's implementation.
IFXNode
interface's Pick
function will now allow the node instance to be specified if there are multiple
parents.
IFXMetaData
and
IFXMarker
interfaces because they were not necessary for it. A few
of the IFXMarker
function implementations that served as
helpers/utilities were retained and added to the IFXSceneGraph
interface.
IFXUniqueModePalette
interface could be removed. Hidden palette functionality is still available and
functional, which is useful for creating user interface elements that are not
encoded and serialized by the Write Manager.
IFXSceneGraph::GetPrimitiveOrientation
and IFXSceneGraph::SetPrimitiveOrientation
functions which are no longer useful since basic primitives have been removed.
IFXDeformModifier
and associated component implementation since it is not a part of the
specification and accidentally had not been taken out yet.
IFXModifierParam
interface which was unused and not necessary.
KEEP_DATA_BLOCKS
to the IFXImporting.xml
project configuration file or to the IFXDataBlockQueueX.h
header file.
ModifierConverter::ConvertBoneWeightModifier
.
(0xFF00001E)
IFXView
interface now allows 1 and 2-point projections to be specified that match the
U3D specification, as well as their encoding and decoding. However, rendering
of these are not supported.
IFXNode::GetNumberOfChildren
fixed to now return success when there are no children.
IFXView
interface's Pick
functions now allows the instance to be specified if there are multiple
parents.
IFXShaderLitTexture
interface has changed to eliminate legacy functionality no longer needed and to
remove enumerators that were not functional.
IFXString
class.
IFXQualityFactor
interface and associated header
file. Quality factory defines were moved to IFXMarkerX.h
.
CIFXAuthorCLODResource
.
IFXLoadManager
interface's Load
function now has a world alias parameter.
IFXShapes
dynamic library that is included in the Testing
directory.
CIFXGlyphCommandList
component was added.
CIFXConnector
.
IFXBoneWeights
interface to IFXBoneWeightsModifier
.
IFXBoneWeightsModifier
interface from IFXSkeleton.h
to IFXBoneWeightsModifier.h
.
IFXNode
interface.
CIFXCLODResource
component, including
the IFXClassicCLODResource
interface.
IFXViewResource
interface to the view node's IFXView
interface.
This section describes the issues that have been identified. Please submit reports of defects and other issues found at the Universal 3D Sample Software project website on Source Forge* (http://sourceforge.net/projects/u3d/) using the online tracking tool.
COctreeNode
should be reworked to handle node
instances. CIFXOctreeCollection::GetSpatials
returns IFX_E_UNSUPPORTED
.
CIFXOctreeCollection::ResursivelyAddSpatialsToList
is unimplemented.
IFXSpatial
interface pointers may
need to be updated to track spatial/node instances with IFXSpatialInstance
and SPATIALINSTANCE_LIST
.IFXView
interface.
© 1999 - 2006 Intel Corporation. All rights reserved. Intel is a trademark or registered trademark of Intel Corporation or its subsidiaries in the United States and other countries.
* Other names and brands may be claimed as the property of others.


public abstract class ImageInputStreamImpl extends Object implements ImageInputStream
ImageInputStream
interface.
This class is designed to reduce the number of methods that must
be implemented by subclasses.
In particular, this class handles most or all of the details of byte order interpretation, buffering, mark/reset, discarding, closing, and disposing.
| Modifier and Type | Field and Description |
|---|---|
protected int |
bitOffset
The current bit offset within the stream.
|
protected ByteOrder |
byteOrder
The byte order of the stream as an instance of the enumeration
class
java.nio.ByteOrder , where
ByteOrder.BIG_ENDIAN indicates network byte order
and ByteOrder.LITTLE_ENDIAN indicates the reverse
order. |
protected long |
flushedPos
The position prior to which data may be discarded.
|
protected long |
streamPos
The current read position within the stream.
|
| Constructor and Description |
|---|
ImageInputStreamImpl()
Constructs an
ImageInputStreamImpl . |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkClosed()
Throws an
IOException if the stream has been closed. |
void |
close()
Closes the stream.
|
protected void |
finalize()
Finalizes this object prior to garbage collection.
|
void |
flush()
Discards the initial position of the stream prior to the current
stream position.
|
void |
flushBefore(long pos)
Discards the initial portion of the stream prior to the
indicated postion.
|
int |
getBitOffset()
Returns the current bit offset, as an integer between 0 and 7,
inclusive.
|
ByteOrder |
getByteOrder()
Returns the byte order with which data values will be read from
this stream as an instance of the
java.nio.ByteOrder enumeration. |
long |
getFlushedPosition()
Returns the earliest position in the stream to which seeking
may be performed.
|
long |
getStreamPosition()
Returns the current byte position of the stream.
|
boolean |
isCached()
Default implementation returns false.
|
boolean |
isCachedFile()
Default implementation returns false.
|
boolean |
isCachedMemory()
Default implementation returns false.
|
long |
length()
Returns
-1L to indicate that the stream has unknown
length. |
void |
mark()
Pushes the current stream position onto a stack of marked
positions.
|
abstract int |
read()
Reads a single byte from the stream and returns it as an
int between 0 and 255. |
int |
read(byte[] b)
A convenience method that calls
read(b, 0, b.length) . |
abstract int |
read(byte[] b,
int off,
int len)
Reads up to
len bytes from the stream, and stores
them into b starting at index off . |
int |
readBit()
Reads a single bit from the stream and returns it as an
int with the value 0 or
1 . |
long |
readBits(int numBits)
Reads a bitstring from the stream and returns it as a
long , with the first bit read becoming the most
significant bit of the output. |
boolean |
readBoolean()
Reads a byte from the stream and returns a
boolean
value of true if it is nonzero, false
if it is zero. |
byte |
readByte()
Reads a byte from the stream and returns it as a
byte value. |
void |
readBytes(IIOByteBuffer buf,
int len)
Reads up to
len bytes from the stream, and
modifies the supplied IIOByteBuffer to indicate
the byte array, offset, and length where the data may be found. |
char |
readChar()
Equivalent to
readUnsignedShort , except that the
result is returned using the char datatype. |
double |
readDouble()
Reads 8 bytes from the stream, and (conceptually) concatenates
them according to the current byte order and returns the result
as a
double . |
float |
readFloat()
Reads 4 bytes from the stream, and (conceptually) concatenates
them according to the current byte order and returns the result
as a
float . |
void |
readFully(byte[] b)
Reads
b.length bytes from the stream, and stores them
into b starting at index 0 . |
void |
readFully(byte[] b,
int off,
int len)
Reads
len bytes from the stream, and stores them
into b starting at index off . |
void |
readFully(char[] c,
int off,
int len)
Reads
len chars (unsigned 16-bit integers) from the
stream according to the current byte order, and
stores them into c starting at index
off . |
void |
readFully(double[] d,
int off,
int len)
Reads
len doubles (64-bit IEEE double-precision
floats) from the stream according to the current byte order,
and stores them into d starting at
index off . |
void |
readFully(float[] f,
int off,
int len)
Reads
len floats (32-bit IEEE single-precision
floats) from the stream according to the current byte order,
and stores them into f starting at
index off . |
void |
readFully(int[] i,
int off,
int len)
Reads
len ints (signed 32-bit integers) from the
stream according to the current byte order, and
stores them into i starting at index
off . |
void |
readFully(long[] l,
int off,
int len)
Reads
len longs (signed 64-bit integers) from the
stream according to the current byte order, and
stores them into l starting at index
off . |
void |
readFully(short[] s,
int off,
int len)
Reads
len shorts (signed 16-bit integers) from the
stream according to the current byte order, and
stores them into s starting at index
off . |
int |
readInt()
Reads 4 bytes from the stream, and (conceptually) concatenates
them according to the current byte order and returns the result
as an
int . |
String |
readLine()
Reads the next line of text from the input stream.
|
long |
readLong()
Reads 8 bytes from the stream, and (conceptually) concatenates
them according to the current byte order and returns the result
as a
long . |
short |
readShort()
Reads two bytes from the stream, and (conceptually)
concatenates them according to the current byte order, and
returns the result as a
short value. |
int |
readUnsignedByte()
Reads a byte from the stream, and (conceptually) converts it to
an int, masks it with
0xff in order to strip off
any sign-extension bits, and returns it as a byte
value. |
long |
readUnsignedInt()
Reads 4 bytes from the stream, and (conceptually) concatenates
them according to the current byte order, converts the result
to a long, masks it with
0xffffffffL in order to
strip off any sign-extension bits, and returns the result as an
unsigned long value. |
int |
readUnsignedShort()
Reads two bytes from the stream, and (conceptually)
concatenates them according to the current byte order, converts
the resulting value to an
int , masks it with
0xffff in order to strip off any sign-extension
buts, and returns the result as an unsigned int
value. |
String |
readUTF()
Reads in a string that has been encoded using a
modified
UTF-8
format.
|
void |
reset()
Resets the current stream byte and bit positions from the stack
of marked positions.
|
void |
seek(long pos)
Sets the current stream position to the desired location.
|
void |
setBitOffset(int bitOffset)
Sets the bit offset to an integer between 0 and 7, inclusive.
|
void |
setByteOrder(ByteOrder byteOrder)
Sets the desired byte order for future reads of data values
from this stream.
|
int |
skipBytes(int n)
Advances the current stream position by calling
seek(getStreamPosition() + n) . |
long |
skipBytes(long n)
Advances the current stream position by calling
seek(getStreamPosition() + n) . |
protected ByteOrder byteOrder
java.nio.ByteOrder
, where
ByteOrder.BIG_ENDIAN
indicates network byte order
and ByteOrder.LITTLE_ENDIAN
indicates the reverse
order. By default, the value is
ByteOrder.BIG_ENDIAN
.protected long streamPos
protected int bitOffset
protected long flushedPos
flushedPos
will always be >= 0.public ImageInputStreamImpl()
ImageInputStreamImpl
.protected final void checkClosed() throws IOException
IOException
if the stream has been closed.
Subclasses may call this method from any of their methods that
require the stream not to be closed.IOException
- if the stream is closed.public void setByteOrder(ByteOrder byteOrder)
ImageInputStream
The enumeration class java.nio.ByteOrder
is
used to specify the byte order. A value of
ByteOrder.BIG_ENDIAN
specifies so-called
big-endian or network byte order, in which the high-order byte
comes first. Motorola and Sparc processors store data in this
format, while Intel processors store data in the reverse
ByteOrder.LITTLE_ENDIAN
order.
The byte order has no effect on the results returned from
the readBits
method (or the value written by
ImageOutputStream.writeBits
).
setByteOrder
in interface ImageInputStream
byteOrder
- one of ByteOrder.BIG_ENDIAN
or
java.nio.ByteOrder.LITTLE_ENDIAN
, indicating whether
network byte order or its reverse will be used for future
reads.ByteOrder
,
ImageInputStream.getByteOrder()
,
ImageInputStream.readBits(int)
public ByteOrder getByteOrder()
ImageInputStream
java.nio.ByteOrder
enumeration.getByteOrder
in interface ImageInputStream
ByteOrder.BIG_ENDIAN
or
ByteOrder.LITTLE_ENDIAN
, indicating which byte
order is being used.ByteOrder
,
ImageInputStream.setByteOrder(java.nio.ByteOrder)
public abstract int read() throws IOException
int
between 0 and 255. If EOF is reached,
-1
is returned.
Subclasses must provide an implementation for this method. The subclass implementation should update the stream position before exiting.
The bit offset within the stream must be reset to zero before the read occurs.
read
in interface ImageInputStream
-1
if EOF is reached.IOException
- if the stream has been closed.public int read(byte[] b) throws IOException
read(b, 0, b.length)
.
The bit offset within the stream is reset to zero before the read occurs.
read
in interface ImageInputStream
b
- an array of bytes to be written to.-1
to indicate EOF.NullPointerException
- if b
is
null
.IOException
- if an I/O error occurs.public abstract int read(byte[] b, int off, int len) throws IOException
len
bytes from the stream, and stores
them into b
starting at index off
.
If no bytes can be read because the end of the stream has been
reached, -1
is returned.
The bit offset within the stream must be reset to zero before the read occurs.
Subclasses must provide an implementation for this method. The subclass implementation should update the stream position before exiting.
read
in interface ImageInputStream
b
- an array of bytes to be written to.off
- the starting position within b
to write to.len
- the maximum number of bytes to read.-1
to indicate EOF.IndexOutOfBoundsException
- if off
is
negative, len
is negative, or off +
len
is greater than b.length
.NullPointerException
- if b
is
null
.IOException
- if an I/O error occurs.public void readBytes(IIOByteBuffer buf, int len) throws IOException
ImageInputStream
len
bytes from the stream, and
modifies the supplied IIOByteBuffer
to indicate
the byte array, offset, and length where the data may be found.
The caller should not attempt to modify the data found in the
IIOByteBuffer
.
The bit offset within the stream is reset to zero before the read occurs.
readBytes
in interface ImageInputStream
buf
- an IIOByteBuffer object to be modified.len
- the maximum number of byte
s to read.IOException
- if an I/O error occurs.public boolean readBoolean() throws IOException
ImageInputStream
boolean
value of true
if it is nonzero, false
if it is zero.
The bit offset within the stream is reset to zero before the read occurs.
readBoolean
in interface DataInput
readBoolean
in interface ImageInputStream
IOException
- if an I/O error occurs.public byte readByte() throws IOException
ImageInputStream
byte
value. Byte values between 0x00
and 0x7f
represent integer values between
0
and 127
. Values between
0x80
and 0xff
represent negative
values from -128
to /1
.
The bit offset within the stream is reset to zero before the read occurs.
readByte
in interface DataInput
readByte
in interface ImageInputStream
IOException
- if an I/O error occurs.public int readUnsignedByte() throws IOException
ImageInputStream
0xff
in order to strip off
any sign-extension bits, and returns it as a byte
value.
Thus, byte values between 0x00
and
0x7f
are simply returned as integer values between
0
and 127
. Values between
0x80
and 0xff
, which normally
represent negative byte
values, will be mapped into
positive integers between 128
and
255
.
The bit offset within the stream is reset to zero before the read occurs.
readUnsignedByte
in interface DataInput
readUnsignedByte
in interface ImageInputStream
IOException
- if an I/O error occurs.public short readShort() throws IOException
ImageInputStream
short
value.
The bit offset within the stream is reset to zero before the read occurs.
readShort
in interface DataInput
readShort
in interface ImageInputStream
IOException
- if an I/O error occurs.ImageInputStream.getByteOrder()
public int readUnsignedShort() throws IOException
ImageInputStream
int
, masks it with
0xffff
in order to strip off any sign-extension
buts, and returns the result as an unsigned int
value.
The bit offset within the stream is reset to zero before the read occurs.
readUnsignedShort
in interface DataInput
readUnsignedShort
in interface ImageInputStream
IOException
- if an I/O error occurs.ImageInputStream.getByteOrder()
public char readChar() throws IOException
ImageInputStream
readUnsignedShort
, except that the
result is returned using the char
datatype.
The bit offset within the stream is reset to zero before the read occurs.
readChar
in interface DataInput
readChar
in interface ImageInputStream
IOException
- if an I/O error occurs.ImageInputStream.readUnsignedShort()
public int readInt() throws IOException
ImageInputStream
int
.
The bit offset within the stream is ignored and treated as though it were zero.
readInt
in interface DataInput
readInt
in interface ImageInputStream
IOException
- if an I/O error occurs.ImageInputStream.getByteOrder()
public long readUnsignedInt() throws IOException
ImageInputStream
0xffffffffL
in order to
strip off any sign-extension bits, and returns the result as an
unsigned long
value.
The bit offset within the stream is reset to zero before the read occurs.
readUnsignedInt
in interface ImageInputStream
IOException
- if an I/O error occurs.ImageInputStream.getByteOrder()
public long readLong() throws IOException
ImageInputStream
long
.
The bit offset within the stream is reset to zero before the read occurs.
readLong
in interface DataInput
readLong
in interface ImageInputStream
IOException
- if an I/O error occurs.ImageInputStream.getByteOrder()
public float readFloat() throws IOException
ImageInputStream
float
.
The bit offset within the stream is reset to zero before the read occurs.
readFloat
in interface DataInput
readFloat
in interface ImageInputStream
IOException
- if an I/O error occurs.ImageInputStream.getByteOrder()
public double readDouble() throws IOException
ImageInputStream
double
.
The bit offset within the stream is reset to zero before the read occurs.
readDouble
in interface DataInput
readDouble
in interface ImageInputStream
IOException
- if an I/O error occurs.ImageInputStream.getByteOrder()
public String readLine() throws IOException
ImageInputStream
String
. Note that because this method processes
bytes, it does not support input of the full Unicode character
set.
If end of file is encountered before even one byte can be
read, then null
is returned. Otherwise, each byte
that is read is converted to type char
by
zero-extension. If the character '\n'
is
encountered, it is discarded and reading ceases. If the
character '\r'
is encountered, it is discarded
and, if the following byte converts to the character
'\n'
, then that is discarded also; reading then
ceases. If end of file is encountered before either of the
characters '\n'
and '\r'
is
encountered, reading ceases. Once reading has ceased, a
String
is returned that contains all the
characters read and not discarded, taken in order. Note that
every character in this string will have a value less than
\u0100
, that is, (char)256
.
The bit offset within the stream is reset to zero before the read occurs.
readLine
in interface DataInput
readLine
in interface ImageInputStream
IOException
- if an I/O error occurs.public String readUTF() throws IOException
ImageInputStream
readUTF
is that
it reads a representation of a Unicode character string encoded
in modified UTF-8 format; this string of characters is
then returned as a String
.
First, two bytes are read and used to construct an unsigned
16-bit integer in the manner of the
readUnsignedShort
method, using network byte order
(regardless of the current byte order setting). This integer
value is called the UTF length and specifies the number
of additional bytes to be read. These bytes are then converted
to characters by considering them in groups. The length of each
group is computed from the value of the first byte of the
group. The byte following a group, if any, is the first byte of
the next group.
If the first byte of a group matches the bit pattern
0xxxxxxx
(where x
means "may be
0
or 1
"), then the group consists of
just that byte. The byte is zero-extended to form a character.
If the first byte of a group matches the bit pattern
110xxxxx
, then the group consists of that byte
a
and a second byte b
. If there is no
byte b
(because byte a
was the last
of the bytes to be read), or if byte b
does not
match the bit pattern 10xxxxxx
, then a
UTFDataFormatException
is thrown. Otherwise, the
group is converted to the character:
(char)(((a& 0x1F) << 6) | (b & 0x3F))
If the first byte of a group matches the bit pattern
1110xxxx
, then the group consists of that byte
a
and two more bytes b
and
c
. If there is no byte c
(because
byte a
was one of the last two of the bytes to be
read), or either byte b
or byte c
does not match the bit pattern 10xxxxxx
, then a
UTFDataFormatException
is thrown. Otherwise, the
group is converted to the character:
(char)(((a & 0x0F) << 12) | ((b & 0x3F) << 6) | (c & 0x3F))
If the first byte of a group matches the pattern
1111xxxx
or the pattern 10xxxxxx
,
then a UTFDataFormatException
is thrown.
If end of file is encountered at any time during this
entire process, then an EOFException
is thrown.
After every group has been converted to a character by this
process, the characters are gathered, in the same order in
which their corresponding groups were read from the input
stream, to form a String
, which is returned.
The current byte order setting is ignored.
The bit offset within the stream is reset to zero before the read occurs.
Note: This method should not be used in the implementation of image formats that use standard UTF-8, because the modified UTF-8 used here is incompatible with standard UTF-8.
readUTF
in interface DataInput
readUTF
in interface ImageInputStream
IOException
- if an I/O error occurs.public void readFully(byte[] b, int off, int len) throws IOException
ImageInputStream
len
bytes from the stream, and stores them
into b
starting at index off
.
If the end of the stream is reached, an EOFException
will be thrown.
The bit offset within the stream is reset to zero before the read occurs.
readFully
in interface DataInput
readFully
in interface ImageInputStream
b
- an array of bytes to be written to.off
- the starting position within b
to write to.len
- the maximum number of byte
s to read.IOException
- if an I/O error occurs.public void readFully(byte[] b) throws IOException
ImageInputStream
b.length
bytes from the stream, and stores them
into b
starting at index 0
.
If the end of the stream is reached, an EOFException
will be thrown.
The bit offset within the stream is reset to zero before the read occurs.
readFully
in interface DataInput
readFully
in interface ImageInputStream
b
- an array of byte
s.IOException
- if an I/O error occurs.public void readFully(short[] s, int off, int len) throws IOException
ImageInputStream
len
shorts (signed 16-bit integers) from the
stream according to the current byte order, and
stores them into s
starting at index
off
. If the end of the stream is reached, an
EOFException
will be thrown.
The bit offset within the stream is reset to zero before the read occurs.
readFully
in interface ImageInputStream
s
- an array of shorts to be written to.off
- the starting position withinb to write to.len
- the maximum number of short
s to read.IOException
- if an I/O error occurs.public void readFully(char[] c, int off, int len) throws IOException
ImageInputStream
len
chars (unsigned 16-bit integers) from the
stream according to the current byte order, and
stores them into c
starting at index
off
. If the end of the stream is reached, an
EOFException
will be thrown.
The bit offset within the stream is reset to zero before the read occurs.
readFully
in interface ImageInputStream
c
- an array of chars to be written to.off
- the starting position withinb to write to.len
- the maximum number of char
s to read.IOException
- if an I/O error occurs.public void readFully(int[] i, int off, int len) throws IOException
ImageInputStream
len
ints (signed 32-bit integers) from the
stream according to the current byte order, and
stores them into i
starting at index
off
. If the end of the stream is reached, an
EOFException
will be thrown.
The bit offset within the stream is reset to zero before the read occurs.
readFully
in interface ImageInputStream
i
- an array of ints to be written to.off
- the starting position withinb to write to.len
- the maximum number of int
s to read.IOException
- if an I/O error occurs.public void readFully(long[] l, int off, int len) throws IOException
ImageInputStream
len
longs (signed 64-bit integers) from the
stream according to the current byte order, and
stores them into l
starting at index
off
. If the end of the stream is reached, an
EOFException
will be thrown.
The bit offset within the stream is reset to zero before the read occurs.
readFully
in interface ImageInputStream
l
- an array of longs to be written to.off
- the starting position withinb to write to.len
- the maximum number of long
s to read.IOException
- if an I/O error occurs.public void readFully(float[] f, int off, int len) throws IOException
ImageInputStream
len
floats (32-bit IEEE single-precision
floats) from the stream according to the current byte order,
and stores them into f
starting at
index off
. If the end of the stream is reached,
an EOFException
will be thrown.
The bit offset within the stream is reset to zero before the read occurs.
readFully
in interface ImageInputStream
f
- an array of floats to be written to.off
- the starting position withinb to write to.len
- the maximum number of float
s to read.IOException
- if an I/O error occurs.public void readFully(double[] d, int off, int len) throws IOException
ImageInputStream
len
doubles (64-bit IEEE double-precision
floats) from the stream according to the current byte order,
and stores them into d
starting at
index off
. If the end of the stream is reached,
an EOFException
will be thrown.
The bit offset within the stream is reset to zero before the read occurs.
readFully
in interface ImageInputStream
d
- an array of doubles to be written to.off
- the starting position withinb to write to.len
- the maximum number of double
s to read.IOException
- if an I/O error occurs.public long getStreamPosition() throws IOException
ImageInputStream
getStreamPosition
in interface ImageInputStream
IOException
- if an I/O error occurs.public int getBitOffset() throws IOException
ImageInputStream
readBits
method. A value of 0 indicates the
most-significant bit, and a value of 7 indicates the least
significant bit, of the byte being read.
The bit offset is set to 0 when a stream is first
opened, and is reset to 0 by calls to seek
,
skipBytes
, or any read
or
readFully
method.
getBitOffset
in interface ImageInputStream
int
containing the bit offset between
0 and 7, inclusive.IOException
- if an I/O error occurs.ImageInputStream.setBitOffset(int)
public void setBitOffset(int bitOffset) throws IOException
ImageInputStream
getStreamPosition
, is left unchanged.
A value of 0 indicates the
most-significant bit, and a value of 7 indicates the least
significant bit, of the byte being read.setBitOffset
in interface ImageInputStream
bitOffset
- the desired offset, as an int
between 0 and 7, inclusive.IOException
- if an I/O error occurs.ImageInputStream.getBitOffset()
public int readBit() throws IOException
ImageInputStream
int
with the value 0
or
1
. The bit offset is advanced by one and reduced
modulo 8.readBit
in interface ImageInputStream
int
containing the value 0
or 1
.IOException
- if an I/O error occurs.public long readBits(int numBits) throws IOException
ImageInputStream
long
, with the first bit read becoming the most
significant bit of the output. The read starts within the byte
indicated by getStreamPosition
, at the bit given
by getBitOffset
. The bit offset is advanced by
numBits
and reduced modulo 8.
The byte order of the stream has no effect on this method. The return value of this method is constructed as though the bits were read one at a time, and shifted into the right side of the return value, as shown by the following pseudo-code:
long accum = 0L; for (int i = 0; i < numBits; i++) { accum <<= 1; // Shift left one bit to make room accum |= readBit(); }Note that the result of
readBits(32)
may thus not
be equal to that of readInt()
if a reverse network
byte order is being used (i.e., getByteOrder() ==
false
).
If the end of the stream is encountered before all the bits
have been read, an EOFException
is thrown.
readBits
in interface ImageInputStream
numBits
- the number of bits to read, as an int
between 0 and 64, inclusive.long
with the last bit
read stored in the least significant bit.IOException
- if an I/O error occurs.public long length()
-1L
to indicate that the stream has unknown
length. Subclasses must override this method to provide actual
length information.length
in interface ImageInputStream
public int skipBytes(int n) throws IOException
seek(getStreamPosition() + n)
.
The bit offset is reset to zero.
skipBytes
in interface DataInput
skipBytes
in interface ImageInputStream
n
- the number of bytes to seek forward.int
representing the number of bytes
skipped.IOException
- if getStreamPosition
throws an IOException
when computing either
the starting or ending position.public long skipBytes(long n) throws IOException
seek(getStreamPosition() + n)
.
The bit offset is reset to zero.
skipBytes
in interface ImageInputStream
n
- the number of bytes to seek forward.long
representing the number of bytes
skipped.IOException
- if getStreamPosition
throws an IOException
when computing either
the starting or ending position.public void seek(long pos) throws IOException
ImageInputStream
An IndexOutOfBoundsException
will be thrown if
pos
is smaller than the flushed position (as
returned by getflushedPosition
).
It is legal to seek past the end of the file; an
EOFException
will be thrown only if a read is
performed.
seek
in interface ImageInputStream
pos
- a long
containing the desired file
pointer position.IOException
- if any other I/O error occurs.public void mark()
mark
in interface ImageInputStream
public void reset() throws IOException
An IOException
will be thrown if the previous
marked position lies in the discarded portion of the stream.
reset
in interface ImageInputStream
IOException
- if an I/O error occurs.public void flushBefore(long pos) throws IOException
ImageInputStream
IndexOutOfBoundsException
.
Calling flushBefore
may allow classes
implementing this interface to free up resources such as memory
or disk space that are being used to store data from the
stream.
flushBefore
in interface ImageInputStream
pos
- a long
containing the length of the
stream prefix that may be flushed.IOException
- if an I/O error occurs.public void flush() throws IOException
ImageInputStream
flushBefore(getStreamPosition())
.flush
in interface ImageInputStream
IOException
- if an I/O error occurs.public long getFlushedPosition()
ImageInputStream
flushBefore
.getFlushedPosition
in interface ImageInputStream
long
.public boolean isCached()
isCached
in interface ImageInputStream
true
if this ImageInputStream
caches data.ImageInputStream.isCachedMemory()
,
ImageInputStream.isCachedFile()
public boolean isCachedMemory()
isCachedMemory
in interface ImageInputStream
true
if this ImageInputStream
caches data in main memory.ImageInputStream.isCached()
,
ImageInputStream.isCachedFile()
public boolean isCachedFile()
isCachedFile
in interface ImageInputStream
true
if this ImageInputStream
caches data in a temporary file.ImageInputStream.isCached()
,
ImageInputStream.isCachedMemory()
public void close() throws IOException
ImageInputStream
IOException
s or incorrect
behavior. Calling this method may allow classes implementing
this interface to release resources associated with the stream
such as memory, disk space, or file descriptors.close
in interface Closeable
close
in interface AutoCloseable
close
in interface ImageInputStream
IOException
- if an I/O error occurs.protected void finalize() throws Throwable
close
method is called to close any open input
source. This method should not be called from application
code. Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2015, Oracle and/or its affiliates. All rights reserved.


ManagedService
Services contain data and logic that are not related to a particular activity or view.
class ManagedService abstract
extends
ManagedObject
Managed service base class. Represents a service that can be referenced by other classes using the @service
decorator (or ManagedService.link
method) after registering the object with a known name.
Constructor
(name?: string): ManagedService
.find() static
(name: string): ManagedService
Retrieve the currently active service with given name (case insensitive).
Note: Services may be registered and destroyed. To obtain a reference that is always up to date, use the @service
decorator on a class property or the static link
method.
.link() static
(serviceName: string, TargetClass: Function, propertyName: string): void
Adds a property to the prototype of given class, so that the property always references the last registered service with given name (case insensitive).
The value of the target property becomes undefined when the service is destroyed, and updates immediately when a new service is registered with the same name.
Note: Changes and events can be observed by an observer, but only after the property has been read at least once.
.name abstract
string
The name of this service, set only once by the service constructor. The preferred format for service names is Namespace.CamelCaseName
.
.register()
(): this
Register this service, making it available through properties decorated with the @service
decorator until the service object is destroyed (either directly using .destroyManagedAsync()
, or when another service is registered with the same name).
.managedId
number
Inherited from ManagedObject.managedId
.
.managedState
Inherited from ManagedObject.managedState
.
.getReferenceCount() protected
(): number
Inherited from ManagedObject.getReferenceCount
.
.getManagedReferrers() protected
():
ManagedObject
[]
Inherited from ManagedObject.getManagedReferrers
.
.getManagedParent() protected
<TParent extends ManagedObject = ManagedObject>(ParentClass?:
ManagedObjectConstructor
<TParent>): TParent
Inherited from ManagedObject.getManagedParent
.
.emit()
<TEvent extends ManagedEvent = ManagedEvent, TConstructorArgs extends any[] = any[]>(e: string | TEvent | (new (...args: TConstructorArgs) => TEvent), ...constructorArgs: TConstructorArgs): this
Inherited from ManagedObject.emit
.
.emitChange()
(name?: string): void
Inherited from ManagedObject.emitChange
.
.propagateChildEvents() protected deprecated
(...types: ((new (...args: any[]) =>
ManagedEvent
) | ((e:
ManagedEvent
) => any))[]): this
Inherited from ManagedObject.propagateChildEvents
.
.activateManagedAsync() protected
(): Promise<any>
Inherited from ManagedObject.activateManagedAsync
.
.deactivateManagedAsync() protected
(): Promise<void>
Inherited from ManagedObject.deactivateManagedAsync
.
.destroyManagedAsync() protected
(): Promise<void>
Inherited from ManagedObject.destroyManagedAsync
.
.onManagedStateActivatingAsync() protected
(): Promise<void>
Inherited from ManagedObject.onManagedStateActivatingAsync
.
.onManagedStateActiveAsync() protected
(): Promise<void>
Inherited from ManagedObject.onManagedStateActiveAsync
.
.onManagedStateDeactivatingAsync() protected
(): Promise<void>
Inherited from ManagedObject.onManagedStateDeactivatingAsync
.
.onManagedStateInactiveAsync() protected
(): Promise<void>
Inherited from ManagedObject.onManagedStateInactiveAsync
.
.onManagedStateDestroyingAsync() protected
(): Promise<void>
Inherited from ManagedObject.onManagedStateDestroyingAsync
.


|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.newdawn.slick.Music
public class Music
A piece of music loaded and playable within the game. Only one piece of music can play at any given time and a channel is reserved so music will always play.
| Constructor Summary | |
|---|---|
Music(java.io.InputStream in,
java.lang.String ref)
Create and load a piece of music (either OGG or MOD/XM) |
|
Music(java.lang.String ref)
Create and load a piece of music (either OGG or MOD/XM) |
|
Music(java.lang.String ref,
boolean streamingHint)
Create and load a piece of music (either OGG or MOD/XM) |
|
Music(java.net.URL ref)
Create and load a piece of music (either OGG or MOD/XM) |
|
Music(java.net.URL url,
boolean streamingHint)
Create and load a piece of music (either OGG or MOD/XM) |
| Method Summary | |
|---|---|
void |
addListener(MusicListener listener)
Add a listener to this music |
void |
fade(int duration,
float endVolume,
boolean stopAfterFade)
Fade this music to the volume specified |
float |
getPosition()
The position into the sound thats being played |
float |
getVolume()
Get the individual volume of the music |
void |
loop()
Loop the music |
void |
loop(float pitch,
float volume)
Loop the music at a given pitch and volume |
void |
pause()
Pause the music playback |
void |
play()
Play the music |
void |
play(float pitch,
float volume)
Play the music at a given pitch and volume |
boolean |
playing()
Check if the music is being played |
static void |
poll(int delta)
Poll the state of the current music. |
void |
removeListener(MusicListener listener)
Remove a listener from this music |
void |
resume()
Resume the music playback |
boolean |
setPosition(float position)
Seeks to a position in the music. |
void |
setVolume(float volume)
Set the volume of the music as a factor of the global volume setting |
void |
stop()
Stop the music playing |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Music(java.lang.String ref) throws SlickException
ref
- The location of the music
SlickException
public Music(java.net.URL ref) throws SlickException
ref
- The location of the music
SlickException
public Music(java.io.InputStream in, java.lang.String ref) throws SlickException
in
- The stream to read the music fromref
- The symbolic name of this music
SlickException
- Indicates a failure to read the music from the streampublic Music(java.net.URL url, boolean streamingHint) throws SlickException
url
- The location of the musicstreamingHint
- A hint to indicate whether streaming should be used if possible
SlickException
public Music(java.lang.String ref, boolean streamingHint) throws SlickException
ref
- The location of the musicstreamingHint
- A hint to indicate whether streaming should be used if possible
SlickException
| Method Detail |
|---|
public static void poll(int delta)
delta
- The amount of time since last pollpublic void addListener(MusicListener listener)
listener
- The listener to addpublic void removeListener(MusicListener listener)
listener
- The listener to removepublic void loop()
public void play()
public void play(float pitch, float volume)
pitch
- The pitch to play the music at (1.0 = default)volume
- The volume to play the music at (1.0 = default)public void loop(float pitch, float volume)
pitch
- The pitch to play the music at (1.0 = default)volume
- The volume to play the music at (1.0 = default)public void pause()
public void stop()
public void resume()
public boolean playing()
public void setVolume(float volume)
volume
- The volume to play music at. 0 - 1, 1 is Maxpublic float getVolume()
public void fade(int duration, float endVolume, boolean stopAfterFade)
duration
- Fade time in milliseconds.endVolume
- The target volumestopAfterFade
- True if music should be stopped after fading in/outpublic boolean setPosition(float position)
position
- Position in seconds.
public float getPosition()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |


Darren Sproles done for season — and possibly career — with quad injury
by Jake NisseThis might be it for for Darren Sproles.
After struggling with injuries throughout the last two seasons, the 36-year-old running back will again be sidelined after suffering a torn right hip flexor muscle in practice this week.
He will now miss the rest of the season, after he previously suffered a partial tear of the same muscle against the Jets in Week 5, according to a team statement.
Sproles’ latest injury means he will finish this season with just 17 games (15 regular season, two postseason) played since 2017, spelling a potential end to an underrated career.
A three-time Pro Bowl selection on special teams, Sproles currently ranks fifth all-time in all-purpose yards, largely in part to his prowess as a kick and punt returner. His tally of 19,696 yards ranks behind only Emmitt Smith, Walter Payton, Brian Mitchell and Jerry Rice.
Despite his diminutive 5’6″ frame, Sproles has proven to be a durable player for much of his career, outlasting return specialist contemporaries such as Josh Cribbs and Devin Hester.
Now, he may choose to hang it up.
The running back’s injury means that the Eagles are turning to another familiar face for relief, as they re-signed Jay Ajayi to a deal on Friday.
Ajayi hasn’t played an NFL game since tearing his ACL last October while playing for the Eagles.
Both Ajayi and Sproles won the Super Bowl with Philadelphia in 2018, but Sproles played just three games that season after suffering an early season injury.
The Eagles host the Patriots on Sunday.


WITNESS LIST Energy Resources Committee May 15, 2002-9:00A Terrorism Against: Robertson, Joseph Dale (Texans for Energy Independence) On: Hardwick, Ross (Self) Hassell, Melvin (Self) Terrorism and pipeline safety For: Sebree, Ben (Texas Oil & Gas Assoc.) On: Anderson, Sparky (Clean Water Action) Embry, Ronald (Exon-Mobil Pipeline Co.) Kitchens, Ronald (Texas Railroad Commission) McDaniel, Mary (Texas Railroad Commission) Willaims, Michael (Texas Railroad Commission) Yarbrough, Charles (Assoc. of Texas Intrastate Natural Gas Pipelines)


Your local high street pharmacy can provide confidential, expert advice and treatment for a range of common illnesses and complaints such as coughs, colds, sore throats or ear or toothaches. They can also provide emergency contraception and advice on prescription medication.
If you are registered with a doctor in Nottingham City and you are exempt from prescription charges, Pharmacy First offers you the chance to see your pharmacist without an appointment and if necessary, get the same medicines your doctor would have given you for a wide range of minor ailments.
To find your nearest local pharmacy, look in your local phone directory, go to www.nhs.uk or text "pharmacy" to 64746 to receive three free texts with details of your nearest pharmacies.
A range of common illnesses and complaints, such as coughs, colds, sore throats, upset stomachs and aches and pains can be treated with a well stocked medicine cabinet and plenty of rest. Always follow the instructions on the medicine label, and consult your doctor if the illness continues or becomes more severe.
A typical secure medicine cabinet at home should include:


This feature will load a LSTM network trained with an LSTM implementation then given a random input from the feature set, display the probability distribution of the next feature. Given this distribution a new input is sampled and fed into the network again.
Import model (JSON file only!):
Or enter characters:
Output:
Features and their probabilities:


Not a hippie but I drink the occasional kale smoothie and will not tolerate you if you leave the sink running while you brush your teeth.
Trying to honor a legacy.
This site is a new adventure! Open to suggestions and advice.
Food is a bard. Go on, kao fu, tell me a story, sing me song, take me back to my grandmother's cramped Shanghai apartment.


In the code sample you have seen how to create collidable landscapes and walk around in a first-person perspective, where the camera is enclosed by a collision shape. Other games however require a third-person perspective of the character: In these cases you use a CharacterControl. This example uses a custom navigation – press WASD to walk and drag the mouse to rotate.
When you load a character model with a RigidBodyControl, and use forces to push it around, you do not get the desired effect: RigidBodyControl'ed objects can tip over when pushed, and that is not what you expect of a walking character. jMonkeyEngine offers a special CharacterControl with a special walking methods to implement characters that walk upright.
The several related code samples can be found here:
The code in this tutorial is a combination of them.
public class WalkingCharacterDemo extends SimpleApplication implements ActionListener, AnimEventListener { public static void main(String[] args) { WalkingCharacterDemo app = new WalkingCharacterDemo(); app.start(); } public void simpleInitApp() { } public void simpleUpdate(float tpf) { } public void onAction(String name, boolean isPressed, float tpf) { } public void onAnimCycleDone(AnimControl control, AnimChannel channel, String animName) { } public void onAnimChange(AnimControl control, AnimChannel channel, String animName) { }
private BulletAppState bulletAppState; ... public void simpleInitApp() { bulletAppState = new BulletAppState(); //bulletAppState.setThreadingType(BulletAppState.ThreadingType.PARALLEL); stateManager.attach(bulletAppState); ... }
In the simpleInitApp() method you initialize the scene and give it a MeshCollisionShape. The sample in the jme3 sources uses a custom helper class that simply creates a flat floor and drops some cubes and spheres on it:
public void simpleInitApp() { ... PhysicsTestHelper.createPhysicsTestWorld(rootNode, assetManager, bulletAppState.getPhysicsSpace()); ...
In a real game, you would load a scene model here instead of a test world. You can load a model from a local or remote zip file, and scale and position it:
private Node gameLevel; .. public void simpleInitApp() { ... //assetManager.registerLocator("quake3level.zip", ZipLocator.class.getName()); assetManager.registerLocator( "http://jmonkeyengine.googlecode.com/files/quake3level.zip", HttpZipLocator.class.getName()); MaterialList matList = (MaterialList) assetManager.loadAsset("Scene.material"); OgreMeshKey key = new OgreMeshKey("main.meshxml", matList); gameLevel = (Node) assetManager.loadAsset(key); gameLevel.setLocalTranslation(-20, -16, 20); gameLevel.setLocalScale(0.10f); gameLevel.addControl(new RigidBodyControl(0)); rootNode.attachChild(gameLevel); bulletAppState.getPhysicsSpace().addAll(gameLevel); ...
Also, add a light source to be able to see the scene.
AmbientLight light = new AmbientLight(); light.setColor(ColorRGBA.White.mult(2)); rootNode.addLight(light);
You create an animated model, such as Oto.mesh.xml.
assets/Models/Oto/
directory of your project.private CharacterControl character; private Node model; ... public void simpleInitApp() { ... CapsuleCollisionShape capsule = new CapsuleCollisionShape(3f, 4f); character = new CharacterControl(capsule, 0.05f); character.setJumpSpeed(20f); model = (Node) assetManager.loadModel("Models/Oto/Oto.mesh.xml"); model.addControl(character); bulletAppState.getPhysicsSpace().add(character); rootNode.attachChild(model); ...
Did you know? A CapsuleCollisionShape is a cylinder with rounded top and bottom. A capsule rotated upright is a good collision shape for a humanoid character since its roundedness reduces the risk of getting stuck on obstacles.
Create several AnimChannels, one for each animation that can happen simultaneously. In this example, you create one channel for walking and one for attacking. (Because the character can attack with its arms and walk with the rest of the body at the same time.)
private AnimChannel animationChannel; private AnimChannel attackChannel; private AnimControl animationControl; ... public void simpleInitApp() { ... animationControl = model.getControl(AnimControl.class); animationControl.addListener(this); animationChannel = animationControl.createChannel(); attackChannel = animationControl.createChannel(); attackChannel.addBone(animationControl.getSkeleton().getBone("uparm.right")); attackChannel.addBone(animationControl.getSkeleton().getBone("arm.right")); attackChannel.addBone(animationControl.getSkeleton().getBone("hand.right")); ...
The attackChannel only controls one arm, while the walking channels controls the whole character.
private ChaseCamera chaseCam; ... public void simpleInitApp() { ... flyCam.setEnabled(false); chaseCam = new ChaseCamera(cam, model, inputManager); ...
Configure custom key bindings for WASD keys that you will use to make the character walk.
private boolean left = false, right = false, up = false, down = false; ... public void simpleInitApp() { ... inputManager.addMapping("CharLeft", new KeyTrigger(KeyInput.KEY_A)); inputManager.addMapping("CharRight", new KeyTrigger(KeyInput.KEY_D)); inputManager.addMapping("CharForward", new KeyTrigger(KeyInput.KEY_W)); inputManager.addMapping("CharBackward", new KeyTrigger(KeyInput.KEY_S)); inputManager.addMapping("CharJump", new KeyTrigger(KeyInput.KEY_RETURN)); inputManager.addMapping("CharAttack", new KeyTrigger(KeyInput.KEY_SPACE)); inputManager.addListener(this, "CharLeft", "CharRight"); inputManager.addListener(this, "CharForward", "CharBackward"); inputManager.addListener(this, "CharJump", "CharAttack"); ... }
Respond to the key bindings by setting variables that track in which direction you will go. (No actual walking happens here yet)
@Override public void onAction(String binding, boolean value, float tpf) { if (binding.equals("CharLeft")) { if (value) left = true; else left = false; } else if (binding.equals("CharRight")) { if (value) right = true; else right = false; } else if (binding.equals("CharForward")) { if (value) up = true; else up = false; } else if (binding.equals("CharBackward")) { if (value) down = true; else down = false; } else if (binding.equals("CharJump")) character.jump(); if (binding.equals("CharAttack")) attack(); }
The player can attack and walk at the same time. Attack() is a custom method that triggers an attack animation in the arms. Here you should also add custom code to play an effect and sound, and to determine whether the hit was successful.
private void attack() { attackChannel.setAnim("Dodge", 0.1f); attackChannel.setLoopMode(LoopMode.DontLoop); }
The update loop looks at the directional variables and moves the character accordingly. Since it's a physical character, we use setWalkDirection(). The variable airTime tracks how long the character is off the ground (e.g. when jumping or falling) and adjusts the walk and stand animations acccordingly.
private Vector3f walkDirection = new Vector3f(0,0,0); private float airTime = 0; public void simpleUpdate(float tpf) { Vector3f camDir = cam.getDirection().clone().multLocal(0.25f); Vector3f camLeft = cam.getLeft().clone().multLocal(0.25f); camDir.y = 0; camLeft.y = 0; walkDirection.set(0, 0, 0); if (left) walkDirection.addLocal(camLeft); if (right) walkDirection.addLocal(camLeft.negate()); if (up) walkDirection.addLocal(camDir); if (down) walkDirection.addLocal(camDir.negate()); if (!character.onGround()) { airTime = airTime + tpf; } else { airTime = 0; } if (walkDirection.length() == 0) { if (!"stand".equals(animationChannel.getAnimationName())) { animationChannel.setAnim("stand", 1f); } } else { character.setViewDirection(walkDirection); if (airTime > .3f) { if (!"stand".equals(animationChannel.getAnimationName())) { animationChannel.setAnim("stand"); } } else if (!"Walk".equals(animationChannel.getAnimationName())) { animationChannel.setAnim("Walk", 0.7f); } } character.setWalkDirection(walkDirection); }
This method resets the walk animation.
public void onAnimCycleDone(AnimControl control, AnimChannel channel, String animName) { if (channel == attackChannel) channel.setAnim("stand"); } public void onAnimChange(AnimControl control, AnimChannel channel, String animName) { }


96
Worship in the Splendor of Holiness
1 Oh sing to the LORD a new song;
sing to the LORD, all the earth!
2 Sing to the LORD, bless his name;
tell of his salvation from day to day.
3 Declare his glory among the nations,
his marvelous works among all the peoples!
4 For great is the LORD, and greatly to be praised;
he is to be feared above all gods.
5 For all the gods of the peoples are worthless idols,
but the LORD made the heavens.
6 Splendor and majesty are before him;
strength and beauty are in his sanctuary.
7 Ascribe to the LORD, O families of the peoples,
ascribe to the LORD glory and strength!
8 Ascribe to the LORD the glory due his name;
bring an offering, and come into his courts!
9 Worship the LORD in the splendor of holiness;
tremble before him, all the earth!
10 Say among the nations, “The LORD reigns!
Yes, the world is established; it shall never be moved;
he will judge the peoples with equity.”
11 Let the heavens be glad, and let the earth rejoice;
let the sea roar, and all that fills it;
12 let the field exult, and everything in it!
Then shall all the trees of the forest sing for joy
13 before the LORD, for he comes,
for he comes to judge the earth.
He will judge the world in righteousness,
and the peoples in his faithfulness.


Problem 😱
You would like to expose securly 🔓 your local server on the web?
Default route for this would be to:
-
configure https
-
configure your router
-
etc.
Solution 🤓
🎉 🎉 🎉 ngrok 🎉 🎉 🎉
Secure tunnels to localhost
Install - link
or on osx:
brew cask install ngrok
Usage:
ngrok http 8000
ngrok by @inconshreveable (Ctrl+C to quit)
Session Status online
Version 2.2.8
Region United States (us)
Web Interface http://<IP_ADDRESS>:4040
Forwarding http://11e22256.ngrok.io -> localhost:8000
Forwarding https://11e22256.ngrok.io -> localhost:8000
Connections ttl opn rt1 rt5 p50 p90
0 0 0.00 0.00 0.00 0.00
You can now enter your https or http external url and hit your own server. 🎉
Protips:
ngrok comes with dashboard
open http://localhost:4040
reply requests
enable basic auth
ngrok http 8000 -auth "user:password"
you will need to have account for this feature visit https://dashboard.ngrok.com/auth
file based config
nano ~/.ngrok2/ngrok.yml
tunnels:
service:
proto: http
addr: 8000
it will start service:
ngrok start service