Fresco/Berlin/modules/Gadgets GadgetKitImpl.cc,1.16,1.17

Tobias Hunger <[email protected]>
Newsgroups gmane.comp.video.fresco.cvs
Message-ID <[email protected]>
Update of /cvs/fresco/Fresco/Berlin/modules/Gadgets
In directory purcel:/tmp/cvs-serv1225/Berlin/modules/Gadgets

Modified Files:
	GadgetKitImpl.cc 
Log Message:
Initial checkin of a scene graph debugging framework.

To activate run the server with the -D option (and -l if you want to
see the log output of course). To get a dot-file of the current
scene graph send a USR1 signal to the server process. It will then 
dump the graph into /tmp/debug.dot. Use graphviz's dot-tool to turn that
file into a PS-drawing of the scene graph (cat /tmp/debug.dot | dot -Tps).

TODO: * add more information to the output (transformation, allocation, etc.)
      * make sure all graphics get registered. We have a couple of "unknowns"
        in the dump as of now.


Index: GadgetKitImpl.cc
===================================================================
RCS file: /cvs/fresco/Fresco/Berlin/modules/Gadgets/GadgetKitImpl.cc,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- GadgetKitImpl.cc	18 Feb 2003 07:26:30 -0000	1.16
+++ GadgetKitImpl.cc	26 Feb 2003 00:19:06 -0000	1.17
@@ -227,7 +227,8 @@
 			       BoundedValue_ptr b)
 {
   Graphic_var adjuster =
-      create_and_set_body<Graphic>(new RGBAdjuster(r, g, b), gg);
+      create_and_set_body<Graphic>(new RGBAdjuster(r, g, b), gg,
+				   "FadgetKit/rgb");
   r->attach(Observer_ptr(Graphic_ptr(adjuster)));
   g->attach(Observer_ptr(Graphic_ptr(adjuster)));
   b->attach(Observer_ptr(Graphic_ptr(adjuster)));
@@ -237,7 +238,8 @@
 Graphic_ptr GadgetKitImpl::alpha(Graphic_ptr g, BoundedValue_ptr value)
 {
   Graphic_var adjuster =
-      create_and_set_body<Graphic>(new AlphaAdjuster(value), g);
+      create_and_set_body<Graphic>(new AlphaAdjuster(value), g,
+				   "GadgetKit/alpha");
   value->attach(Observer_ptr(Graphic_ptr(adjuster)));
   return adjuster;
 }
@@ -248,7 +250,8 @@
 				    BoundedValue_ptr b)
 {
   Graphic_var adjuster =
-      create_and_set_body<Graphic>(new LightingAdjuster(r, g, b), gg);
+      create_and_set_body<Graphic>(new LightingAdjuster(r, g, b), gg,
+				   "GadgetKit/lighting");
   r->attach(Observer_ptr(Graphic_ptr(adjuster)));
   g->attach(Observer_ptr(Graphic_ptr(adjuster)));
   b->attach(Observer_ptr(Graphic_ptr(adjuster)));
@@ -262,7 +265,8 @@
 {
   Graphic_var transformer = _figure->transformer(g);
   Graphic_var adjuster =
-      create_and_set_body<Graphic>(new RotationAdjuster(axis), transformer);
+      create_and_set_body<Graphic>(new RotationAdjuster(axis), transformer,
+				   "GadgetKit/rotator");
   value->attach(Observer_ptr(Graphic_ptr(adjuster)));
   return adjuster;
 }
@@ -271,7 +275,8 @@
 {
   Graphic_var transformer = _figure->transformer(g);
   Graphic_var adjuster =
-      create_and_set_body<Graphic>(new ZoomAdjuster(), transformer);
+      create_and_set_body<Graphic>(new ZoomAdjuster(), transformer,
+				   "GadgetKit/zoomer");
   value->attach(Observer_ptr(Graphic_ptr(adjuster)));
   return adjuster;
 }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.