14#ifndef SCISSOREFFECT_H
15#define SCISSOREFFECT_H
40 const PointDef *points,
int num_points,
bool clip);
44 static CPT(
RenderEffect) make_screen(
const LVecBase4 &frame,
bool clip =
true);
47 static CPT(
RenderEffect) make_node(
const LPoint3 &a,
const LPoint3 &b,
const LPoint3 &c,
const LPoint3 &d,
const NodePath &node =
NodePath());
50 INLINE
bool is_screen()
const;
51 INLINE
const LVecBase4 &get_frame()
const;
53 INLINE
int get_num_points()
const;
54 INLINE
const LPoint3 &get_point(
int n)
const;
55 MAKE_SEQ(get_points, get_num_points, get_point);
56 INLINE
NodePath get_node(
int n)
const;
57 MAKE_SEQ(get_nodes, get_num_points, get_node);
59 INLINE
bool get_clip()
const;
62 virtual CPT(
RenderEffect) xform(
const LMatrix4 &mat)
const;
63 virtual void output(std::ostream &out)
const;
65 virtual bool has_cull_callback()
const;
71 virtual int compare_to_impl(
const RenderEffect *other)
const;
84 static void register_with_read_factory();
95 static void init_type() {
96 RenderEffect::init_type();
98 RenderEffect::get_class_type());
101 return get_class_type();
103 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...
This is the fundamental interface for writing binary objects to a Bam file, to be extracted later by ...
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...
This is another abstract class, for a general class of bounding volumes that actually enclose points ...
A base class for any number of different kinds of lenses, linear and otherwise.
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...
This is the base class for a number of special render effects that may be set on scene graph nodes to...
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...
This provides a higher-level wrapper around ScissorAttrib.
TypeHandle is the identifier used to differentiate C++ class types.
Base class for objects that can be written to and read from Bam files.
This is our own Panda specialization on the default STL vector.
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.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.