~ubuntu-branches/ubuntu/trusty/openscenegraph/trusty

« back to all changes in this revision

Viewing changes to OpenSceneGraph/include/osg/CameraView

  • Committer: Bazaar Package Importer
  • Author(s): Cyril Brulebois
  • Date: 2008-07-29 04:34:38 UTC
  • mfrom: (1.1.6 upstream) (2.1.3 lenny)
  • Revision ID: james.westby@ubuntu.com-20080729043438-no1h9h0dpsrlzp1y
* Non-maintainer upload.
* No longer try to detect (using /proc/cpuinfo when available) how many
  CPUs are available, fixing the FTBFS (due to -j0) on various platforms
  (Closes: #477353). The right way to do it is to support parallel=n in
  DEB_BUILD_OPTIONS (see Debian Policy §4.9.1), and adequate support has
  been implemented.
* Add patch to fix FTBFS due to the build system now refusing to handle
  whitespaces (Policy CMP0004 say the logs), thanks to Andreas Putzo who
  provided it (Closes: #482239):
   - debian/patches/fix-cmp0004-build-failure.dpatch
* Remove myself from Uploaders, as requested a while ago, done by Luk in
  his 2.2.0-2.1 NMU, which was never acknowledged.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 
25
25
/** CameraView - is a Transform that is used to specify camera views from within the scene graph.
26
26
  * The application must attach a camera to a CameraView via the NodePath from the top of the scene graph
27
 
  * to the CameraView node itself, and accimulate the view matrix from this NodePath.
 
27
  * to the CameraView node itself, and accumulate the view matrix from this NodePath.
28
28
*/
29
29
class OSG_EXPORT CameraView : public Transform
30
30
{
48
48
        /** Get the position of the camera view.*/
49
49
        inline const Vec3d& getPosition() const { return _position; }
50
50
 
51
 
        /** Set the attitide of the camera view.*/
 
51
        /** Set the attitude of the camera view.*/
52
52
        inline void setAttitude(const Quat& quat) { _attitude = quat; dirtyBound(); }
53
53
 
54
 
        /** Get the attitide of the camera view.*/
 
54
        /** Get the attitude of the camera view.*/
55
55
        inline const Quat& getAttitude() const { return _attitude; }
56
56
 
57
57
        /** Set the field of view.
58
 
          * The cameras field of view can be contrained to either the horizontal or vertex axis of the camera, or unconstrained
 
58
          * The cameras field of view can be constrained to either the horizontal or vertex axis of the camera, or unconstrained
59
59
          * in which case the camera/application are left to choose an appropriate field of view.
60
 
          * The default value if 60 degrres. */
 
60
          * The default value if 60 degrees. */
61
61
        inline void setFieldOfView(double fieldOfView) { _fieldOfView = fieldOfView; }
62
62
 
63
63
        /** Get the field of view.*/
70
70
            VERTICAL
71
71
        };
72
72
 
73
 
        /** Set the field of view mode - controlling how the field of view of the camera is contrained by the CameaView settings.*/
 
73
        /** Set the field of view mode - controlling how the field of view of the camera is constrained by the CameaView settings.*/
74
74
        inline void setFieldOfViewMode(FieldOfViewMode mode) { _fieldOfViewMode = mode; }
75
75
 
76
76
        /** Get the field of view mode.*/