LensNode
from panda3d.core import LensNode
- class LensNode
Bases:
PandaNode
A node that contains a Lens. The most important example of this kind of node is a Camera, but other kinds of nodes also contain a lens (for instance, a Spotlight).
Inheritance diagram
- __init__(*args, **kwargs)
- activateLens()
C++ Interface: activate_lens(const LensNode self, int index)
- /**
An alternate way to call set_lens_active(index, true).
*/
- activate_lens()
C++ Interface: activate_lens(const LensNode self, int index)
- /**
An alternate way to call set_lens_active(index, true).
*/
- copyLens()
C++ Interface: copy_lens(const LensNode self, const Lens lens) copy_lens(const LensNode self, int index, const Lens lens)
- copy_lens()
C++ Interface: copy_lens(const LensNode self, const Lens lens) copy_lens(const LensNode self, int index, const Lens lens)
- deactivateLens()
C++ Interface: deactivate_lens(const LensNode self, int index)
- /**
An alternate way to call set_lens_active(index, false).
*/
- deactivate_lens()
C++ Interface: deactivate_lens(const LensNode self, int index)
- /**
An alternate way to call set_lens_active(index, false).
*/
- getClassType()
C++ Interface: get_class_type()
- getLens()
C++ Interface: get_lens(LensNode self, int index)
- /**
Returns a pointer to the particular Lens associated with this LensNode, or
NULL if there is not yet a Lens associated. If an index number is
specified, returns the nth lens.
*/
- getLensActive()
C++ Interface: get_lens_active(LensNode self, int index)
- /**
Returns the active flag for the nth lens.
*/
- get_class_type()
C++ Interface: get_class_type()
- get_lens()
C++ Interface: get_lens(LensNode self, int index)
- /**
Returns a pointer to the particular Lens associated with this LensNode, or
NULL if there is not yet a Lens associated. If an index number is
specified, returns the nth lens.
*/
- get_lens_active()
C++ Interface: get_lens_active(LensNode self, int index)
- /**
Returns the active flag for the nth lens.
*/
- hideFrustum()
C++ Interface: hide_frustum(const LensNode self)
- /**
Disables the drawing of the lens’s frustum to aid in visualization.
*/
- hide_frustum()
C++ Interface: hide_frustum(const LensNode self)
- /**
Disables the drawing of the lens’s frustum to aid in visualization.
*/
- isInView()
C++ Interface: is_in_view(const LensNode self, const LPoint3f pos) is_in_view(const LensNode self, int index, const LPoint3f pos)
- /**
Returns true if the given point is within the bounds of the lens of the
LensNode (i.e. if the camera can see the point).
*/
- /**
Returns true if the given point is within the bounds of the lens of the
LensNode (i.e. if the camera can see the point). The point is assumed to
be relative to the LensNode itself.
*/
- is_in_view()
C++ Interface: is_in_view(const LensNode self, const LPoint3f pos) is_in_view(const LensNode self, int index, const LPoint3f pos)
- /**
Returns true if the given point is within the bounds of the lens of the
LensNode (i.e. if the camera can see the point).
*/
- /**
Returns true if the given point is within the bounds of the lens of the
LensNode (i.e. if the camera can see the point). The point is assumed to
be relative to the LensNode itself.
*/
- setLens()
C++ Interface: set_lens(const LensNode self, Lens lens) set_lens(const LensNode self, int index, Lens lens)
- /**
Sets up the LensNode using this particular Lens pointer. If the lens is
subsequently modified, the LensNode properties immediately reflect the
change.
*/
- /**
Sets the indicated lens. Although a LensNode normally holds only one lens,
it may optionally include multiple lenses, each with a different index
number. The different lenses may be referenced by index number on the
DisplayRegion. Adding a new lens automatically makes it active.
*/
- setLensActive()
C++ Interface: set_lens_active(const LensNode self, int index, bool active)
- /**
Sets the active flag for the nth lens. When a lens is inactive, it is not
used for rendering, and any DisplayRegions associated with it are
implicitly inactive as well. Returns true if the flag is changed, false if
it already had this value.
*/
- set_lens()
C++ Interface: set_lens(const LensNode self, Lens lens) set_lens(const LensNode self, int index, Lens lens)
- /**
Sets up the LensNode using this particular Lens pointer. If the lens is
subsequently modified, the LensNode properties immediately reflect the
change.
*/
- /**
Sets the indicated lens. Although a LensNode normally holds only one lens,
it may optionally include multiple lenses, each with a different index
number. The different lenses may be referenced by index number on the
DisplayRegion. Adding a new lens automatically makes it active.
*/
- set_lens_active()
C++ Interface: set_lens_active(const LensNode self, int index, bool active)
- /**
Sets the active flag for the nth lens. When a lens is inactive, it is not
used for rendering, and any DisplayRegions associated with it are
implicitly inactive as well. Returns true if the flag is changed, false if
it already had this value.
*/