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 
46 #ifndef vtkScalarBarRepresentation_h
47 #define vtkScalarBarRepresentation_h
48 
49 #include "vtkInteractionWidgetsModule.h" // For export macro
51 
52 class vtkScalarBarActor;
53 
54 class VTKINTERACTIONWIDGETS_EXPORT vtkScalarBarRepresentation : public vtkBorderRepresentation
55 {
56 public:
58  virtual void PrintSelf(ostream &os, vtkIndent indent);
60 
62 
65  vtkGetObjectMacro(ScalarBarActor, vtkScalarBarActor);
66  virtual void SetScalarBarActor(vtkScalarBarActor *);
68 
70 
73  virtual void BuildRepresentation();
74  virtual void WidgetInteraction(double eventPos[2]);
75  virtual void GetSize(double size[2])
76  {size[0]=2.0; size[1]=2.0;}
78 
80 
84  virtual int GetVisibility();
85  virtual void SetVisibility(int);
86  virtual void GetActors2D(vtkPropCollection *collection);
87  virtual void ReleaseGraphicsResources(vtkWindow *window);
88  virtual int RenderOverlay(vtkViewport*);
89  virtual int RenderOpaqueGeometry(vtkViewport*);
91  virtual int HasTranslucentPolygonalGeometry();
93 
95 
99  vtkSetMacro(AutoOrient, bool)
100  vtkGetMacro(AutoOrient, bool)
102 
104 
107  void SetOrientation(int orient);
108  int GetOrientation();
110 
111 protected:
114 
119  void SwapOrientation();
120 
123 
124 private:
125  vtkScalarBarRepresentation(const vtkScalarBarRepresentation &) VTK_DELETE_FUNCTION;
126  void operator=(const vtkScalarBarRepresentation &) VTK_DELETE_FUNCTION;
127 };
128 
129 #endif //vtkScalarBarRepresentation_h
vtkBorderRepresentation::HasTranslucentPolygonalGeometry
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkBorderRepresentation
represent a vtkBorderWidget
Definition: vtkBorderRepresentation.h:58
vtkBorderRepresentation::GetActors2D
virtual void GetActors2D(vtkPropCollection *)
These methods are necessary to make this representation behave as a vtkProp.
vtkScalarBarRepresentation::ScalarBarActor
vtkScalarBarActor * ScalarBarActor
Definition: vtkScalarBarRepresentation.h:121
vtkBorderRepresentation::New
static vtkBorderRepresentation * New()
Instantiate this class.
vtkBorderRepresentation::RenderTranslucentPolygonalGeometry
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
vtkScalarBarRepresentation::AutoOrient
bool AutoOrient
Definition: vtkScalarBarRepresentation.h:122
vtkBorderRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkScalarBarRepresentation::GetSize
virtual void GetSize(double size[2])
Definition: vtkScalarBarRepresentation.h:75
vtkWindow
window superclass for vtkRenderWindow
Definition: vtkWindow.h:34
vtkBorderRepresentation::WidgetInteraction
virtual void WidgetInteraction(double eventPos[2])
vtkBorderRepresentation::RenderOpaqueGeometry
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkBorderRepresentation.h
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkProp::SetVisibility
virtual void SetVisibility(int)
Set/Get visibility of this vtkProp.
vtkBorderRepresentation::BuildRepresentation
virtual void BuildRepresentation()
Subclasses should implement these methods.
vtkX3D::size
@ size
Definition: vtkX3D.h:253
vtkViewport
abstract specification for Viewports
Definition: vtkViewport.h:47
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBorderRepresentation::RenderOverlay
virtual int RenderOverlay(vtkViewport *)
vtkBorderRepresentation::ReleaseGraphicsResources
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
vtkProp::GetVisibility
virtual int GetVisibility()
vtkScalarBarRepresentation
represent scalar bar for vtkScalarBarWidget
Definition: vtkScalarBarRepresentation.h:54
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:38
vtkScalarBarActor
Create a scalar bar with labels.
Definition: vtkScalarBarActor.h:80