Beispiel #1
0
 void setBaseTransform(const Transform& baseTransform)
 {
     assert (individualTransforms.size() == 1);
     assert (absoluteTransforms.size() == 1);
     
     individualTransforms.front() = absoluteTransforms.front() = baseTransform;
 }
Beispiel #2
0
 void updateBaseTransform()
 {
     if (orientation != currentOrientation())
     {
         orientation = currentOrientation();
         currentTransforms.front() = transformForOrientation(orientation);
     }
 }
Beispiel #3
0
 void clear()
 {
     absoluteTransforms.resize(1);
     // Important!! Due to all the swapping, the first entry in the list is not necessarily
     // the base matrix. We need to restore it.
     absoluteTransforms.front() = scale(1);
     individualTransforms.resize(1);
     clipRectStack.clear();
     glBlocks.clear();
     ops.clear();
 }
Beispiel #4
0
 TransformStack()
 {
     reset();
     individual.front() = absolute.front() = scale(1);
 }