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 =========================================================================*/
32 #ifndef vtkLogoRepresentation_h
33 #define vtkLogoRepresentation_h
34 
35 #include "vtkInteractionWidgetsModule.h" // For export macro
37 
38 class vtkImageData;
39 class vtkImageProperty;
40 class vtkTexture;
41 class vtkPolyData;
42 class vtkPoionts;
44 class vtkTexturedActor2D;
45 class vtkProperty2D;
46 
47 
48 class VTKINTERACTIONWIDGETS_EXPORT vtkLogoRepresentation : public vtkBorderRepresentation
49 {
50 public:
55 
57 
61  void PrintSelf(ostream& os, vtkIndent indent);
63 
65 
68  virtual void SetImage(vtkImageData *img);
69  vtkGetObjectMacro(Image,vtkImageData);
71 
73 
76  virtual void SetImageProperty(vtkProperty2D *p);
77  vtkGetObjectMacro(ImageProperty,vtkProperty2D);
79 
83  virtual void BuildRepresentation();
84 
86 
90  virtual void GetActors2D(vtkPropCollection *pc);
92  virtual int RenderOverlay(vtkViewport*);
94 
95 protected:
98 
99  // data members
102 
103  // Represent the image
109 
110  // Helper methods
111  virtual void AdjustImageSize(double o[2], double borderSize[2], double imageSize[2]);
112 
113 private:
114  vtkLogoRepresentation(const vtkLogoRepresentation&) VTK_DELETE_FUNCTION;
115  void operator=(const vtkLogoRepresentation&) VTK_DELETE_FUNCTION;
116 };
117 
118 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:40
vtkLogoRepresentation::New
static vtkLogoRepresentation * New()
Instantiate this class.
vtkPolyDataMapper2D
draw vtkPolyData onto the image plane
Definition: vtkPolyDataMapper2D.h:52
vtkLogoRepresentation
represent the vtkLogoWidget
Definition: vtkLogoRepresentation.h:49
vtkBorderRepresentation
represent a vtkBorderWidget
Definition: vtkBorderRepresentation.h:59
vtkTexturedActor2D
actor that draws 2D data with texture support
Definition: vtkTexturedActor2D.h:42
vtkLogoRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkLogoRepresentation::vtkLogoRepresentation
vtkLogoRepresentation()
vtkLogoRepresentation::AdjustImageSize
virtual void AdjustImageSize(double o[2], double borderSize[2], double imageSize[2])
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:35
vtkLogoRepresentation::ImageProperty
vtkProperty2D * ImageProperty
Definition: vtkLogoRepresentation.h:101
vtkTexture
handles properties associated with a texture map
Definition: vtkTexture.h:71
vtkImageProperty
image display properties
Definition: vtkImageProperty.h:43
vtkBorderRepresentation.h
vtkLogoRepresentation::SetImage
virtual void SetImage(vtkImageData *img)
Specify/retrieve the image to display in the balloon.
vtkImageData
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkLogoRepresentation::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
vtkLogoRepresentation::TexturePoints
vtkPoints * TexturePoints
Definition: vtkLogoRepresentation.h:105
vtkLogoRepresentation::~vtkLogoRepresentation
~vtkLogoRepresentation()
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:48
vtkLogoRepresentation::Texture
vtkTexture * Texture
Definition: vtkLogoRepresentation.h:104
vtkProperty2D
represent surface properties of a 2D image
Definition: vtkProperty2D.h:41
vtkLogoRepresentation::RenderOverlay
virtual int RenderOverlay(vtkViewport *)
vtkLogoRepresentation::Image
vtkImageData * Image
Definition: vtkLogoRepresentation.h:100
vtkLogoRepresentation::TextureActor
vtkTexturedActor2D * TextureActor
Definition: vtkLogoRepresentation.h:108
vtkLogoRepresentation::TexturePolyData
vtkPolyData * TexturePolyData
Definition: vtkLogoRepresentation.h:106
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
vtkLogoRepresentation::BuildRepresentation
virtual void BuildRepresentation()
Satisfy the superclasses' API.
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:39
vtkLogoRepresentation::SetImageProperty
virtual void SetImageProperty(vtkProperty2D *p)
Set/get the image property (relevant only if an image is shown).
vtkLogoRepresentation::GetActors2D
virtual void GetActors2D(vtkPropCollection *pc)
These methods are necessary to make this representation behave as a vtkProp.
vtkLogoRepresentation::TextureMapper
vtkPolyDataMapper2D * TextureMapper
Definition: vtkLogoRepresentation.h:107