[Prev][Next][Index][Thread]

opacs/osh/prop, s2o commands



    About commands in:

 gobjects | collect GObject where highlight eq 1 | prop name | s2o | dump

   Mainly what we want to do here
 is to dump user data associated to the
 highlighted graphical objects of some view.
 
   In the "o" way of doing graphic, the
 reference of the user data represented by a
 graphical object is store in the property
 "name" of the GObject.
   For example, if the user data is some
 energy deposition in a tower of an ECAL,
 the type "TOWER" is declared to the type 
 manager an if the 134th hitted tower is represented
 by a graphical object, the string "TOWER/134" is
 stored in the corresponding  GObject name.
   The above command first:
  - get graphical object 
    of the "current" view,
  - filter only the highlighted ones.
  - retreive the value o fthe "name" property
    of the selected GObjects, to have string
    form of the user data reference.
  - convert string references of the format "TOWER/134"
    to object pipe handlers.    
  - dump object that are found in the pipe
    (at this step TOWER objects).


 gobjects : 
    Get the graphical objects seen by
   the "current" camera. You change
   the current camera by:
      osh> current my_camera
    Are put in pipe the canonical references
   of the graphical objects, that is some
   strings of the form:
     GObject/1238888
     GObject/3455666
     ...
   First part is the type (or class) of the
   object (here GObject), second part if the
   identifier of the object in the class
   (here a C address).

 collect:
    Here we select a  subset of the GObject
   fouund in the pipe. We filter highlighted
   graphical objects.

 prop:
    prop get the value of a "property" for
   objects found in the pipe.
    Here we get the property "name" of the 
   GObject.
    
 s20:
    Convert string to object handler.


 dump:
    Dump objects.



      
   The basic idea is to understand
 the way we are doing link between 
 graphical objects and user data.
   If upper explanations are not sufficently
 clear, ask for more.

   
        G.Barrand