3
* $Id: iimpresion.h 3713 2011-04-15 12:55:23Z tovar $
6
* Copyright 2008-10 MetaEmotion S.L. All rights reserved.
7
* http://ginkgo-cadx.com
9
* This file is licensed under LGPL v3 license.
10
* See License.txt for details
13
// Forward declarations
16
#include <api/icontextoestudio.h>
17
#include <export/icontratoscore.h>
21
class IWidgetsManager;
22
class IWidgetsRenderer;
29
// Clase con helpers de impresion. Base comun de todas las interfaces de impresion de vistas.
30
class EXTAPI IImpresion {
33
IImpresion(GNC::GCS::IWidgetsManager* pWidgetsManager, const GnkPtr<GNC::GCS::IContextoEstudio>& pContextoEstudio, int index);
37
m_pWidgetsManager = NULL;
42
void CopiarRGBEnRGBA32(unsigned char* src, unsigned char* dst, unsigned int size)
44
for (unsigned int off = 0; off < size; ++off) {
53
void CopiarRGBA32EnRGB(unsigned char* src, unsigned char* dst, unsigned int size)
55
for (unsigned int off = 0; off < size; ++off) {
66
vtkSmartPointer<vtkImageData> GetImage();
68
void Imprimir(vtkImageData* imageData, bool conWidgets, const GNC::GCS::Vector& size, GNC::GCS::IContratoExportacionImages::ImageType::Pointer& out);
70
void ImprimirConWidgets(GNC::GCS::IContratoExportacionImages::ImageType::Pointer& img, const GNC::GCS::Vector& aspectRatio);
72
GNC::GCS::IWidgetsManager* m_pWidgetsManager;
73
GnkPtr<GNC::GCS::IContextoEstudioReferido> m_pEstudioReferido;