Eidolon
Public Member Functions | Public Attributes | Private Member Functions | List of all members
ImageSceneObjectRepr Class Reference
Inheritance diagram for ImageSceneObjectRepr:
Inheritance graph
Collaboration diagram for ImageSceneObjectRepr:
Collaboration graph

Public Member Functions

def __init__ (self, parent, reprtype, reprcount, imgmaterial, imgmatrices=[], texformat=TF_RGBA32, useSpecTex=True)
 
def isTransparent (self)
 
def getTimestepList (self)
 
def getTimestep (self)
 
def getCurrentTimestepIndices (self)
 
def getCurrentTimestepMaterial (self, chosen=None)
 
def getDefinedTransform (self, chosen=None)
 
def getNumStackSlices (self)
 
def useDepthCheck (self, val)
 
def useDepthWrite (self, val)
 
def useTexFiltering (self, val)
 
def usesDepthCheck (self)
 
def usesDepthWrite (self)
 
def usesTexFiltering (self)
 
def useLighting (self, useLight)
 
def getPosition (self, isDerived=False)
 
def getRotation (self, isDerived=False)
 
def getScale (self, isDerived=False)
 
def setPosition (self, pos)
 
def setRotation (self, yaw, pitch, roll)
 
def setScale (self, scale)
 
- Public Member Functions inherited from SceneObjectRepr
def __init__ (self, parent, reprtype, reprcount, matname='Default')
 
def __getattr__ (self, name)
 
def isInScene (self)
 
def getAABB (self, isTransformed=False, isDerived=True, recalculate=False)
 
def calculateAABB (self)
 
def getLabel (self)
 
def getName (self)
 
def setName (self, name)
 
def getDataset (self)
 
def getMaterialName (self)
 
def setTimestep (self, ts)
 
def getTimestep (self)
 
def getTimestepList (self)
 
def getTimestepRange (self)
 
def getTimestepInterval (self)
 
def getTimestepRepr (self, ts=0)
 
def setParent (self, prepr)
 
def getParent (self)
 
def enumChildren (self, allChildren=False)
 
def addChild (self, child)
 
def removeChild (self, child)
 
def enumSubreprs (self)
 
def enumFigures (self)
 
def enumInternalMaterials (self)
 
def addModifier (self, mod)
 
def removeModifier (self, mod)
 
def getParamDefs (self)
 
def getParam (self, name)
 
def setParam (self, name, value)
 
def setGPUParam (self, name, val, progtype, kwargs)
 
def getRayIntersect (self, ray)
 
def getPropTuples (self)
 
def removeFromScene (self, scene)
 
def applySpectrum (self, spec)
 
def createHandles (self, kwargs)
 
def setMaterialName (self, matname)
 
def setVisible (self, isVisible)
 
def isVisible (self)
 
def setTransparent (self, isTrans)
 
def isTransparent (self)
 
def addToScene (self, scene)
 
def prepareBuffers (self)
 
def update (self, scene)
 
def setPosition (self, pos)
 
def getPosition (self, isDerived=False)
 
def setRotation (self, yaw, pitch, roll)
 
def getRotation (self, isDerived=False)
 
def setScale (self, scale)
 
def getScale (self, isDerived=False)
 
def getTransform (self, isDerived=False)
 
def setTransform (self, trans)
 
def __repr__ (self)
 

Public Attributes

 position
 
 scale
 
 rotation
 
 aabb
 
 imgmat
 
 texformat
 
 useSpecTex
 
 mulAlpha
 
 images
 
 imgmatrices
 
 timestep
 
 timestepIndex
 
 timesteplist
 
- Public Attributes inherited from SceneObjectRepr
 parent
 
 plugin
 
 name
 
 matname
 
 reprcount
 
 reprtype
 
 aabb
 
 rparent
 
 children
 

Private Member Functions

def _setFigureTransforms (self)
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  parent,
  reprtype,
  reprcount,
  imgmaterial,
  imgmatrices = [],
  texformat = TF_RGBA32,
  useSpecTex = True 
)
Construct a representation of the ImageSceneObject `parent'. This has representation type `reprtype', is
numbered `reprcount' in the list of representations for `parent', uses the material `imgmaterial' to generate
texture data, and will generate texture data from the matrices `imgmatrices' which has one entry for each
SharedImage element in parent.images. The textures are created with format `texformat' which is typically
TF_RGBA32 or TF_ALPHALUM8. If `useSpecTex' is True then intenal materials will use spectrum textures to
implement a color transfer function.

Member Function Documentation

◆ _setFigureTransforms()

def _setFigureTransforms (   self)
private
Here is the caller graph for this function:

◆ getCurrentTimestepIndices()

def getCurrentTimestepIndices (   self)
Get the image indices of the current timestep.
Here is the caller graph for this function:

◆ getCurrentTimestepMaterial()

def getCurrentTimestepMaterial (   self,
  chosen = None 
)
Get the material for the chose image component of the current timestep. The component is either an image plane
in the stack of the current timestep, in which case the material is the one applied to that image's quad in the
representation, or a vlume in the current timestep, in which case the material is the one applied to the volume
object. If `chosen' is None, then an internal criteria can be use to select the component, ie. choose the first.

◆ getDefinedTransform()

def getDefinedTransform (   self,
  chosen = None 
)
Get the transform representing the chosen image component of the current timestep. The component is either an
image plane in the stack of the current timestep, in which case the transform defines this plane in space, or
a volume of the current timestep, in which case the transform defines this volume in space. If `chosen'
is None, then an internal criteria can be use to select the component, ie. choose the first.

◆ getNumStackSlices()

def getNumStackSlices (   self)
Here is the caller graph for this function:

◆ getPosition()

def getPosition (   self,
  isDerived = False 
)
Here is the caller graph for this function:

◆ getRotation()

def getRotation (   self,
  isDerived = False 
)
Here is the caller graph for this function:

◆ getScale()

def getScale (   self,
  isDerived = False 
)
Here is the caller graph for this function:

◆ getTimestep()

def getTimestep (   self)

◆ getTimestepList()

def getTimestepList (   self)
Here is the caller graph for this function:

◆ isTransparent()

def isTransparent (   self)
Returns True if any image is rendered with any transparency.

◆ setPosition()

def setPosition (   self,
  pos 
)
Here is the caller graph for this function:

◆ setRotation()

def setRotation (   self,
  yaw,
  pitch,
  roll 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setScale()

def setScale (   self,
  scale 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ useDepthCheck()

def useDepthCheck (   self,
  val 
)
Here is the call graph for this function:

◆ useDepthWrite()

def useDepthWrite (   self,
  val 
)
Here is the call graph for this function:

◆ useLighting()

def useLighting (   self,
  useLight 
)
Here is the call graph for this function:

◆ usesDepthCheck()

def usesDepthCheck (   self)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ usesDepthWrite()

def usesDepthWrite (   self)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ usesTexFiltering()

def usesTexFiltering (   self)
Here is the call graph for this function:

◆ useTexFiltering()

def useTexFiltering (   self,
  val 
)
Here is the call graph for this function:

Member Data Documentation

◆ aabb

aabb

◆ images

images

◆ imgmat

imgmat

◆ imgmatrices

imgmatrices

◆ mulAlpha

mulAlpha

◆ position

position

◆ rotation

rotation

◆ scale

scale

◆ texformat

texformat

◆ timestep

timestep

◆ timestepIndex

timestepIndex

◆ timesteplist

timesteplist

◆ useSpecTex

useSpecTex

The documentation for this class was generated from the following file: