! Hilfe ! - email an Kuk Hwan Mieusset oder Maia Engeli. - Jeweils Mittwoch ab 12:00 im E29, Fragestunde mit Kuk Hwan und/oder Maia. - "Open Inventor Nodes Quick Reference" für die Nodes - Man-Pages für die Header-Files - Online Books für Code Beispiele Abgabetermin für die Übung ist der 30. Januar. |
// ------------ADD-SOME-ACTION-HERE----------------------------------------Was Ihr da schreibt wird jedesmal ausgeführt, wenn Euer Objekt selektiert wird.
#include <Inventor/nodes/SoFont.h> #include <Inventor/nodes/SoText2.h>in der Funktion student::selectAction()
// Choose a font SoFont *myFont = new SoFont; myFont->name.setValue("Times-Roman"); myFont->size.setValue(48.0); action->addChild(myFont); // add a Seperator so that the translation is not applied to the object SoSeparator *infoSep = new SoSeparator; // Translation so that the string is in front of the object SoTransform *infoTrans = new SoTransform; // TEXT2 = screen alligned text, no change in size, no rotation SoText2 *infoText = new SoText2; infoTrans->translation.setValue(.25,3, 0); infoText->string = "hommage a tinguely"; infoText->justification.setValue(SoText2::RIGHT); infoSep->addChild(infoTrans); infoSep->addChild(infoText); action->addChild(infoSep);
SoTransform *move = new SoTransform; move->translation.setValue(-1.0,.0,.0); selected->insertChild(move, 1);
cp student_bitmap.h /homes1/prog/abgabe/exercise12/yourname_bitmap.h
cp student.h /homes1/prog/abgabe/exercise12/yourname.h
cp student.c++ /homes1prog/abgabe/exercise12/yourname.c++
This website has been archived and is no longer maintained.