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
void PrintSelf(ostream &os, vtkIndent indent)
abstract specification for Viewports
Definition: vtkViewport.h:45
a actor that draws 2D data
Definition: vtkActor2D.h:43
virtual void GetActors2D(vtkPropCollection *)
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:81
static vtkBorderRepresentation * New()
a list of Props
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
a simple class to control print indentation
Definition: vtkIndent.h:37
vtkPolyDataMapper2D * TextureMapper
topologically and geometrically regular array of data
Definition: vtkImageData.h:43
virtual void BuildRepresentation()
virtual int RenderOverlay(vtkViewport *)
handles properties associated with a texture map
Definition: vtkTexture.h:68
represent a vtkBorderWidget
#define VTK_WIDGETS_EXPORT
represent the vtkLogoWidget
represent surface properties of a 2D image
Definition: vtkProperty2D.h:38
virtual void ReleaseGraphicsResources(vtkWindow *)
draw vtkPolyData onto the image plane
represent and manipulate 3D points
Definition: vtkPoints.h:38