Panda3D
Public Member Functions | Static Public Member Functions

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 MemoryBase

List of all members.

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).
GraphicsStateGuardianBase getGsg ()
 Returns a pointer to the current GSG.
bool getLostState ()
 Returns the lost_state flag.
CullableObject getObject ()
 Returns a pointer to the particular object that is being drawn.
TypeHandle getType ()
int getTypeIndex ()
 Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.
bool isExactType (TypeHandle handle)
 Returns true if the current object is the indicated type exactly.
bool isOfType (TypeHandle handle)
 Returns true if the current object is or derives from the indicated type.
 output (ostream out)
 setLostState (bool lost_state)
 Sets the lost_state flag.
 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.

Static Public Member Functions

static TypeHandle getClassType ()

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

static TypeHandle getClassType ( ) [static]

Reimplemented from CallbackData.

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).

Returns a pointer to the current GSG.

bool getLostState ( )

Returns the lost_state flag.

See set_lost_state().

CullableObject getObject ( )

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

TypeHandle getType ( ) [inherited]

Reimplemented in AnimChannelBase.

int getTypeIndex ( ) [inherited]

Returns the internal index number associated with this object's TypeHandle, a unique number for each different type.

This is equivalent to get_type().get_index().

bool isExactType ( TypeHandle  handle) [inherited]

Returns true if the current object is the indicated type exactly.

bool isOfType ( TypeHandle  handle) [inherited]

Returns true if the current object is or derives from the indicated type.

output ( ostream  out) [inherited]
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.

upcall ( ) [inherited]

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.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties