Functions(YART)

Save paper! Don't print out this manpage.

BUILT-IN FUNCTIONS
Additionally there are a lot of Tcl functions (control structures, list access, etc.), available in YART, too. These are described in the Tcl manual page.

  AttributeObject
This is more a function than an object. Using this function you may set the default attribute values of Surface-, Fillstyle-, and other attributes. The syntax as the same as when calling an primitive object.

  delete
delete Obj1 [... ObjN] Delete a number of objects. You can spcify more than one. The semantics is identical to the C++ operator.

  RT_CLASS
RT_CLASS Class-Name Parent-Class {Member-List} {Parameter-List} {Parameter-Types} {Description} {Body} This call creates a new Tcl Class Class-Name. Parent-Class can be an empty string if you don't have a parent class fot this class. Member-List contains a list of true members that are local to every instanced object. Parameter-List contains a list of constructor parameters and Parameter-Types the related types. Both lists can be empty. In every case the lists should have the same size. You should enter a verbal Description of the class. And finally you should specify the function Body of the constructor. Inside the constructor and the methods use the THIS variable to refer the current object.

  RT_fixedCoordRot
RT_fixedCoordRot Primitive Rotation-Vector Rotate a Primitive in the initial coordinate system.

  RT_fixedCoordScale
RT_fixedCoordScale Primitive Scale-Vector Scale a Primitive in the initial coordinate system.

  RT_fixedCoordTrans
RT_fixedCoordTrans Primitive Translation-Vector Translate a Primitive in the initial coordinate system.

  RT_fixedPointRot
RT_fixedPointRot Primitive WC-Point Rotate-Vector Lookat-Camera Rotate a Primitive around a Point in the initial coordinate system.

  RT_include
RT_include Class [Overwrite] Include a YART Tcl-class file. The filename should be identically to the Class, with the exception that the related file has an extension .cls. If the flag Overwrite is set then an existing class with the same name will not be overridden. On default the new class definition will be included in every case. The search happens in $GOOD_ROOT_DIR/classes.

  RT_load
RT_load File Reads and evaluates a YART- or Tcl-File. All existing objects will deleted, 'cos RT_new will be called internally.

  RT_METHOD
RT_METHOD Class-Name Method-Name {Parameter-List} {Parameter-Types} {Description} {Body} Using this command you can append a new method to a class. Thus the class should be created before. If this method already exists, the former one will be overwritten. Parameter-List contains a list of method parameters and Parameter-Types the related types. Both lists can be empty. In every case the lists should have the same size. You should enter a verbal Description of the method. And finally you should specify the function Body of the method. Inside the constructor and the methods use the THIS variable to refer the current object.

  RT_new
RT_new Remove all YART-Objects.

  RT_packages
RT_packages Returns a list of installed C++ packages.

  RT_primitiveClasses
RT_primitiveClasses Returns a list of all C++ Primitive Classes. The format is: {Package Description {Class1 ... ClassN} {...}}.

  RT_primitives
RT_primitives Returns a list of all non-hidden primitives.

  RT_PRIMITIVE_CLASS
RT_PRIMITIVE_CLASS Class-Name Parent-Class {Member-List} {Parameter-List} {Parameter-Types} {Description} {Body} This call creates a new Tcl Class Class-Name that will contain a top primitive automatically. Parent-Class can be an empty string if you don't have a parent class fot this class. Member-List contains a list of true members that are local to every instanced object. Parameter-List contains a list of constructor parameters and Parameter-Types the related types. Both lists can be empty. In every case the lists should have the same size. You should enter a verbal Description of the class. And finally you should specify the function Body of the constructor. Inside the constructor and the methods use the THIS variable to refer the current object.

  RT_sleep
RT_sleep N[Integer] Sleep for N milliseconds.

  RT_source
RT_source File [Dirs] This extended source-command supports an optional number of directorys. In that directorys will be searched for the file. If the file is found it will be evaluated. First level subdirectorys will be supported automatically.

AUTHOR

ekki@prakinf.tu-ilmenau.de