15 #ifndef BILLBOARDEFFECT_H 16 #define BILLBOARDEFFECT_H 18 #include "pandabase.h" 20 #include "renderEffect.h" 45 INLINE
bool is_off()
const;
46 INLINE
const LVector3 &get_up_vector()
const;
47 INLINE
bool get_eye_relative()
const;
48 INLINE
bool get_axial_rotate()
const;
49 INLINE PN_stdfloat get_offset()
const;
50 INLINE
const NodePath &get_look_at()
const;
51 INLINE
const LPoint3 &get_look_at_point()
const;
55 virtual CPT(TransformState) prepare_flatten_transform(
const TransformState *net_transform)
const;
56 virtual void output(ostream &out)
const;
58 virtual bool has_cull_callback()
const;
60 CPT(TransformState) &node_transform,
63 virtual bool has_adjust_transform()
const;
64 virtual void adjust_transform(CPT(TransformState) &net_transform,
65 CPT(TransformState) &node_transform,
69 virtual int compare_to_impl(
const RenderEffect *other)
const;
72 void compute_billboard(CPT(TransformState) &node_transform,
73 const TransformState *net_transform,
74 const TransformState *camera_transform)
const;
86 static void register_with_read_factory();
97 static void init_type() {
98 RenderEffect::init_type();
99 register_type(_type_handle,
"BillboardEffect",
100 RenderEffect::get_class_type());
103 return get_class_type();
105 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
111 #include "billboardEffect.I" A basic node of the scene graph or data graph.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
Base class for objects that can be written to and read from Bam files.
This collects together the pieces of data that are accumulated for each node while walking the scene ...
This is a three-component vector distance (as opposed to a three-component point, which represents a ...
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
This is the base class for a number of special render effects that may be set on scene graph nodes to...
Indicates that geometry at this node should automatically rotate to face the camera, or any other arbitrary node.
An instance of this class is passed to the Factory when requesting it to do its business and construc...
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
virtual bool safe_to_transform() const
Returns true if it is generally safe to transform this particular kind of RenderEffect by calling the...
virtual void write_datagram(BamWriter *manager, Datagram &dg)
Writes the contents of this object to the datagram for shipping out to a Bam file.
A class to retrieve the individual data elements previously stored in a Datagram. ...
TypeHandle is the identifier used to differentiate C++ class types.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling...