15 #ifndef COMPASSEFFECT_H
16 #define COMPASSEFFECT_H
18 #include "pandabase.h"
20 #include "renderEffect.h"
73 int properties = P_rot);
75 INLINE
const NodePath &get_reference()
const;
76 INLINE
int get_properties()
const;
80 virtual void output(ostream &out)
const;
82 virtual bool has_cull_callback()
const;
84 CPT(TransformState) &node_transform,
89 CPT(TransformState) &node_transform,
93 virtual int compare_to_impl(
const RenderEffect *other)
const;
100 static void register_with_read_factory();
111 static void init_type() {
112 RenderEffect::init_type();
113 register_type(_type_handle,
"CompassEffect",
114 RenderEffect::get_class_type());
117 return get_class_type();
119 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
125 #include "compassEffect.I"
A basic node of the scene graph or data graph.
virtual bool has_adjust_transform() const
Should be overridden by derived classes to return true if adjust_transform() has been defined...
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 perfor...
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.
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.
This collects together the pieces of data that are accumulated for each node while walking the scene ...
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...
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 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.
virtual bool safe_to_transform() const
Returns true if it is generally safe to transform this particular kind of RenderEffect by calling the...
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
A CompassEffect causes a node to inherit its rotation (or pos or scale, if specified) from some other...
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...