![]() |
ImFusion C++ SDK 4.5.0
|
#include <ImFusion/Dicom/GUI/TagsWidget.h>
The TagsWidget class provides a widget to display dicom tags. More...
The TagsWidget class provides a widget to display dicom tags.
All tags are displayed in a QTableView with 3 columns for tag id, tag name and tag value. Additionally a QLineEdit for filtering is provided. Modifying the displayed DcmDataset from outside is not supported. If the DcmDataset was modified call reloadTags or setDataset to keep the widget consistent.
Public Slots | |
| void | setDataset (std::shared_ptr< DcmDataset > dataset) |
| Inserts all tags from the dataset in the table. | |
| void | setDatasets (const std::vector< std::shared_ptr< DcmDataset > > &datasets) |
| void | setEditable (bool editable) |
| If set, allows the user to modify the underlying DcmDatasets. | |
| void | setCurrentFrame (int frame) |
| Shows the tags of the given frame. | |
| void | reloadTags () |
| Clears the tags and reloads all tags from the dataset. | |
Signals | |
| void | editableChanged (bool editable) |
| void | savedRawBuffer (QString filepath) |
| Emitted when a binary element was written to disk. | |
Public Member Functions | |
| TagsWidget (QWidget *parent=nullptr) | |
| Creates an empty TagsWidget. | |
| TagsWidget (std::shared_ptr< DcmDataset > dataset, QWidget *parent=nullptr) | |
| Creates a TagsWidget and initializes it with the tags from the given dataset. | |
| bool | editable () const |
| int | currentFrame () const |
| Returns the currently displayed frame index. | |
Properties | |
| bool | editable |
|
slot |
Inserts all tags from the dataset in the table.
Clears tags from any previously displayed dataset. If dataset is 0, the widget will show an empty table.
|
slot |
If set, allows the user to modify the underlying DcmDatasets.
The user can
|
slot |
Shows the tags of the given frame.
frame will be clamped to the range of the underlying datasets.
|
signal |
Emitted when a binary element was written to disk.
Can be used to run an algorithm on the file.