de.javagl.swogl
Interface SwoglComponent


public interface SwoglComponent

Interface for a Swogl component. A Swogl component contains a Swing component, as well as a Texture and a Geometry. The Texture contains an image of the Swing component, and will be updated automatically by Swogl. The Geometry contains all information required for rendering the SwoglComponent as a 3D object, textured with the Texture.

Note to possible implementors: This interface may still be extended by further methods in future versions. Specifically, by methods to maintain a set of Listeners that want to be informed about transform changes.


Method Summary
 javax.swing.JComponent getComponent()
          Returns the Swing component of this SwoglComponent
 Geometry getGeometry()
          Returns the Geometry of this SwoglComponent
 Material getMaterial()
          Returns the Material of this SwoglComponent
 Texture getTexture()
          Returns the Texture of this SwoglComponent
 javax.vecmath.Matrix4f getTransform()
          Returns a copy of the current transform matrix of this SwoglComponent.
 void setTransform(javax.vecmath.Matrix4f matrix)
          Set the transform of this SwoglComponent to be a copy of the given transform.
 

Method Detail

getComponent

javax.swing.JComponent getComponent()
Returns the Swing component of this SwoglComponent

Returns:
The Swing component of this SwoglComponent

getTexture

Texture getTexture()
Returns the Texture of this SwoglComponent

Returns:
The Texture of this SwoglComponent

getMaterial

Material getMaterial()
Returns the Material of this SwoglComponent

Returns:
The Material of this SwoglComponent

getGeometry

Geometry getGeometry()
Returns the Geometry of this SwoglComponent

Returns:
The Geometry of this SwoglComponent

getTransform

javax.vecmath.Matrix4f getTransform()
Returns a copy of the current transform matrix of this SwoglComponent.

Returns:
A copy of the current transform matrix

setTransform

void setTransform(javax.vecmath.Matrix4f matrix)
Set the transform of this SwoglComponent to be a copy of the given transform.

Parameters:
matrix - The new transform