// Filename: sceneSetup.h // Created by: drose (27Mar02) // //////////////////////////////////////////////////////////////////// // // PANDA 3D SOFTWARE // Copyright (c) 2001, Disney Enterprises, Inc. All rights reserved // // All use of this software is subject to the terms of the Panda 3d // Software license. You should have received a copy of this license // along with this source code; you will also find a current copy of // the license at http://www.panda3d.org/license.txt . // // To contact the maintainers of this program write to // panda3d@yahoogroups.com . // //////////////////////////////////////////////////////////////////// #ifndef SCENESETUP_H #define SCENESETUP_H #include "pandabase.h" #include "referenceCount.h" #include "nodePath.h" #include "camera.h" #include "transformState.h" #include "lens.h" #include "pointerTo.h" //////////////////////////////////////////////////////////////////// // Class : SceneSetup // Description : This object holds the camera position, etc., and // other general setup information for rendering a // particular scene. //////////////////////////////////////////////////////////////////// class EXPCL_PANDA SceneSetup : public ReferenceCount { public: INLINE SceneSetup(); INLINE void set_scene_root(const NodePath &scene_root); INLINE const NodePath &get_scene_root() const; INLINE void set_camera_path(const NodePath &camera_path); INLINE const NodePath &get_camera_path() const; INLINE void set_camera_node(const Camera *camera_node); INLINE const Camera *get_camera_node() const; INLINE void set_lens(const Lens *lens); INLINE const Lens *get_lens() const; INLINE void set_camera_transform(const TransformState *camera_transform); INLINE const TransformState *get_camera_transform() const; INLINE void set_world_transform(const TransformState *world_transform); INLINE const TransformState *get_world_transform() const; INLINE void set_cs_transform(const TransformState *cs_transform); INLINE const TransformState *get_cs_transform() const; INLINE const TransformState *get_render_transform() const; private: NodePath _scene_root; NodePath _camera_path; CPT(Camera) _camera_node; CPT(Lens) _lens; CPT(TransformState) _camera_transform; CPT(TransformState) _world_transform; CPT(TransformState) _cs_transform; CPT(TransformState) _render_transform; }; #include "sceneSetup.I" #endif