The Main Module
Project Name: MakeHuman
Product Home Page: http://www.makehuman.org/
Code Home Page: https://bitbucket.org/MakeHuman/makehuman/
Authors: Glynn Clements, Jonas Hauquier
Copyright(c): MakeHuman Team 2001-2015
Licensing: AGPL3
This file is part of MakeHuman (www.makehuman.org).
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Coding Standards: See http://www.makehuman.org/node/165
Abstract
Main application GUI component.
-
class
mhmain.
MHApplication
[source]
-
OnInit
()[source]
-
about
()[source]
Show about dialog
-
addExporter
(exporter)[source]
-
addLoadHandler
(keyword, handler)[source]
Register a handler for handling the loading of the specified
keyword from MHM file.
-
addSaveHandler
(handler, priority=None)[source]
Register a handler to trigger when a save action happens, when called
the handler gets the chance to write property lines to the MHM file.
If priority is specified, should be an integer number > 0.
0 is highest priority.
-
addSetting
(setting_name, default_value, value=None)[source]
Declare a new setting for this application. Only has an impact the
first time it’s called for a unique setting_name. It’s impossible to
re-declare defaults for settings.
-
args
-
axisView
(axis)[source]
-
backView
()[source]
-
bottomView
()[source]
-
cameraSpeed
()[source]
-
clearUndoRedo
()[source]
-
createActions
()[source]
Creates the actions toolbar with icon buttons.
-
createShortcuts
()[source]
-
did
(action)[source]
-
do
(action)[source]
-
doSave
()[source]
-
dumpMissingStrings
()[source]
-
frontView
()[source]
-
getLanguageString
(string, appendData=None, appendFormat=None)[source]
-
getLanguages
()[source]
The languages available on this MH installation, by listing all .json
files in the languages folder in user and system data path.
-
getLoadHandler
(keyword)[source]
Retrieve the plugin or handler that handles the loading of the
specified keyword from MHM file.
-
getLoadedPlugins
()[source]
Get the names of loaded plugins.
-
getLookAndFeel
()[source]
-
getLookAndFeelStyles
()[source]
-
getMouseAction
(method)[source]
-
getPlugin
(name)[source]
Get the (python) module of the plugin with specified name.
-
getScene
()[source]
The scene used for rendering the viewport.
-
getSetting
(setting_name)[source]
Retrieve the value of a setting.
-
getSettingDefault
(setting_name)[source]
Retrieve the default value declared for a setting.
-
getShortcut
(action)[source]
-
getThemeResource
(folder, id)[source]
-
goToExport
()[source]
-
goToHelp
()[source]
-
goToLoad
()[source]
-
goToModelling
()[source]
-
goToRendering
()[source]
-
goToSave
()[source]
-
grabScreen
()[source]
-
leftView
()[source]
-
loadBackgroundGradient
()[source]
-
loadFinish
()[source]
-
loadGrid
()[source]
-
loadGui
()[source]
-
loadHuman
()[source]
-
loadHumanMHM
(filename)[source]
-
loadMacroTargets
()[source]
Preload all target files belonging to group macrodetails and its child
groups.
-
loadMainGui
()[source]
-
loadPlugin
(path)[source]
-
loadPlugins
()[source]
-
loadScene
()[source]
-
loadSettings
()[source]
-
mouseFocus
(ev)[source]
-
mouseRotate
(event)[source]
-
mouseTranslate
(event)[source]
-
mouseZoom
(event)[source]
-
onMouseDown
(event)[source]
-
onMouseDragged
(event)[source]
-
onMouseWheel
(event)[source]
-
onQuit
(event)[source]
-
onResizedCallback
(event)[source]
-
onStart
(event)[source]
-
onStop
(event)[source]
-
panCamera
(axis, amount)[source]
-
panDown
()[source]
-
panLeft
()[source]
-
panRight
()[source]
-
panUp
()[source]
-
progress
(value, text=None, *args)[source]
-
prompt
(title, text, button1Label, button2Label=None, button1Action=None, button2Action=None, helpId=None, fmtArgs=None)[source]
-
promptAndExit
()[source]
-
redo
()[source]
-
reloadIcons
()[source]
-
resetHuman
()[source]
-
resetSettings
()[source]
Restore all settings to their defaults
-
resetView
()[source]
-
rightView
()[source]
-
rotateAction
(axis)[source]
-
rotateCamera
(axis, amount)[source]
-
rotateDown
()[source]
-
rotateLeft
()[source]
-
rotateRight
()[source]
-
rotateUp
()[source]
-
run
()[source]
-
saveSettings
(promptOnFail=False)[source]
-
saveTarget
(path=None)[source]
Export the current modifications to the human as one single target,
relative to the basemesh.
-
scene
The scene used for rendering the viewport.
-
setCaption
(caption)[source]
Set the main window caption.
-
setFaceCamera
()[source]
-
setGlobalCamera
()[source]
-
setLanguage
(lang)[source]
-
setLeftArmFrontCamera
()[source]
-
setLeftArmTopCamera
()[source]
-
setLeftFootFrontCamera
()[source]
-
setLeftFootLeftCamera
()[source]
-
setLeftHandFrontCamera
()[source]
-
setLeftHandTopCamera
()[source]
-
setLeftLegFrontCamera
()[source]
-
setLeftLegLeftCamera
()[source]
-
setLookAndFeel
(platform)[source]
-
setMouseAction
(modifier, key, method)[source]
-
setRightArmFrontCamera
()[source]
-
setRightArmTopCamera
()[source]
-
setRightFootFrontCamera
()[source]
-
setRightFootRightCamera
()[source]
-
setRightHandFrontCamera
()[source]
-
setRightHandTopCamera
()[source]
-
setRightLegFrontCamera
()[source]
-
setRightLegRightCamera
()[source]
-
setScene
(scene)[source]
Set the scene used for rendering the viewport,
and connect its events with appropriate handler methods.
-
setSetting
(setting_name, value)[source]
Change the value of a setting. If value == None, the default value
for that setting is restored.
-
setShortcut
(modifier, key, action)[source]
-
setTargetCamera
(vIdx, zoomFactor=1.0, animate=True)[source]
-
setTheme
(theme)[source]
-
settings
READ-ONLY dict of the settings of this application. Changing this
dict has NO impact.
-
startupSequence
()[source]
-
status
(text, *args)[source]
-
statusPersist
(text, *args)[source]
-
symmetry
()[source]
-
symmetryLeft
()[source]
-
symmetryRight
()[source]
-
syncUndoRedo
()[source]
-
toggleGrid
()[source]
-
togglePose
()[source]
-
toggleProfiling
()[source]
-
toggleSolid
()[source]
-
toggleSubdivision
()[source]
-
topView
()[source]
-
undo
()[source]
-
unloadPlugins
()[source]
-
updateFilenameCaption
()[source]
Calculate and set the window title according to the
name of the current open file and the version of MH.
-
zoomCamera
(amount)[source]
-
zoomIn
()[source]
-
zoomOut
()[source]
-
class
mhmain.
PluginCheckBox
(module)[source]
-
onClicked
(event)[source]
-
class
mhmain.
PluginsTaskView
(category)[source]
-
class
mhmain.
SymmetryAction
(human, direction)[source]
-
do
()[source]
-
undo
()[source]
-
mhmain.
inFile
(*args, **kwds)[source]
-
mhmain.
outFile
(*args, **kwds)[source]