~ubuntu-branches/ubuntu/wily/ginkgocadx/wily-proposed

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Dmitry Smirnov
  • Date: 2013-10-24 21:28:17 UTC
  • mfrom: (1.2.2)
  • Revision ID: package-import@ubuntu.com-20131024212817-ej1skb9og09d3ht6
Tags: 3.5.0.1137.31+dfsg-1
New upstream release [October 2013]

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
*  $Id: modificacionimagen.h $
4
4
*  Ginkgo CADx Project
5
5
*
6
 
*  Copyright 2008-12 MetaEmotion S.L. All rights reserved.
 
6
*  Copyright 2008-14 MetaEmotion S.L. All rights reserved.
7
7
*  http://ginkgo-cadx.com
8
8
*
9
9
*  This file is licensed under LGPL v3 license.
43
43
                                } TipoModificacion;
44
44
 
45
45
                                // El parametro render indica si en el preprocesado de este evento, se debería apilar o no un render
46
 
                                EventoModificacionImagen(GNC::GCS::IVista* pVista = NULL, TipoModificacion tipo = ImagenCargada, int sliceAfectado = -1, bool apilarRender = true) : GNC::GCS::Events::IEvent(ginkgoEVT_Core_ModificacionImagen,0,100,pVista)
 
46
                                EventoModificacionImagen(GNC::GCS::IVista* pVista = NULL, TipoModificacion tipo = ImagenCargada, int sliceAfectado = -1, bool apilarRender = true) : GNC::GCS::Events::IEvent(ginkgoEVT_Core_ModificacionImagen, 0, 100, pVista)
47
47
                                {
48
48
                                        m_Nombre = "ModificacionImagen";
49
49
                                        m_SliceAfectado = sliceAfectado;
56
56
                                        m_newWindow = 0.0f;
57
57
                                        m_newLevel = 0.0f;
58
58
                                        m_resetWL = false;
 
59
                                        m_resetBC = false;
59
60
                                        m_resetCurrentPoint = false;
60
61
                                        m_resetZoom = false;
61
62
                                        m_resetZoomMode = ZM_CenteredBestFit;
250
251
                                        return m_resetZoom;
251
252
                                }
252
253
 
 
254
                                inline bool ResetBrightnessContrast()
 
255
                                {
 
256
                                        return m_resetBC;
 
257
                                }
 
258
 
253
259
                                inline ResetZoomMode GetResetZoomMode()
254
260
                                {
255
261
                                        return m_resetZoomMode;
265
271
                                        m_resetWL = true;
266
272
                                }
267
273
 
 
274
                                inline void EnableResetBrightnessContrast()
 
275
                                {
 
276
                                        m_resetBC = true;
 
277
                                }
 
278
 
268
279
                                inline void EnableAutoCalculeWindowLevel()
269
280
                                {
270
281
                                        m_autoCalculeWL = true;
300
311
                                int              m_SliceAfectado;
301
312
                                bool             m_ApilarRender;
302
313
                                TipoModificacion m_Tipo;
303
 
                                double                  m_newWindow;
304
 
                                double                  m_newLevel;
305
 
                                bool                            m_resetWL;
306
 
                                bool                            m_resetCurrentPoint;
307
 
                                bool                            m_resetZoom;
308
 
                                bool                            m_autoCalculeWL;
 
314
                                double                   m_newWindow;
 
315
                                double                   m_newLevel;
 
316
                                bool             m_resetWL;
 
317
                                bool             m_resetBC;
 
318
                                bool             m_resetCurrentPoint;
 
319
                                bool             m_resetZoom;
 
320
                                bool             m_autoCalculeWL;
309
321
                                ResetZoomMode    m_resetZoomMode;
310
322
                        };
311
323
                }