A node that can be positioned around in the scene graph to represent a point of view for rendering a scene.
More...
Public Member Functions |
|
| Camera (const string &name, Lens *lens=new PerspectiveLens()) |
|
| Camera (const Camera ©) |
| int | cleanup_aux_scene_data (Thread *current_thread=Thread::get_current_thread()) |
| | Walks through the list of currently-assigned AuxSceneData objects and releases any that are past their expiration times.
|
| bool | clear_aux_scene_data (const NodePath &node_path) |
| | Removes the AuxSceneData associated with the indicated NodePath.
|
| void | clear_tag_state (const string &tag_state) |
| | Removes the association established by a previous call to set_tag_state().
|
|
| CPT (RenderState) get_initial_state() const |
|
| CPT (RenderState) get_tag_state(const string &tag_state) const |
|
virtual TypeHandle | force_init_type () |
| AuxSceneData * | get_aux_scene_data (const NodePath &node_path) const |
| | Returns the AuxSceneData associated with the indicated NodePath, or NULL if nothing is associated.
|
| DrawMask | get_camera_mask () const |
| | Returns the set of bits that represent the subset of the scene graph the camera will render.
|
| const NodePath & | get_cull_center () const |
| | Returns the point from which the culling operations will be performed, if it was set by set_cull_center(), or the empty NodePath otherwise.
|
| DisplayRegionBase * | get_display_region (int n) const |
| | Returns the nth display region associated with the camera.
|
| 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(), or the empty NodePath otherwise.
|
| int | get_num_display_regions () const |
| | Returns the number of display regions associated with the camera.
|
| 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().
|
|
virtual TypeHandle | get_type () const |
| bool | has_tag_state (const string &tag_state) const |
| | Returns true if set_tag_state() has previously been called with the indicated tag state, false otherwise.
|
| bool | is_active () const |
| | Returns the current setting of the active flag on the camera.
|
| void | list_aux_scene_data (ostream &out) const |
| | Outputs all of the NodePaths and AuxSceneDatas in use.
|
| virtual PandaNode * | make_copy () const |
| | Returns a newly-allocated Node that is a shallow copy of this one.
|
|
| MAKE_SEQ (get_display_regions, get_num_display_regions, get_display_region) |
| virtual bool | safe_to_flatten () const |
| | Returns true if it is generally safe to flatten out this particular kind of Node by duplicating instances, false otherwise (for instance, a Camera cannot be safely flattened, because the Camera pointer itself is meaningful).
|
| virtual bool | safe_to_transform () const |
| | Returns true if it is generally safe to transform this particular kind of Node by calling the xform() method, false otherwise.
|
| void | set_active (bool active) |
| | Sets the active flag on the camera.
|
| void | set_aux_scene_data (const NodePath &node_path, AuxSceneData *data) |
| | Associates the indicated AuxSceneData object with the given NodePath, possibly replacing a previous data defined for the same NodePath, if any.
|
| 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_cull_center (const NodePath &cull_center) |
| | Specifies the point from which the culling operations are performed.
|
| 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 the scene graph.
|
| void | set_lod_center (const NodePath &lod_center) |
| | Specifies the point from which the LOD distances are measured.
|
| void | set_scene (const NodePath &scene) |
| | Sets the scene that will be rendered by the camera.
|
| void | set_tag_state (const string &tag_state, const RenderState *state) |
| | Associates a particular state transition with the indicated tag value.
|
| void | set_tag_state_key (const string &tag_state_key) |
| | Sets the tag key which, when encountered as a tag on nodes in the scene graph, causes this Camera to apply an arbitrary state transition based on the value of the tag (as specified to set_tag_state()).
|
| virtual void | write_datagram (BamWriter *manager, Datagram &dg) |
| | Writes the contents of this object to the datagram for shipping out to a Bam file.
|
Static Public Member Functions |
|
static TypeHandle | get_class_type () |
|
static void | init_type () |
| static void | register_with_read_factory () |
| | Tells the BamReader how to create objects of type Camera.
|
Protected Member Functions |
| void | fillin (DatagramIterator &scan, BamReader *manager) |
| | This internal function is called by make_from_bam to read in all of the relevant data from the BamFile for the new Camera.
|
Static Protected Member Functions |
| static TypedWritable * | make_from_bam (const FactoryParams ¶ms) |
| | This function is called by the BamReader's factory when a new object of type Camera is encountered in the Bam file.
|
Friends |
|
class | DisplayRegion |
A node that can be positioned around in the scene graph to represent a point of view for rendering a scene.
Definition at line 37 of file camera.h.