@@ -502,6 +502,11 @@ void AnimationWindow::cameraPositionIsometric()
502
502
mpSceneView->getCameraManipulator ()->setByMatrix (mat);
503
503
}
504
504
505
+
506
+ /* !
507
+ * \brief AnimationWindow::cameraPositionLeft1
508
+ * sets the camera position to Left 1
509
+ */
505
510
void AnimationWindow::cameraPositionLeft1 ()
506
511
{
507
512
double d = computeDistanceToOrigin ();
@@ -513,34 +518,23 @@ void AnimationWindow::cameraPositionLeft1()
513
518
}
514
519
515
520
/* !
516
- * \brief AnimationWindow::cameraPositionXY
517
- * sets the camera position to XY
521
+ * \brief AnimationWindow::cameraPositionLeft2
522
+ * sets the camera position to Left 2
518
523
*/
519
524
void AnimationWindow::cameraPositionLeft2 ()
520
525
{
521
- // the new orientation
522
- // osg::Matrix3 newOrient = osg::Matrix3(1, 0, 0, 0, 0, 1, 0, -1, 0);
523
- osg::ref_ptr<osgGA::CameraManipulator> manipulator = mpSceneView->getCameraManipulator ();
524
- osg::Matrixd mat2 = manipulator->getMatrix ();
525
-
526
- std::stringstream ss;
527
- ss << " Matrix:\n " << mat2 (0 ,0 ) << " , " << mat2 (0 ,1 ) << " , " << mat2 (0 ,2 ) << " , " << mat2 (0 ,3 ) << " \n "
528
- << mat2 (1 ,0 ) << " , " << mat2 (1 ,1 ) << " , " << mat2 (1 ,2 ) << " , " << mat2 (1 ,3 ) << " \n "
529
- << mat2 (2 ,0 ) << " , " << mat2 (2 ,1 ) << " , " << mat2 (2 ,2 ) << " , " << mat2 (2 ,3 ) << " \n "
530
- << mat2 (3 ,0 ) << " , " << mat2 (3 ,1 ) << " , " << mat2 (3 ,2 ) << " , " << mat2 (3 ,3 ) << " \n\n " ;
531
- MessagesWidget::instance ()->addGUIMessage (MessageItem (MessageItem::MetaModel, " " , false , 0 , 0 , 0 , 0 , QString (ss.str ().c_str ()),
532
- Helper::scriptingKind, Helper::errorLevel));
533
-
534
-
535
-
536
526
double d = computeDistanceToOrigin ();
537
527
osg::Matrixd mat = osg::Matrixd (-1 , 0 , 0 , 0 ,
538
- 0 , 1 , 0 , 0 ,
539
- 0 , 0 ,-1 , 0 ,
540
- 0 , 0 ,-d, 1 );
528
+ 0 , 1 , 0 , 0 ,
529
+ 0 , 0 ,-1 , 0 ,
530
+ 0 , 0 ,-d, 1 );
541
531
mpSceneView->getCameraManipulator ()->setByMatrix (mat);
542
532
}
543
533
534
+ /* !
535
+ * \brief AnimationWindow::cameraPositionRight1
536
+ * sets the camera position to Right 1
537
+ */
544
538
void AnimationWindow::cameraPositionRight1 ()
545
539
{
546
540
double d = computeDistanceToOrigin ();
@@ -552,8 +546,8 @@ void AnimationWindow::cameraPositionRight1()
552
546
}
553
547
554
548
/* !
555
- * \brief AnimationWindow::cameraPositionXY
556
- * sets the camera position to XY
549
+ * \brief AnimationWindow::cameraPositionRight2
550
+ * sets the camera position to Right 2
557
551
*/
558
552
void AnimationWindow::cameraPositionRight2 ()
559
553
{
@@ -565,6 +559,10 @@ void AnimationWindow::cameraPositionRight2()
565
559
mpSceneView->getCameraManipulator ()->setByMatrix (mat);
566
560
}
567
561
562
+ /* !
563
+ * \brief AnimationWindow::cameraPositionFront1
564
+ * sets the camera position to Front 1
565
+ */
568
566
void AnimationWindow::cameraPositionFront1 ()
569
567
{
570
568
double d = computeDistanceToOrigin ();
@@ -575,6 +573,10 @@ void AnimationWindow::cameraPositionFront1()
575
573
mpSceneView->getCameraManipulator ()->setByMatrix (mat);
576
574
}
577
575
576
+ /* !
577
+ * \brief AnimationWindow::cameraPositionFront2
578
+ * sets the camera position to Front 2
579
+ */
578
580
void AnimationWindow::cameraPositionFront2 ()
579
581
{
580
582
double d = computeDistanceToOrigin ();
@@ -585,6 +587,10 @@ void AnimationWindow::cameraPositionFront2()
585
587
mpSceneView->getCameraManipulator ()->setByMatrix (mat);
586
588
}
587
589
590
+ /* !
591
+ * \brief AnimationWindow::cameraPositionFront3
592
+ * sets the camera position to Front 3
593
+ */
588
594
void AnimationWindow::cameraPositionFront3 ()
589
595
{
590
596
double d = computeDistanceToOrigin ();
@@ -595,6 +601,10 @@ void AnimationWindow::cameraPositionFront3()
595
601
mpSceneView->getCameraManipulator ()->setByMatrix (mat);
596
602
}
597
603
604
+ /* !
605
+ * \brief AnimationWindow::cameraPositionBack1
606
+ * sets the camera position to Back 1
607
+ */
598
608
void AnimationWindow::cameraPositionBack1 ()
599
609
{
600
610
double d = computeDistanceToOrigin ();
@@ -606,8 +616,8 @@ void AnimationWindow::cameraPositionBack1()
606
616
}
607
617
608
618
/* !
609
- * \brief AnimationWindow::cameraPositionXZ
610
- * sets the camera position to XZ
619
+ * \brief AnimationWindow::cameraPositionBack2
620
+ * sets the camera position to Back 2
611
621
*/
612
622
void AnimationWindow::cameraPositionBack2 ()
613
623
{
@@ -619,6 +629,10 @@ void AnimationWindow::cameraPositionBack2()
619
629
mpSceneView->getCameraManipulator ()->setByMatrix (mat);
620
630
}
621
631
632
+ /* !
633
+ * \brief AnimationWindow::cameraPositionBack3
634
+ * sets the camera position to Back 3
635
+ */
622
636
void AnimationWindow::cameraPositionBack3 ()
623
637
{
624
638
double d = computeDistanceToOrigin ();
@@ -629,6 +643,10 @@ void AnimationWindow::cameraPositionBack3()
629
643
mpSceneView->getCameraManipulator ()->setByMatrix (mat);
630
644
}
631
645
646
+ /* !
647
+ * \brief AnimationWindow::cameraPositionTop1
648
+ * sets the camera position to Top 1
649
+ */
632
650
void AnimationWindow::cameraPositionTop1 ()
633
651
{
634
652
double d = computeDistanceToOrigin ();
@@ -640,8 +658,8 @@ void AnimationWindow::cameraPositionTop1()
640
658
}
641
659
642
660
/* !
643
- * \brief AnimationWindow::cameraPositionYZ
644
- * sets the camera position to YZ
661
+ * \brief AnimationWindow::cameraPositionTop2
662
+ * sets the camera position to Top 2
645
663
*/
646
664
void AnimationWindow::cameraPositionTop2 ()
647
665
{
@@ -653,6 +671,10 @@ void AnimationWindow::cameraPositionTop2()
653
671
mpSceneView->getCameraManipulator ()->setByMatrix (mat);
654
672
}
655
673
674
+ /* !
675
+ * \brief AnimationWindow::cameraPositionTop3
676
+ * sets the camera position to Top 3
677
+ */
656
678
void AnimationWindow::cameraPositionTop3 ()
657
679
{
658
680
double d = computeDistanceToOrigin ();
@@ -663,6 +685,10 @@ void AnimationWindow::cameraPositionTop3()
663
685
mpSceneView->getCameraManipulator ()->setByMatrix (mat);
664
686
}
665
687
688
+ /* !
689
+ * \brief AnimationWindow::cameraPositionBottom1
690
+ * sets the camera position to Bottom 1
691
+ */
666
692
void AnimationWindow::cameraPositionBottom1 ()
667
693
{
668
694
double d = computeDistanceToOrigin ();
@@ -673,6 +699,10 @@ void AnimationWindow::cameraPositionBottom1()
673
699
mpSceneView->getCameraManipulator ()->setByMatrix (mat);
674
700
}
675
701
702
+ /* !
703
+ * \brief AnimationWindow::cameraPositionBottom2
704
+ * sets the camera position to Bottom 2
705
+ */
676
706
void AnimationWindow::cameraPositionBottom2 ()
677
707
{
678
708
double d = computeDistanceToOrigin ();
@@ -683,6 +713,10 @@ void AnimationWindow::cameraPositionBottom2()
683
713
mpSceneView->getCameraManipulator ()->setByMatrix (mat);
684
714
}
685
715
716
+ /* !
717
+ * \brief AnimationWindow::cameraPositionBottom3
718
+ * sets the camera position to Bottom 3
719
+ */
686
720
void AnimationWindow::cameraPositionBottom3 ()
687
721
{
688
722
double d = computeDistanceToOrigin ();
0 commit comments