~valavanisalex/ubuntu/precise/inkscape/fix-943984

« back to all changes in this revision

Viewing changes to inkscape-0.47pre1/src/perspective-line.h

  • Committer: Bazaar Package Importer
  • Author(s): Bryce Harrington
  • Date: 2009-07-02 17:09:45 UTC
  • mfrom: (1.1.9 upstream)
  • Revision ID: james.westby@ubuntu.com-20090702170945-nn6d6zswovbwju1t
Tags: 0.47~pre1-0ubuntu1
* New upstream release.
  - Don't constrain maximization on small resolution devices (pre0)
    (LP: #348842)
  - Fixes segfault on startup (pre0)
    (LP: #391149)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Perspective line for 3D perspectives
 
3
 *
 
4
 * Authors:
 
5
 *   Maximilian Albert <Anhalter42@gmx.de>
 
6
 *
 
7
 * Copyright (C) 2007 authors
 
8
 *
 
9
 * Released under GNU GPL, read the file 'COPYING' for more information
 
10
 */
 
11
 
 
12
#ifndef SEEN_PERSPECTIVE_LINE_H
 
13
#define SEEN_PERSPECTIVE_LINE_H
 
14
 
 
15
#include "line-geometry.h"
 
16
#include <glib.h>
 
17
 
 
18
class SPDesktop;
 
19
 
 
20
namespace Box3D {
 
21
 
 
22
class PerspectiveLine : public Box3D::Line {
 
23
public:
 
24
    /** 
 
25
     * Create a perspective line starting at 'pt' and pointing in the direction of the
 
26
     * vanishing point corresponding to 'axis'. If the VP has style VP_FINITE then the
 
27
     * PL runs through it; otherwise it has the direction specified by the v_dir vector
 
28
     * of the VP.
 
29
     */
 
30
    PerspectiveLine (Geom::Point const &pt, Proj::Axis const axis, Persp3D *persp);
 
31
 
 
32
private:
 
33
    Proj::Axis vp_dir; // direction of the associated VP
 
34
    Persp3D *persp;
 
35
};
 
36
 
 
37
 
 
38
} // namespace Box3D
 
39
 
 
40
 
 
41
#endif /* !SEEN_PERSPECTIVE_LINE_H */
 
42
 
 
43
/*
 
44
  Local Variables:
 
45
  mode:c++
 
46
  c-file-style:"stroustrup"
 
47
  c-file-offsets:((innamespace . 0)(inline-open . 0))
 
48
  indent-tabs-mode:nil
 
49
  fill-column:99
 
50
  End:
 
51
*/
 
52
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :