3
* $Id: imprimevistasimple.cpp 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
17
//#define _GINKGO_TRACE
18
#include <api/globals.h>
19
#include <api/internacionalizacion.h>
21
#include <wx/config.h>
23
#include <vtkSmartPointer.h>
24
#include <vtkImageMapToRGBA.h>
25
#include <vtkObject.h>
27
#include "imprimevistasimple.h"
31
namespace GNKVisualizator {
33
ImprimeVistaSimple::ImprimeVistaSimple(GNC::GCS::IWidgetsManager* pWidgetsManager, GnkPtr<GNC::GCS::IContextoEstudio> estudioAprimaria, int index ) : GNC::GCS::IImpresion (pWidgetsManager, estudioAprimaria, index)
37
ImprimeVistaSimple::~ImprimeVistaSimple()
42
void ImprimeVistaSimple::PrintImageRGB(GNC::GCS::IContratoExportacionImages::ImageType::Pointer& img, bool conWidgets, const GNC::GCS::Vector& size)
44
Imprimir(GetImage(), conWidgets, size, img);
47
void ImprimeVistaSimple::PrintImage(GNC::GCS::IContratoExportacionImages::ImageType::Pointer& img, bool conWidgets, vtkScalarsToColors* pLookUpTable, const GNC::GCS::Vector& size)
49
vtkImageMapToRGBA * pImageMap = vtkImageMapToRGBA::New();
50
pImageMap->SetInput(GetImage());
51
pImageMap->SetLookupTable(pLookUpTable);
52
pImageMap->SetOutputFormatToRGB();
54
Imprimir(pImageMap->GetOutput(), conWidgets, size, img);