Panda3D

perspectiveLens.I
Go to the documentation of this file.
1 /**
2 * PANDA 3D SOFTWARE
3 * Copyright (c) Carnegie Mellon University. All rights reserved.
4 *
5 * All use of this software is subject to the terms of the revised BSD
6 * license. You should have received a copy of this license along
7 * with this source code in a file named "LICENSE."
8 *
9 * @file perspectiveLens.I
10 * @author drose
11 * @date 1999-02-18
12 */
13
14 /**
15 *
16 */
17 INLINE PerspectiveLens::
18 PerspectiveLens() {
19 }
20
21 /**
22 *
23 */
24 INLINE PerspectiveLens::
25 PerspectiveLens(PN_stdfloat hfov, PN_stdfloat vfov) {
26 Lens::CDWriter lens_cdata(Lens::_cycler, true);
27 lens_cdata->_fov.set(hfov, vfov);
28 }
29
30 /**
31 *
32 */
33 INLINE PerspectiveLens::
34 PerspectiveLens(const PerspectiveLens &copy) : Lens(copy) {
35 }
36
37 /**
38 *
39 */
40 INLINE void PerspectiveLens::
41 operator = (const PerspectiveLens &copy) {
42 Lens::operator = (copy);
43 }
CycleDataWriter
This template class calls PipelineCycler::write() in the constructor and PipelineCycler::release_writ...
Definition: cycleDataWriter.h:34
Lens
A base class for any number of different kinds of lenses, linear and otherwise.
Definition: lens.h:41
PerspectiveLens
A perspective-type lens: a normal camera.
Definition: perspectiveLens.h:25