Panda3D

Loading...
Searching...
No Matches
Public Member Functions | Static Public Attributes | List of all members
StagedObject Class Reference

## Public Member Functions
| __init__ (self, initState=UNKNOWN)
| goOffStage (self, *args, **kw)
| goOnStage (self, *args, **kw)
| handleOffStage (self)
| handleOnStage (self)
| isOffStage (self)
| isOnStage (self)

## Static Public Attributes
int | OFF = 0
int | ON = 1
int | UNKNOWN = -1

## Detailed Description

    Use this class as a mixin to provide an interface for onStage/offStage objects.

    The idea here is that a DistributedObject could be present and active due to
    simple visibility, but we want to hide or otherwise disable it for some reason.

## Constructor & Destructor Documentation

## ◆ __init__()

__init__ | ( |  | self,
|  |  | initState = UNKNOWN )

    Only sets the initial state of this object.  This will not
    call any "handle" functions.

## Member Function Documentation

## ◆ goOffStage()

goOffStage | ( |  | self,
|  | * | args,
|  | ** | kw )

    If a stage switch is needed, the correct "handle" function
    will be called.  Otherwise, nothing happens.

## ◆ goOnStage()

goOnStage | ( |  | self,
|  | * | args,
|  | ** | kw )

    If a stage switch is needed, the correct "handle" function
    will be called.  Otherwise, nothing happens.

## ◆ handleOffStage()

handleOffStage | ( |  | self | ) |

    Override this function to provide your on/off stage funcitionality.

    Don't forget to call down to this one, though.

## ◆ handleOnStage()

handleOnStage | ( |  | self | ) |

    Override this function to provide your on/off stage funcitionality.

    Don't forget to call down to this one, though.

## ◆ isOffStage()

isOffStage | ( |  | self | ) |

## ◆ isOnStage()

isOnStage | ( |  | self | ) |

## Member Data Documentation

## ◆ OFF

int OFF = 0
| static

## ◆ ON

int ON = 1
| static

## ◆ UNKNOWN

int UNKNOWN = -1
| static