VTK
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 
35 
36 class vtkImageData;
37 class vtkImageProperty;
38 class vtkTexture;
39 class vtkPolyData;
40 class vtkPoionts;
42 class vtkActor2D;
43 class vtkProperty2D;
44 
45 
47 {
48 public:
50  static vtkLogoRepresentation *New();
51 
53 
55  void PrintSelf(ostream& os, vtkIndent indent);
57 
59 
60  virtual void SetImage(vtkImageData *img);
61  vtkGetObjectMacro(Image,vtkImageData);
63 
65 
66  virtual void SetImageProperty(vtkProperty2D *p);
67  vtkGetObjectMacro(ImageProperty,vtkProperty2D);
69 
71  virtual void BuildRepresentation();
72 
74 
76  virtual void GetActors2D(vtkPropCollection *pc);
77  virtual void ReleaseGraphicsResources(vtkWindow*);
78  virtual int RenderOverlay(vtkViewport*);
80 
81 protected:
84 
85  // data members
88 
89  // Represent the image
95 
96  // Helper methods
97  void AdjustImageSize(double o[2], double borderSize[2], double imageSize[2]);
98 
99 private:
100  vtkLogoRepresentation(const vtkLogoRepresentation&); //Not implemented
101  void operator=(const vtkLogoRepresentation&); //Not implemented
102 };
103 
104 #endif