1 /*
2 *
3 * Copyright (C) 1996-2002, OFFIS
4 *
5 * This software and supporting documentation were developed by
6 *
7 * Kuratorium OFFIS e.V.
8 * Healthcare Information and Communication Systems
9 * Escherweg 2
10 * D-26121 Oldenburg, Germany
11 *
12 * THIS SOFTWARE IS MADE AVAILABLE, AS IS, AND OFFIS MAKES NO WARRANTY
13 * REGARDING THE SOFTWARE, ITS PERFORMANCE, ITS MERCHANTABILITY OR
14 * FITNESS FOR ANY PARTICULAR USE, FREEDOM FROM ANY COMPUTER DISEASES OR
15 * ITS CONFORMITY TO ANY SPECIFICATION. THE ENTIRE RISK AS TO QUALITY AND
16 * PERFORMANCE OF THE SOFTWARE IS WITH THE USER.
17 *
18 * Module: dcmimgle
19 *
20 * Author: Joerg Riesmeier
21 *
22 * Purpose: DicomDisplayLUT (Source)
23 *
24 */
25
26
27 #include "osconfig.h"
28
29 #include "didislut.h"
30
31
32 /*----------------*
33 * constructors *
34 *----------------*/
35
DiDisplayLUT(const unsigned long count,const Uint16 max,const double amb,const double illum)36 DiDisplayLUT::DiDisplayLUT(const unsigned long count,
37 const Uint16 max,
38 const double amb,
39 const double illum)
40 : DiBaseLUT(count, DicomImageClass::tobits(max, 0)),
41 AmbientLight((amb > 0) ? amb : 0),
42 Illumination((illum > 0) ? illum : 0)
43 {
44 }
45
46
47 /*--------------*
48 * destructor *
49 *--------------*/
50
~DiDisplayLUT()51 DiDisplayLUT::~DiDisplayLUT()
52 {
53 }
54