Issue #3039 fix ifpImage class cast exception

Former-commit-id: 2b6db445c0 [formerly 2b6db445c0 [formerly a2fd849c603aebacce09662557bf1f008d379982]]
Former-commit-id: 31fb61e824
Former-commit-id: a1dd7f24fa
This commit is contained in:
Nate Jensen 2014-04-16 16:17:05 -05:00
parent 700080e879
commit 7e7bbfd784

View file

@ -21,6 +21,7 @@
from com.raytheon.uf.viz.core import GraphicsFactory from com.raytheon.uf.viz.core import GraphicsFactory
from com.raytheon.uf.viz.core.drawables import PaintProperties from com.raytheon.uf.viz.core.drawables import PaintProperties
from com.raytheon.viz.core.gl import GLTargetProxy from com.raytheon.viz.core.gl import GLTargetProxy
from com.raytheon.uf.viz.core.rsc import ResourceProperties
# #
# Base class for Viz painting from python # Base class for Viz painting from python
@ -32,6 +33,7 @@ from com.raytheon.viz.core.gl import GLTargetProxy
# ------------ ---------- ----------- -------------------------- # ------------ ---------- ----------- --------------------------
# 04/01/09 njensen Initial Creation. # 04/01/09 njensen Initial Creation.
# 08/20/2012 #1077 randerso Fixed backgroundColor setting # 08/20/2012 #1077 randerso Fixed backgroundColor setting
# Apr 16, 2014 3039 njensen Ensure correct ResourceList.add() is used
# #
# #
# #
@ -83,7 +85,7 @@ class VizPainter():
desc = self.getDescriptor() desc = self.getDescriptor()
vizResource.setDescriptor(desc) vizResource.setDescriptor(desc)
vizResource.init(self.target) vizResource.init(self.target)
desc.getResourceList().add(vizResource) desc.getResourceList().add(vizResource, ResourceProperties())
def paint(self, time, canvas=None): def paint(self, time, canvas=None):
if type(time) is str: if type(time) is str:
@ -130,4 +132,4 @@ class VizPainter():
if index > -1: if index > -1:
self.getDescriptor().setFrame(index) self.getDescriptor().setFrame(index)