Panda3D
Classes | Functions | Variables
direct.leveleditor.LevelEditorBase Namespace Reference

Classes

class  LevelEditorBase
 

Functions

def cleanUpManipulating (self, selectedNPs)
 reply = wx.MessageBox("Do you want to delete selected?", "Delete?", wx.YES_NO | wx.ICON_QUESTION) if reply == wx.YES: base.direct.removeAllSelected() else: More...
 
def convertFromMaya (self, modelname, callBack)
 
def convertMaya (self, modelname, callBack, obj=None, isAnim=False)
 
def deselectAll (self, np=None)
 
def deselectAllCB (self, dnp=None)
 
def exportToMaya (self, mayaFileName)
 
def exportToMayaCB (self, mayaFileName, exportRootNP)
 
def load (self, fileName)
 
def loadSettings (self)
 
def propMeetsReq (self, typeName, parentNP)
 
def reset (self)
 
def resetOrthoCam (self, view)
 
def save (self)
 
def saveAs (self, fileName)
 
def saveSettings (self)
 
def select (self, nodePath, fMultiSelect=0, fSelectTag=1, fResetAncestry=1, fLEPane=0, fUndo=1)
 
def selectedNodePathHook (self, nodePath, fMultiSelect=0, fSelectTag=1, fLEPane=0)
 
def updateStatusReadout (self, status, color=None)
 
def updateStatusReadoutTimeouts (self, task=None)
 

Variables

 currentFile
 
 fNeedToSave
 
 mode
 

Detailed Description

Base class for Level Editor

You should write your own LevelEditor class inheriting this.
Refer LevelEditor.py for example.

Function Documentation

◆ cleanUpManipulating()

def direct.leveleditor.LevelEditorBase.cleanUpManipulating (   self,
  selectedNPs 
)

reply = wx.MessageBox("Do you want to delete selected?", "Delete?", wx.YES_NO | wx.ICON_QUESTION) if reply == wx.YES: base.direct.removeAllSelected() else:

need to reset COA

dnp = base.direct.selected.last

Update camera controls coa to this point

Coa2Camera = Coa2Dnp * Dnp2Camera

mCoa2Camera = dnp.mCoa2Dnp * dnp.getMat(base.direct.camera) row = mCoa2Camera.getRow(3) coa = Vec3(row[0], row[1], row[2]) base.direct.cameraControl.updateCoa(coa)

◆ convertFromMaya()

def direct.leveleditor.LevelEditorBase.convertFromMaya (   self,
  modelname,
  callBack 
)

◆ convertMaya()

def direct.leveleditor.LevelEditorBase.convertMaya (   self,
  modelname,
  callBack,
  obj = None,
  isAnim = False 
)

◆ deselectAll()

def direct.leveleditor.LevelEditorBase.deselectAll (   self,
  np = None 
)

◆ deselectAllCB()

def direct.leveleditor.LevelEditorBase.deselectAllCB (   self,
  dnp = None 
)

◆ exportToMaya()

def direct.leveleditor.LevelEditorBase.exportToMaya (   self,
  mayaFileName 
)

◆ exportToMayaCB()

def direct.leveleditor.LevelEditorBase.exportToMayaCB (   self,
  mayaFileName,
  exportRootNP 
)

◆ load()

def direct.leveleditor.LevelEditorBase.load (   self,
  fileName 
)

◆ loadSettings()

def direct.leveleditor.LevelEditorBase.loadSettings (   self)

◆ propMeetsReq()

def direct.leveleditor.LevelEditorBase.propMeetsReq (   self,
  typeName,
  parentNP 
)

◆ reset()

def direct.leveleditor.LevelEditorBase.reset (   self)

◆ resetOrthoCam()

def direct.leveleditor.LevelEditorBase.resetOrthoCam (   self,
  view 
)

◆ save()

def direct.leveleditor.LevelEditorBase.save (   self)

◆ saveAs()

def direct.leveleditor.LevelEditorBase.saveAs (   self,
  fileName 
)

◆ saveSettings()

def direct.leveleditor.LevelEditorBase.saveSettings (   self)

◆ select()

def direct.leveleditor.LevelEditorBase.select (   self,
  nodePath,
  fMultiSelect = 0,
  fSelectTag = 1,
  fResetAncestry = 1,
  fLEPane = 0,
  fUndo = 1 
)

◆ selectedNodePathHook()

def direct.leveleditor.LevelEditorBase.selectedNodePathHook (   self,
  nodePath,
  fMultiSelect = 0,
  fSelectTag = 1,
  fLEPane = 0 
)

◆ updateStatusReadout()

def direct.leveleditor.LevelEditorBase.updateStatusReadout (   self,
  status,
  color = None 
)

◆ updateStatusReadoutTimeouts()

def direct.leveleditor.LevelEditorBase.updateStatusReadoutTimeouts (   self,
  task = None 
)

Variable Documentation

◆ currentFile

currentFile

◆ fNeedToSave

fNeedToSave

◆ mode

mode