Uploaded image for project: 'Qt 3D Studio'
  1. Qt 3D Studio
  2. QT3DS-112 Enablers for dynamic scene object changes
  3. QT3DS-1123

Make it possible to set any graph object properties

    XMLWordPrintable

Details

    Description

      ...including non-animatable ones.

      Perhaps also rethink the static setters/getters used by the animation system, to get something cleaner and more compact.

       In the end we want this:

      model1->addPropertyChangeObserver(
      [](Q3DSGraphObject *obj, const QSet<QString> &keys, int changeFlags) {
          // in the first call keys is empty, changeFlags is 0
          // in the second call keys is ("position"), changeFlags is Q3DSNode::TransformChanges
          ...
      });
      
      model1->setPosition(QVector3D(0, 1, 0));
      model1->notifyPropertyChanges({ model1->setPosition(QVector3D(0, 1, 0)) });
      model1->notifyPropertyChanges({ model1->setPosition(QVector3D(0, 2, 0)) });
      

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            lagocs Laszlo Agocs
            lagocs Laszlo Agocs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes