Panda3D
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Mopath Class Reference
Inheritance diagram for Mopath:
DirectObject

Public Member Functions

def __init__ (self, name=None, fluid=1, objectToLoad=None, upVectorNodePath=None, reverseUpVector=False)
 
def calcTime (self, tIn)
 
def draw (self, subdiv=1000)
 
def getFinalState (self)
 
def getMaxT (self)
 
def goTo (self, node, time)
 
def loadFile (self, filename, fReset=1)
 
def loadNodePath (self, nodePath, fReset=1)
 
def play (self, node, time=0.0, loop=0)
 
def reset (self)
 
def stop (self)
 
- Public Member Functions inherited from DirectObject
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)
 

Public Attributes

 faceForwardDelta
 
 faceForwardNode
 
 fFaceForward
 
 fluid
 
 hprNurbsCurve
 
 hprPoint
 
 loop
 
 maxT
 
 name
 
 nameIndex
 
 node
 
 playbackTime
 
 posPoint
 
 reverseUpVector
 
 tangentVec
 
 timeScale
 
 tNurbsCurve
 
 tPoint
 
 upVectorNodePath
 
 xyzNurbsCurve
 

Static Public Attributes

int nameIndex = 1
 
- Static Public Attributes inherited from DirectObject
def accept_once = acceptOnce
 
def add_task = addTask
 
def detect_leaks = detectLeaks
 
def do_method_later = doMethodLater
 
def get_all_accepting = getAllAccepting
 
def ignore_all = ignoreAll
 
def is_accepting = isAccepting
 
def is_ignoring = isIgnoring
 
def remove_all_tasks = removeAllTasks
 
def remove_task = removeTask
 

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  name = None,
  fluid = 1,
  objectToLoad = None,
  upVectorNodePath = None,
  reverseUpVector = False 
)

Member Function Documentation

◆ calcTime()

def calcTime (   self,
  tIn 
)

◆ draw()

def draw (   self,
  subdiv = 1000 
)
Draws a quick and cheesy visualization of the Mopath using
LineSegs.  Returns the NodePath representing the drawing. 

◆ getFinalState()

def getFinalState (   self)

◆ getMaxT()

def getMaxT (   self)

◆ goTo()

def goTo (   self,
  node,
  time 
)

◆ loadFile()

def loadFile (   self,
  filename,
  fReset = 1 
)

◆ loadNodePath()

def loadNodePath (   self,
  nodePath,
  fReset = 1 
)

◆ play()

def play (   self,
  node,
  time = 0.0,
  loop = 0 
)

◆ reset()

def reset (   self)

◆ stop()

def stop (   self)

Member Data Documentation

◆ faceForwardDelta

faceForwardDelta

◆ faceForwardNode

faceForwardNode

◆ fFaceForward

fFaceForward

◆ fluid

fluid

◆ hprNurbsCurve

hprNurbsCurve

◆ hprPoint

hprPoint

◆ loop

loop

◆ maxT

maxT

◆ name

name

◆ nameIndex [1/2]

int nameIndex = 1
static

◆ nameIndex [2/2]

nameIndex

◆ node

node

◆ playbackTime

playbackTime

◆ posPoint

posPoint

◆ reverseUpVector

reverseUpVector

◆ tangentVec

tangentVec

◆ timeScale

timeScale

◆ tNurbsCurve

tNurbsCurve

◆ tPoint

tPoint

◆ upVectorNodePath

upVectorNodePath

◆ xyzNurbsCurve

xyzNurbsCurve