Panda3D
Functions
character.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "character.h"
#include "characterJoint.h"
#include "config_char.h"
#include "nodePath.h"
#include "geomNode.h"
#include "datagram.h"
#include "datagramIterator.h"
#include "bamReader.h"
#include "bamWriter.h"
#include "pStatTimer.h"
#include "animControl.h"
#include "clockObject.h"
#include "camera.h"
#include "cullTraverser.h"
#include "cullTraverserData.h"

Go to the source code of this file.

Functions

 CPT (TransformState) Character
 This is used to support NodePath::calc_tight_bounds(). More...
 
 CPT (TransformTable) Character
 Creates a new TransformTable, similar to the indicated one, with the joint and slider pointers redirected into this object. More...
 
 CPT (TransformBlendTable) Character
 Creates a new TransformBlendTable, similar to the indicated one, with the joint and slider pointers redirected into this object. More...
 
 CPT (SliderTable) Character
 Creates a new SliderTable, similar to the indicated one, with the joint and slider pointers redirected into this object. More...
 
 PT (Geom) Character
 Makes a new copy of the Geom with the dynamic vertex arrays replaced to reference this Character instead of the other one. More...
 
 PT (JointVertexTransform) Character
 Creates a new JointVertexTransform that is similar to the indicated one, but points into this character. More...
 
 PT (CharacterVertexSlider) Character
 Creates a new CharacterVertexSlider that is similar to the indicated one, but points into this character. More...
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
drose
Date
2002-03-06

Definition in file character.cxx.

Function Documentation

◆ CPT() [1/4]

CPT ( TransformState  )

This is used to support NodePath::calc_tight_bounds().

Returns the relative transform to convert from the LODNode space to the camera space.

It is not intended to be called directly, and it has nothing to do with the normal Panda bounding-volume computation.

If the node contains any geometry, this updates min_point and max_point to enclose its bounding box. found_any is to be set true if the node has any geometry at all, or left alone if it has none. This method may be called over several nodes, so it may enter with min_point, max_point, and found_any already set.

This function is recursive, and the return value is the transform after it has been modified by this node's transform. Merges old_bundle with new_bundle. old_bundle must be one of the PartBundles within this node. At the end of this call, the old_bundle pointer within this node will be replaced with the new_bundle pointer, and all geometry within this node will be updated to reference new_bundle.

This method is deprecated. Use the newer version of this method, below.

Definition at line 218 of file character.cxx.

References PandaNode::get_parents.

◆ CPT() [2/4]

CPT ( TransformTable  )

Creates a new TransformTable, similar to the indicated one, with the joint and slider pointers redirected into this object.

Definition at line 928 of file character.cxx.

◆ CPT() [3/4]

Creates a new TransformBlendTable, similar to the indicated one, with the joint and slider pointers redirected into this object.

Definition at line 954 of file character.cxx.

◆ CPT() [4/4]

CPT ( SliderTable  )

Creates a new SliderTable, similar to the indicated one, with the joint and slider pointers redirected into this object.

Definition at line 985 of file character.cxx.

◆ PT() [1/3]

PT ( Geom  )

Makes a new copy of the Geom with the dynamic vertex arrays replaced to reference this Character instead of the other one.

If no arrays have changed, simply returns the same Geom.

Definition at line 821 of file character.cxx.

References Geom::make_copy().

◆ PT() [2/3]

Creates a new JointVertexTransform that is similar to the indicated one, but points into this character.

If one was already created (in the GeomJointMap), returns it instead.

Definition at line 1011 of file character.cxx.

References TypedObject::is_of_type().

◆ PT() [3/3]

Creates a new CharacterVertexSlider that is similar to the indicated one, but points into this character.

If one was already created (in the GeomSliderMap), returns it instead.

Definition at line 1047 of file character.cxx.

References TypedObject::is_of_type().