public abstract class MrObjectController
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected MrObject |
mAttachedObject |
protected MrObjectData |
mData |
protected MrEventsListener |
mEventsListener |
protected boolean |
mInitialized |
protected MrObjectRender |
mRender |
Modifier | Constructor and Description |
---|---|
protected |
MrObjectController(MrObjectData data) |
protected |
MrObjectController(MrObjectData data,
MrObjectRender render) |
protected MrObject mAttachedObject
protected MrObjectData mData
protected MrObjectRender mRender
protected MrEventsListener mEventsListener
protected boolean mInitialized
protected MrObjectController(MrObjectData data, MrObjectRender render)
protected MrObjectController(MrObjectData data)
protected void setRender(MrObjectRender render)
public MrObjectData getData()
protected void setData(MrObjectData data)
public MrEventsListener getEventsListener()
public void setEventsListener(MrEventsListener eventsListener)
public boolean isEventRegistered(java.lang.String evName)
public java.util.Set<java.lang.String> getRegisteredEvents()
public void registerEvent(java.lang.String eventName)
public void unregisterEvent(java.lang.String eventName)
public MrObject getAttachedObject()
public void setAttachedObject(MrObject object)
public final void updateUniform(MrUniformKey uniform, java.util.Map<java.lang.String,MrUniformKey> uniforms, MrObjectsDataTree tree)
public void initializeRender(MrRenderingContext context)
public void updateEvents()
public void initializeSizeDependant(int widthScreen, int heightScreen)
public void render()
public boolean isInitialized()
public java.lang.String getName()
public MrSceneObjectType getSceneObjectType()
public MrTransform getTransform()
public void setTransform(MrTransform transform)
public void initializeUniforms()
public java.util.Map<java.lang.String,MrUniformGenerator> getUniformGenerators()
public MrShaderProgram getShaderProgram()
public java.util.Map<java.lang.String,MrUniformKey> getUniformKeys()
public java.lang.String toString()
toString
in class java.lang.Object