Comments of DicomLoader
This commit is contained in:
@@ -7,6 +7,10 @@
|
||||
#include "Customwindow.h"
|
||||
#include "pqFontPropertyWidget.h"
|
||||
|
||||
/**
|
||||
* @brief 主窗口Class
|
||||
* 继承自QMainWindow,主要用于显示整个界面
|
||||
*/
|
||||
class QDicomViewer : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
@@ -23,10 +27,21 @@ public slots:
|
||||
private:
|
||||
Ui::QDicomViewerClass *ui;
|
||||
|
||||
/**
|
||||
* 从qrc中读取指定抿成的StyleSheet文件
|
||||
* @param sheetName StyleSheet文件名
|
||||
*/
|
||||
void loadStyleSheet(const QString &sheetName);
|
||||
/**
|
||||
* 初始化函数,主要实现了Button的构建和槽函数绑定
|
||||
*/
|
||||
void Initial();
|
||||
void createToolButton();
|
||||
|
||||
|
||||
/**
|
||||
* 用于设置ToolButton相关的属性(文字、图标、槽等)的一组函数
|
||||
* @{
|
||||
*/
|
||||
void SetupFileTool(QToolButton* fileBtn);
|
||||
void SetupImportTool(QToolButton* importBtn);
|
||||
void SetupExportTool(QToolButton *saveBtn);
|
||||
@@ -51,12 +66,38 @@ private:
|
||||
void SetupMaximizeTool(QToolButton *btnmaximize);
|
||||
void SetupMinimizeTool(QToolButton *btnminimize);
|
||||
void SetupCloseTool(QToolButton *btnclose);
|
||||
//@}
|
||||
|
||||
|
||||
/**
|
||||
* 设置是否显示缩略图栏
|
||||
* TODO:考虑改名为setThumbnailBarDisplay
|
||||
* @param value
|
||||
*/
|
||||
void displayThumbnailBar(bool value);
|
||||
|
||||
/**
|
||||
* 打开DICOM,并在界面上绘制出显示效果
|
||||
* @param dicomName DICOM文件路径
|
||||
* @param openMode 文件打开方式,文件方式或文件夹方式
|
||||
*/
|
||||
void drawDICOM(const std::string &dicomName, SeriesOpenMode openMode);
|
||||
void setConnections();
|
||||
|
||||
/**
|
||||
* 设置部分空间的槽函数连接
|
||||
*/
|
||||
void SetupConnections();
|
||||
|
||||
/**
|
||||
* 按照annType的类型,在Container中执行对应的Measurement操作
|
||||
* @param Container 包含RenderWindow的QTWidget容器
|
||||
* @param annType 需要执行操作的AnnotationActorType
|
||||
*/
|
||||
void executeActiveMeasure(ViewContainerWidget *Container, AnnotationActorType annType);
|
||||
|
||||
/**
|
||||
* 为对应的DicomImageView构建对应的播放控件
|
||||
* @param v
|
||||
*/
|
||||
void createVCRToolbar(DicomImageView *v);
|
||||
|
||||
QIcon icon_manual;
|
||||
|
||||
Reference in New Issue
Block a user