Panda3D
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Placer Class Reference
Inheritance diagram for Placer:
AppShell DirectObject

Public Member Functions

 __init__ (self, parent=None, **kw)
 
 addNodePath (self, nodePath)
 
 addNodePathToDict (self, nodePath, names, menu, dict)
 
 addRefNodePath (self, nodePath)
 
 appInit (self)
 USER METHODS ### To be overridden.
 
 createInterface (self)
 
 onDestroy (self, event)
 
 printNodePathInfo (self)
 
 pushRedo (self)
 
 pushRedoHook (self)
 
 pushUndo (self, fResetRedo=1)
 
 pushUndoHook (self)
 
 redoHook (self, nodePathList=[])
 
 redoListEmptyHook (self)
 
 resetAll (self)
 
 resetHpr (self)
 
 resetPos (self)
 
 resetScale (self)
 
 selectNodePathNamed (self, name)
 
 selectRefNodePathNamed (self, name)
 
 setActiveNodePath (self, nodePath)
 
 setMovementMode (self, movementMode)
 WIDGET OPERATIONS ###.
 
 setReferenceNodePath (self, nodePath)
 
 setScalingMode (self)
 
 undoHook (self, nodePathList=[])
 
 undoListEmptyHook (self)
 
 unitScale (self)
 
 updateAuxiliaryCoordinateSystems (self)
 
 updateHprWidgets (self, hpr)
 
 updatePlacer (self)
 
 updatePosWidgets (self, pos)
 
 updateResetValues (self, nodePath)
 
 updateScaleWidgets (self, scale)
 
 xform (self, value, axis)
 NODE PATH TRANSFORMATION OPERATIONS ###.
 
 xformOrbit (self, value, axis)
 
 xformRelative (self, value, axis)
 
 xformScale (self, value, axis)
 
 xformStart (self, data)
 
 xformStop (self, data)
 
 zeroAll (self)
 
 zeroHpr (self)
 
 zeroPos (self)
 
- Public Member Functions inherited from AppShell
 addVariable (self, category, text, variable)
 
 addWidget (self, category, text, widget)
 WIDGET UTILITY FUNCTIONS ##.
 
 alignbuttons (self)
 
 balloon (self)
 
 bind (self, child, balloonHelpMsg, statusHelpMsg=None)
 
 buttonAdd (self, buttonName, helpMessage=None, statusMessage=None, **kw)
 
 buttonBox (self)
 
 createMenuBar (self)
 
 createWidget (self, parent, category, text, widgetClass, help, command, side, fill, expand, kw)
 
 getVariable (self, category, text)
 
 getWidget (self, category, text)
 
 interior (self)
 
 messageBar (self)
 
 newCreateButton (self, parent, category, text, help='', command=None, side=LEFT, fill=X, expand=0, **kw)
 
 newCreateCheckbutton (self, parent, category, text, help='', command=None, initialState=0, anchor=W, side=LEFT, fill=X, expand=0, **kw)
 
 newCreateColorEntry (self, parent, category, text, help='', command=None, side=LEFT, fill=X, expand=0, **kw)
 
 newCreateComboBox (self, parent, category, text, help='', command=None, items=[], state=DISABLED, history=0, labelpos=W, label_anchor=W, label_width=16, entry_width=16, side=LEFT, fill=X, expand=0, **kw)
 
 newCreateDial (self, parent, category, text, help='', command=None, side=LEFT, fill=X, expand=0, **kw)
 
 newCreateEntryScale (self, parent, category, text, help='', command=None, side=LEFT, fill=X, expand=0, **kw)
 
 newCreateFloater (self, parent, category, text, help='', command=None, side=LEFT, fill=X, expand=0, **kw)
 
 newCreateLabeledEntry (self, parent, category, text, help='', command=None, value='', width=12, relief=SUNKEN, side=LEFT, fill=X, expand=0)
 
 newCreateOptionMenu (self, parent, category, text, help='', command=None, items=[], labelpos=W, label_anchor=W, label_width=16, menu_tearoff=1, side=LEFT, fill=X, expand=0, **kw)
 
 newCreateRadiobutton (self, parent, category, text, variable, value, command=None, help='', anchor=W, side=LEFT, fill=X, expand=0, **kw)
 
 newCreateSider (self, parent, category, text, help='', command=None, side=LEFT, fill=X, expand=0, **kw)
 
 newCreateVector2Entry (self, parent, category, text, help='', command=None, side=LEFT, fill=X, expand=0, **kw)
 
 newCreateVector3Entry (self, parent, category, text, help='', command=None, side=LEFT, fill=X, expand=0, **kw)
 
 quit (self)
 
 showAbout (self)
 
 toggleBalloon (self)
 
 transformRGB (self, rgb, max=1.0)
 
 updateProgress (self, newValue=0, newMax=0)
 
- Public Member Functions inherited from DirectObject
 accept (self, event, method, extraArgs=[])
 
 acceptOnce (self, event, method, extraArgs=[])
 
 addTask (self, *args, **kwargs)
 
 detectLeaks (self)
 
 doMethodLater (self, *args, **kwargs)
 
 getAllAccepting (self)
 
 ignore (self, event)
 
 ignoreAll (self)
 
 isAccepting (self, event)
 
 isIgnoring (self, event)
 
 removeAllTasks (self)
 
 removeTask (self, taskOrName)
 

Public Attributes

 appname
 
 deltaHpr
 
 hprH
 
 hprP
 
 hprR
 
 initHpr
 
 initPos
 
 initScale
 
 movementMode
 
 nodePathDict
 
 nodePathMenu
 
 nodePathMenuBG
 
 nodePathMenuEntry
 
 nodePathNames
 
 orbitFromCS
 
 orbitToCS
 
 posOffset
 
 posX
 
 posY
 
 posZ
 
 pushRedoHook
 
 pushUndoHook
 
 redoButton
 
 redoHook
 
 redoListEmptyHook
 
 refCS
 
 refNodePathDict
 
 refNodePathMenu
 
 refNodePathMenuEntry
 
 refNodePathNames
 
 scaleMenubutton
 
 scaleX
 
 scaleY
 
 scaleZ
 
 scalingMode
 
 tempCS
 
 undoButton
 
 undoEvents
 
 undoListEmptyHook
 
- Public Attributes inherited from AppShell
 about
 
 appname
 
 appversion
 
 balloonState
 
 contactemail
 
 contactname
 
 contactphone
 
 copyright
 
 dataArea
 
 frameHeight
 
 frameWidth
 
 id
 
 menuBar
 
 menuFrame
 
 parent
 
 toggleBalloonVar
 
 usecommandarea
 
 usestatusarea
 
 variableDict
 
 widgetDict
 

Static Public Attributes

str appname = 'Placer Panel'
 
int frameHeight = 215
 
int frameWidth = 625
 
int usecommandarea = 0
 
int usestatusarea = 0
 
- Static Public Attributes inherited from AppShell
str appname = 'Generic Application Frame'
 
str appversion = '1.0'
 
str balloonState = 'none'
 
str contactemail = 'Mark.Mine@disney.com'
 
str contactname = 'Mark R. Mine'
 
str contactphone = '(818) 544-2921'
 
tuple copyright
 
int frameHeight = 320
 
int frameWidth = 450
 
int padx = 5
 
int pady = 5
 
int panelCount = 0
 
int usecommandarea = 0
 
int usestatusarea = 0
 
- Static Public Attributes inherited from DirectObject
 accept_once = acceptOnce
 
 add_task = addTask
 
 detect_leaks = detectLeaks
 
 do_method_later = doMethodLater
 
 get_all_accepting = getAllAccepting
 
 ignore_all = ignoreAll
 
 is_accepting = isAccepting
 
 is_ignoring = isIgnoring
 
 remove_all_tasks = removeAllTasks
 
 remove_task = removeTask
 

Additional Inherited Members

- Protected Member Functions inherited from DirectObject
 _addTask (self, task)
 
 _clearTask (self, task)
 
- Protected Attributes inherited from AppShell
 _hull
 
- Protected Attributes inherited from DirectObject
 _taskList
 

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
parent = None,
** kw )

Reimplemented from AppShell.

Member Function Documentation

◆ addNodePath()

addNodePath ( self,
nodePath )

◆ addNodePathToDict()

addNodePathToDict ( self,
nodePath,
names,
menu,
dict )

◆ addRefNodePath()

addRefNodePath ( self,
nodePath )

◆ appInit()

appInit ( self)

USER METHODS ### To be overridden.

Reimplemented from AppShell.

◆ createInterface()

createInterface ( self)

Reimplemented from AppShell.

◆ onDestroy()

onDestroy ( self,
event )

Reimplemented from AppShell.

◆ printNodePathInfo()

printNodePathInfo ( self)

◆ pushRedo()

pushRedo ( self)

◆ pushRedoHook()

pushRedoHook ( self)

◆ pushUndo()

pushUndo ( self,
fResetRedo = 1 )

◆ pushUndoHook()

pushUndoHook ( self)

◆ redoHook()

redoHook ( self,
nodePathList = [] )

◆ redoListEmptyHook()

redoListEmptyHook ( self)

◆ resetAll()

resetAll ( self)

◆ resetHpr()

resetHpr ( self)

◆ resetPos()

resetPos ( self)

◆ resetScale()

resetScale ( self)

◆ selectNodePathNamed()

selectNodePathNamed ( self,
name )

◆ selectRefNodePathNamed()

selectRefNodePathNamed ( self,
name )

◆ setActiveNodePath()

setActiveNodePath ( self,
nodePath )

◆ setMovementMode()

setMovementMode ( self,
movementMode )

WIDGET OPERATIONS ###.

◆ setReferenceNodePath()

setReferenceNodePath ( self,
nodePath )

◆ setScalingMode()

setScalingMode ( self)

◆ undoHook()

undoHook ( self,
nodePathList = [] )

◆ undoListEmptyHook()

undoListEmptyHook ( self)

◆ unitScale()

unitScale ( self)

◆ updateAuxiliaryCoordinateSystems()

updateAuxiliaryCoordinateSystems ( self)

◆ updateHprWidgets()

updateHprWidgets ( self,
hpr )

◆ updatePlacer()

updatePlacer ( self)

◆ updatePosWidgets()

updatePosWidgets ( self,
pos )

◆ updateResetValues()

updateResetValues ( self,
nodePath )

◆ updateScaleWidgets()

updateScaleWidgets ( self,
scale )

◆ xform()

xform ( self,
value,
axis )

NODE PATH TRANSFORMATION OPERATIONS ###.

◆ xformOrbit()

xformOrbit ( self,
value,
axis )

◆ xformRelative()

xformRelative ( self,
value,
axis )

◆ xformScale()

xformScale ( self,
value,
axis )

◆ xformStart()

xformStart ( self,
data )

◆ xformStop()

xformStop ( self,
data )

◆ zeroAll()

zeroAll ( self)

◆ zeroHpr()

zeroHpr ( self)

◆ zeroPos()

zeroPos ( self)

Member Data Documentation

◆ appname [1/2]

str appname = 'Placer Panel'
static

◆ appname [2/2]

appname

◆ deltaHpr

deltaHpr

◆ frameHeight

int frameHeight = 215
static

◆ frameWidth

int frameWidth = 625
static

◆ hprH

hprH

◆ hprP

hprP

◆ hprR

hprR

◆ initHpr

initHpr

◆ initPos

initPos

◆ initScale

initScale

◆ movementMode

movementMode

◆ nodePathDict

nodePathDict

◆ nodePathMenu

nodePathMenu

◆ nodePathMenuBG

nodePathMenuBG

◆ nodePathMenuEntry

nodePathMenuEntry

◆ nodePathNames

nodePathNames

◆ orbitFromCS

orbitFromCS

◆ orbitToCS

orbitToCS

◆ posOffset

posOffset

◆ posX

posX

◆ posY

posY

◆ posZ

posZ

◆ pushRedoHook

pushRedoHook

◆ pushUndoHook

pushUndoHook

◆ redoButton

redoButton

◆ redoHook

redoHook

◆ redoListEmptyHook

redoListEmptyHook

◆ refCS

refCS

◆ refNodePathDict

refNodePathDict

◆ refNodePathMenu

refNodePathMenu

◆ refNodePathMenuEntry

refNodePathMenuEntry

◆ refNodePathNames

refNodePathNames

◆ scaleMenubutton

scaleMenubutton

◆ scaleX

scaleX

◆ scaleY

scaleY

◆ scaleZ

scaleZ

◆ scalingMode

scalingMode

◆ tempCS

tempCS

◆ undoButton

undoButton

◆ undoEvents

undoEvents

◆ undoListEmptyHook

undoListEmptyHook

◆ usecommandarea

int usecommandarea = 0
static

◆ usestatusarea

int usestatusarea = 0
static