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 
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*);
86 
88 
90  vtkSetMacro(AutoOrient, bool)
91  vtkGetMacro(AutoOrient, bool)
93 
95 
96  void SetOrientation(int orient);
97  int GetOrientation();
99 
100 protected:
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
vtkScalarBarRepresentation::SetScalarBarActor
virtual void SetScalarBarActor(vtkScalarBarActor *)
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkBorderRepresentation
represent a vtkBorderWidget
Definition: vtkBorderRepresentation.h:58
vtkScalarBarRepresentation::BuildRepresentation
virtual void BuildRepresentation()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkScalarBarRepresentation::New
static vtkScalarBarRepresentation * New()
vtkInteractionWidgetsModule.h
vtkScalarBarRepresentation::WidgetInteraction
virtual void WidgetInteraction(double eventPos[2])
vtkScalarBarRepresentation::GetSize
virtual void GetSize(double size[2])
Definition: vtkScalarBarRepresentation.h:70
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkScalarBarRepresentation::SetVisibility
virtual void SetVisibility(int)
vtkBorderRepresentation.h
vtkScalarBarRepresentation::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *window)
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkScalarBarRepresentation::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkScalarBarRepresentation::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
vtkScalarBarRepresentation::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *)
vtkScalarBarRepresentation
represent scalar bar for vtkScalarBarWidget
Definition: vtkScalarBarRepresentation.h:54
vtkScalarBarRepresentation::GetVisibility
virtual int GetVisibility()
vtkScalarBarRepresentation::RenderOverlay
virtual int RenderOverlay(vtkViewport *)
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:38
vtkScalarBarRepresentation::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkScalarBarActor
Create a scalar bar with labels.
Definition: vtkScalarBarActor.h:80
vtkScalarBarRepresentation::GetActors2D
virtual void GetActors2D(vtkPropCollection *collection)
vtkgl::size
GLsizeiptr size
Definition: vtkgl.h:11843