# DoInterestManager

from direct.distributed.DoInterestManager import DoInterestManager

Top level Interest Manager

## Inheritance:

DoInterestManager:

## Methods of DoInterestManager:

__init__
__verbose
_considerRemoveInterest
_getAddInterestEvent
_getAnonymousEvent
_getInterestState
_getNextContextId
_getNextHandle
_getRemoveInterestEvent
_sendAddInterest
_sendRemoveAIInterest
_sendRemoveInterest
addAutoInterest
addInterest
alterInterest
cleanupWaitAllInterestsComplete
closeAutoInterests
getAllInterestsCompleteEvent
handleInterestDoneMessage
isValidInterestHandle
noNewInterests
openAutoInterests
queueAllInterestsCompleteEvent
removeAutoInterest
removeInterest
resetInterestStateForConnectionLoss
setAllInterestsCompleteCallback
setNoNewInterests
updateInterestDescription

__init__ def __init__(self) Undocumented function.

__verbose def __verbose(self) Undocumented function.

_considerRemoveInterest def _considerRemoveInterest(self, handle) Consider whether we should cull the interest set.

_getAddInterestEvent def _getAddInterestEvent(self) Undocumented function.

_getAnonymousEvent def _getAnonymousEvent(self, desc) Undocumented function.

_getInterestState def _getInterestState(self, handle) Undocumented function.

_getNextContextId def _getNextContextId(self) Undocumented function.

_getNextHandle def _getNextHandle(self) Undocumented function.

_getRemoveInterestEvent def _getRemoveInterestEvent(self) Undocumented function.

_sendAddInterest def _sendAddInterest(self, handle, contextId, parentId, zoneIdList, description, action=None) Part of the new otp-server code. handle is a client-side created number that refers to a set of interests. The same handle number doesn't necessarily have any relationship to the same handle on another client.

_sendRemoveAIInterest def _sendRemoveAIInterest(self, handle) handle is a bare int, NOT an InterestHandle. Use this to close an AI opened interest.

_sendRemoveInterest def _sendRemoveInterest(self, handle, contextId) handle is a client-side created number that refers to a set of interests. The same handle number doesn't necessarily have any relationship to the same handle on another client.

addAutoInterest def addAutoInterest(self, parentId, zoneIdList, description) Look into a (set of) zone(s).

addInterest def addInterest(self, parentId, zoneIdList, description, event=None) Look into a (set of) zone(s).

alterInterest def alterInterest(self, handle, parentId, zoneIdList, description=None, event=None) Removes old interests and adds new interests. Note that when an interest is changed, only the most recent change's event will be triggered. Previous events are abandoned. If this is a problem, consider opening multiple interests.

cleanupWaitAllInterestsComplete def cleanupWaitAllInterestsComplete(self) Undocumented function.

closeAutoInterests def closeAutoInterests(self, obj) Undocumented function.

getAllInterestsCompleteEvent def getAllInterestsCompleteEvent(self) Undocumented function.

handleInterestDoneMessage def handleInterestDoneMessage(self, di) This handles the interest done messages and may dispatch an event

isValidInterestHandle def isValidInterestHandle(self, handle) Undocumented function.

noNewInterests def noNewInterests(self) Undocumented function.

openAutoInterests def openAutoInterests(self, obj) Undocumented function.

queueAllInterestsCompleteEvent def queueAllInterestsCompleteEvent(self, frames=5) Undocumented function.

removeAutoInterest def removeAutoInterest(self, handle) Stop looking in a (set of) zone(s)

removeInterest def removeInterest(self, handle, event=None) Stop looking in a (set of) zone(s)

resetInterestStateForConnectionLoss def resetInterestStateForConnectionLoss(self) Undocumented function.

setAllInterestsCompleteCallback def setAllInterestsCompleteCallback(self, callback) Undocumented function.

setNoNewInterests def setNoNewInterests(self, flag) Undocumented function.

updateInterestDescription def updateInterestDescription(self, handle, desc) Undocumented function.