14#ifndef SHOWBOUNDSEFFECT_H
15#define SHOWBOUNDSEFFECT_H
28class EXPCL_PANDA_PGRAPH ShowBoundsEffect :
public RenderEffect {
30 INLINE ShowBoundsEffect();
33 static CPT(RenderEffect)
make(
bool tight =
false);
39 virtual int compare_to_impl(
const RenderEffect *other)
const;
49 static TypedWritable *make_from_bam(
const FactoryParams ¶ms);
56 static void init_type() {
57 RenderEffect::init_type();
59 RenderEffect::get_class_type());
62 return get_class_type();
64 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
This is the fundamental interface for extracting binary objects from a Bam file, as generated by a Ba...
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...
virtual bool safe_to_combine() const
Returns true if this kind of effect can safely be combined with sibling nodes that share the exact sa...
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 void register_with_read_factory()
Tells the BamReader how to create objects of type ShowBoundsEffect.
bool get_tight() const
Returns true if the "tight" flag was set, meaning the effect should compute and draw the tight boundi...
static ConstPointerTo< RenderEffect > make(bool tight=false)
Constructs a new ShowBoundsEffect object.
TypeHandle is the identifier used to differentiate C++ class types.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.