NDEVR
API Documentation
NDEVRChartLogic.h
1#pragma once
2#include "DLLInfo.h"
3#include <NDEVR/ImageModel.h>
4#include <NDEVR/ImageModelDialog.h>
5#include <NDEVR/DesignObjectOrientation.h>
6#include <NDEVR/CustomModelLogic.h>
7#include <NDEVR/QTWindowManager.h>
8#include <NDEVR/SceneTreeWidget.h>
9#include <NDEVR/Ribbon.h>
10#include <NDEVR/RibbonSubGroup.h>
11#include <NDEVR/RibbonGroup.h>
12#include <NDEVR/NDEVRRibbon.h>
13#include <NDEVR/SceneTree.h>
14#include <NDEVR/DesignObjectDialog.h>
15#include <NDEVR/QTIconManager.h>
16#include <NDEVR/Button.h>
17#include <NDEVR/QTTools.h>
18namespace NDEVR
19{
24 class NDEVR_API ImageModelLogic : public CustomModelLogic
25 {
26 public:
32 static void SetEnabled(bool is_enabled, QTModelManager* manager);
38 virtual bool canBeHandledBySelectionWidget() const override { return false; };
39 protected:
45 virtual void setupPropertiesDialog(DesignObjectDialog* dialog, const DynamicPointer<QTDesignObject>& object) override;
47 Button* m_play_button = nullptr;
49 };
50}
A core widget that allows the user to click one of many button types.
Definition Button.h:68
An easy interface for adding common SoftwareInterfaces relating to a Model to the program logic.
A popup dialog for showing options or information to the user for a particular DesignObject.
A hash-based key-value store, useful for quick associative lookups.
Definition Dictionary.h:64
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:356
Logic for handling Images in the NDEVR space, including dialogs and imports.
Button * m_play_button
Button for playing video content in image models.
Dictionary< UUID, Buffer< QPointer< Button > > > m_buttons
Maps model UUIDs to their associated UI buttons.
static void SetEnabled(bool is_enabled, QTModelManager *manager)
Enables or disables the default image model logic for the given manager.
Model m_last_model
The most recently interacted-with image model.
ImageModelLogic(QTModelManager *manager)
Constructs the image model logic for the given manager.
virtual void setupPropertiesDialog(DesignObjectDialog *dialog, const DynamicPointer< QTDesignObject > &object) override
Modifies property dialogs when image objects are created or selected.
virtual bool canBeHandledBySelectionWidget() const override
Returns whether this model type can be handled by the generic selection widget.
A core class that represents a node on model hierarchy.
Definition Model.h:292
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
The primary namespace for the NDEVR SDK.