include file | #include <Inventor/nodes/SoScale.h> |
declaration | SoScale *myScale = new SoScale |
SoScale *yourScale = new SoScale |
SoScale *herScale = new SoScale |
field(attribute) | myScale -> scaleFactor.setValue(1,5,1); |
yourScale -> scaleFactor.setValue(7,0.4,4); |
herScale -> scaleFactor.setValue(0.2,0.4,6); |
include file | #include <Inventor/nodes/SoTransform.h> |
declaration | SoTransform *move1 = new SoTransform; |
SoTransform *move2 = new SoTransform; |
SoTransform *move3 = new SoTransform; |
field(attribute) | move1 -> scaleFactor.setValue(3.0, 0.5,3.0); |
move2 -> center.setValue(2.0,-2.0,1.0); |
move2 -> scaleFactor.setValue(0.3, 2.0, 0.3); |
move2 -> translation.setValue(0.0,4.0,0.0); |
move2 -> scaleOrientation.setValue(30.0,23.0,-300.0,10.0); |
move3 -> translation.setValue(0.0,2.0,0.0); |
move3 -> scaleFactor.setValue(3.0, 0.50, 3.0); |
move3 -> rotation.setValue(60.0,0.0,0.0,170.0); |
move3 -> center.setValue(-1,2,1); |
move3 -> scaleOrientation.setValue(-30.0,-23.0,300.0,-10.0); |
include file | #include <Inventor/nodes/SoRotationXYZ.h> |
declaration | SoRotationXYZ *kakudo1 = new SoRotationXYZ; |
SoRotationXYZ *kakudo2 = new SoRotationXYZ; |
SoRotationXYZ *kakudo3 = new SoRotationXYZ; |
field(attribute) |
kakudo1 -> angle = M_PI/4; |
kakudo1 -> axis = SoRotationXYZ::Y; |
kakudo2 -> angle = M_PI/4; |
kakudo2 -> axis = SoRotationXYZ::X; |
kakudo3 -> angle = M_PI/4; |
kakudo3 -> axis = SoRotationXYZ::Z |