Fresco/Fresco-C++-demos/src Application.cc,1.33,1.34 FocusDemo.cc,1.18,1.19 RasterDemo.cc,1.9,1.10 TransformDemo.cc,1.10,1.11 ViewportDemo.cc,1.11,1.12
Tobias Hunger <[email protected]>
| Newsgroups | gmane.comp.video.fresco.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvs/fresco/Fresco/Fresco-C++-demos/src
In directory purcel:/tmp/cvs-serv27814/Fresco-C++-demos/src
Modified Files:
Application.cc FocusDemo.cc RasterDemo.cc TransformDemo.cc
ViewportDemo.cc
Log Message:
Renamed the methods on the ImageKit
from empty() to create_empty_raster() and
from create() to create_raster() to be more in sync with the nameing scheme of
the other Kits.
Index: Application.cc
===================================================================
RCS file: /cvs/fresco/Fresco/Fresco-C++-demos/src/Application.cc,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- Application.cc 8 Oct 2002 18:21:23 -0000 1.33
+++ Application.cc 25 Jan 2003 12:43:48 -0000 1.34
@@ -95,7 +95,7 @@
_mapper(new Mapper(_demos, Selection_var(_choice->state())))
{
_background.red = _background.green = _background.blue = 0.6; _background.alpha = 1.;
- Raster_var raster = _ik->create("fresco.png");
+ Raster_var raster = _ik->create_raster("fresco.png");
Image_var image = _fk->pixmap(raster);
Graphic_var hbox = _lk->hbox();
Graphic_var vbox = _lk->vbox();
Index: FocusDemo.cc
===================================================================
RCS file: /cvs/fresco/Fresco/Fresco-C++-demos/src/FocusDemo.cc,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- FocusDemo.cc 8 Oct 2002 18:21:23 -0000 1.18
+++ FocusDemo.cc 25 Jan 2003 12:43:48 -0000 1.19
@@ -95,10 +95,10 @@
20., spec, true)), 100.)));
vbox->append_graphic(hbox1);
vbox->append_graphic(hbox2);
- Raster_var raster = images->create("marble.png");
+ Raster_var raster = images->create_raster("marble.png");
Graphic_var texture = figures->texture(vbox, raster);
MainController_var gr = tools->group(texture);
- Raster_var pointer = images->create("ur-cursor.png");
+ Raster_var pointer = images->create_raster("ur-cursor.png");
gr->cursor(pointer);
gr->append_controller(c1);
gr->append_controller(c2);
Index: RasterDemo.cc
===================================================================
RCS file: /cvs/fresco/Fresco/Fresco-C++-demos/src/RasterDemo.cc,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -d -r1.9 -r1.10
--- RasterDemo.cc 8 Oct 2002 18:21:23 -0000 1.9
+++ RasterDemo.cc 25 Jan 2003 12:43:48 -0000 1.10
@@ -39,7 +39,7 @@
Command_var command2 = commands->log("hello World 2");
Command_var command3 = commands->log("hello World 3");
- Raster_var raster = images->create("png.png");
+ Raster_var raster = images->create_raster("png.png");
Image_var im = figures->pixmap(raster);
Graphic_var hbox = layout->hbox();
Index: TransformDemo.cc
===================================================================
RCS file: /cvs/fresco/Fresco/Fresco-C++-demos/src/TransformDemo.cc,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- TransformDemo.cc 8 Oct 2002 18:21:24 -0000 1.10
+++ TransformDemo.cc 25 Jan 2003 12:43:48 -0000 1.11
@@ -40,7 +40,7 @@
Command_var command2 = commands->log("hello World 2");
Command_var command3 = commands->log("hello World 3");
- Raster_var raster = images->create("../etc/PNG/png.png");
+ Raster_var raster = images->create_raster("../etc/PNG/png.png");
Image_var im = figures->pixmap(raster);
Graphic_var hbox = layout->hbox();
Index: ViewportDemo.cc
===================================================================
RCS file: /cvs/fresco/Fresco/Fresco-C++-demos/src/ViewportDemo.cc,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- ViewportDemo.cc 8 Oct 2002 18:21:24 -0000 1.11
+++ ViewportDemo.cc 25 Jan 2003 12:43:48 -0000 1.12
@@ -36,7 +36,7 @@
ToolKit_var tools = application->resolve<ToolKit>("IDL:fresco.org/Fresco/ToolKit:1.0");
WidgetKit_var widgets = application->resolve<WidgetKit>("IDL:fresco.org/Fresco/WidgetKit:1.0");
- Raster_var raster = images->create("landscape.png");
+ Raster_var raster = images->create_raster("landscape.png");
Image_var pixmap = figures->pixmap(raster);
Layout::Viewport_var viewport = layout->scrollable(pixmap);
Controller_var panner = widgets->panner(BoundedRange_var(viewport->adjustment(xaxis)), BoundedRange_var(viewport->adjustment(yaxis)));