Panda3D
Public Member Functions | Static Public Member Functions | List of all members
GeomDrawCallbackData Class Reference

This specialization on CallbackData is passed when the callback is initiated from deep within the draw traversal, for a particular Geom. More...

Inheritance diagram for GeomDrawCallbackData:
CallbackData TypedObject

Public Member Functions

bool getForce ()
 Returns true if any required data should be forced into memory if necessary to render the object, or false if the object should be omitted if some of the data is not available (at least until the data becomes available later). More...
 
GraphicsStateGuardianBase getGsg ()
 Returns a pointer to the current GSG. More...
 
bool getLostState ()
 Returns the lost_state flag. More...
 
CullableObject getObject ()
 Returns a pointer to the particular object that is being drawn. More...
 
 setLostState (bool lost_state)
 Sets the lost_state flag. More...
 
- Public Member Functions inherited from CallbackData
 output (Ostream out)
 
 upcall ()
 You should make this call during the callback if you want to continue the normal function that would have been done in the absence of a callback. More...
 
- Public Member Functions inherited from TypedObject
TypeHandle getType ()
 
int getTypeIndex ()
 Returns the internal index number associated with this object's TypeHandle, a unique number for each different type. More...
 
bool isExactType (TypeHandle handle)
 Returns true if the current object is the indicated type exactly. More...
 
bool isOfType (TypeHandle handle)
 Returns true if the current object is or derives from the indicated type. More...
 

Static Public Member Functions

static TypeHandle getClassType ()
 
- Static Public Member Functions inherited from CallbackData
static TypeHandle getClassType ()
 
- Static Public Member Functions inherited from TypedObject
static TypeHandle getClassType ()
 

Additional Inherited Members

- Public Attributes inherited from TypedObject
TypeHandle type
 Returns the TypeHandle representing this object's type. More...
 

Detailed Description

This specialization on CallbackData is passed when the callback is initiated from deep within the draw traversal, for a particular Geom.

Member Function Documentation

◆ getClassType()

static TypeHandle getClassType ( )
static

◆ getForce()

bool getForce ( )

Returns true if any required data should be forced into memory if necessary to render the object, or false if the object should be omitted if some of the data is not available (at least until the data becomes available later).

◆ getGsg()

Returns a pointer to the current GSG.

◆ getLostState()

bool getLostState ( )

Returns the lost_state flag.

See set_lost_state().

◆ getObject()

CullableObject getObject ( )

Returns a pointer to the particular object that is being drawn.

◆ setLostState()

setLostState ( bool  lost_state)

Sets the lost_state flag.

If this is true, the callback does not have to be quite so careful to clean up after itself; Panda will assume that the graphics state is in an unknown state after the callback has finished, and will issue all the necessary calls to restore it. If this is false, Panda will assume the callback will leave the graphics state exactly as it came in, and won't bother to try to restore it. The default is true.