15 #ifndef SCISSOREFFECT_H
16 #define SCISSOREFFECT_H
18 #include "pandabase.h"
20 #include "renderEffect.h"
44 const PointDef *points,
int num_points,
bool clip);
54 INLINE
bool is_screen()
const;
55 INLINE
const LVecBase4 &get_frame()
const;
57 INLINE
int get_num_points()
const;
58 INLINE
const LPoint3 &get_point(
int n)
const;
59 MAKE_SEQ(get_points, get_num_points, get_point);
60 INLINE
NodePath get_node(
int n)
const;
61 MAKE_SEQ(get_nodes, get_num_points, get_node);
63 INLINE
bool get_clip()
const;
67 virtual void output(ostream &out)
const;
69 virtual bool has_cull_callback()
const;
71 CPT(TransformState) &node_transform,
75 virtual int compare_to_impl(
const RenderEffect *other)
const;
88 static void register_with_read_factory();
99 static void init_type() {
100 RenderEffect::init_type();
101 register_type(_type_handle,
"ScissorEffect",
102 RenderEffect::get_class_type());
105 return get_class_type();
107 virtual TypeHandle force_init_type() {init_type();
return get_class_type();}
113 #include "scissorEffect.I"
This provides a higher-level wrapper around ScissorAttrib.
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...
A base class for any number of different kinds of lenses, linear and otherwise.
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 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...
This is another abstract class, for a general class of bounding volumes that actually enclose points ...
This is a 4-by-4 transform matrix.
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...
This is the base class for all three-component vectors and points.
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...