net.jinx.action
Class VisibleActor

java.lang.Object
  extended by net.jinx.action.Actor
      extended by net.jinx.action.VisibleActor
All Implemented Interfaces:
net.jinx.video.multipass.MultipassVisible, net.jinx.video.Visible

public class VisibleActor
extends Actor
implements net.jinx.video.multipass.MultipassVisible

Actor wrapper class for one of Vertex Modeler's Visible implementations, so they can be used with the action package.

API Stability: Beta.


Constructor Summary
VisibleActor(java.lang.String name, net.jinx.video.Visible drawable)
          Constructs a VisibleActor to wrap drawable.
 
Method Summary
 void deinit(net.jinx.video.Context opt)
          Redirects to the wrapped Visible.
 void draw(net.jinx.video.Context opt)
          Redirects to the wrapped Visible.
 void drawPass(net.jinx.video.Context opt, net.jinx.video.multipass.Pass pass)
           
 net.jinx.video.Visible getVisible()
          Provides the underlying Visible object.
 void init(net.jinx.video.Context opt)
          Redirects to the wrapped Visible.
protected  void processEvent(ActorEvent event)
          Does nothing.
 
Methods inherited from class net.jinx.action.Actor
checkAllowAdd, getName, getOwner, hashCode, ownerChanged, sendEvent, sendEvent, sendEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VisibleActor

public VisibleActor(java.lang.String name,
                    net.jinx.video.Visible drawable)
Constructs a VisibleActor to wrap drawable.

Parameters:
name - the name of this VisibleActor.
drawable - the Visible to wrap.
Method Detail

getVisible

public net.jinx.video.Visible getVisible()
Provides the underlying Visible object. This is used internally, so overriding this method will affect most of the others.

Returns:
the wrapped Visible.

init

public void init(net.jinx.video.Context opt)
Redirects to the wrapped Visible.

Specified by:
init in interface net.jinx.video.Visible
Parameters:
opt - the Context object contaning rendering options.

draw

public void draw(net.jinx.video.Context opt)
Redirects to the wrapped Visible.

Specified by:
draw in interface net.jinx.video.Visible
Parameters:
opt - the Context object contaning rendering options.

drawPass

public void drawPass(net.jinx.video.Context opt,
                     net.jinx.video.multipass.Pass pass)
Specified by:
drawPass in interface net.jinx.video.multipass.MultipassVisible

deinit

public void deinit(net.jinx.video.Context opt)
Redirects to the wrapped Visible.

Specified by:
deinit in interface net.jinx.video.Visible
Parameters:
opt - the Context object contaning rendering options.

processEvent

protected void processEvent(ActorEvent event)
Does nothing.

Specified by:
processEvent in class Actor
Parameters:
event - the ActorEvent to process.