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 
34 #include "vtkInteractionWidgetsModule.h" // For export macro
36 
37 class vtkImageData;
38 class vtkImageProperty;
39 class vtkTexture;
40 class vtkPolyData;
41 class vtkPoionts;
43 class vtkTexturedActor2D;
44 class vtkProperty2D;
45 
46 
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
89 
90  // Represent the image
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
actor that draws 2D data with texture support
void PrintSelf(ostream &os, vtkIndent indent)
abstract specification for Viewports
Definition: vtkViewport.h:46
image display properties
virtual void GetActors2D(vtkPropCollection *)
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
static vtkBorderRepresentation * New()
a list of Props
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
#define VTKINTERACTIONWIDGETS_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkPolyDataMapper2D * TextureMapper
vtkTexturedActor2D * TextureActor
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
virtual void BuildRepresentation()
virtual int RenderOverlay(vtkViewport *)
handles properties associated with a texture map
Definition: vtkTexture.h:69
represent a vtkBorderWidget
represent the vtkLogoWidget
represent surface properties of a 2D image
Definition: vtkProperty2D.h:39
virtual void ReleaseGraphicsResources(vtkWindow *)
draw vtkPolyData onto the image plane
represent and manipulate 3D points
Definition: vtkPoints.h:38