PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...
#include "clipPlaneAttrib.h"
#include "pandaNode.h"
#include "graphicsStateGuardianBase.h"
#include "bamReader.h"
#include "bamWriter.h"
#include "datagram.h"
#include "datagramIterator.h"
#include "config_pgraph.h"
#include "attribNodeRegistry.h"
#include <iterator>
Go to the source code of this file.
Functions | |
CPT (RenderAttrib) ClipPlaneAttrib | |
Constructs a new ClipPlaneAttrib object that enables (or disables, according to op) the indicated plane(s). More... | |
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
All rights reserved.
All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."
Definition in file clipPlaneAttrib.cxx.
CPT | ( | RenderAttrib | ) |
Constructs a new ClipPlaneAttrib object that enables (or disables, according to op) the indicated plane(s).
Returns a new ClipPlaneAttrib, just like this one, but with the indicated plane added to the list of planes enabled by this attrib.
Constructs a new ClipPlaneAttrib object that disables all planes (and hence disables clipping).
Returns a new ClipPlaneAttrib, just like this one, but with the indicated plane added to the list of planes.
Returns a RenderAttrib that corresponds to whatever the standard default properties for render attributes of this type ought to be.
Constructs a new ClipPlaneAttrib object that turns on (or off, according to op) the indicate plane(s).
This method is now deprecated. Use add_on_plane() or add_off_plane() instead.
This method is now deprecated. Use add_on_plane() or add_off_plane() instead. Returns a new ClipPlaneAttrib, just like this one, but with the indicated plane removed from the list of planes.
This method is now deprecated. Use remove_on_plane() or remove_off_plane() instead. Constructs a new ClipPlaneAttrib object that does nothing.
Returns a new ClipPlaneAttrib, just like this one, but with the indicated plane removed from the list of planes enabled by this attrib. Returns a new ClipPlaneAttrib, just like this one, but with the indicated plane added to the list of planes disabled by this attrib. Returns a new ClipPlaneAttrib, just like this one, but with the indicated plane removed from the list of planes disabled by this attrib. Returns a new ClipPlaneAttrib, very much like this one, but with the number of on_planes reduced to be no more than max_clip_planes. The number of off_planes in the new ClipPlaneAttrib is undefined. This is a special method which composes two ClipPlaneAttribs with regard only to their set of "off" clip planes, for the purposes of deriving PandaNode::get_off_clip_planes().
The result will be a ClipPlaneAttrib that represents the union of all of the clip planes turned off in either attrib. The set of on planes in the result is undefined and should be ignored. Intended to be overridden by derived ClipPlaneAttrib types to return a unique number indicating whether this ClipPlaneAttrib is equivalent to the other one.
This should return 0 if the two ClipPlaneAttrib objects are equivalent, a number less than zero if this one should be sorted before the other one, and a number greater than zero otherwise.
This will only be called with two ClipPlaneAttrib objects whose get_type() functions return the same. Intended to be overridden by derived RenderAttrib types to return a unique hash for these particular properties. RenderAttribs that compare the same with compare_to_impl(), above, should return the same hash; RenderAttribs that compare differently should return a different hash. Intended to be overridden by derived RenderAttrib types to specify how two consecutive RenderAttrib objects of the same type interact.
This should return the result of applying the other RenderAttrib to a node in the scene graph below this RenderAttrib, which was already applied. In most cases, the result is the same as the other RenderAttrib (that is, a subsequent RenderAttrib completely replaces the preceding one). On the other hand, some kinds of RenderAttrib (for instance, ColorTransformAttrib) might combine in meaningful ways. Intended to be overridden by derived RenderAttrib types to specify how two consecutive RenderAttrib objects of the same type interact.
See invert_compose() and compose_impl(). This is patterned after TextureAttrib::sort_on_stages(), but since planeNodes don't actually require sorting, this only empties the _filtered map.
Definition at line 51 of file clipPlaneAttrib.cxx.