Browsing this Thread:   1 Anonymous Users


 Bottom   Previous Topic   Next Topic  Register To Post



DVT Programming API
Just popping in
Joined:
2008/1/15 6:18
Group:
Registered Users
Posts: 2
Level : 1; EXP : 2
HP : 0 / 0
MP : 0 / 10
Offline
Hi,
I want to know how can I get started with the Programming API provided by DVTk. I downloaded the CHM file, but there is no description of what the class does, what heirarchy it follows, samples etc. Can I get any help regarding this?

Say, if i need to write a C ECHO test, what classes should I use, what kind of sessions it would be etc?

Thanks
Kaizenn

Posted on: 2010/10/6 13:44
Transfer the post to other applications Transfer


Re: DVT Programming API
Just can't stay away
Joined:
2007/4/3 19:58
From Stamford, Connecticut
Group:
Registered Users
Posts: 57
Level : 6; EXP : 41
HP : 0 / 135
MP : 19 / 2457
Offline
Hi Kaizenn,

For the DVTk API there are tutorials and examples, under the "Developer" section. Although if you are not certain about the classes to use for a C-ECHO, you may need to become familiar with DICOM standard prior to attempting to use the library. Or if you are familiar with DICOM, instead of using the DVTk API, you may wish to use the "ds" scripts from the DVTk gui. There are many more examples to follow with the program and the User Guide is helpful. Once you get the idea with the ds scripts you could then move into the DVTk API.

Hope the suggestions help.

RoseAnn

Posted on: 2010/10/6 16:05
_________________
Enjoy life, this is not a dress rehearsal.
Transfer the post to other applications Transfer


Re: DVT Programming API
Just popping in
Joined:
2008/1/15 6:18
Group:
Registered Users
Posts: 2
Level : 1; EXP : 2
HP : 0 / 0
MP : 0 / 10
Offline
Hi RoseAnn,
Thanks for the reply.
I am quite familiar to the standard and I understand the ds scripts. I actually wanted to understand the API. The structure of the classes, a brief explanation of what that class intends to do etc is what I need to know.
C ECHO is an example I wanted to try as that is the easiest and I can get to know what classes I need to do that...coz with the chm file available...someone new would need to understand the essence of the class by its name.
Some sample code would really help. I had downloaded some sample code that was available and it seems to be very old code.

Thanks, Kaizenn.

Posted on: 2010/10/7 7:21
Transfer the post to other applications Transfer


Re: DVT Programming API
Just can't stay away
Joined:
2007/4/3 19:58
From Stamford, Connecticut
Group:
Registered Users
Posts: 57
Level : 6; EXP : 41
HP : 0 / 135
MP : 19 / 2457
Offline
Hi Kaizenn,

I went through the same thing and I am still going through it. I had been using the ds scripts for approximately 8 years and this year decided to attempt vbs, even though I was not familiar with vbs. So, what I did was I started with the tutorials and then started to modify the myQuerySCU and myQuerySCP. If you look, you will see that my most recent posts are related to using the API.

I personally find that the online version of the help files is a little better than the downloaded one:
http://www.dvtk.org/uploads/Files/www ... r/API-Documentation/html/

In addition, I have downloaded and installed MS VB Express (which is free). I have loaded the library into that and it gives me some help when attempting to use different parts of the library. I also like using the vbs scripts in the gui, since I do not need to worry about setting up the environment, such as definition files, result files, and most validation.

The following is some code I added to the myQuerySCP tutorial to determine if a C-ECHO was received and to provide a C-ECHO response (I hope it helps):
Dim receivedEchoRequest As Boolean = False
If String.Compare(RequestRoot, "1.2.840.10008.1.1") = 0 Then
Dim theCEchoResponse As DicomMessage = New DicomMessage(DimseCommand.CECHORSP)
Send(theCEchoResponse)
receivedEchoRequest = True
End If

If receivedEchoRequest = False Then
Dim theCFindResponse As DicomMessage = New DicomMessage(DimseCommand.CFINDRSP)
'Setting Response Data Set tags to tags given in Request Data Set.
Dim RequestSetCount As Integer = theCFindRequest.DataSet.Count
Dim ResponseData As DataSet = theCFindRequest.DataSet
Dim ResponseSetCount As Integer = ResponseData.Count
Dim ResponseNumber As Integer = 0
While ResponseNumber < RequestSetCount
Dim rsptag As String = ResponseData.Item(ResponseNumber).TagSequenceString
Dim rspvr As VR = ResponseData.GetVR(rsptag)
' MsgBox(rsptag)
theCFindResponse.Set(rsptag, rspvr, "")
ResponseNumber += 1
End While

I am certain that there are better ways to do things with VB, but I am hoping that this helps as an example.

Good luck.
RoseAnn

Posted on: 2010/10/7 18:46
_________________
Enjoy life, this is not a dress rehearsal.
Transfer the post to other applications Transfer



 Top   Previous Topic   Next Topic

 Register To Post


You can view topic.
You cannot start a new topic.
You cannot reply to posts.
You cannot edit your posts.
You cannot delete your posts.
You cannot add new polls.
You cannot vote in polls.
You cannot attach files to posts.
You cannot post without approval.

[Advanced Search]