14#ifndef BILLBOARDEFFECT_H
15#define BILLBOARDEFFECT_H
37 const LPoint3 &look_at_point,
38 bool fixed_depth =
false);
43 INLINE
bool is_off()
const;
44 INLINE
const LVector3 &get_up_vector()
const;
45 INLINE
bool get_eye_relative()
const;
46 INLINE
bool get_axial_rotate()
const;
47 INLINE
bool get_fixed_depth()
const;
48 INLINE PN_stdfloat get_offset()
const;
49 INLINE
const NodePath &get_look_at()
const;
50 INLINE
const LPoint3 &get_look_at_point()
const;
55 virtual void output(std::ostream &out)
const;
57 virtual bool has_cull_callback()
const;
62 virtual bool has_adjust_transform()
const;
68 virtual int compare_to_impl(
const RenderEffect *other)
const;
83 LPoint3 _look_at_point;
86 static void register_with_read_factory();
99 static void init_type() {
100 RenderEffect::init_type();
102 RenderEffect::get_class_type());
105 return get_class_type();
107 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
Indicates that geometry at this node should automatically rotate to face the camera,...
This collects together the pieces of data that are accumulated for each node while walking the scene ...
This object performs a depth-first traversal of the scene graph, with optional view-frustum culling,...
A class to retrieve the individual data elements previously stored in a Datagram.
An ordered list of data elements, formatted in memory for transmission over a socket or writing to a ...
An instance of this class is passed to the Factory when requesting it to do its business and construc...
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
A basic node of the scene graph or data graph.
This is the base class for a number of special render effects that may be set on scene graph nodes to...
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.
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
TypeHandle is the identifier used to differentiate C++ class types.
Base class for objects that can be written to and read from Bam files.
virtual int complete_pointers(TypedWritable **p_list, BamReader *manager)
Receives an array of pointers, one for each time manager->read_pointer() was called in fillin().
This is our own Panda specialization on the default STL list.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void register_type(TypeHandle &type_handle, const std::string &name)
This inline function is just a convenient way to call TypeRegistry::register_type(),...
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.