~ubuntu-branches/ubuntu/quantal/texmacs/quantal

« back to all changes in this revision

Viewing changes to src/Typeset/Graphics/frame.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Atsuhito KOHDA, Kamaraju Kusumanchi, kohda
  • Date: 2009-04-26 19:35:14 UTC
  • mfrom: (1.1.10 upstream) (4.1.4 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090426193514-9yo3oggdslgdls4b
Tags: 1:1.0.7.2-1
[Kamaraju Kusumanchi <kamaraju@gmail.com>]
* New upstream release
* texmacs crashes if /usr/share/texmacs/TeXmacs/misc/pixmaps/unknown.ps
  is not present. Do not remove it. (Closes: #484073, #497021)
* update patches 03_mupad.dpatch, 04_axiom.dpatch, 11-desktop-file.dpatch
* fix the mime problem in gnome. Thanks to Andrea Gamba for the fix.
[kohda]
* Refined a fix for the mime problem in gnome a bit.
* Try to fix /bin/sh problem (debian/fixsh) but it is not complete fix yet.
* Try to fix hard coded settings for ipa fonts(patches/09_ipa.dpatch), 
  especially for Debian where no ipa fonts exist yet.
* Fixed obsolete Build-Depends: changed libltdl3-dev to 
  libltdl-dev | libltdl7-dev (the latter for Ubuntu?)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
* DESCRIPTION: coordinate frames
5
5
* COPYRIGHT  : (C) 2003  Joris van der Hoeven
6
6
*******************************************************************************
7
 
* This software falls under the GNU general public license and comes WITHOUT
8
 
* ANY WARRANTY WHATSOEVER. See the file $TEXMACS_PATH/LICENSE for more details.
9
 
* If you don't have this file, write to the Free Software Foundation, Inc.,
10
 
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
7
* This software falls under the GNU general public license version 3 or later.
 
8
* It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
 
9
* in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
11
10
******************************************************************************/
12
11
 
13
12
#include "frame.hpp"
35
34
 
36
35
frame
37
36
scaling (double magnify, point shift) {
38
 
  return new scaling_rep (magnify, shift);
 
37
  return tm_new<scaling_rep> (magnify, shift);
39
38
}
40
39
 
41
40
/******************************************************************************
60
59
 
61
60
frame
62
61
rotation_2D (point center, double angle) {
63
 
  return new rotation_2D_rep (center, angle);
 
62
  return tm_new<rotation_2D_rep> (center, angle);
64
63
}
65
64
 
66
65
/******************************************************************************
82
81
    q= m * q;
83
82
    return point (q[0], q[1]); }
84
83
  point inverse_transform (point p) {
85
 
    fatal_error ("Not yet implemented", "affine_2D_rep::inverse_transform");
 
84
    FAILED ("not yet implemented");
86
85
    return p; }
87
86
  point jacobian (point p, point v, bool &error) {
88
87
    (void) p; error= false; return j * v; }
89
88
  point jacobian_of_inverse (point p, point v, bool &error) {
90
89
    (void) p; (void) v; (void) error;
91
 
    fatal_error ("Not yet implemented",
92
 
                 "affine_2D_rep::jacobian_of_inverse"); 
 
90
    FAILED ("not yet implemented");
93
91
    return p;}
94
92
  double direct_bound (point p, double eps) { return eps; }
95
93
  double inverse_bound (point p, double eps) { return eps; }
97
95
 
98
96
frame
99
97
affine_2D (matrix<double> m) {
100
 
  return new affine_2D_rep (m);
 
98
  return tm_new<affine_2D_rep> (m);
101
99
}
102
100
 
103
101
/******************************************************************************
120
118
  }
121
119
  point jacobian_of_inverse (point p, point v, bool &error) {
122
120
    (void) p; (void) v; (void) error;
123
 
    fatal_error ("Not yet implemented",
124
 
                 "compound_frame_rep::jacobian_of_inverse");
 
121
    FAILED ("not yet implemented");
125
122
    return p;
126
123
  }
127
124
  double direct_bound (point p, double eps) {
132
129
 
133
130
frame
134
131
operator * (frame f1, frame f2) {
135
 
  return new compound_frame_rep (f1, f2);
 
132
  return tm_new<compound_frame_rep> (f1, f2);
136
133
}
137
134
 
138
135
/******************************************************************************
157
154
 
158
155
frame
159
156
invert (frame f) {
160
 
  return new inverted_frame_rep (f);
 
157
  return tm_new<inverted_frame_rep> (f);
161
158
}