Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Visualization and interaction of custom objects
Forum Updated to NodeBB v4.3 + New Features

Visualization and interaction of custom objects

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 139 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    simonma
    wrote on last edited by
    #1

    Going through the documentation of model-view programming and Qt 3D it is not completely clear how you should proceed to use Qt to visualize and interact with a custom object.

    More specifically, assume that the custom object is a planar graph that is embedded in some plane in the 3D space. This just means that every node in your graph has a 3D coordinate, and every face of the graph is some polygon in 3D. Moreover, assume edges have a type one of A, B, or C. Depending on the type an edge should be visualized differently.

    You can assume that these type of graphs are captured by a class from a third-party library, say CustomGraph.
    This class has all kind of iterators that goes over faces, nodes, edges.
    By subclassing an observer class for CustomGraph it is possible to add callbacks to data changes of CustomGraph.

    How should I use QAsbtractItemModel to make a model class that uses CustomGraph in the background.
    Or is QAbstractItemModel not really suited for this type of application.
    And how do I visualize this model using the Qt 3D framework.

    The more detailed the answer, the better of course. But I understand that I cannot expect a complete answer, so if I can get like a list of classes I need to subclass and how they interact with each other, then that's satisfactory.

    Thanks in advance

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved