Templates allow novices to create their own floor or Web based exhibits. Universal Modules allow more advanced developers to combine, branch, and write their own modules that can act as building blocks for new Exhibits.
This multitouch module gives the ability to view and explore giga pixel images. It uses image tiles to dynamically re-create the giga pixel image at various zoom levels. Users can pan around the image using the drag gesture, zoom stepwise using the double tap gesture and zoom continuously using the two finger zoom gesture.
Total Activity: 1K
Downloads: 19
Article Views: 1K
Shared: 1
Tweets: 0
Uploads: 7
Comments: 4
Favorites: 8
Likes: 3
Emails: 0
This GigaPixelViewer module gives the ability to view and explore giga pixel images. It uses a image tiles to dynamically re-create the giga pixel image at various zoom level. Users can pan around the image using the drag gesture, zoom stepwise using the double tap gesture and zoom continuously using the two finger zoom gesture. The map windows can be moved, scaled and rotated using multitouch gestures which can be activated and deactivated using the module XML settings.
The giga-pixel viewer uses the openZoom library to construct and manage image tile sets: openzoom.org The giga-pixel component utilized in the examples provided in this module uses image tiles processed according to the deepzoom protocol . OpenZoomAPI
If you have a high resolution image that you wish to split into tiles we recommend using the free deepzoom composer tool to format and organize your image files. For more information see: Deepzoom
package id.module{
import flash.events.Event;
import id.core.TouchComponent;
import id.component.GigaPixelDisplay;
import id.element.GigaPixelParser;
public class GigaPixelViewer extends TouchComponent {
private var gpixDisplay:GigaPixelDisplay;
public function GigaPixelViewer(){
super();
GigaPixelParser.settingsPath="GigaPixelViewer.xml";
GigaPixelParser.addEventListener(Event.COMPLETE,onParseComplete);
}
private function onParseComplete(event:Event):void{
gpixDisplay = new GigaPixelDisplay();
gpixDisplay.id = 0;
addChild(gpixDisplay);
}
}
}
| Name | Description | Notes |
|---|---|---|
| <Content> | Contains the parameters for each giga-pixel object populated to the application | |
| <FrameGestures> | Sets which gestures can be used to manipulate the window/frame object on the stage | |
| <FrameStyle> | Sets the style of the frame that surrounds each object window | |
| <GlobalSettings> | Sets vars that effect all objects on stage | |
| <ImageGestures> | Sets which gestures can be used on the image itself. | |
| <Source> | Defines each giga-pixel image object populated by the application. | Each source must have a unique ID. |
| <amountToShow> | Sets the number of giga-pixel image objects to display on stage | |
| <cornerRadius> | Sets the radius of the frame's corners. Set to "0" for angular corners | To make corners angular, set to "0" |
| <fillAlpha> | Sets the opacity of the frame. 0 is completely transparent, 1 is fully opaque, .5 is half opaque, etc. | |
| <fillColor1> | Sets the fill color of the frame. Input a hex color value after 0x | |
| <frameDraw> | Sets whether or not an external frame is drawn | |
| <imageWidth> | Sets the display width of the image area in pixels | |
| <imageXML> | Sets the image xml source path | |
| <imagebgColor> | Sets the background color of the image area | |
| <outlineColor> | Sets the outline color of the frame border | |
| <outlineStroke> | Sets the thickness of the border line in pixels | |
| <padding> | Sets the padding (thickness) of the frame around the window | |
| Name | Superclass | Notes |
|---|---|---|
| GigaPixelViewer | TouchComponent | |
| Name | Type | Description | Notes |
|---|---|---|---|
| COMPLETE | String | String utilized for a dispatch event when module has loaded. | Public Static |
| displayObject | Array | The object holder for the GigaPixelViewer Class | Public |
| gpDisplay | GigaPixelDisplay | The main display class for the GigaPixelViewer | Private |
| id | int | The identification number of an object within a module. | Public |
| moduleName | String | The module name is the same as its class name | Public |
| Name | Description | Notes | |
|---|---|---|---|
| GigaPixelViewer() | The function called after the module xml has been parsed | Public | |
| callNewObject(int):void | The Constructor. | Public | |
| onParseComplete(event:Event):void | Calls an new object to the stage and passes an int as its argument | Private | |
| updateUI():void | Calls to the callNewObject() function. | Protected | |
| Name | Description | Notes | |
|---|---|---|---|