21 INLINE PlaneNode::CData::
34 INLINE PlaneNode::CData::
35 CData(
const PlaneNode::CData ©) :
37 _front_viz(copy._front_viz),
38 _back_viz(copy._back_viz),
39 _viz_scale(copy._viz_scale)
52 if (cdata->_plane != plane) {
53 cdata->_plane = plane;
54 cdata->_front_viz = NULL;
55 cdata->_back_viz = NULL;
79 if (cdata->_viz_scale != viz_scale) {
80 cdata->_viz_scale = viz_scale;
81 cdata->_front_viz = NULL;
82 cdata->_back_viz = NULL;
95 return cdata->_viz_scale;
115 _priority = priority;
147 _clip_effect = clip_effect;
void set_plane(const LPlane &plane)
Sets the particular plane represented by the PlaneNode.
This template class calls PipelineCycler::read_unlocked(), and then provides a transparent read-only ...
void set_viz_scale(PN_stdfloat viz_scale)
Specifies the size of the visual representation of the plane that is drawn if the PlaneNode is shown...
static UpdateSeq get_sort_seq()
Returns a global sequence number that is incremented any time any PlaneNode in the world changes sort...
const LPlane & get_plane() const
Returns the plane represented by the PlaneNode.
PN_stdfloat get_viz_scale() const
Returns the size of the visual representation of the plane that is drawn if the PlaneNode is shown...
This template class calls PipelineCycler::write() in the constructor and PipelineCycler::release_writ...
int get_priority() const
Returns the priority associated with this clip plane.
void set_priority(int priority)
Changes the relative importance of this PlaneNode (when it is used as a clip plane) relative to the o...
void set_clip_effect(int clip_effect)
Specifies the sort of things this plane will actually clip (when it is used as a clip plane)...
This is a sequence number that increments monotonically.
int get_clip_effect() const
Returns the clip_effect bits for this clip plane.