Panda3D
|
Public Member Functions | |
def | __init__ (self, image=None, pos=None, hpr=None, scale=None, color=None, parent=None, sort=0) |
def | __setitem__ (self, key, value) |
def | cget (self, option) |
def | configure (self, option=None, kw) |
def | destroy (self) |
def | getImage (self) |
def | setImage (self, image, parent=NodePath(), transform=None, sort=0) |
![]() | |
def | __init__ (self) |
def | accept (self, event, method, extraArgs=[]) |
def | acceptOnce (self, event, method, extraArgs=[]) |
def | addTask (self, args, kwargs) |
def | detectLeaks (self) |
def | doMethodLater (self, args, kwargs) |
def | getAllAccepting (self) |
def | ignore (self, event) |
def | ignoreAll (self) |
def | isAccepting (self, event) |
def | isIgnoring (self, event) |
def | removeAllTasks (self) |
def | removeTask (self, taskOrName) |
def __init__ | ( | self, | |
image = None , |
|||
pos = None , |
|||
hpr = None , |
|||
scale = None , |
|||
color = None , |
|||
parent = None , |
|||
sort = 0 |
|||
) |
Make a image node from string or a node path, put it into the 2d sg and set it up with all the indicated parameters. The parameters are as follows: image: the actual geometry to display or a file name. This may be omitted and specified later via setImage() if you don't have it available. pos: the x, y, z position of the geometry on the screen. This maybe a 3-tuple of floats or a vector. y should be zero hpr: the h, p, r of the geometry on the screen. This maybe a 3-tuple of floats or a vector. scale: the size of the geometry. This may either be a single float, a 3-tuple of floats, or a vector, specifying a different x, y, z scale. y should be 1 color: the (r, g, b, a) color of the geometry. This is normally a 4-tuple of floats or ints. parent: the NodePath to parent the geometry to initially.
def __setitem__ | ( | self, | |
key, | |||
value | |||
) |
def cget | ( | self, | |
option | |||
) |
def configure | ( | self, | |
option = None , |
|||
kw | |||
) |
def destroy | ( | self | ) |
def getImage | ( | self | ) |
def setImage | ( | self, | |
image, | |||
parent = NodePath() , |
|||
transform = None , |
|||
sort = 0 |
|||
) |