📄 udataset.h
字号:
//---------------------------------------------------------------------------
// This file is part of Dicom Explorer, see http://www.sourceforge.net/projects/dcmsee
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU Lesser General Public License as published
// by the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This software is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// Liu Jie (liucoldstar@yahoo.com)
//
//---------------------------------------------------------------------------
#ifndef uDataSetH
#define uDataSetH
#include <vcl.h>
#include <stdio.h>
#include "uDictionary.h"
#include "uCommon.h"
#include "uException.h"
//---------------------------------------------------------------------------
class CDataSet
{
private:
unsigned int m_nLength;
unsigned short int m_nElement;
unsigned short int m_nGroup;
char *m_pValue;
TData *m_pData;
TfrmDictionary *m_pDictionary;
HANDLE m_hFile;
AnsiString m_FileName;
AnsiString m_Item;
unsigned int m_nOffset;
unsigned int m_nFileSize;
private:
void __fastcall ReadMeta(void);
bool __fastcall ReadTag(void);
void __fastcall ReadVR(void);
void __fastcall ReadLength(int nWidth);
void __fastcall ReadValue(void);
void __fastcall ReadDataSet(void);
void __fastcall CopyValue(void);
void __fastcall FormatHex(char *pBuffer,int nItem);
void __fastcall Skip(int nStep);
void __fastcall GetTransferSyntax(void);
void __fastcall Check(void);
void __fastcall GetImageInfomation(void);
bool __fastcall DistillImage(void);
void __fastcall PreCheck(void);
void __fastcall CopyVR(void);
void __fastcall DSToFloat(TData *pData,float &fFst,float &fSec);
int __fastcall Bind(void);
int __fastcall Swap(int nItem);
int __fastcall VRTypeToInt(char *pValue);
unsigned int __fastcall ISToInt(char *pValue,unsigned int nValueWidth);
unsigned int __fastcall ColorTypeToInt(char *pValue,unsigned int nValueWidth);
bool IsValid(char Ch);
public:
TList *m_pList;
TImageInformation *m_pImageInformation;
public:
__fastcall CDataSet(void);
__fastcall ~CDataSet();
bool __fastcall Process(void);
void __fastcall SetFile(char *pFileName);
void __fastcall SetFile(HANDLE hFile);
void __fastcall SetFile(AnsiString FileName);
void __fastcall Clear(void);
};
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -