76 return _display_regions.size();
88 return _display_regions[n];
136 _cull_center = cull_center;
164 _cull_bounds = cull_bounds;
192 _lod_center = lod_center;
216 _initial_state = state;
226 get_initial_state()
const {
227 return _initial_state;
239 set_tag_state_key(
const string &tag_state_key) {
240 _tag_state_key = tag_state_key;
251 return _tag_state_key;
const NodePath & get_scene() const
Returns the scene that will be rendered by the camera.
const string & get_tag_state_key() const
Returns the tag key as set by a previous call to set_tag_state_key().
void set_initial_state(const RenderState *state)
Sets the initial state which is applied to all nodes in the scene, as if it were set at the top of th...
BoundingVolume * get_cull_bounds() const
Returns the custom cull volume that was set by set_cull_bounds(), if any, or NULL if no custom cull v...
static DrawMask get_overall_bit()
Returns the special bit that, when specifically cleared in the node's DrawMask, indicates that the no...
void set_active(bool active)
Sets the active flag on the camera.
int get_num_display_regions() const
Returns the number of display regions associated with the camera.
DisplayRegionBase * get_display_region(int n) const
Returns the nth display region associated with the camera.
This is an abstract class for any volume in any sense which can be said to define the locality of ref...
void set_lod_scale(PN_stdfloat value)
Sets the multiplier for LOD distances.
bool is_active() const
Returns the current setting of the active flag on the camera.
const NodePath & get_cull_center() const
Returns the point from which the culling operations will be performed, if it was set by set_cull_cent...
void set_cull_bounds(BoundingVolume *cull_bounds)
Specifies the bounding volume that should be used to perform culling from this camera.
PN_stdfloat get_lod_scale() const
Returns the multiplier for LOD distances.
This represents a unique collection of RenderAttrib objects that correspond to a particular renderabl...
DrawMask get_camera_mask() const
Returns the set of bits that represent the subset of the scene graph the camera will render...
void set_camera_mask(DrawMask mask)
Changes the set of bits that represent the subset of the scene graph the camera will render...
void set_lod_center(const NodePath &lod_center)
Specifies the point from which the LOD distances are measured.
void set_cull_center(const NodePath &cull_center)
Specifies the point from which the culling operations are performed.
const NodePath & get_lod_center() const
Returns the point from which the LOD distances will be measured, if it was set by set_lod_center()...
void set_scene(const NodePath &scene)
Sets the scene that will be rendered by the camera.
An abstract base class for DisplayRegion, mainly so we can store DisplayRegion pointers in a Camera...
A node that can be positioned around in the scene graph to represent a point of view for rendering a ...
NodePath is the fundamental system for disambiguating instances, and also provides a higher-level int...