|
Awesome Portable Rendering Interface Library
This library provides a universal rendering API and does not require to write code that is used in only one API (e.g. OpenGL, DirectX, SDL, ...)
|
Defines a generic render system. More...
#include <RenderSystem.h>
Classes | |
| struct | Caps |
| Defines the available capabilities of the render system. More... | |
| struct | DisplayMode |
| Defines a possible display mode for the screen. More... | |
| struct | Options |
| Defines options for render system creation. More... | |
| class | RenderMode |
| Defines possible rendering methods. More... | |
Public Member Functions | |
| RenderSystem () | |
| Basic constructor. | |
| virtual | ~RenderSystem () |
| Destructor. | |
| void | init () |
| Initializes the RenderSystem. | |
| bool | create (Options options) |
| Creates the internal RenderSystem with the given options. More... | |
| bool | destroy () |
| Destroyes the RenderSystem. More... | |
| void | assignWindow (Window *window) |
| Assigns a window to the RenderSystem where it should render. More... | |
| void | reset () |
| Resets the RenderSystem. More... | |
| void | suspend () |
| Suspends the RenderSystem. More... | |
| HL_DEFINE_GET (hstr, name, Name) | |
| Gets the RenderSystem name. | |
| HL_DEFINE_GET (Options, options, Options) | |
| Gets the Options with which the RenderSystem was created. | |
| HL_DEFINE_GET (Caps, caps, Caps) | |
| Gets the capabilities of the RenderSystem. | |
| HL_DEFINE_GET (RenderMode, renderMode, RenderMode) | |
| Gets the current RenderMode. | |
| HL_DEFINE_GET (int, frameAdvanceUpdates, FrameAdvanceUpdates) | |
| Gets how frames in advance can be updated. | |
| int | getFrameDuplicates () |
| Gets how many times a frame should be duplicated during rendering. More... | |
| void | setFrameDuplicates (int const &value) |
| Sets how many times a frame should be duplicated during rendering. [in] value The new value. | |
| HL_DEFINE_GET (int, statCurrentFrameRenderCalls, StatCurrentFrameRenderCalls) | |
| Gets how many times a render call was called during this frame. | |
| HL_DEFINE_GET (int, statLastFrameRenderCalls, StatLastFrameRenderCalls) | |
| Gets how many times a render call was called during the last frame. | |
| HL_DEFINE_GET (int, statCurrentFrameTextureSwitches, StatCurrentFrameTextureSwitches) | |
| Gets how many times the texture was switched during this frame. | |
| HL_DEFINE_GET (int, statLastFrameTextureSwitches, StatLastFrameTextureSwitches) | |
| Gets how many times the texture was switched during the last frame. | |
| HL_DEFINE_GET (int, statCurrentFrameVertexCount, StatCurrentFrameVertexCount) | |
| Gets how many vertices were rendered during this frame. | |
| HL_DEFINE_GET (int, statLastFrameVertexCount, StatLastFrameVertexCount) | |
| Gets how many vertices were rendered during the last frame. | |
| HL_DEFINE_GET (int, statCurrentFrameTriangleCount, StatCurrentFrameTriangleCount) | |
| Gets how many triangles were rendered during this frame. | |
| HL_DEFINE_GET (int, statLastFrameTriangleCount, StatLastFrameTriangleCount) | |
| Gets how many triangles were rendered during the last frame. | |
| HL_DEFINE_GET (int, statCurrentFrameLineCount, StatCurrentFrameLineCount) | |
| Gets how many lines were rendered during this frame. | |
| HL_DEFINE_GET (int, statLastFrameLineCount, StatLastFrameLineCount) | |
| Gets how many lines were rendered during the last frame. | |
| int | getAsyncQueuesCount () |
| Gets how frames are queued for rendering. | |
| harray< Texture * > | getTextures () |
| Gets all currently existing textures in the RenderSystem. More... | |
| harray< DisplayMode > | getDisplayModes () |
| Gets a list of all supported display modes. More... | |
| int64_t | getVRamConsumption () |
| int64_t | getRamConsumption () |
| Gets the current RAM consumption of textures. More... | |
| int64_t | getAsyncRamConsumption () |
| Gets the the current RAM consumption for all textures that are still in the process of being loaded asynchronously. More... | |
| bool | hasAsyncTexturesQueued () const |
| Checks if there are any textures queued to be loaded asynchronously. More... | |
| bool | hasTexturesReadyForUpload () const |
| Checks if there are any textures ready to be uploaded. More... | |
| grecti | getViewport () const |
| Gets the render viewport. More... | |
| void | setViewport (cgrecti value) |
| Sets the render viewport. More... | |
| gmat4 | getModelviewMatrix () const |
| Gets the current modelview matrix. More... | |
| void | setModelviewMatrix (const gmat4 &value) |
| Sets the current modelview matrix. More... | |
| gmat4 | getProjectionMatrix () const |
| Gets the projection matrix. More... | |
| void | setProjectionMatrix (const gmat4 &value) |
| Sets the current projection matrix. More... | |
| virtual int | getVRam () const =0 |
| Gets the amount of video RAM available. More... | |
| bool | update (float timeDelta) |
| Updates the RenderSystem. More... | |
| void | waitForAsyncCommands (bool forced=false) |
| Waits for the currently async commands to be executed. More... | |
| void | setRenderMode (RenderMode renderMode, const hmap< hstr, hstr > &options=hmap< hstr, hstr >()) |
| Sets the current RenderMode. | |
| Texture * | createTextureFromResource (chstr filename, Texture::Type type=Texture::Type::Immutable, Texture::LoadMode loadMode=Texture::LoadMode::Async) |
| Creates a Texture object from a resource file. More... | |
| Texture * | createTextureFromResource (chstr filename, Image::Format format, Texture::Type type=Texture::Type::Managed, Texture::LoadMode loadMode=Texture::LoadMode::Async) |
| Creates a Texture object from a resource file. More... | |
| Texture * | createTextureFromFile (chstr filename, Texture::Type type=Texture::Type::Immutable, Texture::LoadMode loadMode=Texture::LoadMode::Async) |
| Creates a Texture object from a file. More... | |
| Texture * | createTextureFromFile (chstr filename, Image::Format format, Texture::Type type=Texture::Type::Managed, Texture::LoadMode loadMode=Texture::LoadMode::Async) |
| Creates a Texture object from a file. More... | |
| Texture * | createTexture (int w, int h, unsigned char *data, Image::Format format) |
| Creates a Texture object from raw data. More... | |
| Texture * | createTexture (int w, int h, Color color, Image::Format format) |
| Creates a Texture object completely filled with a specific color. More... | |
| void | destroyTexture (Texture *texture) |
| Destroys a Texture object. More... | |
| PixelShader * | createPixelShaderFromResource (chstr filename) |
| Creates a pixel shader from a resource file. More... | |
| PixelShader * | createPixelShaderFromFile (chstr filename) |
| Creates a pixel shader from a file. More... | |
| PixelShader * | createPixelShader () |
| Creates an empty pixel shader. More... | |
| VertexShader * | createVertexShaderFromResource (chstr filename) |
| Creates a vertex shader from a resource file. More... | |
| VertexShader * | createVertexShaderFromFile (chstr filename) |
| Creates a vertex shader from a file. More... | |
| VertexShader * | createVertexShader () |
| Creates a vertex shader. More... | |
| void | destroyPixelShader (PixelShader *shader) |
| Destroy a pixel shader. More... | |
| void | destroyVertexShader (VertexShader *shader) |
| Destroy a vertex shader. More... | |
| grectf | getOrthoProjection () const |
| Gets the ortho-projection rectangle. More... | |
| void | setOrthoProjection (cgrectf rect) |
| Activate ortho-projection using a rectangle. More... | |
| void | setOrthoProjection (cgrectf rect, float nearZ, float farZ) |
| Activate ortho-projection using a rectangle. More... | |
| void | setOrthoProjection (cgvec2f size) |
| Activate ortho-projection using just the size. More... | |
| void | setOrthoProjection (cgvec2f size, float nearZ, float farZ) |
| Activate ortho-projection using just the size. More... | |
| void | setDepthBuffer (bool enabled, bool writeEnabled=true) |
| Sets the current depth-buffer state. More... | |
| void | setTexture (Texture *texture) |
| Sets the current Texture for rendering. More... | |
| void | setBlendMode (const BlendMode &blendMode) |
| Sets the current blending mode for rendering. More... | |
| void | setColorMode (const ColorMode &colorMode, float colorModeFactor=1.0f) |
| Sets the current color mode for rendering. More... | |
| virtual Texture * | getRenderTarget () |
| Gets the Texture render target. More... | |
| virtual void | setRenderTarget (Texture *texture) |
| Sets the Texture render target. More... | |
| virtual void | setPixelShader (PixelShader *pixelShader) |
| Sets the current pixel shader Texture render target. More... | |
| virtual void | setVertexShader (VertexShader *vertexShader) |
| Sets the current vertex shader Texture render target. More... | |
| void | setIdentityTransform () |
| Resets the modelview matrix to an identity matrix. | |
| void | translate (float x, float y, float z=0.0f) |
| Translates the modelview matrix. More... | |
| void | translate (cgvec3f vector) |
| Translates the modelview matrix. More... | |
| void | translate (cgvec2f vector) |
| Translates the modelview matrix. More... | |
| void | rotate (float angle) |
| Rotates the modelview matrix around the -Z axis. More... | |
| void | rotate (float ax, float ay, float az, float angle) |
| Rotates the modelview matrix around an axis. More... | |
| void | rotate (cgvec3f axis, float angle) |
| Rotates the modelview matrix around an axis. More... | |
| void | scale (float factor) |
| Scales the modelview matrix by a certain factor. More... | |
| void | scale (float factorX, float factorY, float factorZ) |
| Scales the modelview matrix by a certain factor. More... | |
| void | scale (cgvec3f vector) |
| Scales the modelview matrix by a certain factor. More... | |
| void | scale (cgvec2f vector) |
| Scales the modelview matrix by a certain factor. More... | |
| void | lookAt (cgvec3f eye, cgvec3f target, cgvec3f up) |
| Sets the modelview matrix up to look toward a certain point. More... | |
| void | setPerspective (float fov, float aspect, float nearZ, float farZ) |
| Sets the perspective of the modelview matrix. More... | |
| void | clear (bool depth=false) |
| Clears the backbuffer. More... | |
| void | clear (Color color, bool depth=false) |
| Clears the backbuffer with a certain color. More... | |
| void | clearDepth () |
| Clears the depth-buffer. | |
| void | render (const RenderOperation &renderOperation, const PlainVertex *vertices, int count) |
| Renders an array of vertices to the backbuffer. More... | |
| void | render (const RenderOperation &renderOperation, const PlainVertex *vertices, int count, const Color &color) |
| Renders an array of vertices to the backbuffer. More... | |
| void | render (const RenderOperation &renderOperation, const TexturedVertex *vertices, int count) |
| Renders an array of vertices to the backbuffer. More... | |
| void | render (const RenderOperation &renderOperation, const TexturedVertex *vertices, int count, const Color &color) |
| Renders an array of vertices to the backbuffer. More... | |
| void | render (const RenderOperation &renderOperation, const ColoredVertex *vertices, int count) |
| Renders an array of vertices to the backbuffer. More... | |
| void | render (const RenderOperation &renderOperation, const ColoredTexturedVertex *vertices, int count) |
| Renders an array of vertices to the backbuffer. More... | |
| void | drawRect (cgrectf rect, const Color &color) |
| Renders a rectangle. More... | |
| void | drawFilledRect (cgrectf rect, const Color &color) |
| Renders a rectangle filled with a color. More... | |
| void | drawTexturedRect (cgrectf rect, cgrectf src) |
| Renders a textured rectangle. More... | |
| void | drawTexturedRect (cgrectf rect, cgrectf src, const Color &color) |
| Renders a textured rectangle. More... | |
| hstr | findTextureResource (chstr filename) const |
| Finds the actual filename of a texture resource file. More... | |
| hstr | findTextureFile (chstr filename) const |
| Finds the actual filename of a texture file. More... | |
| void | unloadTextures () |
| Unloads all textures. More... | |
| void | waitForAsyncTextures (float timeout=0.0f) const |
| Waits for all currently queued textures to load asynchronously. More... | |
| virtual Image::Format | getNativeTextureFormat (Image::Format format) const =0 |
| Converts a pixel format into the system native pixel format while keeping the number of colors intact. More... | |
| virtual unsigned int | getNativeColorUInt (const Color &color) const =0 |
| Converts a Color into a system native unsigned int value used for colors internally. More... | |
| virtual void | flushFrame (bool updateStats=false) |
| Flushes the currently rendered data. More... | |
| void | takeScreenshot (Image::Format format) |
| Takes a screenshot a.k.a. captures the image data of the backbuffer. More... | |
| void | presentFrame () |
| Flushes the currently rendered data to the backbuffer for display. More... | |
Protected Member Functions | |
| void | _registerTexture (Texture *texture) |
| Registers a created Texture in the system. More... | |
| void | _unregisterTexture (Texture *texture) |
| Texture * | _createTextureFromSource (bool fromResource, chstr filename, Texture::Type type, Texture::LoadMode loadMode, Image::Format format=Image::Format::Invalid) |
| Internally safe method for creating a Texture object. More... | |
| PixelShader * | _createPixelShaderFromSource (bool fromResource, chstr filename) |
| Internally safe method for creating a PixelShader object. More... | |
| VertexShader * | _createVertexShaderFromSource (bool fromResource, chstr filename) |
| Internally safe method for creating a VertexShader object. More... | |
| virtual void | _updateDeviceState (RenderState *state, bool forceUpdate=false) |
| Updates the device state based on the current render system state. This method only updates things tha have changed to improve performance. More... | |
| void | _addAsyncCommand (AsyncCommand *command) |
| Adds a render command to the queue. More... | |
| void | _addUnloadTextureCommand (UnloadTextureCommand *command) |
| Adds a special texture-unload command to the queue. More... | |
| void | _flushAsyncCommands () |
| Flushes all remaining async commands. | |
| void | _systemCreate (Options options) |
| Routing method for async creation. More... | |
| void | _systemDestroy () |
| Routing method for async destruction. | |
| void | _systemAssignWindow (Window *window) |
| Routing method for async assignment of window. More... | |
| virtual void | _deviceInit ()=0 |
| Initializes everything internal for the RenderSystem. | |
| virtual bool | _deviceCreate (Options options)=0 |
| Creates the internal device. More... | |
| virtual bool | _deviceDestroy ()=0 |
| Destroys the internal device. More... | |
| virtual void | _deviceAssignWindow (Window *window)=0 |
| Calls the internal Window assignment code. | |
| virtual void | _deviceReset () |
| Resets the internal device. | |
| virtual void | _deviceSuspend () |
| Suspends the internal device. | |
| virtual void | _deviceSetupCaps ()=0 |
| Sets up the capabilities listing. | |
| virtual void | _deviceSetup ()=0 |
| Sets up the internal device. | |
| virtual void | _deviceSetupDisplayModes () |
| Sets up the supported display modes listing. | |
| virtual Texture * | _deviceCreateTexture (bool fromResource)=0 |
| Creates the actual device Texture. More... | |
| virtual PixelShader * | _deviceCreatePixelShader () |
| Creates the actual device PixelShader. More... | |
| virtual VertexShader * | _deviceCreateVertexShader () |
| Creates the actual device VertexShader. More... | |
| virtual void | _deviceChangeResolution (int width, int height, bool fullscreen) |
| Changes the device backbuffer resolution and fullscreen mode. More... | |
| virtual void | _setDeviceViewport (cgrecti rect)=0 |
| Sets the device viewport. More... | |
| virtual void | _setDeviceModelviewMatrix (const gmat4 &matrix)=0 |
| Sets the device modelview matrix. More... | |
| virtual void | _setDeviceProjectionMatrix (const gmat4 &matrix)=0 |
| Sets the device projection matrix. More... | |
| virtual void | _setDeviceDepthBuffer (bool enabled, bool writeEnabled)=0 |
| Sets the device depth-buffer state. More... | |
| virtual void | _setDeviceRenderMode (bool useTexture, bool useColor)=0 |
| Sets the device's state regarding vertex format. More... | |
| virtual void | _setDeviceTexture (Texture *texture)=0 |
| Sets the device Texture. More... | |
| virtual void | _setDeviceTextureFilter (const Texture::Filter &textureFilter)=0 |
| Sets the current Texture's filter. More... | |
| virtual void | _setDeviceTextureAddressMode (const Texture::AddressMode &textureAddressMode)=0 |
| Sets the current Texture's address mode. More... | |
| virtual void | _setDeviceBlendMode (const BlendMode &blendMode)=0 |
| Sets the device blending mode for rendering. More... | |
| virtual void | _setDeviceColorMode (const ColorMode &colorMode, float colorModeFactor, bool useTexture, bool useColor, const Color &systemColor)=0 |
| Sets the device color mode for rendering. More... | |
| void | _renderInternal (const RenderOperation &renderOperation, const PlainVertex *vertices, int count) |
| Renders an array of vertices to the backbuffer. More... | |
| void | _renderInternal (const RenderOperation &renderOperation, const PlainVertex *vertices, int count, const Color &color) |
| Renders an array of vertices to the backbuffer. More... | |
| void | _renderInternal (const RenderOperation &renderOperation, const TexturedVertex *vertices, int count) |
| Renders an array of vertices to the backbuffer. More... | |
| void | _renderInternal (const RenderOperation &renderOperation, const TexturedVertex *vertices, int count, const Color &color) |
| Renders an array of vertices to the backbuffer. More... | |
| void | _renderInternal (const RenderOperation &renderOperation, const ColoredVertex *vertices, int count) |
| Renders an array of vertices to the backbuffer. More... | |
| void | _renderInternal (const RenderOperation &renderOperation, const ColoredTexturedVertex *vertices, int count) |
| Renders an array of vertices to the backbuffer. More... | |
| void | _drawRectInternal (cgrectf rect, const Color &color) |
| Renders a rectangle. More... | |
| void | _drawFilledRectInternal (cgrectf rect, const Color &color) |
| Renders a rectangle filled with a color. More... | |
| void | _drawTexturedRectInternal (cgrectf rect, cgrectf src) |
| Renders a textured rectangle. More... | |
| void | _drawTexturedRectInternal (cgrectf rect, cgrectf src, const Color &color) |
| Renders a textured rectangle. More... | |
| void | _increaseStats (const RenderOperation &renderOperation, int count) |
| Increases all relevant rendering stats. More... | |
| virtual void | _deviceClear (bool depth)=0 |
| Clears the device backbuffer. More... | |
| virtual void | _deviceClear (const Color &color, bool depth)=0 |
| Clears the device backbuffer with a certain color. More... | |
| virtual void | _deviceClearDepth ()=0 |
| Clears the device depth-buffer. | |
| virtual void | _deviceRender (const RenderOperation &renderOperation, const PlainVertex *vertices, int count)=0 |
| Executes the final renders call for a vertex array. More... | |
| virtual void | _deviceRender (const RenderOperation &renderOperation, const TexturedVertex *vertices, int count)=0 |
| Executes the final renders call for a vertex array. More... | |
| virtual void | _deviceRender (const RenderOperation &renderOperation, const ColoredVertex *vertices, int count)=0 |
| Executes the final renders call for a vertex array. More... | |
| virtual void | _deviceRender (const RenderOperation &renderOperation, const ColoredTexturedVertex *vertices, int count)=0 |
| Executes the final renders call for a vertex array. More... | |
| virtual void | _devicePresentFrame (bool systemEnabled) |
| Flushes the currently rendered data to the backbuffer for display. More... | |
| virtual void | _deviceRepeatLastFrame (bool systemEnabled) |
| Renders previous frame again. More... | |
| virtual void | _deviceCopyRenderTargetData (Texture *source, Texture *destination) |
| Copies RenderTarget data from one texture to another. More... | |
| virtual void | _deviceTakeScreenshot (Image::Format format) |
| Takes a screenshot a.k.a. captures the image data of the backbuffer. More... | |
| void | _updateIntermediateRenderTextures () |
| Updates the intermediate render textures. | |
| bool | _tryCreateIntermediateRenderTextures (int width, int height) |
| Creates the intermediate render textures. More... | |
| bool | _tryDestroyIntermediateRenderTextures () |
| Destroys the intermediate render texture. More... | |
| void | _presentIntermediateRenderTexture () |
| Renders the actual intermediate render texture. | |
| void | _deviceUnloadTextures () |
| Unloads all textures. Used internally only. More... | |
| unsigned int | _numPrimitives (const RenderOperation &renderOperation, int count) const |
| Calculates the number of primitives based on the number of vertices. More... | |
| unsigned int | _limitVertices (const RenderOperation &renderOperation, int count) const |
| Corrects the number of vertices allowed to be used in the given RenderOperation to avoid glitches and crashes. More... | |
Protected Attributes | |
| hstr | name |
| The RenderSystem's name. | |
| bool | created |
| Whether it's been created or not. | |
| Options | options |
| The Options object containing the currently used options. | |
| Caps | caps |
| The capabilities of the RenderSystem. | |
| RenderMode | renderMode |
| The current RenderMode. | |
| float | pixelOffset |
| The pixel offset when rendering. More... | |
| harray< Texture * > | textures |
| All currently existing textures. | |
| harray< DisplayMode > | displayModes |
| All supported display modes. | |
| RenderState * | state |
| The current state of the RenderSystem. | |
| RenderState * | deviceState |
| The actual device state. | |
| hmutex | texturesMutex |
| Mutex required for registering and unregistering of textures that allows for multi-threaded access. | |
| hmutex | asyncMutex |
| Mutex required for async update/rendering. | |
| RenderHelper * | renderHelper |
| Special helper object that can handle rendering in a different way. | |
| harray< AsyncCommandQueue * > | asyncCommandQueues |
| Async command queue. | |
| AsyncCommandQueue * | lastAsyncCommandQueue |
| Last special async command queue. | |
| bool | processingAsync |
| Whether async commands are being processed right now. | |
| int | frameAdvanceUpdates |
| How many times a render call was called during this frame. | |
| int | frameDuplicates |
| How many times a frame should be duplicated during rendering. | |
| Texture * | _currentIntermediateRenderTexture |
| Current special texture used as utility for rendering. | |
| Texture * | _lastIntermediateRenderTexture |
| Last special texture used as utility for rendering. | |
| harray< Texture * > | _intermediateRenderTextures |
| Special textures used as utility for rendering. | |
| int | _intermediateRenderTextureCount |
| Number of current special textures used as utility for rendering. | |
| int | _intermediateRenderTextureIndex |
| Index of current special textures used as utility for rendering. | |
| bool | _updateLastIntermediateRenderTexture |
| Whether an update of the last intermediate render textures should occur after rendering. | |
| RenderState * | _intermediateState |
| Fixed RenderState for rendering the intermediate render texture. | |
| april::TexturedVertex | _intermediateRenderVertices [APRIL_INTERMEDIATE_TEXTURE_VERTICES_COUNT] |
| Fixed vertices for rendering the intermediate render texture. | |
| int | statCurrentFrameRenderCalls |
| How many times a render call was called during this frame. | |
| int | statLastFrameRenderCalls |
| How many times a render call was called during the last frame. | |
| int | statCurrentFrameTextureSwitches |
| How many times the texture was switched during this frame. | |
| int | statLastFrameTextureSwitches |
| How many times the texture was switched during the last frame. | |
| int | statCurrentFrameVertexCount |
| How many vertices were rendered during this frame. | |
| int | statLastFrameVertexCount |
| How many vertices were rendered during the last frame. | |
| int | statCurrentFrameTriangleCount |
| How many triangles were rendered during this frame. | |
| int | statLastFrameTriangleCount |
| How many triangles were rendered during the last frame. | |
| int | statCurrentFrameLineCount |
| How many lines were rendered during this frame. | |
| int | statLastFrameLineCount |
| How many lines were rendered during the last frame. | |
Defines a generic render system.
|
protected |
Adds a render command to the queue.
| [in] | command | The command to add. |
|
protected |
Adds a special texture-unload command to the queue.
| [in] | command | The command to add. |
|
protected |
Internally safe method for creating a PixelShader object.
| [in] | fromResource | Whether the PixelShader should be created from a resource file or a normal file. |
| [in] | filename | The filename of the pixel shader. |
|
protected |
Internally safe method for creating a Texture object.
| [in] | fromResource | Whether the Texture should be created from a resource file or a normal file. |
| [in] | filename | The filename of the texture. |
| [in] | type | The Texture type that should be created. |
| [in] | loadMode | How and when the Texture should be loaded. |
| [in] | format | To which pixel format the loaded data should be converted. |
|
protected |
Internally safe method for creating a VertexShader object.
| [in] | fromResource | Whether the VertexShader should be created from a resource file or a normal file. |
| [in] | filename | The filename of the vertex shader. |
|
protectedvirtual |
Changes the device backbuffer resolution and fullscreen mode.
| [in] | width | Width of the new backbuffer in pixels. |
| [in] | height | Height of the new backbuffer in pixels. |
| [in] | fullscreen | Whether the device is in fullscreen or not. |
|
protectedpure virtual |
Clears the device backbuffer.
| [in] | depth | If true, clears the depth-buffer as well. |
|
protectedpure virtual |
Clears the device backbuffer with a certain color.
| [in] | color | Color that is used to fill the backbuffer. |
| [in] | depth | If true, clears the depth buffer as well. |
|
protectedvirtual |
Copies RenderTarget data from one texture to another.
|
protectedpure virtual |
Creates the internal device.
| [in] | options | The options to use. |
|
protectedvirtual |
Creates the actual device PixelShader.
|
protectedpure virtual |
Creates the actual device Texture.
| [in] | fromResource | Whether the Texture is created from a resource file or a normal file. |
|
protectedvirtual |
Creates the actual device VertexShader.
|
protectedpure virtual |
Destroys the internal device.
|
protectedvirtual |
Flushes the currently rendered data to the backbuffer for display.
| [in] | systemEnabled | Whether the system present is actually enabled. |
|
protectedpure virtual |
Executes the final renders call for a vertex array.
| [in] | renderOperation | The RenderOperation that should be used to render the vertices. |
| [in] | vertices | An array of vertices. |
| [in] | count | How many vertices from the array should be rendered. |
|
protectedpure virtual |
Executes the final renders call for a vertex array.
| [in] | renderOperation | The RenderOperation that should be used to render the vertices. |
| [in] | vertices | An array of vertices. |
| [in] | count | How many vertices from the array should be rendered. |
|
protectedpure virtual |
Executes the final renders call for a vertex array.
| [in] | renderOperation | The RenderOperation that should be used to render the vertices. |
| [in] | vertices | An array of vertices. |
| [in] | count | How many vertices from the array should be rendered. |
|
protectedpure virtual |
Executes the final renders call for a vertex array.
| [in] | renderOperation | The RenderOperation that should be used to render the vertices. |
| [in] | vertices | An array of vertices. |
| [in] | count | How many vertices from the array should be rendered. |
|
protectedvirtual |
Renders previous frame again.
| [in] | systemEnabled | Whether the system present is actually enabled. |
|
protectedvirtual |
Takes a screenshot a.k.a. captures the image data of the backbuffer.
| [in] | format | The format to which the screenshot should be converted. |
|
protected |
Unloads all textures. Used internally only.
|
protected |
Renders a rectangle filled with a color.
| [in] | rect | Position and size of the rectangle. |
| [in] | color | Color of the rectangle. |
|
protected |
|
protected |
Renders a textured rectangle.
| [in] | rect | Position and size of the rectangle. |
| [in] | src | UV rectangle on the currently set Texture. |
|
protected |
Renders a textured rectangle.
| [in] | rect | Position and size of the rectangle. |
| [in] | src | UV rectangle on the currently set Texture. |
| [in] | color | Color that should be applied to the texture. |
|
protected |
Increases all relevant rendering stats.
| [in] | renderOperation | The RenderOperation that should be used to render the vertices. |
| [in] | count | How many vertices will be rendered. |
|
protected |
Corrects the number of vertices allowed to be used in the given RenderOperation to avoid glitches and crashes.
| [in] | renderOperation | The RenderOperation that is used for rendering |
| [in] | count | How many vertices are expected to be rendered. |
|
protected |
Calculates the number of primitives based on the number of vertices.
| [in] | renderOperation | The RenderOperation that is used for rendering |
| [in] | count | How many vertices are expected to be rendered. |
|
protected |
|
protected |
Renders an array of vertices to the backbuffer.
| [in] | renderOperation | The RenderOperation that should be used to render the vertices. |
| [in] | vertices | An array of vertices. |
| [in] | count | How many vertices from the array should be rendered. |
|
protected |
Renders an array of vertices to the backbuffer.
| [in] | renderOperation | The RenderOperation that should be used to render the vertices. |
| [in] | vertices | An array of vertices. |
| [in] | count | How many vertices from the array should be rendered. |
| [in] | color | Color to apply globally on all vertices. |
|
protected |
Renders an array of vertices to the backbuffer.
| [in] | renderOperation | The RenderOperation that should be used to render the vertices. |
| [in] | vertices | An array of vertices. |
| [in] | count | How many vertices from the array should be rendered. |
|
protected |
Renders an array of vertices to the backbuffer.
| [in] | renderOperation | The RenderOperation that should be used to render the vertices. |
| [in] | vertices | An array of vertices. |
| [in] | count | How many vertices from the array should be rendered. |
| [in] | color | Color to apply globally on all vertices. |
|
protected |
Renders an array of vertices to the backbuffer.
| [in] | renderOperation | The RenderOperation that should be used to render the vertices. |
| [in] | vertices | An array of vertices. |
| [in] | count | How many vertices from the array should be rendered. |
|
protected |
Renders an array of vertices to the backbuffer.
| [in] | renderOperation | The RenderOperation that should be used to render the vertices. |
| [in] | vertices | An array of vertices. |
| [in] | count | How many vertices from the array should be rendered. |
|
protectedpure virtual |
Sets the device blending mode for rendering.
| [in] | blendMode | The blending mode to be set for rendering. |
|
protectedpure virtual |
Sets the device color mode for rendering.
| [in] | colorMode | The color mode to be set for rendering. |
| [in] | colorModeFactor | The additioanl color mode factor. |
| [in] | useTexture | Whether the vertices support UV coordinates. |
| [in] | useColor | Whether the vertices support separate color values. |
| [in] | systemColor | The global color for all vertices if useColor is set to false. |
|
protectedpure virtual |
Sets the device depth-buffer state.
| [in] | enabled | Whether to enable or disable the device depth-buffer itself. |
| [in] | writeEnabled | Whether writing to the device depth-buffer is enabled. |
|
protectedpure virtual |
Sets the device modelview matrix.
| [in] | matrix | The current modelview matrix. |
|
protectedpure virtual |
Sets the device projection matrix.
| [in] | matrix | The current projection matrix. |
|
protectedpure virtual |
Sets the device's state regarding vertex format.
| [in] | useTexture | Whether the vertices support UV coordinates. |
| [in] | useColor | Whether the vertices support separate color values. |
|
protectedpure virtual |
Sets the device Texture.
| [in] | texture | The current texture. |
|
protectedpure virtual |
Sets the current Texture's address mode.
| [in] | textureAddressMode | The current texture address mode. |
|
protectedpure virtual |
Sets the current Texture's filter.
| [in] | textureFilter | The current texture filter. |
|
protectedpure virtual |
Sets the device viewport.
| [in] | rect | The viewport rectangle. |
|
protected |
Routing method for async assignment of window.
| [in] | window | The window instance. |
|
protected |
Routing method for async creation.
| [in] | options | The options to use. |
|
protected |
Creates the intermediate render textures.
| [in] | width | The texture width. |
| [in] | height | The texture height. |
|
protected |
Destroys the intermediate render texture.
|
protected |
|
protectedvirtual |
Updates the device state based on the current render system state. This method only updates things tha have changed to improve performance.
| [in] | forceUpdate | If true, will force an update of the entire device state, regardless of the current state. |
| void april::RenderSystem::assignWindow | ( | Window * | window | ) |
Assigns a window to the RenderSystem where it should render.
| [in] | window | The Window instance. |
| void april::RenderSystem::clear | ( | bool | depth = false | ) |
Clears the backbuffer.
| [in] | depth | If true, clears the depth-buffer as well. |
| void april::RenderSystem::clear | ( | Color | color, |
| bool | depth = false |
||
| ) |
Clears the backbuffer with a certain color.
| [in] | color | Color that is used to fill the backbuffer. |
| [in] | depth | If true, clears the depth buffer as well. |
| bool april::RenderSystem::create | ( | Options | options | ) |
Creates the internal RenderSystem with the given options.
| [in] | options | Options for the RenderSystem creation |
| PixelShader* april::RenderSystem::createPixelShader | ( | ) |
Creates an empty pixel shader.
| PixelShader* april::RenderSystem::createPixelShaderFromFile | ( | chstr | filename | ) |
Creates a pixel shader from a file.
| [in] | filename | The filename of the file. |
| PixelShader* april::RenderSystem::createPixelShaderFromResource | ( | chstr | filename | ) |
Creates a pixel shader from a resource file.
| [in] | filename | The filename of the resource file. |
| Texture* april::RenderSystem::createTexture | ( | int | w, |
| int | h, | ||
| unsigned char * | data, | ||
| Image::Format | format | ||
| ) |
| Texture* april::RenderSystem::createTexture | ( | int | w, |
| int | h, | ||
| Color | color, | ||
| Image::Format | format | ||
| ) |
| Texture* april::RenderSystem::createTextureFromFile | ( | chstr | filename, |
| Texture::Type | type = Texture::Type::Immutable , |
||
| Texture::LoadMode | loadMode = Texture::LoadMode::Async |
||
| ) |
| Texture* april::RenderSystem::createTextureFromFile | ( | chstr | filename, |
| Image::Format | format, | ||
| Texture::Type | type = Texture::Type::Managed , |
||
| Texture::LoadMode | loadMode = Texture::LoadMode::Async |
||
| ) |
Creates a Texture object from a file.
| [in] | filename | The filename of the file. |
| [in] | format | To which pixel format the loaded data should be converted. |
| [in] | type | The Texture type that should be created. |
| [in] | loadMode | How and when the Texture should be loaded. |
| Texture* april::RenderSystem::createTextureFromResource | ( | chstr | filename, |
| Texture::Type | type = Texture::Type::Immutable , |
||
| Texture::LoadMode | loadMode = Texture::LoadMode::Async |
||
| ) |
| Texture* april::RenderSystem::createTextureFromResource | ( | chstr | filename, |
| Image::Format | format, | ||
| Texture::Type | type = Texture::Type::Managed , |
||
| Texture::LoadMode | loadMode = Texture::LoadMode::Async |
||
| ) |
Creates a Texture object from a resource file.
| [in] | filename | The filename of the resource. |
| [in] | format | To which pixel format the loaded data should be converted. |
| [in] | type | The Texture type that should be created. |
| [in] | loadMode | How and when the Texture should be loaded. |
| VertexShader* april::RenderSystem::createVertexShader | ( | ) |
Creates a vertex shader.
| VertexShader* april::RenderSystem::createVertexShaderFromFile | ( | chstr | filename | ) |
Creates a vertex shader from a file.
| [in] | filename | The filename of the file. |
| VertexShader* april::RenderSystem::createVertexShaderFromResource | ( | chstr | filename | ) |
Creates a vertex shader from a resource file.
| [in] | filename | The filename of the resource file. |
| bool april::RenderSystem::destroy | ( | ) |
Destroyes the RenderSystem.
| void april::RenderSystem::destroyPixelShader | ( | PixelShader * | shader | ) |
Destroy a pixel shader.
| [in] | shader | The pixel shader that should be destroyed. |
| void april::RenderSystem::destroyTexture | ( | Texture * | texture | ) |
| void april::RenderSystem::destroyVertexShader | ( | VertexShader * | shader | ) |
Destroy a vertex shader.
| [in] | shader | The vertex shader that should be destroyed. |
| void april::RenderSystem::drawFilledRect | ( | cgrectf | rect, |
| const Color & | color | ||
| ) |
Renders a rectangle filled with a color.
| [in] | rect | Position and size of the rectangle. |
| [in] | color | Color of the rectangle. |
| void april::RenderSystem::drawRect | ( | cgrectf | rect, |
| const Color & | color | ||
| ) |
Renders a rectangle.
| [in] | rect | Position and size of the rectangle. |
| [in] | color | Color of the rectangle. |
| void april::RenderSystem::drawTexturedRect | ( | cgrectf | rect, |
| cgrectf | src | ||
| ) |
Renders a textured rectangle.
| [in] | rect | Position and size of the rectangle. |
| [in] | src | UV rectangle on the currently set Texture. |
| void april::RenderSystem::drawTexturedRect | ( | cgrectf | rect, |
| cgrectf | src, | ||
| const Color & | color | ||
| ) |
Renders a textured rectangle.
| [in] | rect | Position and size of the rectangle. |
| [in] | src | UV rectangle on the currently set Texture. |
| [in] | color | Color that should be applied to the texture. |
| hstr april::RenderSystem::findTextureFile | ( | chstr | filename | ) | const |
Finds the actual filename of a texture file.
| [in] | filename | Filename without the extension. |
| hstr april::RenderSystem::findTextureResource | ( | chstr | filename | ) | const |
Finds the actual filename of a texture resource file.
| [in] | filename | Resource filename without the extension. |
|
virtual |
Flushes the currently rendered data.
| int64_t april::RenderSystem::getAsyncRamConsumption | ( | ) |
Gets the the current RAM consumption for all textures that are still in the process of being loaded asynchronously.
| harray<DisplayMode> april::RenderSystem::getDisplayModes | ( | ) |
Gets a list of all supported display modes.
| int april::RenderSystem::getFrameDuplicates | ( | ) |
Gets how many times a frame should be duplicated during rendering.
| gmat4 april::RenderSystem::getModelviewMatrix | ( | ) | const |
Gets the current modelview matrix.
|
pure virtual |
|
pure virtual |
Converts a pixel format into the system native pixel format while keeping the number of colors intact.
| [in] | format | The format to convert. |
| grectf april::RenderSystem::getOrthoProjection | ( | ) | const |
Gets the ortho-projection rectangle.
| gmat4 april::RenderSystem::getProjectionMatrix | ( | ) | const |
Gets the projection matrix.
| int64_t april::RenderSystem::getRamConsumption | ( | ) |
Gets the current RAM consumption of textures.
|
virtual |
| harray<Texture*> april::RenderSystem::getTextures | ( | ) |
Gets all currently existing textures in the RenderSystem.
| grecti april::RenderSystem::getViewport | ( | ) | const |
Gets the render viewport.
|
pure virtual |
Gets the amount of video RAM available.
| int64_t april::RenderSystem::getVRamConsumption | ( | ) |
| bool april::RenderSystem::hasAsyncTexturesQueued | ( | ) | const |
Checks if there are any textures queued to be loaded asynchronously.
| bool april::RenderSystem::hasTexturesReadyForUpload | ( | ) | const |
Checks if there are any textures ready to be uploaded.
| void april::RenderSystem::lookAt | ( | cgvec3f | eye, |
| cgvec3f | target, | ||
| cgvec3f | up | ||
| ) |
Sets the modelview matrix up to look toward a certain point.
| [in] | eye | The origin position of the camera. |
| [in] | target | The target position where to look. |
| [in] | up | The up-vector to decide the roll angle of the camera. |
| void april::RenderSystem::presentFrame | ( | ) |
Flushes the currently rendered data to the backbuffer for display.
| void april::RenderSystem::render | ( | const RenderOperation & | renderOperation, |
| const PlainVertex * | vertices, | ||
| int | count | ||
| ) |
Renders an array of vertices to the backbuffer.
| [in] | renderOperation | The RenderOperation that should be used to render the vertices. |
| [in] | vertices | An array of vertices. |
| [in] | count | How many vertices from the array should be rendered. |
| void april::RenderSystem::render | ( | const RenderOperation & | renderOperation, |
| const PlainVertex * | vertices, | ||
| int | count, | ||
| const Color & | color | ||
| ) |
Renders an array of vertices to the backbuffer.
| [in] | renderOperation | The RenderOperation that should be used to render the vertices. |
| [in] | vertices | An array of vertices. |
| [in] | count | How many vertices from the array should be rendered. |
| [in] | color | Color to apply globally on all vertices. |
| void april::RenderSystem::render | ( | const RenderOperation & | renderOperation, |
| const TexturedVertex * | vertices, | ||
| int | count | ||
| ) |
Renders an array of vertices to the backbuffer.
| [in] | renderOperation | The RenderOperation that should be used to render the vertices. |
| [in] | vertices | An array of vertices. |
| [in] | count | How many vertices from the array should be rendered. |
| void april::RenderSystem::render | ( | const RenderOperation & | renderOperation, |
| const TexturedVertex * | vertices, | ||
| int | count, | ||
| const Color & | color | ||
| ) |
Renders an array of vertices to the backbuffer.
| [in] | renderOperation | The RenderOperation that should be used to render the vertices. |
| [in] | vertices | An array of vertices. |
| [in] | count | How many vertices from the array should be rendered. |
| [in] | color | Color to apply globally on all vertices. |
| void april::RenderSystem::render | ( | const RenderOperation & | renderOperation, |
| const ColoredVertex * | vertices, | ||
| int | count | ||
| ) |
Renders an array of vertices to the backbuffer.
| [in] | renderOperation | The RenderOperation that should be used to render the vertices. |
| [in] | vertices | An array of vertices. |
| [in] | count | How many vertices from the array should be rendered. |
| void april::RenderSystem::render | ( | const RenderOperation & | renderOperation, |
| const ColoredTexturedVertex * | vertices, | ||
| int | count | ||
| ) |
Renders an array of vertices to the backbuffer.
| [in] | renderOperation | The RenderOperation that should be used to render the vertices. |
| [in] | vertices | An array of vertices. |
| [in] | count | How many vertices from the array should be rendered. |
| void april::RenderSystem::reset | ( | ) |
Resets the RenderSystem.
| void april::RenderSystem::rotate | ( | float | angle | ) |
Rotates the modelview matrix around the -Z axis.
| [in] | angle | Angle to rotate. |
| void april::RenderSystem::rotate | ( | float | ax, |
| float | ay, | ||
| float | az, | ||
| float | angle | ||
| ) |
Rotates the modelview matrix around an axis.
| [in] | ax | Rotation axis X-coordinate. |
| [in] | ay | Rotation axis Y-coordinate. |
| [in] | az | Rotation axis Z-coordinate. |
| [in] | angle | Angle to rotate. |
| void april::RenderSystem::rotate | ( | cgvec3f | axis, |
| float | angle | ||
| ) |
Rotates the modelview matrix around an axis.
| [in] | axis | The rotation axis. |
| [in] | angle | Angle to rotate. |
| void april::RenderSystem::scale | ( | float | factor | ) |
Scales the modelview matrix by a certain factor.
| [in] | factor | The scaling factor. |
| void april::RenderSystem::scale | ( | float | factorX, |
| float | factorY, | ||
| float | factorZ | ||
| ) |
Scales the modelview matrix by a certain factor.
| [in] | factorX | The scaling factor along the X axis. |
| [in] | factorY | The scaling factor along the Y axis. |
| [in] | factorZ | The scaling factor along the Z axis. |
| void april::RenderSystem::scale | ( | cgvec3f | vector | ) |
Scales the modelview matrix by a certain factor.
| [in] | vector | The scaling vector. |
| void april::RenderSystem::scale | ( | cgvec2f | vector | ) |
Scales the modelview matrix by a certain factor.
| [in] | vector | The 2D scaling vector. |
| void april::RenderSystem::setBlendMode | ( | const BlendMode & | blendMode | ) |
Sets the current blending mode for rendering.
| [in] | blendMode | The blending mode to be set for rendering. |
| void april::RenderSystem::setColorMode | ( | const ColorMode & | colorMode, |
| float | colorModeFactor = 1.0f |
||
| ) |
Sets the current color mode for rendering.
| [in] | colorMode | The color mode to be set for rendering. |
| [in] | colorModeFactor | The additioanl color mode factor. |
| void april::RenderSystem::setDepthBuffer | ( | bool | enabled, |
| bool | writeEnabled = true |
||
| ) |
Sets the current depth-buffer state.
| [in] | enabled | Whether to enable or disable the depth-buffer itself. |
| [in] | writeEnabled | Whether writing to the depth-buffer is enabled. |
| void april::RenderSystem::setModelviewMatrix | ( | const gmat4 & | value | ) |
Sets the current modelview matrix.
| [in] | value | The new modelview matrix. |
| void april::RenderSystem::setOrthoProjection | ( | cgrectf | rect | ) |
Activate ortho-projection using a rectangle.
| [in] | rect | The ortho-projection rectangle. |
| void april::RenderSystem::setOrthoProjection | ( | cgrectf | rect, |
| float | nearZ, | ||
| float | farZ | ||
| ) |
Activate ortho-projection using a rectangle.
| [in] | rect | The ortho-projection rectangle. |
| [in] | nearZ | The near clipping plane Z coordinate. |
| [in] | farZ | The far clipping plane Z coordinate. |
| void april::RenderSystem::setOrthoProjection | ( | cgvec2f | size | ) |
Activate ortho-projection using just the size.
| [in] | size | The ortho-projection size. |
| void april::RenderSystem::setOrthoProjection | ( | cgvec2f | size, |
| float | nearZ, | ||
| float | farZ | ||
| ) |
Activate ortho-projection using just the size.
| [in] | size | The ortho-projection size. |
| [in] | nearZ | The near clipping plane Z coordinate. |
| [in] | farZ | The far clipping plane Z coordinate. |
| void april::RenderSystem::setPerspective | ( | float | fov, |
| float | aspect, | ||
| float | nearZ, | ||
| float | farZ | ||
| ) |
Sets the perspective of the modelview matrix.
| [in] | fov | The angle of the field of view. |
| [in] | aspect | The aspect ratio of the viewport. |
| [in] | nearZ | The near clipping plane Z coordinate. |
| [in] | farZ | The far clipping plane Z coordinate. |
|
virtual |
Sets the current pixel shader Texture render target.
| [in] | pixelShader | The new pixel shader. |
| void april::RenderSystem::setProjectionMatrix | ( | const gmat4 & | value | ) |
Sets the current projection matrix.
| [in] | value | The new projection matrix. |
|
virtual |
| void april::RenderSystem::setTexture | ( | Texture * | texture | ) |
|
virtual |
Sets the current vertex shader Texture render target.
| [in] | vertexShader | The new vertex shader. |
| void april::RenderSystem::setViewport | ( | cgrecti | value | ) |
Sets the render viewport.
| [in] | value | The viewport rectangle. |
| void april::RenderSystem::suspend | ( | ) |
Suspends the RenderSystem.
| void april::RenderSystem::takeScreenshot | ( | Image::Format | format | ) |
Takes a screenshot a.k.a. captures the image data of the backbuffer.
| [in] | format | The format to which the screenshot should be converted. |
| void april::RenderSystem::translate | ( | float | x, |
| float | y, | ||
| float | z = 0.0f |
||
| ) |
Translates the modelview matrix.
| [in] | x | The X-coordinate. |
| [in] | y | The Y-coordinate. |
| [in] | z | The Z-coordinate. |
| void april::RenderSystem::translate | ( | cgvec3f | vector | ) |
Translates the modelview matrix.
| [in] | vector | The translation vector. |
| void april::RenderSystem::translate | ( | cgvec2f | vector | ) |
Translates the modelview matrix.
| [in] | vector | The 2D translation vector. |
| void april::RenderSystem::unloadTextures | ( | ) |
Unloads all textures.
| bool april::RenderSystem::update | ( | float | timeDelta | ) |
Updates the RenderSystem.
| [in] | timeDelta | Time since last frame. |
| void april::RenderSystem::waitForAsyncCommands | ( | bool | forced = false | ) |
Waits for the currently async commands to be executed.
| [in] | forced | Whether to force executing all commands so far. |
| void april::RenderSystem::waitForAsyncTextures | ( | float | timeout = 0.0f | ) | const |
Waits for all currently queued textures to load asynchronously.
| [in] | timeout | How long to wait maximally in seconds. |
|
protected |
The pixel offset when rendering.


--- layout: slide title: "Forscher und Institutionen via IIIF verbinden" description: date: 2018-10-15 theme: white transition: slide tags: presentation scta iiif ldn place: "Leipzig, Germany" --- Forscher und Institutionen via IIIF verbinden Jeffrey C. Witt (Loyola University Maryland) | @jeffreycwitt Leipzig, Germany, October 15, 2018 Slide Deck: http://jeffreycwitt.com/slides/2018-10-15-leipzig-iiif https://creativecommons.org/licenses/by-nc-sa/4.0/
Jeffrey C. Witt (Loyola University Maryland) | @jeffreycwitt
Leipzig, Germany, October 15, 2018
Slide Deck: http://jeffreycwitt.com/slides/2018-10-15-leipzig-iiif
https://creativecommons.org/licenses/by-nc-sa/4.0/


Norovirus news: Air Force Academy, Lego event and more
by News DeskBy NewsDesk @infectiousdiseasenews
Hundreds of Air Force Academy cadets sickened in norovirus outbreak
A stomach flu has laid low 1 in every 10 cadets at the Air Force Academy since late October, and the school’s medics are working with public health authorities and reinforcements from other bases to treat the sick.
Norovirus outbreak at Lego show leaves over 40 people ill
Dozens of people in the UK have been suffering from norovirus-like symptoms after attending a huge Lego event in Bristol over the weekend. The organizers of the Bristol Brick show say they are “devastated” and an investigation has been launched by the city’s health authorities.
Norovirus outbreak latest: 60 schools in England hit by winter vomiting bug
NOROVIRUS outbreaks have been reported up and down the UK resulting in dozens of school and hospital closure. A new report reveals around 60 schools in the North of England have had pupils and staff off sick. Is the winter vomiting bug set to spread?
Subscribe to Outbreak News TV on YouTube
Suspected norovirus outbreak closes 46 Colorado schools
Thousands of students in western Colorado are out of school because of a suspected outbreak of norovirus.
All 46 schools in the district serving Grand Junction and the surrounding area were closed Thursday and Friday and won’t reopen until after the scheduled Thanksgiving break to allow custodians to disinfect all surfaces.
- Drexel University reports two mumps cases
- Plague: 4th case reported in China, according to Taiwan CDC
- Philippines: Health officials team with McDonald’s in polio vaccination campaign
- Samoa measles outbreak: 17 deaths reported, Gov’t issues compulsory vaccination orders
- Fiji reports 10th measles case, Vaccine shortages reported
- Penn State: Mumps reported on the University Park campus
- Rat Hepatitis E virus case investigated in Hong Kong


Click me
| Click me if this is red |
testOnScroll →→→ ←←←
Before document.write
After document.write
Test property attribute interaction
testExpandoOverride: can replace methods on instances
editability in node lists
I ain't got no style
testContainsNull
AAA BBB
BBB CCC
a
b
c
((fluffy (little) cloud))
helloworld
alphabravocharlie
zero
inner
hi
hi
hi
hi
hi
Original Text
I am inline.
Aftersome
I will have a custom attribute
Compat Mode:
testInterfaceGlobals — Do objects have their expected "types"?
Test factories not bypassable
Test document.defaultView
Test Document Element
testVirtualizedUAStyles
Test document.title
Test Attribute Nodes
Test shorthand css
| h00 | |
| b00 | b01 |
| b10 | b11 |
for attribute
italic since body has class foo /
normal since body has no class bar
testToString
testCssContent
I should be the last element until something is appended to document.body


Memory Usage is - bytes.
Number of loaded classes is -.
Number of total loaded classes is -.
Number of unloaded classes is -.
Time on server is -.


| Package | Description |
|---|---|
| javax.print.attribute.standard |
Package javax.print.attribute.standard
contains classes for specific printing attributes.
|
| Modifier and Type | Field and Description |
|---|---|
static MediaSize |
MediaSize.Engineering.A
Specifies the engineering A size, 8.5 inch by 11 inch.
|
static MediaSize |
MediaSize.ISO.A0
Specifies the ISO A0 size, 841 mm by 1189 mm.
|
static MediaSize |
MediaSize.ISO.A1
Specifies the ISO A1 size, 594 mm by 841 mm.
|
static MediaSize |
MediaSize.ISO.A10
Specifies the ISO A10 size, 26 mm by 37 mm.
|
static MediaSize |
MediaSize.ISO.A2
Specifies the ISO A2 size, 420 mm by 594 mm.
|
static MediaSize |
MediaSize.ISO.A3
Specifies the ISO A3 size, 297 mm by 420 mm.
|
static MediaSize |
MediaSize.ISO.A4
Specifies the ISO A4 size, 210 mm by 297 mm.
|
static MediaSize |
MediaSize.ISO.A5
Specifies the ISO A5 size, 148 mm by 210 mm.
|
static MediaSize |
MediaSize.ISO.A6
Specifies the ISO A6 size, 105 mm by 148 mm.
|
static MediaSize |
MediaSize.ISO.A7
Specifies the ISO A7 size, 74 mm by 105 mm.
|
static MediaSize |
MediaSize.ISO.A8
Specifies the ISO A8 size, 52 mm by 74 mm.
|
static MediaSize |
MediaSize.ISO.A9
Specifies the ISO A9 size, 37 mm by 52 mm.
|
static MediaSize |
MediaSize.Engineering.B
Specifies the engineering B size, 11 inch by 17 inch.
|
static MediaSize |
MediaSize.ISO.B0
Specifies the ISO B0 size, 1000 mm by 1414 mm.
|
static MediaSize |
MediaSize.JIS.B0
Specifies the JIS B0 size, 1030 mm by 1456 mm.
|
static MediaSize |
MediaSize.ISO.B1
Specifies the ISO B1 size, 707 mm by 1000 mm.
|
static MediaSize |
MediaSize.JIS.B1
Specifies the JIS B1 size, 728 mm by 1030 mm.
|
static MediaSize |
MediaSize.ISO.B10
Specifies the ISO B10 size, 31 mm by 44 mm.
|
static MediaSize |
MediaSize.JIS.B10
Specifies the JIS B10 size, 32 mm by 45 mm.
|
static MediaSize |
MediaSize.ISO.B2
Specifies the ISO B2 size, 500 mm by 707 mm.
|
static MediaSize |
MediaSize.JIS.B2
Specifies the JIS B2 size, 515 mm by 728 mm.
|
static MediaSize |
MediaSize.ISO.B3
Specifies the ISO B3 size, 353 mm by 500 mm.
|
static MediaSize |
MediaSize.JIS.B3
Specifies the JIS B3 size, 364 mm by 515 mm.
|
static MediaSize |
MediaSize.ISO.B4
Specifies the ISO B4 size, 250 mm by 353 mm.
|
static MediaSize |
MediaSize.JIS.B4
Specifies the JIS B4 size, 257 mm by 364 mm.
|
static MediaSize |
MediaSize.ISO.B5
Specifies the ISO B5 size, 176 mm by 250 mm.
|
static MediaSize |
MediaSize.JIS.B5
Specifies the JIS B5 size, 182 mm by 257 mm.
|
static MediaSize |
MediaSize.ISO.B6
Specifies the ISO B6 size, 125 mm by 176 mm.
|
static MediaSize |
MediaSize.JIS.B6
Specifies the JIS B6 size, 128 mm by 182 mm.
|
static MediaSize |
MediaSize.ISO.B7
Specifies the ISO B7 size, 88 mm by 125 mm.
|
static MediaSize |
MediaSize.JIS.B7
Specifies the JIS B7 size, 91 mm by 128 mm.
|
static MediaSize |
MediaSize.ISO.B8
Specifies the ISO B8 size, 62 mm by 88 mm.
|
static MediaSize |
MediaSize.JIS.B8
Specifies the JIS B8 size, 64 mm by 91 mm.
|
static MediaSize |
MediaSize.ISO.B9
Specifies the ISO B9 size, 44 mm by 62 mm.
|
static MediaSize |
MediaSize.JIS.B9
Specifies the JIS B9 size, 45 mm by 64 mm.
|
static MediaSize |
MediaSize.Engineering.C
Specifies the engineering C size, 17 inch by 22 inch.
|
static MediaSize |
MediaSize.ISO.C3
Specifies the ISO C3 size, 324 mm by 458 mm.
|
static MediaSize |
MediaSize.ISO.C4
Specifies the ISO C4 size, 229 mm by 324 mm.
|
static MediaSize |
MediaSize.ISO.C5
Specifies the ISO C5 size, 162 mm by 229 mm.
|
static MediaSize |
MediaSize.ISO.C6
Specifies the ISO C6 size, 114 mm by 162 mm.
|
static MediaSize |
MediaSize.JIS.CHOU_1
Specifies the JIS Chou ("long") #1 envelope size, 142 mm by 332 mm.
|
static MediaSize |
MediaSize.JIS.CHOU_2
Specifies the JIS Chou ("long") #2 envelope size, 119 mm by 277 mm.
|
static MediaSize |
MediaSize.JIS.CHOU_3
Specifies the JIS Chou ("long") #3 envelope size, 120 mm by 235 mm.
|
static MediaSize |
MediaSize.JIS.CHOU_30
Specifies the JIS Chou ("long") #30 envelope size, 92 mm by 235 mm.
|
static MediaSize |
MediaSize.JIS.CHOU_4
Specifies the JIS Chou ("long") #4 envelope size, 90 mm by 205 mm.
|
static MediaSize |
MediaSize.JIS.CHOU_40
Specifies the JIS Chou ("long") #40 envelope size, 90 mm by 225 mm.
|
static MediaSize |
MediaSize.Engineering.D
Specifies the engineering D size, 22 inch by 34 inch.
|
static MediaSize |
MediaSize.ISO.DESIGNATED_LONG
Specifies the ISO Designated Long size, 110 mm by 220 mm.
|
static MediaSize |
MediaSize.Engineering.E
Specifies the engineering E size, 34 inch by 44 inch.
|
static MediaSize |
MediaSize.Other.EXECUTIVE
Specifies the executive size, 7.25 inches by 10.5 inches.
|
static MediaSize |
MediaSize.Other.FOLIO
Specifies the folio size, 8.5 inches by 13 inches.
|
static MediaSize |
MediaSize.Other.INVOICE
Specifies the invoice size, 5.5 inches by 8.5 inches.
|
static MediaSize |
MediaSize.Other.ITALY_ENVELOPE
Specifies the Italy envelope size, 110 mm by 230 mm.
|
static MediaSize |
MediaSize.Other.JAPANESE_DOUBLE_POSTCARD
Specifies the Japanese Double postcard size, 148 mm by 200 mm.
|
static MediaSize |
MediaSize.Other.JAPANESE_POSTCARD
Specifies the Japanese postcard size, 100 mm by 148 mm.
|
static MediaSize |
MediaSize.JIS.KAKU_0
Specifies the JIS Kaku ("square") #0 envelope size, 287 mm by 382 mm.
|
static MediaSize |
MediaSize.JIS.KAKU_1
Specifies the JIS Kaku ("square") #1 envelope size, 270 mm by 382 mm.
|
static MediaSize |
MediaSize.JIS.KAKU_2
Specifies the JIS Kaku ("square") #2 envelope size, 240 mm by 332 mm.
|
static MediaSize |
MediaSize.JIS.KAKU_20
Specifies the JIS Kaku ("square") #20 envelope size, 229 mm by 324 mm.
|
static MediaSize |
MediaSize.JIS.KAKU_3
Specifies the JIS Kaku ("square") #3 envelope size, 216 mm by 277 mm.
|
static MediaSize |
MediaSize.JIS.KAKU_4
Specifies the JIS Kaku ("square") #4 envelope size, 197 mm by 267 mm.
|
static MediaSize |
MediaSize.JIS.KAKU_5
Specifies the JIS Kaku ("square") #5 envelope size, 190 mm by 240 mm.
|
static MediaSize |
MediaSize.JIS.KAKU_6
Specifies the JIS Kaku ("square") #6 envelope size, 162 mm by 229 mm.
|
static MediaSize |
MediaSize.JIS.KAKU_7
Specifies the JIS Kaku ("square") #7 envelope size, 142 mm by 205 mm.
|
static MediaSize |
MediaSize.JIS.KAKU_8
Specifies the JIS Kaku ("square") #8 envelope size, 119 mm by 197 mm.
|
static MediaSize |
MediaSize.JIS.KAKU_A4
Specifies the JIS Kaku ("square") A4 envelope size, 228 mm by 312 mm.
|
static MediaSize |
MediaSize.Other.LEDGER
Specifies the ledger size, 11 inches by 17 inches.
|
static MediaSize |
MediaSize.NA.LEGAL
Specifies the North American legal size, 8.5 inches by 14 inches.
|
static MediaSize |
MediaSize.NA.LETTER
Specifies the North American letter size, 8.5 inches by 11 inches.
|
static MediaSize |
MediaSize.Other.MONARCH_ENVELOPE
Specifies the Monarch envelope size, 3.87 inch by 7.5 inch.
|
static MediaSize |
MediaSize.NA.NA_10x13_ENVELOPE
Specifies the North American 10 inch by 13 inch envelope size.
|
static MediaSize |
MediaSize.NA.NA_10x14_ENVELOPE
Specifies the North American 10 inch by 14 inch envelope size.
|
static MediaSize |
MediaSize.NA.NA_10X15_ENVELOPE
Specifies the North American 10 inch by 15 inch envelope size.
|
static MediaSize |
MediaSize.NA.NA_5X7
Specifies the North American 5 inch by 7 inch paper.
|
static MediaSize |
MediaSize.NA.NA_6X9_ENVELOPE
Specifies the North American 6 inch by 9 inch envelope size.
|
static MediaSize |
MediaSize.NA.NA_7X9_ENVELOPE
Specifies the North American 7 inch by 9 inch envelope size.
|
static MediaSize |
MediaSize.NA.NA_8X10
Specifies the North American 8 inch by 10 inch paper.
|
static MediaSize |
MediaSize.NA.NA_9x11_ENVELOPE
Specifies the North American 9 inch by 11 inch envelope size.
|
static MediaSize |
MediaSize.NA.NA_9x12_ENVELOPE
Specifies the North American 9 inch by 12 inch envelope size.
|
static MediaSize |
MediaSize.NA.NA_NUMBER_10_ENVELOPE
Specifies the North American Number 10 business envelope size,
4.125 inches by 9.5 inches.
|
static MediaSize |
MediaSize.NA.NA_NUMBER_11_ENVELOPE
Specifies the North American Number 11 business envelope size,
4.5 inches by 10.375 inches.
|
static MediaSize |
MediaSize.NA.NA_NUMBER_12_ENVELOPE
Specifies the North American Number 12 business envelope size,
4.75 inches by 11 inches.
|
static MediaSize |
MediaSize.NA.NA_NUMBER_14_ENVELOPE
Specifies the North American Number 14 business envelope size,
5 inches by 11.5 inches.
|
static MediaSize |
MediaSize.NA.NA_NUMBER_9_ENVELOPE
Specifies the North American Number 9 business envelope size,
3.875 inches by 8.875 inches.
|
static MediaSize |
MediaSize.Other.PERSONAL_ENVELOPE
Specifies the Personal envelope size, 3.625 inch by 6.5 inch.
|
static MediaSize |
MediaSize.Other.QUARTO
Specifies the quarto size, 8.5 inches by 10.83 inches.
|
static MediaSize |
MediaSize.Other.TABLOID
Specifies the tabloid size, 11 inches by 17 inches.
|
static MediaSize |
MediaSize.JIS.YOU_1
Specifies the JIS You ("Western") #1 envelope size, 120 mm by 176 mm.
|
static MediaSize |
MediaSize.JIS.YOU_2
Specifies the JIS You ("Western") #2 envelope size, 114 mm by 162 mm.
|
static MediaSize |
MediaSize.JIS.YOU_3
Specifies the JIS You ("Western") #3 envelope size, 98 mm by 148 mm.
|
static MediaSize |
MediaSize.JIS.YOU_4
Specifies the JIS You ("Western") #4 envelope size, 105 mm by 235 mm.
|
static MediaSize |
MediaSize.JIS.YOU_5
Specifies the JIS You ("Western") #5 envelope size, 95 mm by 217 mm.
|
static MediaSize |
MediaSize.JIS.YOU_6
Specifies the JIS You ("Western") #6 envelope size, 98 mm by 190 mm.
|
static MediaSize |
MediaSize.JIS.YOU_7
Specifies the JIS You ("Western") #7 envelope size, 92 mm by 165 mm.
|
| Modifier and Type | Method and Description |
|---|---|
static MediaSize |
MediaSize.getMediaSizeForName(MediaSizeName media)
Get the MediaSize for the specified named media.
|
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.


:checked Pseudo Class
Yes
No
Check me!
:disabled, :read-only, :focus Pseudo Class
Disabled:
Readonly:
Focus:
:required, :valid, :invalid Pseudo Class
Required:
Valid:


The GenDocumentGroup object creates and manages the document objects. In the "process" model of document control, it sends messages to the process object (or some other designated object) when the application needs to take some action. (It sends these messages even when the "object" model is being followed; however, the messages are ignored.)
A list of data fields for the GenDocumentGroup object follows in GenDocumentGroupClass instance data . Some of the data fields can be changed at run-time, and others cannot; a discussion of the data fields follows the listing. If a data field cannot be set or read by the application, it is not discussed.
Code Display 13-2 GenDocumentGroupClass instance data
/* GDGI_attrs is a record that specifies certain basic characteristics of the * documents to be managed. The attributes are set in the source code and are not * changed at run-time. The default settings are below. */ @instance GenDocumentGroupAttrs GDGI_attrs = (GDGA_VM_FILE | GDGA_SUPPORTS_AUTO_SAVE | GDGA_AUTOMATIC_CHANGE_NOTIFICATION | GDGA_AUTOMATIC_DIRTY_NOTIFICATION | GDGA_APPLICATION_THREAD | GDGA_AUTOMATIC_UNDO_INTERACTION | GDGA_CONTENT_DOES_NOT_MANAGE_CHILDREN); /* The following flags are available: * GDGA_VM_FILE, * GDGA_NATIVE, * GDGA_SUPPORTS_AUTO_SAVE, * GDGA_AUTOMATIC_CHANGE_NOTIFICATION, * GDGA_AUTOMATIC_DIRTY_NOTIFICATION, * GDGA_APPLICATION_THREAD, * GDGA_VM_FILE_CONTAINS_OBJECTS, * GDGA_CONTENT_DOES_NOT_MANAGE_CHILDREN, * GDGA_LARGE_CONTENT, * GDGA_AUTOMATIC_UNDO_INTERACTION */
/* GDGI_untitledName is the name suggested when a new document is * first saved. */ @instance ChunkHandle GDGI_untitledName;
/* The GenDocumentGroup object creates a document object for each document * opened. The attribute GDGI_documentClass is a pointer to the class definition * which will be used for document objects. By default, it points to the * definition of GenDocumentClass, so document objects belong to GenDocumentClass. * If you use a subclass of GenDocumentClass, you must change this attribute to * point to the new class. */ @instance ClassStruc * GDGI_documentClass = (ClassStruc *) &GenDocumentClass;
/* Ordinarily, the Document Group creates document objects by instantiating an * object of the class indicated by GDGI_documentClass. However, it can be * instructed instead to duplicate a specific document object for each new * document. To arrange this, set the GDGI_genDocument to point to the document * object to duplicate. */ @instance optr GDGI_genDocument;
/* If the Procedural model is used, whenever the application needs to take an * action, messages will be sent to the output of the GenDocumentGroup. * Ordinarily, the output will be the process object. If the Object model is used, * this attribute is generally left as a null pointer. */ @instance optr GDGI_output;
/* The GenDocumentGroup object communicates with the GenDocumentControl * object through messages. To do this, each one needs an object-pointer to the * other. This is set in the source code. */ @instance optr GDGI_documentControl;
/* The GenDocument (or subclass) objects can behave as Content objects. The * document control can automatically connect GenDocument objects to the GenView * if told to do so. The GDGI_genView field is an object-pointer to a GenView * object. */ @instance optr GDGI_genView;
/* In a multiple-document model, the document control can be set up to work with * the display control. When this functionality is enabled, the * GenDocumentGroup will automatically duplicate a specified block (generally * one containing a GenDisplay object), attach the Display object to the specified * GenDisplayGroup object, and set the header for the GenDisplay to the name of * the document. When the document is closed, the block is freed. */ @instance optr GDGI_genDisplay; /* GDGI_genDisplayGroup points to the GenDisplayGroup which manages the * GenDisplays. */ @instance optr GDGI_genDisplayGroup;
/* Each GEOS document has a protocol number, which identifies the version of * the application that created it. The GDGI_protocolMajor and * GDGI_protocolMinor attributes specify the protocol number to be assigned to * all documents created by the document control. */ @instance word GDGI_protocolMajor = 1; @instance word GDGI_protocolMinor = 0;
GDGI_attrs, MSG_GEN_DOCUMENT_GROUP_GET_ATTRS
This attribute specifies certain characteristics of the documents to be opened. These attributes are generally set in the source code and can not be changed at run-time. They are stored in a word-sized bitfield.
MSG_GEN_DOCUMENT_PHYSICAL_UPDATE
; see Working with DOS files
). It works by periodically updating the file to disk. It should probably be turned off if "Save As" and "Revert" are disabled. By default, the attribute is on. The program can temporarily disable auto-save for a document by sending the document object
MSG_GEN_DOCUMENT_DISABLE_AUTO_SAVE
.
object will periodically check all open documents to see if they have been changed by another process. If a document has changed, the document control will send
MSG_META_DOC_OUTPUT_DOCUMENT_HAS_CHANGED
to the application. This attribute is useful if the application may be reading multi-user files.
MSG_GEN_DOCUMENT_GROUP_MARK_DIRTY
to the GenDocumentGroup object (under the procedure model), or by sending a
MSG_GEN_DOCUMENT_MARK_DIRTY
to the document object (under the object model). By default, GDGA_AUTOMATIC_DIRTY_NOTIFICATION is on.GenDocumentGroupAttrs MSG_GEN_DOCUMENT_GROUP_GET_ATTRS();
Use this message to find out the attributes of the GenDocumentGroup object. Note that the attributes cannot be changed at run-time; they can only be examined.
Source: Unrestricted.
Destination:
Any GenDocumentGroup object.
Parameters: None.
Return: Flags in GDGI
_attrs
bitfield.
Interception: You should not subclass this message.
GDGI_untitledName, MSG_GEN_DOCUMENT_GROUP_GET_DEFAULT_NAME
The first time a new document is saved, the document control presents a "Save As" dialog box. If the
GDGI_untitledName
field is set to point to a string, that string will be suggested as the name of the document. If the attribute is not set, no name will be suggested. The current default name can be retrieved by sending
MSG_GEN_DOCUMENT_GROUP_GET_DEFAULT_NAME
to the GenDocumentGroup object.
GenDocumentGroupAttrs MSG_GEN_DOCUMENT_GROUP_GET_DEFAULT_NAME( char *buffer); /* Address to write default name */
This message instructs the GenDocumentGroup object to copy the
GDGI_untitledName
attribute to the specified address. In addition, the message will return the
GDGI_attrs
word of the GenDocumentGroup object. If you just want the attributes, use
MSG_GEN_DOCUMENT_GROUP_GET_ATTRS
.
Source: Unrestricted.
Destination:
Any GenDocumentGroup object.
Parameters: buffer A pointer to a character buffer. This buffer should be of length FILE_LONGNAME_BUFFER_SIZE or greater.
Return: The record of flags stored in
GDGI_attrs
.
Interception: You should not subclass this message.
Warnings: Make sure the buffer is long enough to hold any file name. Otherwise, the method may overwrite data after the buffer. The constant FILE_LONGNAME_BUFFER_SIZE, defined in file.def , is equal to the maximum file name length, counting the null terminator.
GDGI_documentClass
Each time a document is opened, the GenDocumentGroup creates a document object. Ordinarily, the document object is a member of
GenDocumentClass
. However, sometimes the programmer will want to add functionality to the document objects, doing so by defining a subclass of
GenDocumentClass
. (For example, in the object model of document control, the program implements most functionality by defining new methods for the document class.) If this is the case, the programmer will have to make sure the GenDocumentGroup object creates document objects from the new class. One can do this by setting the
GDGI_documentClass
field to point to the class structure of the new document object class. By default, this field points to
GenDocumentClass
.
GDGI_genDocument
Ordinarily, the document group creates new document objects by instantiating objects from the class specified in GDGI
_documentClass
. However, you can instead provide a document object for the document group to duplicate. To do this, set the GDGI
_genDocument
field to the optr of the "template" document object. This object should be marked "not usable."
GDGI_output, MSG_GEN_DOCUMENT_GROUP_GET_OUTPUT, MSG_GEN_DOCUMENT_GROUP_SET_OUTPUT
Every time something happens which needs to be handled by the application, the document control notifies the application in two ways: The relevant document object sends a message to itself, and the GenDocumentGroup object sends a message to its designated output object. In the Procedural model of document control, the document-object messages are ignored, and the GenDocumentGroup messages are sent to an object (usually the process object) which has handlers for the messages. In the Object model, the
GDGI_output
attribute is left as a null pointer, and
GenDocumentClass
is subclassed to handle the messages.
optr MSG_GEN_DOCUMENT_GROUP_GET_OUTPUT();
Under the Procedural model of document control, the GenDocumentGroup sends messages to a designated output object. To get the optr of that output object, send this message to the GenDocumentGroup object.
Source: Unrestricted.
Destination:
Any GenDocumentGroup object.
Return: Returns the optr of the document group's output object.
Interception: You should not subclass this message.
void MSG_GEN_DOCUMENT_GROUP_SET_OUTPUT( optr output); /* The new recipient of the GenDocumentGroup's output messages */
Under the Procedural model of document control, the GenDocumentGroup
object sends messages to a designated output object. Use this message to change the recipient of the output.
Source: Unrestricted.
Destination:
Any GenDocumentGroup object.
Parameters: output The optr of the object which will receive the output.
Interception: You should not subclass this message.
GDGI_documentControl
The GenDocumentControl and the GenDocumentGroup communicate with each other via messages. To do this, each needs an optr to the other.
GDCI_documentControl
is an optr to the GenDocumentGroup object for this application. It is set in the source code and is not changed at run time.
GDGI_genDisplay, GDGI_genDisplayGroup, MSG_GEN_DOCUMENT_GROUP_GET_DISPLAY, MSG_GEN_DOCUMENT_GROUP_GET_DISPLAY_GROUP
In a multi-document application, each document will ordinarily have its own GenDisplay object and often many other UI objects as well. The document control can be instructed to dynamically create a number of objects for each new document and destroy these objects when the document is closed.
If an application is going to have the document control create and manage GenDisplay objects, it must declare a GenDisplayGroup object. The GenDisplayGroup should be declared normally; however, it should be given no children. In the source code, the GenDocumentGroup object's
GDGI_genDisplayGroup
data field should contain an optr to the GenDisplayGroup object.
The application should also declare a template resource. This resource should contain a single generic tree; the top object in this tree should be a GenDisplay object which is set "not usable." The GenDocumentGroup object's
GDGI_genDisplay
field should contain an optr to that GenDisplay.
When a new document object is created, the document control will automatically copy the resource containing the GenDisplay referenced by
GDGI_genDisplay
, make the new GenDisplay a child of the GenDisplayGroup referenced by
GDGI_genDisplayGroup
, and set the new GenDisplay as "usable." When the document object is destroyed (because the document is closed), the document control will automatically destroy that document's copy of the resource.
optr MSG_GEN_DOCUMENT_GROUP_GET_DISPLAY();
The
GDGI_genDisplay
field can be set to point to a GenDisplay object. If
GDGI_genDisplay
is not a null optr, then the document control will duplicate the resource containing the referenced GenDisplay whenever a new document object is created. The duplicate GenDisplay is made a child of the GenDisplayGroup object indicated by
GDGI_genDisplayGroup
. By using this message, you can get an optr to that "template" display object. Any changes made to that object will be copied whenever a new document object is created.
Source: Unrestricted.
Destination: Any GenDocumentGroup object.
Return: Returns the optr of the "template" GenDisplay.
Interception: You should not subclass this message.
optr MSG_GEN_DOCUMENT_GROUP_GET_DISPLAY_GROUP();
If a GenDisplayGroup object is used to manage GenDisplay objects, the GenDocumentGroup object will contain an optr to the GenDisplayGroup. By using this message, you can get an optr to the GenDisplayGroup object.
Source: Unrestricted.
Destination: Any GenDocumentGroup object.
Return: Returns the optr of the GenDisplayGroup object.
Interception: You should not subclass this message.
GDGI_genView, MSG_GEN_DOCUMENT_GROUP_GET_VIEW
The document control can be instructed to automatically connect the output of a GenView to the document object associated with the view. That way, the document object can handle all the messages relating to the view. This is naturally only done when the application is using the Object model; if it is using the Procedural model, a GenView will most likely send its messages to the Process object.
There are two ways to enable this functionality. One way is appropriate only to single-document applications; the other is appropriate to multi-document applications.
A single-document application using the Object model should declare the GenView normally as part of the generic tree. (It might well be placed on the GenDocumentControl object's
GDCI_enableDisableList
.) The source code should set the
GDGI_genView
field to be an optr to the GenView. When a document is opened, the document control will automatically set the GenView object to direct its output to the document object.
A multi-document application using the Object model should use the document control's ability to create and manage GenDisplay objects. The application will have a resource which is duplicated for each open document. This resource will contain a generic tree, at the head of which is a GenDisplay. To use a GenView, all the application has to do is put a GenView in the tree headed by that GenDisplay, and set
GDGI_genView
to point to that GenView. When a document object is created, the document control will automatically have the new GenView (in the duplicate resource) send its output to the new GenDocument.
optr MSG_GEN_DOCUMENT_GROUP_GET_VIEW();
The GenDocumentGroup object can be set to automatically link document objects to
GenView
objects. Use this message to find out what the designated
GenView
is. If there is no such
GenView
, this message will return a null optr.
Source: Unrestricted.
Destination:
Any GenDocumentGroup object.
Return: The optr of the
GenView
object (specified in GDGI
_genView).
Interception: You should not subclass this message.
GDGI_protocolMajor, GDGI_protocolMinor, MSG_GEN_DOCUMENT_GROUP_GET_PROTOCOL
Every GEOS file (and each application that creates such files) has a protocol associated with it. Protocols are used to make sure an application knows if a given document was created by a different version of the application. They are stored in the file's FEA_PROTOCOL extended attributes (see the File System chapter). The protocol is of the form "MAJOR.MINOR," where both "MAJOR" and "MINOR" are 16-bit unsigned integers. The application's protocol is specified by the GDGI_protocolMajor
and
GDGI_protocolMinor
attributes of the GenDocumentGroup object.
All documents created by an application will have the application's protocol number. If a document has the same major protocol number as the application but a lower minor protocol number, the document is compatible with the application. If the document has a lower major protocol number, the document is incompatible with the application; it can be opened only if a routine has been defined to upgrade the document. If the document has a higher protocol than the application (i.e. its major protocol number is higher, or it has the same major protocol number and a higher minor protocol number), the document control will not open the file; it will present an error message. By default, the GenDocumentGroup
object has a
GDGI_protocolMajor
of one and a
GDGI_protocolMinor
of zero.
When the user opens an earlier but compatible document, the GenDocumentGroup opens the file and attaches it to a document object. Then, the (newly-created) document object sends itself
MSG_GEN_DOCUMENT_UPDATE_EARLIER_COMPATIBLE_DOCUMENT;
the GenDocumentGroup then sends its output object the message
MSG_META_DOC_OUTPUT_UPDATE_EARLIER_COMPATIBLE_DOCUMENT
. If neither of these messages is handled, the document will be opened as if it were of the current protocol (since it is compatible). Often an application will not handle these messages.
If the user tries to open an earlier and incompatible document, the GenDocumentGroup opens the file and attaches it to a document object. Then, the document object sends a
MSG_GEN_DOCUMENT_UPDATE_EARLIER_INCOMPATIBLE_DOCUMENT
to itself, and the GenDocumentGroup sends a
MSG_META_DOC_OUTPUT_UPDATE_EARLIER_INCOMPATIBLE_DOCUMENT
to its output. If neither message is handled, the GenDocumentGroup closes the file unchanged and removes the document object, and the GenDocumentControl presents an error message (since the document is incompatible). If either message is handled, the document will be opened normally after the handler exits.
Note that the document control will not automatically change the protocol number for a file after it has been updated. If you wish this done, you should have the handler for the message call one of the routines to change the FEA_PROTOCOL extended attribute.
dword MSG_GEN_DOCUMENT_GROUP_GET_PROTOCOL();
Use this message to get the protocol number associated with the GenDocumentGroup. A protocol number is composed of two parts, a major component and a minor component. This message returns a double-word; the high word is the major component, and the low word is the minor component.
Source: Unrestricted.
Destination: GenDocumentGroupClass.
Return: Returns a dword-sized value; the high word contains the major protocol number, and the low word contains the minor protocol number.
Interception: You should not subclass this message.


{% extends "layouts/base.html" %} {% block content %}
This page documents Bevy's error codes for the current release. In case you are looking for the latest error codes from Bevy's main branch, you can find them in the repository.


--- layout: post title: scala in play 2.0 categories: - 碎念 tags: [] published: false comments: true permalink: /blog/scala-in-play-2.0 ---


{% load static %}
Dento - Dentist & Medical HTML Template
28 Jackson Street, Chicago, 7788569 USA
<EMAIL_ADDRESS>Home
Pages
- Home
- About Us
- Service
- Pricing
- Blog
- Blog Details
- Contact
- Dropdown
- Dropdown Item
- Dropdown Item
- Even Dropdown
- Even Dropdown
- Even Dropdown
- Even Dropdown
- Dropdown Item
- Dropdown Item
About
Service
Pricing
Blog
- Blog
- Blog Details
Contact
Booking Now
{% block content %} {% endblock %}


Some situations are much easier to dramatize than others.
In an episode of "ER" for example, it's easy to show the consequences of giving a patient the wrong medication. Likewise, in a comedy like "Runaway Bride" or "Moonstruck," a director can let us see the chaos that erupts as the heroine chooses true love over responsibility.
It's considerably trickier to convey to an audience the consequences of what happens when crucial information is withheld from the public due to legal maneuvering or corporate cover-ups. That's precisely the problem director Michael Mann struggles with in "The Insider," an intensely detail-oriented drama about the manipulation of the news that will strike a resonant chord with many people in journalism or TV production.
Based on a Vanity Fair profile of Jeffrey Wigand, a former research and development director for cigarette manufacturer Brown & Williamson who exposed the hypocracy within the tobacco industry, this is a film almost certain to receive plenty of coverage in the media.
The attention would not be undeserved. It's a well-written, masterfully acted piece of work with many thought-provoking points to make about what happens when we let outside interests determine what is and is not news. From the average moviegoer, however, the response is likely to be a loud "ho hum."
In tackling a challenging subject, Mann has presented his story in a jarringly uncinematic fashion. In fact, often while watching the movie, you may find yourself thinking this material might have been easier to present in a play since so much of it revolves around tense dialogues and silent soul-searching. The immediacy of live performance might have helped immeasurably in putting across "The Insider"'s agenda to the masses.
Instead, Mann tries to create that intimacy through near-continuous use of extreme close-ups. We're constantly being thrust into the heavily lined eyes of Wigand (whose inner torments are marvelously brought to the surface by Russell Crowe) and "60 Minutes" producer Lowell Bergman (Al Pacino), who's determined to hack through the jungle of gag orders and confidentiality agreements that stands between Wigand and "60 Minutes" reporter Mike Wallace (Christopher Plummer). The in-your-face technique is initially gripping -- particularly in an early scene involving an asthma attack -- but before long we start to feel queasily voyeuristic and that discomfort distracts from the drama.
At the same time, for the patient viewer, "The Insider" is packed with fascinating bits and pieces about how the news world operates and the various pressures that come to bear on the people who determine what gets on the air.
The screenplay convincingly tracks Wigand's journey from semi-hostile witness to whistle-blower and goes to great pains to show how much time and energy Bergman put into winning Wigand's trust. Mann also goes behind the scenes at "60 Minutes" to find out about the off-camera politics and the shifting alliances of the reporters and staff. Wallace is portrayed as a mercurial type who knows his best days are behind him and is consumed by the idea of his legacy. He doesn't want to retire in disgrace -- "I don't plan on spending the rest of my days wandering in the wilderness of National Public Radio," he notes -- so he's cautious about throwing his weight behind Bergman when the going gets rocky.
"The Insider" also offers a remarkably restrained and effective performance by Pacino, who Mann obviously kept on a short leash. There's very little of the showboating that's marked (many would say "marred") most of his post-"Scent of a Woman" films.
In the final analysis, though, it's hard to say if Mann has truly succeeded in getting his message to the masses. There's plenty of quality here to be sure, and no one's likely to find fault with any of the acting.
But the ethical issues Mann raises remind me of the reaction of a seemingly sophisticated woman I overheard at a screening of "Broadcast News" 12 years ago. In that movie, TV news producer Holly Hunter is attracted to anchorman William Hurt, but steers clear of him after learning he faked the tears he seemed to cry during an interview with a rape victim. Hunter's character was so devoted to the idea of truth in journalism she couldn't comprehend that a reporter fail to see what was wrong in staging the news or spicing up a story with crocodile tears.
The viewer, on the other hand, complained she didn't understand why Hunter and Hurt didn't end up together in the end. "So he made a mistake -- big deal," she scoffed, and her friends, all of them well-dressed and well-spoken, agreed with her. Those women probably won't get the point of "The Insider" either, and, sadly, they're a large part of the audience Mann is trying to reach. James Sanford
The review above was posted to the
rec.arts.movies.reviews newsgroup (de.rec.film.kritiken for German reviews).
The Internet Movie Database accepts no responsibility for the contents of the
review and has no editorial control. Unless stated otherwise, the copyright
belongs to the author.
Please direct comments/criticisms of the review to relevant newsgroups.
Broken URLs inthe reviews are the responsibility of the author.
The formatting of the review is likely to differ from the original due
to ASCII to HTML conversion.
Related links: index of all rec.arts.movies.reviews reviews


A-Frame is a web framework for building virtual reality experiences. This workshopper aims at introducing this framework to web developers.
Exercises are preloaded in a directory with html files for you to edit. You can click on OPEN DIRECTORY to view exercises directory in your OS's default file explorer.
For each lesson there is an expected and an actual markup. The former is provided by us, and your goal is to simply modify the actual markup so that it matches the expected one. You can see the preview of your markup by clicking on PREVIEW.
Once you're confident that the two markups are equivalent, you can click the VERIFY button (and hopefully, pass!) the lesson.


{% extends "_base.html" %} {% block content %}
Metabolism of Cities reviewed existing projects - the results of which can be found in our community hub.
View projects


The Spry Sliding Panels widget is a disclosure widget that works by providing a window-like opening through which you can view content. The content itself is kept in a content panel that moves in different directions behind the opening.
The content panel is a block of content separated into any number of discrete blocks. When a user clicks an element to show a specific block of content, the entire content panel moves behind the opening until the selected content appears. The content panel can use any type of layout, and the widget slides the content panel up, down, or diagonally as needed:
You can lay out the content panel in any way. Panels can be in a straight line horizontally or vertically, in a grid as shown in the illustration, or in any other type of layout.
Like the code for other Spry widgets, the code for the Sliding Panels widget can use any number of tag types, as long as the tags follow the correct nesting structure. (The div tags are used in most of the examples.)
The structure is as follows:
Main widget element Content panel container Content panel Content panel
The main widget element creates the opening that makes the content visible. The content panel container holds all of the individual panels, and can be any height or width. The content panels hold the actual pieces of content. The content panel size should match the main widget (or opening) size. You can have an unlimited number of content panels in the widget.
Each content panel must have a unique ID. As with all widgets, the Sliding Panels widget is activated by a script tag below the widget code, and the script tag contains this ID.
The following is an example of code for a Sliding Panels widget:
 . . .    <link href="SprySlidingPanels.css" rel="stylesheet" type="text/css" />     First | Previous | Next | Last

Panel 1

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

Panel 2

Panel 2

Panel 3

Lorem ipsum dolor sit amet, consectetur adipisicing elit.

Panel 4

Panel 4

The script tag in the head of the document defines all of the JavaScript functions related to the Sliding Panels widget. The script tag after the widget code creates a JavaScript object that makes the widget interactive. The new JavaScript operator initializes the Sliding Panels widget object, and transforms the div content with the ID of SlidingPanels1 from static HTML code into an interactive page element. The Spry.Widget.SlidingPanels method is a constructor in the Spry framework that creates sliding panel JavaScript objects, and the information necessary to initialize the object is contained in the SprySlidingPanels.js JavaScript library that is linked to in the head of the document.
Each of the div tags in the Sliding Panels widget contains a CSS class. These classes control the style of the widget, and exist in the accompanying SprySlidingPanels.css file. You can change the appearance of any given part of the widget by editing the CSS code that corresponds to the class names assigned to it in the HTML code.
In addition to the classes shown in the HTML code, the Sliding Panels widget includes certain default behaviors that are attached to the widget. These behaviors are a built‑in part of the Spry framework, and are in the SprySlidingPanels.js JavaScript library file.
In the example, a tags are used to switch between panels. The showFirstPanel, showPreviousPanel, showNextPanel, and showLastPanel behaviors let you navigate through the panels you want to view.


Can't customize the redemption price? price with which you can purchase depends of the maker offer, at the moment it possible to "customize" this price from mobile only in case if there is no orders for pair at all what will be changed in future release


| Constants |
| DATABASE |
specifies a database function.
|
| DATETIME |
specifies a function that calculates with dates and/or times.
|
| FINANCIAL |
specifies a financial function.
|
| INFORMATION |
specifies a function that returns information about the cell,
the cell contents or the current formula.
|
| LOGICAL |
specifies a boolean function.
|
| MATHEMATICAL |
specifies a common mathematical function
|
| MATRIX |
specifies a matrix function.
|
| STATISTICAL |
specifies a statistical function
|
| SPREADSHEET |
specifies a function that returns information using the spreadsheet
contents or specific cell positions.
|
| TEXT |
specifies a text function.
|
| ADDIN |
specifies a common add-in function.
|
| Constants' Details |
DATABASE
const long DATABASE = 1;
- Description
- specifies a database function.
|
|
DATETIME
const long DATETIME = 2;
- Description
- specifies a function that calculates with dates and/or times.
|
|
FINANCIAL
const long FINANCIAL = 3;
- Description
- specifies a financial function.
|
|
INFORMATION
const long INFORMATION = 4;
- Description
- specifies a function that returns information about the cell,
the cell contents or the current formula.
|
|
LOGICAL
const long LOGICAL = 5;
- Description
- specifies a boolean function.
|
|
MATHEMATICAL
const long MATHEMATICAL = 6;
- Description
- specifies a common mathematical function
|
|
MATRIX
const long MATRIX = 7;
- Description
- specifies a matrix function.
|
|
STATISTICAL
const long STATISTICAL = 8;
- Description
- specifies a statistical function
|
|
SPREADSHEET
const long SPREADSHEET = 9;
- Description
- specifies a function that returns information using the spreadsheet
contents or specific cell positions.
|
|
TEXT
const long TEXT = 10;
- Description
- specifies a text function.
|
|
ADDIN
const long ADDIN = 11;
- Description
- specifies a common add-in function.
|
|
Copyright © 2013, The Apache Software Foundation, Licensed under the Apache License, Version 2.0. Apache, the Apache feather logo, Apache OpenOffice and OpenOffice.org are trademarks of The Apache Software Foundation. Other names may be trademarks of their respective owners.


{{page_title}}
{{#page_desc}}
{{p}}
{{/page_desc}}
{{#pic_rows}}
{{#pics}}
{{num}}
{{#title}}
{{title}}
{{/title}}
{{/pics}}
{{/pic_rows}}
about
blog
photos
home


Spatial Data Generator
Distribution:
Uniform
Diagonal
Gaussian
Sierpinski
Bit
Parcel
Cardinality:
Dimension:
Format:
wkt
csv
geoJSON
Percentage:
Buffer:
Probability:
Digits:
Split range:
Dither:
Seed value:
Permalink:
Affine transformation parameters
a1:
a2:
a3:
a4:
a5:
a6:
Download
Refresh Layer
Add Layer
Data should be rendered here.
Developed at UC Riverside Big Data Lab
By Puloma Katiyar and Dr. Ahmed Eldawy