~ubuntu-branches/ubuntu/trusty/ginkgocadx/trusty

« back to all changes in this revision

Viewing changes to src/cadxcore/eventos/estilo.h

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-07-21 11:58:53 UTC
  • mfrom: (7.2.1 sid)
  • Revision ID: package-import@ubuntu.com-20130721115853-44e7n1xujqglu78e
Tags: 3.4.0.928.29+dfsg-1
* New upstream release [July 2013]
  + new B-D: "libjsoncpp-dev".
  + new patch "unbundle-libjsoncpp.patch" to avoid building bundled
    "libjsoncpp-dev".
  + new patch "fix-wx.patch" to avoid FTBFS due to missing
    "-lwx_gtk2u_html-2.8".
* Removed unnecessary versioned Build-Depends.
* Removed obsolete lintian override.
* Reference get-orig-source implementation for orig.tar clean-up and
  DFSG-repackaging.
* Upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
*  
3
 
*  $Id: estilo.h $
4
 
*  Ginkgo CADx Project
5
 
*
6
 
*  Copyright 2008-12 MetaEmotion S.L. All rights reserved.
7
 
*  http://ginkgo-cadx.com
8
 
*
9
 
*  This file is licensed under LGPL v3 license.
10
 
*  See License.txt for details
11
 
*
12
 
*/
13
 
#pragma once
14
 
 
15
 
class vtkImageData;
16
 
class vtkGinkgoImageViewer;
17
 
 
18
 
namespace GNC {
19
 
        namespace GCS {
20
 
                namespace Events {
21
 
 
22
 
                        class EXTAPI EventoColorPaciente : public GNC::GCS::Events::IEvent
23
 
                        {
24
 
                        public:
25
 
                                typedef struct TColor {
26
 
                                        unsigned char r;
27
 
                                        unsigned char g;
28
 
                                        unsigned char b;
29
 
                                } TColor;
30
 
 
31
 
                                // El parametro render indica si en el preprocesado de este evento, se debería apilar o no un render
32
 
                                EventoColorPaciente(const std::string& idPaciente = "", TColor* pColor = NULL) : GNC::GCS::Events::IEvent(ginkgoEVT_Core_Estilo,0,100,NULL)
33
 
                                {
34
 
                                        m_idPaciente = idPaciente;
35
 
                                        m_pColor = pColor;
36
 
                                }
37
 
 
38
 
                                ~EventoColorPaciente()
39
 
                                {
40
 
                                }
41
 
 
42
 
                                virtual void pushInfo(std::ostream& out) const {
43
 
                                        out << "EventoColorPaciente";
44
 
                                }
45
 
 
46
 
                                void SetColorPaciente(TColor color)
47
 
                                {
48
 
                                        if(m_pColor != NULL) {
49
 
                                                (*m_pColor) = color;
50
 
                                        }
51
 
                                }
52
 
 
53
 
                                const std::string& GetIdPaciente()
54
 
                                {
55
 
                                        return m_idPaciente;
56
 
                                }
57
 
                        protected:
58
 
                                TColor*  m_pColor;
59
 
                                std::string m_idPaciente;
60
 
                        };
61
 
                }
62
 
        }
63
 
}