VTK
vtkScalarBarRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkScalarBarRepresentation.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 =========================================================================*/
15 
16 /*
17  * Copyright 2008 Sandia Corporation.
18  * Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
19  * license for use of this work by or on behalf of the
20  * U.S. Government. Redistribution and use in source and binary forms, with
21  * or without modification, are permitted provided that this Notice and any
22  * statement of authorship are reproduced on all copies.
23  */
24 
45 #ifndef vtkScalarBarRepresentation_h
46 #define vtkScalarBarRepresentation_h
47 
48 #include "vtkInteractionWidgetsModule.h" // For export macro
50 
51 class vtkScalarBarActor;
52 
54 {
55 public:
57  virtual void PrintSelf(ostream &os, vtkIndent indent);
59 
61 
62  vtkGetObjectMacro(ScalarBarActor, vtkScalarBarActor);
63  virtual void SetScalarBarActor(vtkScalarBarActor *);
65 
67 
68  virtual void BuildRepresentation();
69  virtual void WidgetInteraction(double eventPos[2]);
70  virtual void GetSize(double size[2])
71  {size[0]=2.0; size[1]=2.0;}
73 
75 
77  virtual int GetVisibility();
78  virtual void SetVisibility(int);
79  virtual void GetActors2D(vtkPropCollection *collection);
80  virtual void ReleaseGraphicsResources(vtkWindow *window);
81  virtual int RenderOverlay(vtkViewport*);
82  virtual int RenderOpaqueGeometry(vtkViewport*);
84  virtual int HasTranslucentPolygonalGeometry();
86 
88 
90  vtkSetMacro(AutoOrient, bool)
91  vtkGetMacro(AutoOrient, bool)
93 
95 
96  void SetOrientation(int orient);
97  int GetOrientation();
99 
100 protected:
102  ~vtkScalarBarRepresentation();
103 
106  void SwapOrientation();
107 
108  vtkScalarBarActor *ScalarBarActor;
109  bool AutoOrient;
110 
111 private:
112  vtkScalarBarRepresentation(const vtkScalarBarRepresentation &); // Not implemented
113  void operator=(const vtkScalarBarRepresentation &); // Not implemented
114 };
115 
116 #endif //vtkScalarBarRepresentation_h
virtual int GetVisibility()
void PrintSelf(ostream &os, vtkIndent indent)
abstract specification for Viewports
Definition: vtkViewport.h:46
Create a scalar bar with labels.
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
virtual void GetActors2D(vtkPropCollection *)
virtual void WidgetInteraction(double eventPos[2])
static vtkBorderRepresentation * New()
a list of Props
virtual void GetSize(double size[2])
window superclass for vtkRenderWindow
Definition: vtkWindow.h:36
#define VTKINTERACTIONWIDGETS_EXPORT
virtual void SetVisibility(int)
a simple class to control print indentation
Definition: vtkIndent.h:38
virtual int RenderOpaqueGeometry(vtkViewport *)
virtual void BuildRepresentation()
represent scalar bar for vtkScalarBarWidget
virtual int RenderOverlay(vtkViewport *)
represent a vtkBorderWidget
virtual int HasTranslucentPolygonalGeometry()
virtual void ReleaseGraphicsResources(vtkWindow *)