VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
vtkLogoRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLogoRepresentation.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
31 #ifndef __vtkLogoRepresentation_h
32 #define __vtkLogoRepresentation_h
33 
34 #include "vtkInteractionWidgetsModule.h" // For export macro
36 
37 class vtkImageData;
38 class vtkImageProperty;
39 class vtkTexture;
40 class vtkPolyData;
41 class vtkPoionts;
42 class vtkPolyDataMapper2D;
43 class vtkActor2D;
44 class vtkProperty2D;
45 
46 
47 class VTKINTERACTIONWIDGETS_EXPORT vtkLogoRepresentation : public vtkBorderRepresentation
48 {
49 public:
51  static vtkLogoRepresentation *New();
52 
54 
56  void PrintSelf(ostream& os, vtkIndent indent);
58 
60 
61  virtual void SetImage(vtkImageData *img);
62  vtkGetObjectMacro(Image,vtkImageData);
64 
66 
67  virtual void SetImageProperty(vtkProperty2D *p);
68  vtkGetObjectMacro(ImageProperty,vtkProperty2D);
70 
72  virtual void BuildRepresentation();
73 
75 
77  virtual void GetActors2D(vtkPropCollection *pc);
78  virtual void ReleaseGraphicsResources(vtkWindow*);
79  virtual int RenderOverlay(vtkViewport*);
81 
82 protected:
85 
86  // data members
87  vtkImageData *Image;
88  vtkProperty2D *ImageProperty;
89 
90  // Represent the image
91  vtkTexture *Texture;
92  vtkPoints *TexturePoints;
94  vtkPolyDataMapper2D *TextureMapper;
95  vtkActor2D *TextureActor;
96 
97  // Helper methods
98  void AdjustImageSize(double o[2], double borderSize[2], double imageSize[2]);
99 
100 private:
101  vtkLogoRepresentation(const vtkLogoRepresentation&); //Not implemented
102  void operator=(const vtkLogoRepresentation&); //Not implemented
103 };
104 
105 #endif
void PrintSelf(ostream &os, vtkIndent indent)
virtual void GetActors2D(vtkPropCollection *)
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:82
static vtkBorderRepresentation * New()
vtkPolyDataMapper2D * TextureMapper
virtual void BuildRepresentation()
virtual int RenderOverlay(vtkViewport *)
represent a vtkBorderWidget
represent the vtkLogoWidget
virtual void ReleaseGraphicsResources(vtkWindow *)