Indicates that geometry at this node should automatically rotate to face the camera, or any other arbitrary node.
More...
Public Member Functions |
| virtual void | adjust_transform (CPT(TransformState)&net_transform, CPT(TransformState)&node_transform, PandaNode *node) const |
| | Performs some operation on the node's apparent net and/or local transforms.
|
|
virtual | CPT (TransformState) prepare_flatten_transform(const TransformState *net_transform) const |
| virtual void | cull_callback (CullTraverser *trav, CullTraverserData &data, CPT(TransformState)&node_transform, CPT(RenderState)&node_state) const |
| | If has_cull_callback() returns true, this function will be called during the cull traversal to perform any additional operations that should be performed at cull time.
|
|
virtual TypeHandle | force_init_type () |
| bool | get_axial_rotate () const |
| | Returns true if this billboard rotates only around the axis of the up vector, or false if it rotates freely in three dimensions.
|
| bool | get_eye_relative () const |
| | Returns true if this billboard interprets the up vector relative to the camera, or false if it is relative to the world.
|
| const NodePath & | get_look_at () const |
| | Returns the node this billboard will rotate to look towards.
|
| const LPoint3 & | get_look_at_point () const |
| | Returns the point, relative to the look_at node, towards which the billboard will rotate.
|
| PN_stdfloat | get_offset () const |
| | Returns the distance toward the camera (or the look_at_point) the billboard is moved towards, after rotating.
|
|
virtual TypeHandle | get_type () const |
| const LVector3 & | get_up_vector () const |
| | Returns the up vector in effect for this billboard.
|
| virtual bool | has_adjust_transform () const |
| | Should be overridden by derived classes to return true if adjust_transform() has been defined, and therefore the RenderEffect has some effect on the node's apparent local and net transforms.
|
| virtual bool | has_cull_callback () const |
| | Should be overridden by derived classes to return true if cull_callback() has been defined.
|
| bool | is_off () const |
| | Returns true if the BillboardEffect is an 'off' BillboardEffect, indicating that it does not enable billboarding.
|
|
virtual void | output (ostream &out) const |
| virtual bool | safe_to_transform () const |
| | Returns true if it is generally safe to transform this particular kind of RenderEffect by calling the xform() method, false otherwise.
|
| virtual void | write_datagram (BamWriter *manager, Datagram &dg) |
| | Writes the contents of this object to the datagram for shipping out to a Bam file.
|
Static Public Member Functions |
|
static | CPT (RenderEffect) make(const LVector3 &up_vector |
|
static | CPT (RenderEffect) make_axis() |
|
static | CPT (RenderEffect) make_point_world() |
|
static | CPT (RenderEffect) make_point_eye() |
|
static TypeHandle | get_class_type () |
|
static void | init_type () |
| static void | register_with_read_factory () |
| | Tells the BamReader how to create objects of type BillboardEffect.
|
Public Attributes |
|
static bool bool | axial_rotate |
|
static bool | eye_relative |
static bool bool PN_stdfloat
const NodePath & | look_at |
static bool bool PN_stdfloat
const NodePath const LPoint3 & | look_at_point |
|
static bool bool PN_stdfloat | offset |
Protected Member Functions |
| virtual int | compare_to_impl (const RenderEffect *other) const |
| | Intended to be overridden by derived BillboardEffect types to return a unique number indicating whether this BillboardEffect is equivalent to the other one.
|
| void | fillin (DatagramIterator &scan, BamReader *manager) |
| | This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new BillboardEffect.
|
Static Protected Member Functions |
| static TypedWritable * | make_from_bam (const FactoryParams ¶ms) |
| | This function is called by the BamReader's factory when a new object of type BillboardEffect is encountered in the Bam file.
|
Indicates that geometry at this node should automatically rotate to face the camera, or any other arbitrary node.
Definition at line 30 of file billboardEffect.h.
| int BillboardEffect::compare_to_impl |
( |
const RenderEffect * |
other | ) |
const [protected, virtual] |
If has_cull_callback() returns true, this function will be called during the cull traversal to perform any additional operations that should be performed at cull time.
This may include additional manipulation of render state or additional visible/invisible decisions, or any other arbitrary operation.
At the time this function is called, the current node's transform and state have not yet been applied to the net_transform and net_state. This callback may modify the node_transform and node_state to apply an effective change to the render state at this level.
Reimplemented from RenderEffect.
Definition at line 143 of file billboardEffect.cxx.
References CullTraverser::get_camera_transform(), and NodePath::is_empty().