panda3d.direct.DCDeclaration

from panda3d.direct import DCDeclaration
class DCDeclaration

This is a common interface for a declaration in a DC file. Currently, this is either a class or a typedef declaration (import declarations are still collected together at the top, and don’t inherit from this object). Its only purpose is so that classes and typedefs can be stored in one list together so they can be ordered correctly on output.

Inheritance diagram

Inheritance diagram of DCDeclaration

asClass() → DCClass
Return type

DCClass

asClass() → DCClass
Return type

DCClass

asSwitch() → DCSwitch
Return type

DCSwitch

asSwitch() → DCSwitch
Return type

DCSwitch

output(out: ostream) → None

Write a string representation of this instance to <out>.

write(out: ostream, indent_level: int) → None

Write a string representation of this instance to <out>.